/* The page is one descent: a black sky, a ring of light you fall through,
   and one release travelling from a commit to everyone. Colour is kept for
   state alone: amber needs a person, green is live, red was taken back. */
@font-face { font-family: Geist; src: url(fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/geist-mono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #080808; --coal: #0f0f0f; --edge: rgba(255, 255, 255, .1); --rim: rgba(255, 255, 255, .24);
  --chalk: #fafafa; --ash: #a8a8a8; --smoke: #8a8a8a;
  --go: #3ddc97; --wait: #ffb020; --stop: #ff5f5f;
  --d: min(88vw, 64vh, 660px); /* the eclipse */
  --g: clamp(84px, 13vw, 168px); /* a stage's ring */
  --gutter: max(20px, 6vw);
  --h: 0; --mx: 0; --my: 0;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--ink); color: var(--chalk); font: 17px/1.55 Geist, system-ui, sans-serif; -webkit-font-smoothing: antialiased;  }
body { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
code, pre { font-family: "Geist Mono", ui-monospace, monospace; font-size: .86em; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(36px, 5.2vw, 76px); max-width: 13em; }
p { color: var(--ash); max-width: 34em; text-wrap: pretty; }
p code, dd code { color: var(--chalk); }
section { position: relative; padding: 18vh var(--gutter); }
#dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }

.top { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; gap: 32px; padding: 18px var(--gutter) 30px; background: linear-gradient(var(--ink) 30%, transparent); }
.top nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--ash); }
.top nav a:hover { color: var(--chalk); }
.mark { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; }
.mark i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff, 0 0 12px 1px rgba(255, 255, 255, .6); }
.button { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--chalk); color: var(--ink); font-size: 15px; font-weight: 500; transition: box-shadow .25s, background .25s; }
.button:hover { box-shadow: 0 0 34px -4px rgba(255, 255, 255, .7); }
.button.quiet { background: rgba(255, 255, 255, .06); color: var(--chalk); box-shadow: inset 0 0 0 1px var(--rim); }
.button.quiet:hover { background: rgba(255, 255, 255, .12); }
.top .button { height: 36px; padding: 0 16px; font-size: 14px; }

/* The hero is taller than the window. Its stage stays put while the
   reader falls through the ring. */
.hero { height: 230vh; padding: 0; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sky { position: absolute; inset: 0; }
.horizon { position: absolute; left: 0; right: 0; top: 52%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5) 50%, transparent); box-shadow: 0 0 70px 14px rgba(255, 255, 255, .1); opacity: calc(1 - var(--h) * 2); }
.eclipse, .dusk { position: absolute; left: 50%; top: 47%; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); }
.eclipse { will-change: transform; scale: calc(1 + var(--h) * var(--h) * 6); translate: calc(var(--mx) * 8px) calc(var(--my) * 6px); }
.disc { position: absolute; inset: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .95), 0 0 26px 2px rgba(255, 255, 255, .6), 0 0 130px 20px rgba(255, 255, 255, .17), 0 0 340px 90px rgba(255, 255, 255, .07); }
.flare { position: absolute; inset: -9%; border-radius: 50%; background: conic-gradient(from 200deg, transparent 0 7%, rgba(255, 255, 255, .7) 13%, transparent 22% 52%, rgba(255, 255, 255, .3) 63%, transparent 75%); filter: blur(26px); animation: turn 80s linear infinite; }
@keyframes turn { to { rotate: 1turn; } }
.hero-copy { position: absolute; left: 50%; top: 47%; width: calc(var(--d) * .8); translate: -50% -50%; text-align: center; opacity: calc(1 - var(--h) * 4); scale: calc(1 + var(--h) * .5); will-change: transform, opacity; }
h1 { font-size: calc(var(--d) * .142); }
.hero-copy p { margin: calc(var(--d) * .04) auto 0; max-width: 22em; font-size: clamp(14px, calc(var(--d) * .027), 18px); line-height: 1.45; }
.hero-act { position: absolute; inset: auto 0 5vh; display: flex; justify-content: center; gap: 12px; opacity: calc(1 - var(--h) * 5); }

/* A statement the reader lights up by scrolling through it. */
section.say { display: grid; gap: 1.1em; padding-block: 16vh 22vh; }
.say p, p.say { color: var(--chalk); font-size: clamp(28px, 4.3vw, 62px); font-weight: 500; letter-spacing: -.04em; line-height: 1.08; max-width: 19em; }
.say p span, p.say span { opacity: .14; transition: opacity .2s; }
.say p span.lit, p.say span.lit { opacity: 1; }
p.say.small { font-size: clamp(24px, 3vw, 42px); margin-top: 12vh; }

/* The release. The stage stays put while one version travels the path. */
.journey { height: 560vh; padding: 0; }
.journey .stage { display: grid; grid-template-rows: auto 1fr auto; gap: 3vh; padding: 12vh var(--gutter) 5vh; }
.journey h2 { font-size: clamp(28px, 3.4vw, 50px); }
.path { position: relative; align-self: center; display: grid; grid-template-columns: .6fr 1fr 1fr 1fr; justify-items: center; width: min(100%, 1100px); margin-inline: auto; }
.rail { position: absolute; top: calc(var(--g) / 2); left: 8.33%; right: 13.9%; height: 1px; background: rgba(255, 255, 255, .2); }
.origin, .gate { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; font-size: 14px; text-align: center; }
.origin i { width: 12px; height: 12px; margin: calc(var(--g) / 2 - 6px) 0 calc(var(--g) / 2 - 6px + 14px); rotate: 45deg; background: var(--ink); box-shadow: 0 0 0 1.5px var(--rim); }
.origin b, .gate b { font-weight: 500; font-size: clamp(14px, 1.5vw, 18px); letter-spacing: -.01em; }
.gate span { min-height: 1.5em; color: var(--smoke); font-size: 13px; transition: color .3s; }
.gate { color: #fff; transition: color .2s; }
.gate.asks { color: var(--wait); } .gate.live { color: var(--go); } .gate.bad { color: var(--stop); }
.gate b { color: var(--chalk); } .gate.asks span, .gate.live span, .gate.bad span { color: currentColor; }
.gate svg { width: var(--g); height: var(--g); margin-bottom: 14px; rotate: -90deg; overflow: visible; }
.gate circle { fill: var(--ink); stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; }
.gate .arc { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .25s ease-out; filter: drop-shadow(0 0 8px currentColor); }
.comet, .person { position: absolute; z-index: 2; top: calc(var(--g) / 2); left: 0; border-radius: 50%; color: #fff; }
.comet { width: 10px; height: 10px; margin: -5px; background: currentColor; box-shadow: 0 0 14px 3px currentColor, 0 0 56px 12px currentColor; transition: color .3s; }
.comet::before { content: ""; position: absolute; top: 4px; right: 5px; width: 110px; height: 2px; background: linear-gradient(to left, currentColor, transparent); transform-origin: 100% 50%; scale: var(--way, 1) 1; opacity: .7; }
.person { width: 30px; height: 30px; margin: -15px; color: var(--wait); background: var(--ink); box-shadow: 0 0 0 1.5px currentColor, 0 0 22px currentColor; opacity: 0; transition: opacity .3s; }
.person.here { opacity: 1; }
.beats { list-style: none; padding: 0; display: grid; min-height: 12em; }
.beats li { display: grid; align-content: start; gap: 12px; }
.beats h3 { font-size: clamp(26px, 3.4vw, 46px); max-width: 16em; }
.beats code { color: var(--smoke); }
.js .beats li { grid-area: 1 / 1; opacity: 0; translate: 0 14px; transition: opacity .25s, translate .25s; }
.js .beats li.now { opacity: 1; translate: 0; }

/* Two columns: what is said, and the thing itself floating beside it. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8vw; align-items: start; }
.split h2 { font-size: clamp(34px, 4.2vw, 62px); margin-bottom: .5em; }
dl { display: grid; gap: 4px 28px; margin-top: 40px; }
dt { color: var(--chalk); font-weight: 500; padding-top: 16px; border-top: 1px solid var(--edge); }
dd { color: var(--ash); margin-bottom: 16px; }
/* The drafted file, each line with the reason RAS gives for it. */
.file > p { padding-bottom: 14px; color: var(--smoke); font-size: 14px; }
.file ol, .log { list-style: none; padding: 0; }
.file li { display: grid; gap: 4px; padding: 14px 0 14px 22px; border-top: 1px solid var(--edge); border-left: 1px solid var(--rim); }
.file li code { color: var(--chalk); overflow-wrap: anywhere; }
.file li span { color: var(--ash); font-size: 14px; line-height: 1.45; max-width: 36em; }
.file .asks { border-left-color: var(--wait); }
.file .asks code::before { content: "couldn't tell: "; color: var(--wait); }
/* What the ledger holds after an agent and a person both acted. */
.log { margin-top: 10vh; font-size: 15px; }
.log li { display: grid; grid-template-columns: 5ch 11em minmax(0, 1fr) minmax(0, 1.3fr); gap: 4px 28px; padding: 16px 0; border-top: 1px solid var(--edge); color: var(--ash); }
.log time { color: var(--smoke); font: .86em/1.8 "Geist Mono", monospace; }
.log b { color: var(--chalk); font-weight: 500; }
.log i { font-style: normal; color: var(--stop); }
.may { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-self: end; }
.may ul { list-style: none; padding: 16px 0 0; border-top: 1px solid var(--edge); color: var(--chalk); }
.may ul::before { content: "It may"; display: block; margin-bottom: 8px; color: var(--smoke); font-size: 14px; }
.may .never { color: var(--ash); } .may .never::before { content: "It may never"; }
.may li { padding-left: 22px; text-indent: -22px; }
.may li::before { content: ""; display: inline-block; width: 10px; height: 2px; margin-right: 12px; vertical-align: middle; background: var(--chalk); }
.may .never li::before { background: var(--stop); }

/* The ledger slides past as the reader scrolls: each event holds the hash before it. */
.record { padding-inline: 0; }
.record > h2, .record > p { margin-inline: var(--gutter); }
.record > p { margin-top: 28px; }
.strip { margin: 9vh 0 6vh; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent); }
.chain { list-style: none; display: flex; gap: 44px; width: max-content; padding: 30px var(--gutter); translate: var(--slide, 0) 0; will-change: translate; }
.chain li { position: relative; display: grid; gap: 2px; min-width: 190px; padding: 16px 18px; border-radius: 12px; background: var(--coal); box-shadow: inset 0 0 0 1px var(--rim); font-size: 14px; }
.chain li + li::before { content: ""; position: absolute; top: 50%; right: 100%; width: 44px; height: 1px; background: rgba(255, 255, 255, .4); }
.chain b { font-weight: 500; } .chain span { color: var(--smoke); } .chain code { margin-top: 10px; color: var(--ash); }
.chain .asks { box-shadow: inset 0 0 0 1px var(--wait), 0 0 40px -14px var(--wait); }
.chain .live { box-shadow: inset 0 0 0 1px var(--go), 0 0 40px -14px var(--go); }
.chain .bad { box-shadow: inset 0 0 0 1px var(--stop), 0 0 40px -14px var(--stop); }

.runs dl { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(4, auto); margin-top: 8vh; }
.install { display: grid; justify-items: start; gap: 6vh; padding-bottom: 24vh; overflow: hidden; }
.install ol { list-style: none; padding: 0; display: grid; gap: 22px; width: min(100%, 720px); counter-reset: step; }
.install li { counter-increment: step; display: grid; gap: 8px; }
.install li p::before { content: counter(step) ". "; color: var(--smoke); }
.install pre { padding: 16px 20px; border-radius: 12px; background: var(--coal); box-shadow: inset 0 0 0 1px var(--rim); color: var(--chalk); overflow-x: auto; }
/* The ring again, setting. */
.dusk { --d: min(120vw, 900px); top: auto; bottom: calc(var(--d) * -.78); left: auto; right: -8vw; margin: 0; z-index: -1; opacity: .8; will-change: transform; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 28px var(--gutter); border-top: 1px solid var(--edge); color: var(--smoke); font-size: 14px; }

@media (max-width: 820px) {
  .top nav { display: none; } .top .button { margin-left: auto; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 7vh; }
  .log li { grid-template-columns: 5ch minmax(0, 1fr); } .log li > :nth-child(n+3) { grid-column: 2; }
  .runs dl { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; }
  .journey .stage { padding-top: 11vh; gap: 3vh; }
  .gate span { font-size: 11px; } .comet::before { width: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .flare { animation: none; }
  .say p span, p.say span { opacity: 1; }
}
