:root {
  --ink: #111923;
  --ink-soft: #1b2634;
  --paper: #ffffff;
  --canvas: #e8eaee;
  --canvas-deep: #d9dce2;
  --muted: #5f6875;
  --rule: #c7cbd2;
  --coral: #e8634a;
  --teal: #2aacb8;
  --gold: #d4a843;
  --blue: #456ff2;
  --shell: min(94rem, calc(100vw - 3rem));
  --display: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 8rem; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 17px/1.58 var(--body); }
body::before { content: ""; position: fixed; z-index: 100; inset: 0 auto 0 0; width: .38rem; background: var(--coral); }
img { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.skip-link { position: fixed; z-index: 1000; top: .75rem; left: 1rem; padding: .7rem 1rem; background: var(--paper); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 30; display: flex; width: var(--shell); min-height: 5.2rem; margin: 0 auto; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ink); }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font: 750 1.05rem var(--display); letter-spacing: -.015em; text-decoration: none; }
.wordmark svg { width: 1.65rem; height: 1.65rem; }
.wordmark svg path:first-child { fill: var(--coral); stroke: none; }
.wordmark svg path:last-child { fill: none; stroke: white; stroke-width: 1.7; }
.site-header nav { display: flex; align-items: center; gap: 1.8rem; font: 650 .72rem var(--mono); }
.site-header nav > a { text-decoration: none; }
.site-header nav > a:not(.github-link):hover { text-decoration: underline; text-underline-offset: .35rem; }
.github-link { display: inline-flex; min-height: 2.55rem; align-items: center; gap: .55rem; padding: 0 .9rem; background: var(--ink); color: white; }
.github-link svg { width: 1rem; fill: currentColor; }

.hero { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(3rem, 7vw, 8rem); width: var(--shell); min-height: calc(100vh - 5.2rem); margin: 0 auto; padding: clamp(5rem, 9vw, 9rem) 0 clamp(6rem, 10vw, 10rem); align-items: center; }
.hero-copy { max-width: 42rem; }
.overline { margin: 0 0 1.2rem; color: var(--coral); font: 750 .67rem var(--mono); letter-spacing: .055em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.045em; }
h1 { max-width: 9ch; margin: 0; font-size: clamp(4.3rem, 7.1vw, 8rem); font-weight: 800; line-height: .84; }
h1 em { color: var(--coral); font-style: normal; }
.hero-lede { max-width: 39rem; margin: 2rem 0 0; color: #424b57; font-size: clamp(1.08rem, 1.45vw, 1.35rem); line-height: 1.48; }
.hero-actions, .prompt-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 2.1rem; }
.button { display: inline-flex; min-height: 3.45rem; align-items: center; justify-content: center; gap: 1rem; padding: 0 1.25rem; border: 1px solid var(--ink); font: 750 .72rem var(--mono); text-decoration: none; transition: transform 120ms ease, box-shadow 120ms ease; }
.button:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); }
.button.primary { background: var(--ink); color: white; }
.button.secondary { background: transparent; }
.button.light { border-color: white; background: white; color: var(--ink); }
.acid-line { max-width: 38rem; margin: 2.2rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--rule); color: #48515d; font-size: .86rem; }
.acid-line a { color: var(--ink); text-underline-offset: .2rem; }

.editor { min-width: 0; border: 1px solid var(--ink); background: var(--paper); box-shadow: 16px 16px 0 var(--ink); }
.editor-bar { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 2.9rem; align-items: center; gap: 1rem; padding: 0 .8rem; border-bottom: 1px solid #424b57; background: var(--ink); color: #c3c9d1; font: .62rem var(--mono); }
.editor-bar > span:nth-child(2) { color: white; }
.editor-bar > span:last-child { justify-self: end; }
.window-dots { display: flex; gap: .35rem; }
.window-dots i { display: block; width: .58rem; height: .58rem; border: 1px solid #7c8591; border-radius: 50%; }
.window-dots i:first-child { border-color: var(--coral); background: var(--coral); }
.editor-body { display: grid; grid-template-columns: 1fr 11rem; min-height: 31rem; }
.editor-canvas { display: grid; place-items: center; min-width: 0; padding: clamp(1rem, 2.5vw, 2.5rem); background: #cfd3da; }
.slide-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--ink); box-shadow: 0 .8rem 2rem rgb(31 41 53 / 18%); }
.slide-wrap > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.selection { --x: 39.2%; --y: 6.2%; --w: 22%; --h: 12%; position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border: 2px solid var(--blue); pointer-events: none; transition: left 260ms ease, top 260ms ease, width 260ms ease, height 260ms ease; }
.selection i { position: absolute; width: .55rem; height: .55rem; border: 1px solid var(--blue); background: white; }
.selection i:nth-child(1) { left: -.35rem; top: -.35rem; }
.selection i:nth-child(2) { right: -.35rem; top: -.35rem; }
.selection i:nth-child(3) { left: -.35rem; bottom: -.35rem; }
.selection i:nth-child(4) { right: -.35rem; bottom: -.35rem; }
.editor[data-inspector="art"] .selection { --x: 41%; --y: 5%; --w: 54%; --h: 70%; }
.editor[data-inspector="footer"] .selection { --x: 0%; --y: 92%; --w: 100%; --h: 8%; }
.object-panel { display: flex; min-width: 0; flex-direction: column; padding: 1.1rem; border-left: 1px solid var(--rule); background: #f8f9fb; }
.panel-label { color: #737c88; font: .55rem var(--mono); text-transform: uppercase; }
.object-panel > strong { margin-top: 1.2rem; font: 750 1.2rem/1.05 var(--display); }
.object-panel > p { margin: .55rem 0 0; color: #5d6672; font-size: .7rem; line-height: 1.45; }
.object-panel dl { margin: 1.4rem 0 0; border-top: 1px solid var(--rule); }
.object-panel dl div { display: flex; justify-content: space-between; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); font: .55rem var(--mono); }
.object-panel dt { color: #737c88; }
.object-panel dd { margin: 0; color: var(--ink); }
.object-tabs { display: grid; gap: .35rem; margin-top: auto; }
.object-tabs button { min-height: 2.1rem; border: 1px solid var(--rule); background: white; color: var(--ink); font: .58rem var(--mono); text-align: left; cursor: pointer; }
.object-tabs button.is-active { border-color: var(--blue); color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }

.statement { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: baseline; padding: 3.8rem max(1.5rem, calc((100vw - min(94rem, calc(100vw - 3rem))) / 2)); background: var(--coral); color: white; }
.statement p { margin: 0; font: .72rem var(--mono); text-transform: uppercase; }
.statement strong { font: 750 clamp(2.1rem, 4vw, 4.6rem)/.98 var(--display); letter-spacing: -.035em; }

.quickstart { width: var(--shell); margin: 0 auto; padding: clamp(7rem, 12vw, 13rem) 0; }
.section-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(3rem, 10vw, 11rem); align-items: end; }
.section-intro .overline { grid-column: 1 / -1; margin-bottom: -1.5rem; }
h2 { margin: 0; font-size: clamp(3.5rem, 6.3vw, 7rem); font-weight: 780; line-height: .9; }
.section-intro > p:last-child, .deck-head > p, .prompt-copy > p:not(.overline), .format-copy p, .future p, .contribute p { margin: 0; color: #4e5763; font-size: 1.05rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4rem; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.steps article { display: flex; min-height: 17rem; flex-direction: column; padding: 1.3rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); }
.steps article > span { font: .62rem var(--mono); }
.steps h3 { margin: 2.7rem 0 .6rem; font-size: 2.1rem; line-height: 1; }
.steps p { margin: 0; color: #5d6672; font-size: .9rem; }
.steps a, .steps small, .steps code { margin-top: auto; color: var(--ink); font: .63rem var(--mono); }
.steps code { overflow-x: auto; display: block; padding: .7rem; background: var(--canvas); white-space: nowrap; }
.terminal { margin: 2rem 0 0 auto; width: min(57rem, 100%); border: 1px solid var(--ink); background: var(--ink); color: #e9edf2; box-shadow: 10px 10px 0 var(--teal); }
.terminal-head { display: flex; min-height: 2.8rem; align-items: center; justify-content: space-between; padding: 0 .9rem; border-bottom: 1px solid #45505d; color: #adb5c0; font: .61rem var(--mono); }
.terminal-head button { border: 1px solid #65707d; padding: .3rem .55rem; background: transparent; color: white; font: .58rem var(--mono); cursor: pointer; }
.terminal pre { overflow-x: auto; margin: 0; padding: 1.2rem 1.4rem; border-bottom: 1px solid #45505d; color: white; font: .76rem/1.6 var(--mono); }
.terminal-output { padding: 1.2rem 1.4rem; color: #cfd5dd; font: .68rem/1.85 var(--mono); }
.terminal-output span { color: #aee97e; }
.terminal > p { min-height: 1rem; margin: 0; padding: 0 1.4rem .8rem; color: #aee97e; font: .58rem var(--mono); }

.deck { padding: clamp(7rem, 11vw, 12rem) 0 0; border-top: 1px solid var(--ink); background: #f8f9fb; }
.deck-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(3rem, 9vw, 10rem); width: var(--shell); margin: 0 auto; align-items: end; }
.deck-head h2 { max-width: 13ch; font-size: clamp(3.4rem, 5.7vw, 6.4rem); }
.slide-index { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: 11rem 1fr; width: var(--shell); min-height: 4rem; margin: 5rem auto 0; align-items: center; border: 1px solid var(--ink); background: var(--ink); color: white; }
.slide-index > span { padding: 0 1rem; color: #aeb6c1; font: .63rem var(--mono); }
.slide-index > span b { color: white; }
.slide-index > div { display: flex; overflow-x: auto; height: 100%; border-left: 1px solid #4c5663; }
.slide-index a { display: grid; flex: 0 0 2.55rem; place-items: center; color: #8d97a4; font: .57rem var(--mono); text-decoration: none; }
.slide-index a:hover, .slide-index a.is-active { background: var(--coral); color: white; }
.slide-list { margin-top: 3rem; }
.slide-case { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(18rem, .5fr); gap: clamp(2rem, 6vw, 7rem); width: var(--shell); margin: 0 auto; padding: clamp(4rem, 8vw, 8rem) 0; border-top: 1px solid var(--rule); align-items: start; }
.slide-case:nth-child(even) { grid-template-columns: minmax(18rem, .5fr) minmax(0, 1.5fr); }
.slide-case:nth-child(even) .slide-image { grid-column: 2; }
.slide-case:nth-child(even) .slide-copy { grid-column: 1; grid-row: 1; }
.slide-image { display: block; border: 1px solid #707885; background: var(--ink); box-shadow: 12px 12px 0 var(--canvas-deep); transition: transform 160ms ease, box-shadow 160ms ease; }
.slide-image:hover { transform: translate(-3px, -3px); box-shadow: 16px 16px 0 var(--teal); }
.slide-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.slide-copy { position: sticky; top: 7rem; padding-top: .25rem; }
.slide-number { color: var(--coral); font: .62rem var(--mono); text-transform: uppercase; }
.slide-copy h3 { margin: 1.4rem 0 1.2rem; font-size: clamp(2.2rem, 3.4vw, 4rem); line-height: .92; }
.slide-copy > p { margin: 0; color: #505965; }
.slide-copy h4 { margin: 2rem 0 .5rem; font: 750 .61rem var(--mono); letter-spacing: .045em; text-transform: uppercase; }
.slide-copy a { display: inline-block; margin-top: 2rem; color: var(--ink); font: 700 .65rem var(--mono); text-underline-offset: .3rem; }

.prompt { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 9vw, 10rem); align-items: center; padding: clamp(8rem, 13vw, 14rem) max(1.5rem, calc((100vw - min(94rem, calc(100vw - 3rem))) / 2)); background: var(--teal); }
.prompt-copy h2 { max-width: 10ch; }
.prompt-copy > p:not(.overline) { max-width: 39rem; margin-top: 2rem; color: #15383c; }
.prompt .overline { color: #15383c; }
.prompt-actions .text-link { font: 700 .65rem var(--mono); text-underline-offset: .3rem; }
.prompt-file { min-width: 0; border: 1px solid var(--ink); background: var(--ink); color: #e8edf3; box-shadow: 14px 14px 0 #13737c; }
.file-head { display: flex; min-height: 3rem; align-items: center; justify-content: space-between; padding: 0 1rem; border-bottom: 1px solid #46515e; color: #aab3be; font: .61rem var(--mono); }
.prompt-file pre { overflow-x: auto; margin: 0; padding: clamp(1.4rem, 3vw, 2.5rem); font: clamp(.65rem, 1vw, .78rem)/1.9 var(--mono); }

.formats { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 10vw, 11rem); width: var(--shell); margin: 0 auto; padding: clamp(8rem, 13vw, 14rem) 0; }
.formats h2 { max-width: 10ch; font-size: clamp(3.7rem, 6vw, 6.8rem); }
.format-copy { padding-top: 2rem; border-top: 1px solid var(--ink); }
.format-copy p + p { margin-top: 1.5rem; }
.format-copy a { display: inline-block; margin-top: 1.8rem; font: 700 .68rem var(--mono); text-underline-offset: .3rem; }

.future { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(3rem, 10vw, 11rem); align-items: center; padding: clamp(7rem, 11vw, 11rem) max(1.5rem, calc((100vw - min(94rem, calc(100vw - 3rem))) / 2)); background: var(--gold); }
.future-mark { font: 800 clamp(5rem, 13vw, 14rem)/.8 var(--display); letter-spacing: -.08em; white-space: nowrap; }
.future-mark span { color: white; }
.future h2 { max-width: 12ch; font-size: clamp(3.4rem, 5.5vw, 6rem); }
.future p:last-child { max-width: 49rem; margin-top: 1.8rem; color: #40381d; }
.future .overline { color: #5d4c0f; }

.contribute { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 9vw, 10rem); align-items: start; padding: clamp(8rem, 13vw, 14rem) max(1.5rem, calc((100vw - min(94rem, calc(100vw - 3rem))) / 2)); background: var(--ink); color: white; }
.contribute h2 { max-width: 10ch; font-size: clamp(3.7rem, 6vw, 6.8rem); }
.contribute p:last-child { max-width: 35rem; margin-top: 1.7rem; color: #aeb7c3; }
.contribution-links { border-top: 1px solid #505a67; }
.contribution-links a { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center; min-height: 8rem; border-bottom: 1px solid #505a67; color: white; text-decoration: none; transition: background 140ms ease, color 140ms ease; }
.contribution-links a:hover { padding: 0 1rem; background: var(--coral); }
.contribution-links span, .contribution-links em { color: #858f9c; font: .6rem var(--mono); font-style: normal; }
.contribution-links a:hover span, .contribution-links a:hover em { color: white; }
.contribution-links strong { font: 750 clamp(1.5rem, 2.3vw, 2.5rem) var(--display); }

.final-cta { display: flex; min-height: 26rem; align-items: center; justify-content: space-between; gap: 3rem; padding: 4rem max(1.5rem, calc((100vw - min(94rem, calc(100vw - 3rem))) / 2)); background: var(--coral); color: white; }
.final-cta .overline { color: #ffe4de; }
.final-cta h2 { font-size: clamp(3.5rem, 7vw, 7.5rem); }

.site-footer { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; width: var(--shell); min-height: 7rem; margin: 0 auto; color: #626b77; font: .6rem var(--mono); }
.site-footer p { margin: 0; text-align: center; text-transform: uppercase; }
.site-footer > div { display: flex; gap: 1rem; }
.site-footer a { text-underline-offset: .25rem; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 52rem; }
  .editor { width: min(58rem, calc(100% - 1rem)); margin: 0 auto; }
  .section-intro, .deck-head, .prompt, .formats, .future, .contribute { grid-template-columns: 1fr; }
  .section-intro .overline { margin-bottom: 0; }
  .section-intro > p:last-child, .deck-head > p { max-width: 48rem; }
  .prompt-file { width: min(58rem, 100%); }
  .future-mark { font-size: clamp(5rem, 22vw, 13rem); }
  .contribute > div:first-child { max-width: 52rem; }
}

@media (max-width: 800px) {
  :root { --shell: calc(100vw - 2rem); }
  body::before { width: .25rem; }
  .site-header { min-height: 4.5rem; }
  .site-header nav > a:not(.github-link) { display: none; }
  .hero { min-height: auto; padding-top: 4rem; }
  h1 { font-size: clamp(4rem, 19vw, 6.5rem); }
  .editor { width: calc(100% - .5rem); box-shadow: 8px 8px 0 var(--ink); }
  .editor-body { grid-template-columns: 1fr; min-height: 0; }
  .editor-canvas { padding: 1rem; }
  .object-panel { min-height: 12rem; border-top: 1px solid var(--rule); border-left: 0; }
  .object-tabs { grid-template-columns: repeat(3, 1fr); margin-top: 1rem; }
  .statement { grid-template-columns: 1fr; gap: 1rem; }
  .steps { grid-template-columns: 1fr; }
  .steps article { min-height: 13rem; }
  .slide-index { grid-template-columns: 7rem 1fr; }
  .slide-case, .slide-case:nth-child(even) { grid-template-columns: 1fr; gap: 2rem; }
  .slide-case:nth-child(even) .slide-image, .slide-case:nth-child(even) .slide-copy { grid-column: 1; grid-row: auto; }
  .slide-copy { position: static; max-width: 42rem; }
  .prompt, .future, .contribute { padding-right: 1rem; padding-left: 1rem; }
  .final-cta { align-items: flex-start; flex-direction: column; justify-content: center; }
  .site-footer { grid-template-columns: 1fr; gap: .8rem; padding: 2rem 0; }
  .site-footer p { text-align: left; }
}

@media (max-width: 520px) {
  .hero-actions .button, .prompt-actions .button, .final-cta .button { width: 100%; }
  .editor-bar { grid-template-columns: 1fr auto; }
  .editor-bar .window-dots { display: none; }
  .terminal { box-shadow: 6px 6px 0 var(--teal); }
  .slide-index > span { padding: 0 .6rem; }
  .slide-case { padding: 3.5rem 0; }
  .slide-image { box-shadow: 7px 7px 0 var(--canvas-deep); }
  .contribution-links a { grid-template-columns: 2rem 1fr; }
  .contribution-links em { grid-column: 2; margin-top: -1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
