/*
  weaverreader.com

  Tokens mirror mobile/lm-reader/App/AppTheme.swift (light and dark) and
  design/weaver/FOUNDATIONS.md. Motion curves mirror the app's onboarding
  (Onboarding/OnboardingMotion.swift), which took them from the motion-studio
  film: words rise out of masks, the reader's selection sweeps between two
  popping handles, and the gold thread snags under the phrase that stops the
  reader, then pulls straight once it is understood.

  Initial (pre-animation) states apply only under `html.motion`, which an
  inline script sets when JavaScript runs and Reduce Motion is off. Without
  JavaScript, or with Reduce Motion, everything renders in its final state.
*/

/* ---------- Fonts (self-hosted, SIL OFL 1.1; licenses in assets/fonts) ---------- */

@font-face {
  font-family: "Literata";
  src: url("fonts/literata-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/literata-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/literata-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/literata-latin-ext-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/literata-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/literata-latin-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --paper: #FAF6EF;
  --paper-sunken: #F3ECE0;
  --paper-raised: #FFFCF6;
  --ink: #1C1B18;
  --ink-2: #625D54;
  --ink-3: #666057;
  --accent: #8C3B2E;
  --on-accent: #FAF6EF;
  --hairline: #D8CEBE;
  --thread: #D79C58;
  --selection: rgb(140 59 46 / 0.2);
  --invite: rgb(140 59 46 / 0.08);
  --veil: rgb(250 246 239 / 0.62);
  --menu-bg: #1C1B18;
  --menu-ink: #FAF6EF;
  --shadow-rgb: 60 44 26;
  --bezel: #2A2724;

  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease-rise: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-sweep: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-camera: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-sheet: cubic-bezier(0.2, 0.9, 0.25, 1);

  --gutter: clamp(20px, 4.2vw, 48px);
  --max: 1200px;
  --masthead: 64px;

  /* One type scale and one section rhythm for the whole page. */
  --t-display: clamp(40px, 4.6vw, 68px);
  --t-h2: clamp(30px, 3vw, 44px);
  --t-h3: clamp(22px, 1.9vw, 26px);
  --t-lede: clamp(18px, 1.35vw, 20px);
  --section-y: clamp(72px, 8vw, 112px);
  --col-gap: clamp(40px, 6vw, 96px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171512;
    --paper-sunken: #211E1A;
    --paper-raised: #221F1B;
    --ink: #F4EEE5;
    --ink-2: #C5BCAF;
    --ink-3: #A79E91;
    --accent: #E39A87;
    --on-accent: #171512;
    --hairline: #433D35;
    --thread: #D9A566;
    --selection: rgb(227 154 135 / 0.26);
    --invite: rgb(227 154 135 / 0.1);
    --veil: rgb(8 7 6 / 0.5);
    --menu-bg: #34302B;
    --menu-ink: #F4EEE5;
    --shadow-rgb: 0 0 0;
    --bezel: #0F0E0C;
  }
}

@media (prefers-contrast: more) {
  :root { --hairline: #9E927F; --ink-2: #4A463F; --ink-3: #4A463F; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --hairline: #7A7065; --ink-2: #E2DBD0; --ink-3: #D2C9BC; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--masthead) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }

::selection { background: var(--selection); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.nowrap { white-space: nowrap; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- Shared type ---------- */

.eyebrow {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.lede {
  max-width: 38ch;
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.lede--small { max-width: 40ch; }

.section-title {
  font: 600 var(--t-h2)/1.1 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Section header: a mono eyebrow over the title, the same in every section. */
.eyebrow + .section-title,
.eyebrow + .moment__title,
.eyebrow + .get__title { margin-top: 4px; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  cursor: pointer;
  transition: text-decoration-color 0.2s ease;
}
.textlink:hover { text-decoration-color: var(--accent); }
.textlink--small { min-height: 32px; font-size: 14px; font-weight: 600; color: var(--ink-2); }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s var(--ease-pop), background-color 0.2s ease;
}
.pill:active { transform: scale(0.97); }

.badge {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--paper-sunken);
  color: var(--ink-3);
  font: 500 10.5px/1.3 var(--sans);
  letter-spacing: 0.01em;
}

.sparkles { fill: currentColor; flex: none; }

/* ---------- Kinetic text (mask rise) ---------- */

[data-rise="words"] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* Room for descenders and italic overhang inside the mask. */
  padding: 0.06em 0.06em 0.16em;
  margin: -0.06em -0.06em -0.16em;
}
[data-rise="words"] .wi { display: inline-block; }

html.motion [data-rise="words"] .wi {
  transform: translateY(112%);
  transition: transform 0.6s var(--ease-rise);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 55ms);
}
html.motion [data-rise="words"].is-in .wi { transform: none; }

html.motion [data-rise]:not([data-rise="words"]) {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-rise), transform 0.8s var(--ease-rise);
  transition-delay: var(--d, 0ms);
}
html.motion [data-rise]:not([data-rise="words"]).is-in { opacity: 1; transform: none; }

html.motion [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-rise), transform 0.85s var(--ease-rise);
  transition-delay: var(--d, 0ms);
}
html.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* If the script never arrives, nothing stays hidden. */
@keyframes failsafe { to { opacity: 1; transform: none; } }
html.motion:not(.ready) [data-rise]:not([data-rise="words"]),
html.motion:not(.ready) [data-reveal],
html.motion:not(.ready) [data-rise="words"] .wi,
html.motion:not(.ready) .demo .reader,
html.motion:not(.ready) .station__literal,
html.motion:not(.ready) .station__meaning,
html.motion:not(.ready) .lockup > * { animation: failsafe 0.01s linear 2.5s forwards; }
@keyframes failsafe-clip { to { opacity: 1; transform: none; clip-path: none; } }
@keyframes failsafe-sel { to { background-size: 100% 100%; } }
html.motion:not(.ready) .lockup__mark { animation: failsafe-clip 0.01s linear 2.5s forwards; }
html.motion:not(.ready) .reader .sheet,
html.motion:not(.ready) .sel__hs,
html.motion:not(.ready) .sel__he { animation: failsafe 0.01s linear 2.5s forwards; }
html.motion:not(.ready) .sel__text { animation: failsafe-sel 0.01s linear 2.5s forwards; }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.masthead.is-stuck { border-bottom-color: var(--hairline); }

.masthead__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--masthead);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}
.brand__mark img {
  width: 32px; height: 32px;
  border-radius: 7px; /* 14/64 of the side, like the in-app mark */
  box-shadow: 0 0 0 1px var(--hairline);
}
.brand__mark--small img { width: 24px; height: 24px; border-radius: 5.25px; }
.brand__name {
  font: 600 20px/1 var(--serif);
  letter-spacing: -0.015em;
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  font-size: 15px;
  font-weight: 500;
}
.masthead__nav a:not(.pill) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.masthead__nav a:not(.pill):hover { color: var(--ink); }

@media (max-width: 719px) {
  .masthead__nav a:not(.pill) { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(32px, 5vh, 64px) 0 clamp(56px, 7vw, 88px); }

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(448px, 1fr);
    column-gap: clamp(40px, 5vw, 80px);
  }
}

.hero__copy { display: grid; gap: 20px; justify-items: start; }

.hero__title {
  position: relative;
  font: 600 var(--t-display)/1.04 var(--serif);
  letter-spacing: -0.025em;
  padding-bottom: 0.14em;
}
.hero__line { display: block; white-space: nowrap; }
.hero__snag { display: inline-block; }

.thread {
  position: absolute;
  left: 0; top: 0;
  overflow: visible;
  pointer-events: none;
}
.thread path {
  fill: none;
  stroke: var(--thread);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.thread--hero path { stroke-width: 3; }
html.motion .thread path { visibility: hidden; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 12px;
}

/* Before either listing opens, "See how it works" is the primary action. */
html:not([data-play="live"]):not([data-appstore="live"]) .hero__actions { column-gap: 12px; }
html:not([data-play="live"]):not([data-appstore="live"]) .hero__how {
  order: -1;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease-pop);
}
html:not([data-play="live"]):not([data-appstore="live"]) .hero__how:active { transform: scale(0.97); }

/* At a glance: four facts the page goes on to show. */
.glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(32px, 2.8vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
@media (min-width: 760px) {
  .glance { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
}
.glance dt {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.glance dd {
  margin-top: 6px;
  font: 600 clamp(17px, 1.3vw, 18px)/1.3 var(--serif);
  letter-spacing: -0.005em;
  color: var(--ink);
}

/* Store tiles: <html data-play / data-appstore> picks live or coming soon. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 54px;
  padding: 7px 22px 8px;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.15;
  white-space: nowrap;
}
.store__kicker { font-size: 11.5px; font-weight: 500; letter-spacing: 0.01em; }
.store__name { font-size: 17px; font-weight: 650; letter-spacing: -0.012em; }

.store--live {
  background: var(--accent);
  color: var(--on-accent);
  transition: transform 0.22s var(--ease-pop), box-shadow 0.22s ease;
  box-shadow: 0 10px 24px -14px rgb(var(--shadow-rgb) / 0.55);
}
.store--live .store__kicker { opacity: 0.86; }
.store--live:hover { transform: translateY(-1px); }
.store--live:active { transform: scale(0.97); }

.store--soon {
  border: 1px solid var(--hairline);
  color: var(--ink);
}
.store--soon .store__kicker { color: var(--ink-3); }

html[data-play="live"] .store--soon[data-store="play"],
html:not([data-play="live"]) .store--live[data-store="play"],
html[data-appstore="live"] .store--soon[data-store="appstore"],
html:not([data-appstore="live"]) .store--live[data-store="appstore"] { display: none; }

/* While neither listing is public there is nothing to press: one quiet
   status capsule instead of two dead tiles, and no "Get Weaver" in the
   masthead. */
.stores__soon {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  font: 500 13px/1.35 var(--sans);
  color: var(--ink-2);
}
.stores__soon::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--thread);
}
html:not([data-play="live"]):not([data-appstore="live"]) .stores__soon { display: inline-flex; }
html:not([data-play="live"]):not([data-appstore="live"]) .store--soon,
html:not([data-play="live"]):not([data-appstore="live"]) .masthead .pill { display: none; }

/* ---------- The reader demo ---------- */

/* A platform-neutral phone: a slim bezel around the reader's screen, no
   notch and no buttons (it stands for Android as much as iPhone). The
   screen inside the bezel is 430 x 612, the size at which the selected
   phrase stays visible above the open sheet. */
.demo {
  justify-self: center;
  width: min(100%, 448px);
}

.reader {
  position: relative;
  height: 630px;
  overflow: hidden;
  border: 9px solid var(--bezel);
  border-radius: 46px;
  background: var(--paper);
  box-shadow:
    0 0 0 1px var(--hairline),
    0 42px 80px -46px rgb(var(--shadow-rgb) / 0.55),
    0 14px 30px -22px rgb(var(--shadow-rgb) / 0.35);
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
}
@media (max-width: 599px) {
  .demo { width: min(100%, 360px); }
  .reader { height: 560px; border-radius: 40px; }
}

html.motion .demo .reader {
  transform: translateY(26px);
  opacity: 0;
  transition: transform 0.9s var(--ease-rise) 0.25s, opacity 0.6s ease 0.25s;
}
html.motion .demo.is-in .reader { transform: none; opacity: 1; }

.reader__chrome {
  position: absolute;
  inset: 14px 14px auto;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border: 1px solid var(--hairline);
  color: var(--ink);
}
.chip svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chip svg circle { fill: currentColor; stroke: none; }
.chip--round { width: 40px; padding: 0; }
.chip--title {
  display: block; /* a block box, so a long title ends in an ellipsis */
  flex: 1;
  min-width: 0;
  font: 400 15px/38px var(--serif);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader__page {
  position: absolute;
  inset: 72px 0 0;
  padding: 0 26px;
  font: 400 17.5px/1.62 var(--serif);
  color: var(--ink);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.reader__p + .reader__p { text-indent: 1.4em; }
@media (max-width: 379px) { .reader__page { font-size: 16.5px; padding: 0 20px; } }

/* The marked phrase: a faint accent tint and a touch ring until pressed. */
.phrase {
  position: relative;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--invite);
  font: inherit;
  line-height: inherit;
  text-indent: 0;
  text-align: inherit;
  color: inherit;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.phrase.is-selected, .phrase.is-touched { background: transparent; }
.phrase:focus-visible { outline-offset: 4px; }

/* Selection: the app's tint and its two terracotta handles. The tint is the
   text's own background (so it follows line wraps); each handle is a
   zero-width inline box at either end of the text, sitting on the baseline. */
.sel { --knob: max(0.42em, 9px); }
.sel__text {
  position: relative;
  padding: 0 0.04em;
  background-image: linear-gradient(to bottom, transparent var(--band-top, 0%), var(--selection) var(--band-top, 0%), var(--selection) var(--band-bottom, 100%), transparent var(--band-bottom, 100%));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.sel__hs, .sel__he {
  position: relative;
  display: inline-block;
  width: 0; height: 0;
  vertical-align: baseline;
  transform: scale(0);
}
.sel__hs::before, .sel__he::before {
  content: "";
  position: absolute;
  left: -1px;
  bottom: -0.26em;
  width: 2px;
  height: 1.18em;
  border-radius: 1px;
  background: var(--accent);
}
.sel__hs::after, .sel__he::after {
  content: "";
  position: absolute;
  left: calc(var(--knob) / -2);
  width: var(--knob); height: var(--knob);
  border-radius: 50%;
  background: var(--accent);
}
.sel__hs::after { bottom: calc(0.92em - var(--knob) * 0.2); }
.sel__he::after { bottom: calc(-0.26em - var(--knob) * 0.8); }

.is-selected .sel__text { background-size: 100% 100%; }
.is-selected .sel__hs, .is-selected .sel__he { transform: none; }

html.motion .sel__hs { transition: transform 0.32s var(--ease-pop); }
html.motion .sel__text { transition: background-size 0.4s var(--ease-sweep) 0.06s; }
html.motion .sel__he { transition: transform 0.32s var(--ease-pop) 0.38s; }
html.motion .is-clearing .sel__text,
html.motion .is-clearing .sel__hs,
html.motion .is-clearing .sel__he { transition-duration: 0.18s; transition-delay: 0s; transition-timing-function: ease; }

/* Until the demo takes over, the phrase waits unselected (motion only). */
html.motion .reader:not(.is-live) .sel__text { background-size: 0% 100%; }
html.motion .reader:not(.is-live) .sel__hs,
html.motion .reader:not(.is-live) .sel__he { transform: scale(0); }

/* Touch ring: a soft disc and an expanding ring, no solid center. */
.touch {
  position: absolute;
  z-index: 3;
  left: 50%; top: 50%;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgb(140 59 46 / 0.16);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.touch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgb(140 59 46 / 0.55);
}
@media (prefers-color-scheme: dark) {
  .touch { background: rgb(227 154 135 / 0.18); }
  .touch::after { border-color: rgb(227 154 135 / 0.6); }
}
.phrase.is-inviting .touch { opacity: 1; }
.phrase.is-pressing .touch { opacity: 1; transform: scale(0.82); }
html.motion .phrase.is-inviting:not(.is-pressing) .touch::after { animation: ring 1.3s ease-out infinite; }
@keyframes ring {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(2.1); opacity: 0; }
}

/* The edit menu: one action, Explain, as the app's onboarding offers. */
.reader__menu {
  position: absolute;
  z-index: 4;
  left: var(--mx, 50%);
  top: var(--my, 40%);
  transform: translate(-50%, -100%);
  padding: 4px;
  border-radius: 999px;
  background: var(--menu-bg);
  color: var(--menu-ink);
  box-shadow: 0 14px 30px -12px rgb(var(--shadow-rgb) / 0.5);
}
.reader__menu[hidden] { display: none; }
html.motion .reader__menu { animation: menu-in 0.26s var(--ease-pop); }
@keyframes menu-in {
  from { transform: translate(-50%, -100%) scale(0.86); opacity: 0; }
}
.reader__menu::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -5px;
  width: 12px; height: 12px;
  margin-left: -6px;
  background: var(--menu-bg);
  border-radius: 2px;
  transform: rotate(45deg);
}
.menu__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 500 15.5px/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.menu__item:hover, .menu__item.is-pressed { background: rgb(255 255 255 / 0.14); }
.menu__item:focus-visible { outline-color: var(--thread); outline-offset: 1px; }

.reader__veil {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--veil);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}
.reader.is-explaining .reader__veil { opacity: 1; pointer-events: auto; cursor: pointer; }

.reader__footer {
  position: absolute;
  inset: auto 14px 14px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.chip--progress { flex: 1; gap: 12px; padding: 0 16px; }
.progress {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--hairline);
}
.progress span {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 16%;
  border-radius: 2px;
  background: var(--accent);
}
.progress__label { font: 500 12.5px/1 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* The explanation sheet: the reader's own, rising over a veiled page. */
.sheet {
  position: absolute;
  z-index: 6;
  left: 8px; right: 8px; bottom: 8px;
  max-height: calc(100% - 64px);
  overflow: hidden;
  padding: 10px 22px 24px;
  border-radius: 30px;
  background: var(--paper-raised);
  background: color-mix(in srgb, var(--paper-raised) 93%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid var(--hairline);
  box-shadow: 0 -18px 50px -30px rgb(var(--shadow-rgb) / 0.45);
  transform: translateY(calc(100% + 12px));
  user-select: text;
  -webkit-user-select: text;
}
.sheet.is-open { transform: none; }
html.motion .reader .sheet { transition: transform 0.55s var(--ease-sheet); }
html.motion .reader:not(.is-live) .sheet { transform: translateY(calc(100% + 12px)); }
@media (prefers-reduced-transparency: reduce) {
  .sheet { background: var(--paper-raised); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.sheet__grabber {
  display: block;
  width: 38px; height: 5px;
  margin: 0 auto 12px;
  border-radius: 3px;
  background: var(--hairline);
}
.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sheet__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font: 600 12.5px/1.2 var(--sans);
}
.sheet__title {
  margin: 8px 0 14px;
  font: 600 20px/1.25 var(--serif);
  letter-spacing: -0.01em;
}
.sheet__rule { height: 1px; margin: 0; border: 0; background: var(--hairline); }
.sheet__answer {
  margin-top: 14px;
  font: 400 17px/1.55 var(--serif);
  color: var(--ink);
  text-align: left;
  hyphens: manual;
}
.sheet__answer p + p { margin-top: 10px; }
.sheet__answer :lang(vi) { font-family: "Iowan Old Style", "Palatino Linotype", "Noto Serif", Georgia, serif; }
.reader .sheet__answer { font-size: 16.5px; }
@media (max-width: 379px) { .reader .sheet__answer { font-size: 15.5px; } }

.dots { display: inline-block; margin-left: 2px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.04em; }
.dots i { font-style: normal; opacity: 0.2; animation: dot 1.05s steps(1) infinite; }
.dots i:nth-child(2) { animation-delay: 0.35s; }
.dots i:nth-child(3) { animation-delay: 0.7s; }
@keyframes dot { 0%, 66% { opacity: 1; } 67%, 100% { opacity: 0.2; } }

.demo__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  min-height: 44px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
}
.demo__caption [data-replay][hidden] { display: inline-flex; visibility: hidden; }
html:not(.js) .js-only { display: none; }

/* ---------- The moment ---------- */

.moment,
.how,
.levels,
.privacy,
.get { padding: var(--section-y) 0; }
.moment,
.how,
.get { border-top: 1px solid var(--hairline); }

.moment__grid {
  display: grid;
  gap: clamp(40px, 6vw, 56px);
}
@media (min-width: 980px) {
  .moment__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--col-gap);
    align-items: start;
  }
  .moment__head { position: sticky; top: calc(var(--masthead) + 32px); }
}
.moment__head { display: grid; gap: 16px; justify-items: start; }

.moment__title { display: grid; gap: 0.12em; }
.moment__l1 {
  font: 600 clamp(28px, 2.8vw, 40px)/1.12 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.moment__l2 {
  font: italic 500 clamp(34px, 3.6vw, 52px)/1.08 var(--serif);
  letter-spacing: -0.022em;
  color: var(--accent);
  text-wrap: balance;
}
.moment__lede { margin-top: 8px; }

.stations { display: grid; }
.station {
  position: relative;
  padding: clamp(24px, 2.6vw, 36px) 0;
}
.station:first-child { padding-top: 0; }
.station:last-child { padding-bottom: 0; }
.station + .station { border-top: 1px solid var(--hairline); }
.station__source {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.station__quote p { margin-top: 14px; }
.station__ctx {
  display: block;
  font: italic 400 clamp(17px, 1.25vw, 18px)/1.5 var(--serif);
  color: var(--ink-2);
}
.station__phrase {
  display: block;
  margin: 0.12em 0 0.56em;
  font: 400 clamp(28px, 3.2vw, 44px)/1.18 var(--serif);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.station__phrase .sel { --knob: max(0.2em, 7px); --band-top: 17%; --band-bottom: 88%; }
.station__phrase .sel__text { padding: 0 0.09em; }
.station__phrase .sel__hs::before,
.station__phrase .sel__he::before { width: max(2px, 0.04em); left: max(-1px, -0.02em); }
.station__gloss {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-top: 20px;
}
.station__literal {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-3);
}
.station__literal::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; top: 54%;
  height: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
}
.station__meaning {
  display: inline-block;
  font: italic 500 clamp(19px, 1.5vw, 21px)/1.35 var(--serif);
  color: var(--ink);
}

html.motion .station .station__literal,
html.motion .station .station__meaning {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-rise), transform 0.6s var(--ease-rise);
}
html.motion .station .station__literal { transition-delay: 0.8s; }
html.motion .station .station__meaning { transition-delay: 1.65s; }
html.motion .station .station__literal::after { transform: scaleX(0); transition: transform 0.45s var(--ease-sweep) 1.25s; }
html.motion .station.is-in .station__literal,
html.motion .station.is-in .station__meaning { opacity: 1; transform: none; }
html.motion .station.is-in .station__literal::after { transform: none; }
html.motion .station .sel__hs { transition-delay: 0.15s; }
html.motion .station .sel__text { transition-delay: 0.21s; transition-duration: 0.55s; }
html.motion .station .sel__he { transition-delay: 0.7s; }
html.motion .station:not(.is-in) .sel__text { background-size: 0% 100%; }
html.motion .station:not(.is-in) .sel__hs,
html.motion .station:not(.is-in) .sel__he { transform: scale(0); }
.thread--station path { stroke-width: 2.5; }

/* ---------- How it works ---------- */

.moves {
  --how-gap: clamp(40px, 5vw, 64px);
  margin-top: clamp(32px, 4vw, 48px);
}
.move {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--hairline);
}
.move:last-child { padding-bottom: 0; }
@media (min-width: 980px) {
  .moves {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--how-gap);
    border-top: 1px solid var(--hairline);
  }
  .move { padding: 32px 0 0; border-top: 0; }
  .move + .move::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(var(--how-gap) / -2);
    width: 1px;
    background: var(--hairline);
  }
}
.move__index {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--accent);
}
.move__index::after {
  content: "";
  display: block;
  width: 24px; height: 2px;
  margin-top: 10px;
  border-radius: 1px;
  background: var(--accent);
}
.move__title {
  margin-top: 8px;
  font: 600 var(--t-h3)/1.2 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.move__body { display: grid; gap: 16px; justify-items: start; color: var(--ink-2); max-width: 52ch; }
.move__note {
  padding-left: 14px;
  border-left: 2px solid var(--thread);
  font-size: 16px;
}
.tokens { display: flex; flex-wrap: wrap; gap: 8px; }
.tokens li {
  padding: 5px 12px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  color: var(--ink);
  font: 500 12.5px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Language learning ---------- */

.levels { background: var(--paper-sunken); }
.levels__grid {
  display: grid;
  gap: 48px;
  align-items: start;
}
@media (min-width: 980px) {
  .levels__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--col-gap); }
}
.levels__copy { display: grid; gap: 16px; justify-items: start; }

/* The level dial and "I speak" share one bounded control panel. */
.dial {
  width: min(100%, 460px);
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--paper-raised);
}
@media (max-width: 599px) { .dial { padding: 20px; } }
.dial__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.dial__label, .speak__label {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.dial__value { font: 600 22px/1.2 var(--serif); letter-spacing: -0.01em; }

.dial__track { position: relative; margin-top: 6px; }
.dial__ticks {
  position: absolute;
  inset: 0 0 0 0;
  pointer-events: none;
}
.dial__ticks i {
  position: absolute;
  top: 50%;
  width: 2px; height: 12px;
  margin: -6px 0 0 -1px;
  border-radius: 1px;
  background: var(--hairline);
}
.dial__ticks i:nth-child(1) { left: 14px; }
.dial__ticks i:nth-child(2) { left: calc(14px + (100% - 28px) * 0.2); }
.dial__ticks i:nth-child(3) { left: calc(14px + (100% - 28px) * 0.4); }
.dial__ticks i:nth-child(4) { left: calc(14px + (100% - 28px) * 0.6); }
.dial__ticks i:nth-child(5) { left: calc(14px + (100% - 28px) * 0.8); }
.dial__ticks i:nth-child(6) { left: calc(100% - 14px); }

.dial input[type="range"] {
  --p: 40%;
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.dial input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--thread) 0 var(--p), var(--hairline) var(--p) 100%);
}
.dial input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; height: 28px;
  margin-top: -12.5px;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 2px solid var(--accent);
  box-shadow: 0 6px 14px -6px rgb(var(--shadow-rgb) / 0.5);
  transition: transform 0.2s var(--ease-pop);
}
.dial input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.08); }
.dial input[type="range"]::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: var(--hairline);
}
.dial input[type="range"]::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--thread); }
.dial input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 2px solid var(--accent);
  box-shadow: 0 6px 14px -6px rgb(var(--shadow-rgb) / 0.5);
}
.dial input[type="range"]:focus-visible { outline: none; }
.dial input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }
.dial input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }

.dial__ends {
  display: flex;
  justify-content: space-between;
  font: 500 11.5px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.speak {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.speak__select { position: relative; display: inline-flex; }
.speak__select::after {
  content: "";
  position: absolute;
  right: 17px; top: 50%;
  width: 7px; height: 7px;
  margin-top: -6px;
  border-right: 1.8px solid var(--ink-2);
  border-bottom: 1.8px solid var(--ink-2);
  transform: rotate(45deg);
  pointer-events: none;
}
.speak select {
  min-height: 44px;
  padding: 0 42px 0 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.footnote { font-size: 14px; color: var(--ink-3); }

.levels__proof { display: grid; gap: 16px; }
.levels__context {
  font: italic 400 clamp(17px, 1.3vw, 18px)/1.5 var(--serif);
  color: var(--ink-2);
}
.levels__context mark,
.sent mark {
  padding: 0.04em 0.06em;
  border-radius: 2px;
  background: var(--selection);
  color: inherit;
}
.sheet--card {
  position: relative;
  left: auto; right: auto; bottom: auto;
  max-height: none;
  min-height: 372px;
  border-radius: 24px;
  transform: none;
  background: var(--paper);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 30px 60px -40px rgb(var(--shadow-rgb) / 0.45);
}
@media (max-width: 599px) { .sheet--card { min-height: 0; padding: 10px 18px 22px; } }

/* ---------- Privacy ---------- */

.privacy__grid {
  display: grid;
  gap: 48px;
  align-items: start;
}
@media (min-width: 980px) {
  .privacy__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--col-gap); }
  /* The proof sits left of the copy; the copy leads in reading order. */
  .privacy__grid .sent { grid-column: 1; grid-row: 1; }
  .privacy__grid .privacy__copy { grid-column: 2; grid-row: 1; }
}
.privacy__copy { display: grid; gap: 16px; justify-items: start; }

.sent { width: min(100%, 500px); }
.sent__page {
  position: relative;
  padding: 30px 30px 30px 40px;
  border-radius: 12px;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  font: 400 15.5px/1.6 var(--serif);
  color: var(--ink);
  box-shadow: 0 30px 60px -44px rgb(var(--shadow-rgb) / 0.5);
}
@media (prefers-color-scheme: dark) { .sent__page { background: var(--paper-sunken); } }
@media (max-width: 599px) {
  .sent__page { padding: 22px 20px 22px 32px; font-size: 15px; }
  .sent__bracket { left: 14px; }
}
.sent__p + .sent__p { margin-top: 0.7em; }
.sent__p--out { color: var(--ink-3); opacity: 0.42; }
.sent__bracket {
  position: absolute;
  left: 18px;
  width: 3px;
  border-radius: 2px;
  background: var(--thread);
  top: var(--bt, 30%);
  height: var(--bh, 40%);
  transform-origin: 50% 0;
}
html.motion .sent .sent__p--out { opacity: 1; color: var(--ink); transition: opacity 0.8s ease 0.5s, color 0.8s ease 0.5s; }
html.motion .sent.is-in .sent__p--out { opacity: 0.42; color: var(--ink-3); }
html.motion .sent .sent__bracket { transform: scaleY(0); transition: transform 0.7s var(--ease-camera) 0.9s; }
html.motion .sent.is-in .sent__bracket { transform: none; }

.sent__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-2);
}
.legend { display: inline-flex; align-items: center; gap: 9px; }
.legend::before { content: ""; flex: none; }
.legend--sent::before { width: 3px; height: 16px; border-radius: 2px; background: var(--thread); }
.legend--kept::before { width: 16px; height: 2px; background: var(--ink-3); opacity: 0.45; box-shadow: 0 -5px 0 var(--ink-3), 0 5px 0 var(--ink-3); }

.facts {
  display: grid;
  gap: 20px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  max-width: 60ch;
}
.facts dt { font: 600 20px/1.3 var(--serif); letter-spacing: -0.01em; }
.facts dd { margin-top: 6px; color: var(--ink-2); font-size: 16.5px; }
@media (min-width: 700px) {
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}

/* ---------- The end card ---------- */

.get__inner {
  display: grid;
  gap: 32px;
}
@media (min-width: 980px) {
  .get__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--col-gap);
    align-items: end;
  }
}
/* The thread's positioning box: the title, the thread, and the mark. */
.get__lead {
  position: relative;
  display: grid;
  justify-items: start;
}
.get__lead > .eyebrow { margin-bottom: 16px; }
.get__title {
  display: grid;
  font: 600 var(--t-display)/1.04 var(--serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.get__line { display: block; }
.thread--end path { stroke-width: 3; }

.lockup {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-items: center;
  margin-top: clamp(56px, 7vw, 88px);
}
.lockup__mark { grid-row: 1 / span 2; }
.lockup__mark img {
  width: 72px; height: 72px;
  border-radius: 15.75px; /* 14/64 of the side */
  box-shadow: 0 0 0 1px var(--hairline), 0 18px 36px -20px rgb(var(--shadow-rgb) / 0.5);
}
.lockup__name { align-self: end; font: 600 28px/1.1 var(--serif); letter-spacing: -0.015em; }
.lockup__tag { align-self: start; font: italic 400 18px/1.4 var(--serif); color: var(--ink-2); }

html.motion .lockup .lockup__mark,
html.motion .lockup .lockup__name,
html.motion .lockup .lockup__tag {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-rise), transform 0.6s var(--ease-rise);
}
html.motion .lockup .lockup__mark { clip-path: inset(calc(100% + 1px) -1px -1px -1px round 16.75px); transition: clip-path 0.6s var(--ease-rise) 1s, opacity 0.01s linear 1s, transform 0.6s var(--ease-rise) 1s; }
html.motion .lockup .lockup__name { transition-delay: 1.12s; }
html.motion .lockup .lockup__tag { transition-delay: 1.22s; }
html.motion .lockup.is-in .lockup__mark { clip-path: inset(-1px -1px -1px -1px round 16.75px); } /* keeps the 1px hairline ring */
html.motion .lockup.is-in .lockup__mark,
html.motion .lockup.is-in .lockup__name,
html.motion .lockup.is-in .lockup__tag { opacity: 1; transform: none; }

.get__action {
  display: grid;
  justify-items: start;
  width: 100%;
  max-width: 420px;
}
.get__platforms {
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.stores--end { margin-top: 20px; }
.get__terms { margin-top: 16px; font-size: 14.5px; color: var(--ink-3); max-width: 46ch; }

/* ---------- Footer ---------- */

.colophon {
  padding: 28px 0 calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--ink-2);
}
.colophon__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}
.colophon__brand { display: flex; align-items: center; gap: 10px; }
.colophon a { text-decoration-color: var(--hairline); text-underline-offset: 4px; }
.colophon a:hover { color: var(--ink); text-decoration-color: var(--accent); }
.colophon__nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.colophon__nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.colophon__nav a:hover { text-decoration: underline; }
.colophon__copy { color: var(--ink-3); }
@media (max-width: 599px) {
  .colophon__row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- 404 ---------- */

.lost { padding: clamp(80px, 14vh, 160px) 0; }
.lost .section-title { margin-top: 18px; }
.lost p:not(.eyebrow) { margin-top: 18px; color: var(--ink-2); max-width: 40ch; }
.lost .textlink { margin-top: 14px; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ---------- Print ---------- */

@media print {
  .masthead, .demo, .levels__proof, .sent, .thread, .stores { display: none !important; }
  body { background: #fff; color: #000; }
  [data-rise], [data-reveal], [data-rise] .wi, .station__literal, .station__meaning, .lockup > * {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
