/* The coming-soon page, as the landing design draws it: night ink with
   receipt-paper type, sale-sticker coral for the group chat, signal green
   for Off To; Figtree, Instrument Serif italic and Geist Mono, all
   served from here. */
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: swap; src: url("/figtree.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/instrument-serif-italic.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap; src: url("/geist-mono.woff2") format("woff2"); }

:root {
  --ink: #0a0f0c; --paper: #f3efe6; --muted: #b9b4a8; --coral: #ff6a3d; --green: #5fe39a; --green-hover: #9af0bf;
  --mono: "Geist Mono", ui-monospace, monospace; --serif: "Instrument Serif", Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 17px/1.55 "Figtree", system-ui, sans-serif; }
a { color: var(--green); }
a:hover { color: var(--green-hover); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.story { position: relative; height: 500vh; height: 500svh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 320px; overflow: hidden; cursor: none; touch-action: pan-y; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; font-size: clamp(72px, 14vw, 220px); letter-spacing: -0.02em; color: var(--green); }
.fallback[hidden] { display: none; }
.fallback[data-tone="coral"] { color: var(--coral); }

.nav { position: absolute; top: 0; left: 0; right: 0; max-width: 1240px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; gap: 16px; cursor: auto; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--paper); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { color: var(--paper); }
.grow { flex-grow: 1; }
.nav-notify { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--green); text-decoration: none; font: 500 13px var(--mono); letter-spacing: 0.12em; }

.captions { position: absolute; left: 0; right: 0; bottom: max(12%, 96px); padding: 0 24px; text-align: center; pointer-events: none; }
.caption { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.caption[data-on] { opacity: 1; transform: none; }
.count { margin-bottom: 12px; font: 500 12px var(--mono); letter-spacing: 0.16em; color: var(--muted); }
.line { font-size: clamp(30px, 4.4vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.line em { font-size: 1.15em; letter-spacing: -0.01em; color: var(--green); }
.caption[data-tone="coral"] .line em { color: var(--coral); }

.sticky-notify { position: absolute; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; background: var(--green); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 16px; cursor: pointer; }
.sticky-notify:hover { background: var(--green-hover); color: var(--ink); }
.scroll { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: 0.2em; color: var(--muted); }
.scroll[hidden] { display: none; }
.scroll-line { width: 1px; height: 36px; background: var(--muted); animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.reticle { position: absolute; left: 0; top: 0; transform: translate(-200px, -200px); pointer-events: none; overflow: visible; }

.notify { background: var(--green); color: var(--ink); }
.notify a { color: var(--ink); }
.notify a:focus-visible, .notify button:focus-visible, .notify input:focus-visible { outline-color: var(--ink); }
.notify-in { max-width: 1240px; margin: 0 auto; padding: 120px 24px 128px; display: flex; flex-direction: column; gap: 32px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 500 13px var(--mono); letter-spacing: 0.16em; }
.eyebrow span { width: 10px; height: 10px; background: var(--ink); }
.notify h2 { margin: 0; max-width: 11ch; font-size: clamp(56px, 9vw, 136px); line-height: 0.88; font-weight: 900; letter-spacing: -0.05em; }
.notify h2 em { letter-spacing: -0.02em; }
.tagline { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.lede { font-size: 21px; line-height: 1.45; max-width: 30em; }
form { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 640px; }
form > label { font: 500 12px var(--mono); letter-spacing: 0.16em; }
.field { display: flex; gap: 8px; flex-wrap: wrap; }
.field input { flex-grow: 1; min-width: 220px; min-height: 60px; padding: 0 18px; font: inherit; font-size: 19px; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 0; }
.field button { min-height: 60px; padding: 0 28px; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; border: 0; border-radius: 0; background: var(--ink); color: var(--green); }
.field button[disabled] { opacity: .7; cursor: default; }
.error { font-weight: 700; font-size: 16px; }
.error[hidden] { display: none; }
.note { font: 500 12px var(--mono); letter-spacing: 0.04em; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { font-family: var(--serif); font-style: italic; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; outline: none; }
.done[hidden] { display: none; }

.footer { background: var(--ink); }
.footer-in { max-width: 1240px; margin: 0 auto; padding: 28px 24px; display: flex; gap: 16px 32px; flex-wrap: wrap; justify-content: space-between; font: 500 12px var(--mono); letter-spacing: 0.12em; color: var(--muted); }

@media (hover: none) { .reticle { display: none; } .stage { cursor: auto; } }
@media (max-width: 699px) { .scroll { display: none; } }
@media (prefers-reduced-motion: reduce) { .caption, .scroll-line { transition: none; animation: none; } }

/* The leave page, opened from the link in every email. */
.leave { max-width: 880px; margin: 0 auto; padding: clamp(64px, 14vh, 120px) 24px; display: flex; flex-direction: column; gap: 28px; }
.leave-eyebrow { font: 500 13px var(--mono); letter-spacing: 0.16em; color: var(--muted); }
.leave-step { display: flex; flex-direction: column; gap: 28px; outline: none; }
.leave-step[hidden] { display: none; }
.leave h1 { margin: 0; font-size: clamp(48px, 7vw, 96px); line-height: 0.92; font-weight: 900; letter-spacing: -0.045em; }
.leave h1 em { letter-spacing: -0.02em; color: var(--green); }
.leave h1 em.coral { color: var(--coral); }
.leave-lede { font-size: 20px; line-height: 1.5; color: #c9c4b8; max-width: 30em; }
.leave-button { align-self: flex-start; min-height: 56px; padding: 0 26px; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); }
.leave-button[disabled] { opacity: .7; cursor: default; }
.leave-error { color: var(--coral); font-weight: 700; }
.leave-error[hidden] { display: none; }

/* The top bar and the button keep their words on one line; on the
   narrowest phones the bar's spacing tightens to make room. */
.brand, .nav-notify, .sticky-notify { white-space: nowrap; }
@media (max-width: 359px) {
  .nav { padding: 16px; gap: 8px; }
  .brand { font-size: 17px; gap: 8px; }
  .nav-notify { padding: 0 12px; letter-spacing: 0.08em; }
  .sticky-notify { right: 16px; left: 16px; justify-content: center; }
}
