/*
  One stylesheet for the whole site.

  Every page used to carry its own copy of these rules inline. That was fine at
  three pages and stops being fine at nine — the tokens drifted between
  index.html and privacy.html already. Same origin, cached after the first
  page, and still no build step.

  Two page shapes share it:
    <body>             the landing pages — full-width bands, large type
    <body class="doc"> the legal pages — one narrow column, no bands

  There is no JavaScript anywhere on this site, and the redesign did not change
  that. The menu, the disclosure lists and every animation below are CSS.
*/

/* Fonts ------------------------------------------------------------------- */

/*
  The app's own typefaces, served from this origin rather than from Google's.
  `src/lib/theme.ts` loads exactly these families, so the site and the product
  now read in the same voice — and a self-hosted file keeps the "no external
  requests" property the rest of this site is built on.

  Instrument Serif ships one weight, which is why it is used only where the
  size carries it: the h1 and the section headings. Everything small is
  Instrument Sans. Both are SIL OFL; the licence sits beside them in /fonts/.
*/
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/InstrumentSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/InstrumentSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Tokens ------------------------------------------------------------------ */

:root {
  /* Colour. The originals, plus two derived tones the bands needed. */
  --bg: #fdfcfa;
  --bg-sunk: #f7f3ed;
  --ink: #1a1714;
  --ink2: #4a443e;
  --ink3: #7a736b;
  --line: #e6e1da;
  --coral: #f4703c;
  --coral-ink: #c2471a; /* coral is 3.0:1 on cream — this is the text-safe one */
  --coral-wash: rgba(244, 112, 60, 0.09);
  --card: #f4f1ec;
  --bezel: #17140f;

  --font-display: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Spacing. Everything below picks from this ladder rather than inventing a
     number, which is what keeps the vertical rhythm from drifting. */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  --wrap: 1200px;      /* the outer container every band aligns to */
  --measure: 68ch;     /* the reading column — prose never gets wider */
  --gutter: clamp(20px, 5vw, 56px);
  --band: clamp(var(--s8), 11vw, var(--s10)); /* vertical air between sections */

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 26px;
  --r-phone: 38px;
  --r-pill: 999px;

  /* Shadows are warm rather than grey — a neutral shadow on cream reads as
     dirt. */
  --shadow-1: 0 1px 2px rgba(40, 30, 20, 0.04), 0 8px 24px rgba(40, 30, 20, 0.05);
  --shadow-2: 0 2px 6px rgba(40, 30, 20, 0.06), 0 30px 60px -20px rgba(40, 30, 20, 0.26);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --bg-sunk: #1b1815;
    --ink: #f2efea;
    --ink2: #b8b2aa;
    --ink3: #8a837b;
    --line: #2c2825;
    --coral-ink: #ff8d5f;
    --coral-wash: rgba(244, 112, 60, 0.13);
    --card: #1e1b18;
    --bezel: #000000;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }

/* Base -------------------------------------------------------------------- */

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-sans);
  /* The hero's route art is allowed to run off the side. Clip rather than
     hidden, so the page never becomes a scroll container in the process. */
  overflow-x: hidden;
  overflow-x: clip;
}

::selection { background: var(--coral); color: #fff; }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: var(--s3) var(--s4);
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* Layout ------------------------------------------------------------------ */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter);
}

section { margin: var(--band) 0; }

/* A band is a section that carries its own background across the full width
   while its contents stay on the same grid as everything else. */
.band {
  background: var(--bg-sunk);
  padding: var(--band) 0;
  margin: var(--band) 0;
}

.measure { max-width: var(--measure); }

/* The article column: wide enough for a 68ch measure with air either side,
   narrow enough that a 44px heading does not run the width of a monitor. The
   masthead and footer stay on the wider grid, which is what stops a long page
   from reading as one endless column. */
.wrap.text { max-width: 880px; }

.page-head { margin: 0; padding: clamp(var(--s7), 6vw, var(--s9)) 0 0; }
.page-head + section { margin-top: var(--s7); }
.wrap.text .cta-row { margin: var(--s8) 0; }

/* Type -------------------------------------------------------------------- */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s5);
}

h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: var(--s8) 0 var(--s4);
  max-width: 28ch;
}
h2:first-child { margin-top: 0; }

h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: var(--s6) 0 var(--s2);
  color: var(--ink);
}

p, li { color: var(--ink2); }
p { margin: 0 0 var(--s4); max-width: var(--measure); }
ul, ol { padding-left: var(--s5); max-width: var(--measure); }
li { margin: var(--s2) 0; }

a { color: var(--coral-ink); text-underline-offset: 2px; }
a:hover { color: var(--coral); }

strong { color: var(--ink); font-weight: 600; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--card);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Small uppercase label. Mono, like the app's own overlines. */
.eyebrow {
  font-family: var(--font-mono);
  color: var(--coral-ink);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 var(--s4);
}

.lede {
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink2);
  margin: 0 0 var(--s6);
  max-width: 40ch;
}

/* The one-sentence answer that opens every content page. Set large and dark:
   it is the paragraph a reader skims for the definition, and the one an answer
   engine quotes. */
.answer {
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 var(--s6);
  max-width: 46ch;
}

.meta { color: var(--ink3); font-size: 14px; margin: 0 0 var(--s6); }

/* Masthead ---------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .masthead { background: var(--bg); }
}

.masthead .wrap {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: 68px;
  padding-top: var(--s2);
  padding-bottom: var(--s2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}
.brand img { width: 30px; height: auto; display: block; }

nav.site {
  display: flex;
  align-items: center;
  gap: var(--s5);
  font-size: 15px;
  margin-left: auto;
  /* On narrow screens this becomes one scrollable row rather than a menu
     behind a button: six short links fit, and a disclosure that needs a tap to
     reveal six links is worse than the links themselves. */
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  padding: var(--s2) 0;
}
nav.site::-webkit-scrollbar { display: none; }
nav.site a {
  color: var(--ink2);
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: color 0.15s linear;
}
nav.site a:hover { color: var(--ink); }
nav.site a[aria-current="page"] { color: var(--coral-ink); }

/* The masthead's download link is the badge rather than a word, so the header
   introduces no wording that is not already on the page. 160px leaves the
   artwork itself at ~41px, over Google's 40px minimum. */
.nav-cta {
  flex: 0 0 auto;
  line-height: 0;
  margin-right: -11px;
  border-radius: var(--r-sm);
  transition: transform 0.2s var(--ease);
}
.nav-cta img { width: 160px; height: auto; display: block; }
.nav-cta:hover { transform: translateY(-1px); }

@media (max-width: 860px) {
  /* Two rows of header is a lot of a phone screen to give up permanently,
     so below this width it scrolls away with everything else. */
  .masthead { position: static; }
  .masthead .wrap { gap: var(--s4); flex-wrap: wrap; min-height: 0; }
  .brand span { display: none; }
  nav.site {
    order: 3;
    width: 100%;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) var(--s3);
    gap: var(--s4);
  }
  .nav-cta { margin-left: auto; }
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  margin: 0;
  padding: clamp(var(--s7), 7vw, var(--s9)) 0 0;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(var(--s6), 5vw, var(--s9));
  align-items: center;
}

.hero h1 { max-width: 13ch; }

/* The phones. Two screens, different sizes, slightly turned — the second one
   exists to give the first something to sit in front of. */
.stage {
  position: relative;
  aspect-ratio: 1 / 1.25;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.phone {
  position: absolute;
  background: var(--bezel);
  padding: 7px;
  border-radius: var(--r-phone);
  box-shadow: var(--shadow-2);
}
.phone-screen {
  overflow: hidden;
  border-radius: calc(var(--r-phone) - 8px);
  /* The captures are 912x2048 cropped to 1800 — a real phone's proportions.
     The frame is a little shorter again so the screen runs past its own
     bottom edge instead of stopping dead. */
  aspect-ratio: 9 / 17;
  background: var(--card);
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* The two overlap by about a tenth, which is enough to read as depth and
   little enough that the second screen is still a screen rather than an edge. */
.phone-front {
  width: 58%;
  left: 0;
  top: 3%;
  z-index: 2;
  transform: rotate(-2deg);
}
.phone-back {
  width: 46%;
  right: 0;
  bottom: 3%;
  z-index: 1;
  transform: rotate(4deg);
}

/* The route motif. An orange line that starts off-canvas, passes behind the
   phones and ends on a marker — the same shape the app draws. */
.route {
  position: absolute;
  /* The overhang stays inside the gutter at every width the two-column hero
     is used at, so the line can run past the phones without the page. */
  inset: -8% -9%;
  width: 118%;
  height: 116%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.route path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
  opacity: 0.55;
}
.route circle { fill: var(--coral); }
.route .pin-hollow { fill: var(--bg); stroke: var(--coral); stroke-width: 3; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: var(--s7); }
  .hero h1 { max-width: none; }
  .stage { max-width: 440px; margin: 0 auto; width: 100%; }
  /* There is nothing to spare either side of a phone here, so the route
     stays inside the stage rather than reaching past the gutter. */
  .route { inset: -6% 0; width: 100%; height: 112%; }
}

/* Controls ---------------------------------------------------------------- */

/*
  The download link is Google's own Play badge, used unaltered as the brand
  guidelines require. The asset carries about a quarter of the badge height as
  transparent clear space on every side, which is what the negative left margin
  is for: it pulls the artwork's visual left edge back onto the text column
  without cropping the badge or eating into that clear space. At 200px wide the
  badge itself is ~52px tall, over Google's 40px web minimum.
*/
.cta-badge {
  display: inline-block;
  line-height: 0;
  margin-left: -13px;
  border-radius: var(--r-sm);
  transition: transform 0.25s var(--ease);
}
.cta-badge img { width: 200px; height: auto; }
.cta-badge:hover { transform: translateY(-2px); }

.cta-row { margin: 0; }
.cta-row .after {
  display: block;
  color: var(--ink3);
  font-size: 14px;
  margin: var(--s3) 0 0;
  max-width: 44ch;
}

/* The closing band: the route arrives, the badge sits under it. */
.finish { text-align: center; }
.finish .cta-badge { margin-left: 0; }
.finish .cta-row .after { margin-left: auto; margin-right: auto; }
.finish-route {
  display: block;
  margin: 0 auto var(--s6);
  max-width: 360px;
  width: 100%;
  height: auto;
}
.finish-route path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
  opacity: 0.55;
}
.finish-route circle { fill: var(--coral); }

/* Blocks ------------------------------------------------------------------ */

.section-head { margin: 0 0 var(--s7); }
.section-head p { color: var(--ink2); font-size: 18px; }

/* "At a glance" — a definition list rather than a table, because it is a set
   of attribute/value pairs and not a grid of comparable rows. */
.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0 var(--s8);
}
.facts div {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  flex: 0 0 132px;
  color: var(--ink3);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 4px;
}
.facts dd { flex: 1 1 200px; margin: 0; color: var(--ink); font-size: 16px; }

/* The three-card row. Numbered, because they read as a sequence. */
.grid {
  display: grid;
  gap: var(--s5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 0;
  counter-reset: card;
}
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: var(--s6) var(--s5) var(--s5);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.card::before {
  counter-increment: card;
  content: counter(card, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--coral-ink);
  display: block;
  margin-bottom: var(--s4);
}
.card h2, .card h3 {
  max-width: none;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s2);
}
.card p { font-size: 15.5px; line-height: 1.55; margin: 0; }

/* Steps. The numbers are the route: a dashed run joins them on desktop. */
ol.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
  counter-reset: step;
  display: grid;
  gap: var(--s6);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
ol.steps li {
  margin: 0;
  position: relative;
  padding-top: var(--s7);
  color: var(--ink2);
  font-size: 16px;
}
ol.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  background: var(--coral);
  color: #fff;
  font-family: var(--font-display);
  font-size: 21px;
  display: grid;
  place-items: center;
}
ol.steps li::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 50px;
  right: calc(var(--s6) * -1 + 10px);
  border-top: 2px dashed var(--coral);
  opacity: 0.4;
}
ol.steps li:last-child::after { display: none; }
ol.steps li strong { display: block; font-size: 18px; margin-bottom: var(--s2); color: var(--ink); }

/* The paragraph that follows a block always needs more air above it than a
   paragraph following a paragraph. */
.after-steps { margin-top: var(--s7); }
.after-faq { margin-top: var(--s5); }
@media (max-width: 800px) {
  ol.steps li::after { display: none; }
}

/* A screenshot beside prose. The frame is deliberately shorter than the image
   so the screen runs past its own bottom edge rather than stopping dead. */
.showcase {
  margin: var(--s8) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 290px);
  gap: clamp(var(--s6), 5vw, var(--s8));
  align-items: center;
}
/* Flipping the order alone would leave the phone holding the wide column and
   the prose in the 290px one. The tracks swap with it. */
.showcase.flip { grid-template-columns: minmax(0, 290px) minmax(0, 1fr); }
.showcase.flip > :first-child { order: 2; }
.showcase .phone { position: relative; transform: rotate(-1.5deg); }
.showcase.flip .phone { transform: rotate(1.5deg); }
.showcase .phone-screen { aspect-ratio: 456 / 880; }
.showcase h2 { margin-top: 0; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase.flip > :first-child { order: 0; }
  .showcase .phone { max-width: 270px; margin: 0 auto; }
}

/* The creature strip. Real sprites from the app, at their own scale. */
.creatures {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin: var(--s5) 0 0;
  padding: 0;
  list-style: none;
  max-width: none;
}
.creatures li { margin: 0; }
.creatures img {
  width: 68px;
  height: 68px;
  display: block;
  background: var(--card);
  border-radius: var(--r);
  padding: var(--s2);
}

.note, .callout {
  border-left: 3px solid var(--coral);
  padding: var(--s5) var(--s6);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--coral-wash);
  margin: var(--s7) 0;
  max-width: var(--measure);
}
.note p, .callout p { margin: 0; font-size: 16px; }
.callout p { color: var(--ink); }

table {
  border-collapse: collapse;
  width: 100%;
  margin: var(--s5) 0;
  font-size: 15.5px;
  display: block;
  overflow-x: auto;
}
th, td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  color: var(--ink3);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}
td { color: var(--ink2); }

/* FAQ. <details> so the page stays short, but the answer is real text in the
   DOM either way — no JavaScript, nothing hidden from a crawler. */
.faq { margin: 0; border-top: 1px solid var(--line); max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: var(--s5) var(--s6) var(--s5) 0;
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
  list-style: none;
  position: relative;
  transition: color 0.15s linear;
}
.faq summary:hover { color: var(--coral-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -8px;
  border-right: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > *:not(summary) { margin: 0 0 var(--s5); font-size: 16.5px; }

.crumbs {
  font-size: 13px;
  color: var(--ink3);
  margin: 0 0 var(--s5);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.crumbs a { color: var(--ink3); }

/* Documents --------------------------------------------------------------- */

/* The legal pages. Same masthead, same footer, one column, no bands — they are
   documents and should look like documents. */
body.doc main { max-width: 780px; margin: 0 auto; padding: var(--s8) var(--gutter) var(--s7); }
body.doc h1 { font-size: clamp(34px, 4.4vw, 50px); margin-bottom: var(--s3); }
body.doc h2 { font-size: clamp(22px, 2.2vw, 28px); margin: var(--s7) 0 var(--s3); max-width: 32ch; }
body.doc h3 { font-size: 16px; margin: var(--s5) 0 var(--s2); color: var(--ink2); }
body.doc p, body.doc li { font-size: 16.5px; }

/* Footer ------------------------------------------------------------------ */

footer {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding: var(--s8) 0 var(--s7);
  color: var(--ink3);
  font-size: 14px;
}
footer a { color: var(--ink2); }
footer h2 {
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3);
  margin: 0 0 var(--s4);
}
footer h2.spaced { margin-top: var(--s6); }
.links { display: flex; gap: var(--s3) var(--s5); flex-wrap: wrap; margin-bottom: var(--s5); }
.footer-cols {
  display: grid;
  gap: var(--s6) var(--s7);
  grid-template-columns: 0.8fr 1.4fr 1fr 1fr;
  margin-bottom: var(--s8);
}
@media (max-width: 860px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; max-width: none; }
.footer-cols li { margin: 0 0 var(--s3); }
.footer-cols a { color: var(--ink2); text-decoration: none; }
.footer-cols a:hover { color: var(--coral-ink); }
.footer-brand p { font-size: 14px; color: var(--ink3); max-width: 32ch; margin: 0; }
.footer-brand img { width: 34px; height: auto; margin-bottom: var(--s4); display: block; }
.colophon { border-top: 1px solid var(--line); padding-top: var(--s5); }
.colophon p { max-width: none; margin: 0; font-size: 13px; color: var(--ink3); }

/* Motion ------------------------------------------------------------------ */

/*
  Scroll-driven, and driven by the scroller rather than by a script: `view()`
  is a CSS timeline, so there is no observer, no listener and nothing to run on
  a browser that does not support it — where it is missing, the @supports block
  never applies and everything is simply in its final state.

  Every rule sits behind prefers-reduced-motion: no-preference.
*/
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 26%;
    }
    .route path,
    .finish-route path {
      animation: draw linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
  }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* Drawn from the start marker outwards. The dash pattern is the route's own,
   so the line arrives dashed rather than solid-then-dashed. */
@keyframes draw {
  from { stroke-dashoffset: 300; opacity: 0; }
  to { stroke-dashoffset: 0; opacity: 0.55; }
}

/* Narrow ------------------------------------------------------------------ */

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .facts dt { flex-basis: 110px; }
  .facts div { padding: var(--s3) 0; }
  .note, .callout { padding: var(--s4) var(--s5); }
  .faq summary { font-size: 17px; padding-right: var(--s5); }
  .cta-badge img { width: 180px; }
}

@media print {
  .masthead, .stage, .route, .cta-badge, .finish { display: none; }
  body { font-size: 12pt; }
}
