/* =========================================================================
   RB Chronicles — design system
   Display: Poppins 900 (geometric, circular counters)
   Text:    Montserrat
   ========================================================================= */

:root {
  --cream: #faf5e9;
  --cream-deep: #f3ead6;
  --gold: #f8cb74;
  --gold-deep: #e9b954;
  --ink: #000000;
  --ink-soft: rgba(0, 0, 0, 0.62);
  --ink-faint: rgba(0, 0, 0, 0.18);
  --olive: #bda06a;

  --font-display: "Poppins", "Futura", "Century Gothic", sans-serif;
  --font-text: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --shell: min(92vw, 1320px);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --rail: clamp(3rem, 10vw, 9rem);
  /* the eclipse disc, and the room a section needs to clear its lower half */
  --disc: min(80vw, 33rem);
  /* An O's white counter and black stroke, each side, as fractions of its core.
     The whole O is therefore 1 + 2 * (gap + stroke) times its core, and JS reads
     these same two numbers to fit the words — change them here only. */
  --o-gap: 0.0507;
  --o-stroke: 0.1315;
  --flow: clamp(2.5rem, 6vw, 4.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

::selection { background: var(--ink); color: var(--gold); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font: 600 0.75rem/1 var(--font-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus-visible { top: 1rem; }

/* ---------------------------------------------------------------- display */

.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.82;
  letter-spacing: 0.01em;
  margin: 0;
}

.kicker {
  font: 600 0.7rem/1 var(--font-text);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ chrome */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 2.4vw, 1.75rem) var(--gutter);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.5em 0.85em;
  border-radius: 999px;
  background: var(--cream);
}
.brand__dot {
  width: 0.46em;
  height: 0.46em;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out);
}
.brand:hover .brand__dot { transform: scale(1.45); }

.menu-toggle {
  appearance: none;
  border: 0;
  background: var(--cream);
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 600 0.68rem/1 var(--font-text);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}
.menu-toggle__bars {
  display: grid;
  gap: 4px;
  width: 22px;
}
.menu-toggle__bars span {
  height: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.2s linear;
}
.menu-open .menu-toggle__bars span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle__bars span:last-child { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------- menu sheet */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--gold);
  display: grid;
  place-items: center;
  clip-path: circle(0% at calc(100% - 3rem) 2.5rem);
  transition: clip-path 0.7s var(--ease-out);
  visibility: hidden;
}
.menu-open .sheet {
  clip-path: circle(150% at calc(100% - 3rem) 2.5rem);
  visibility: visible;
}

.sheet__nav {
  display: grid;
  gap: clamp(0.25rem, 1.4vw, 0.75rem);
  text-align: center;
  padding: var(--gutter);
}
.sheet__link {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 10vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.menu-open .sheet__link { opacity: 1; transform: none; }
.menu-open .sheet__link:nth-child(1) { transition-delay: 0.16s; }
.menu-open .sheet__link:nth-child(2) { transition-delay: 0.22s; }
.menu-open .sheet__link:nth-child(3) { transition-delay: 0.28s; }
.menu-open .sheet__link:nth-child(4) { transition-delay: 0.34s; }
.menu-open .sheet__link:nth-child(5) { transition-delay: 0.4s; }
.sheet__link:hover { font-style: italic; }

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  height: 260vh;
  background: var(--cream);
}

.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--gold);
}

/* cream veil that burns off as the hero animates */
.hero__veil {
  position: absolute;
  inset: 0;
  background: var(--cream);
  opacity: calc(1 - var(--p, 0));
}

.wordmark {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  justify-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.4rem, 15.5vw, 15rem);
  line-height: 0.9;
  /* always leave the ticker bar room to sit between the lines */
  row-gap: max(0.08em, 2.6rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  user-select: none;
}

.wordline {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  color: rgba(0, 0, 0, calc(0.34 + 0.66 * var(--p, 0)));
}

/* a line with no round counter simply pushes its letters to the edges */
.wordline--spread {
  position: relative;
  gap: calc(var(--p, 0) * var(--spread, 0px));
}

/* The face, as a two-tone mark rather than a photograph, emerging from the gap
   the initials make as they part — the dot in R . B, at scale. */
.hero__mark {
  position: absolute;
  z-index: 1;
  left: 50%;
  /* stands on the line rather than straddling it, so the ticker bar running
     between the two lines never cuts across it */
  bottom: 0.04em;
  /* Sized against the type, so it keeps its place in the lockup — but the
     wordmark is only ever fitted to the stage's WIDTH, so on a short screen
     the height has to be the one that gives way. It stands on the line at
     roughly 47svh, and this leaves a little air above it. */
  width: min(var(--mark-size, 1.2em), 42svh);
  height: auto;
  translate: -50% 0;
  scale: var(--p, 0);
  transform-origin: 50% 100%;
  opacity: var(--p, 0);
  pointer-events: none;
}

/* the pill: starts as the round "O" of the word, grows into a lozenge */
.wordline__pill {
  position: relative;
  flex: 0 0 auto;
  height: 0.74em;
  width: calc(0.74em + var(--p, 0) * (var(--pill-max, 6em) - 0.74em));
  margin: 0 0.02em;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 calc(0.055em * (1 - var(--p, 0))) var(--ink) inset;
}

.wordline__disc {
  position: absolute;
  top: 50%;
  left: calc(50% + (var(--at, 0.5) - 0.5) * 100% * var(--p, 0));
  width: 0.74em;
  height: 0.74em;
  margin: -0.37em 0 0 -0.37em;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(calc(0.74 + 0.26 * var(--p, 0)));
}

/* the ticker bar between the two lines */
.ticker {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(28vw + var(--p, 0) * 74vw);
  max-width: 102vw;
  height: clamp(1.55rem, 4.6vw, 3.4rem);
  border-radius: 999px;
  background: var(--ink);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  flex: 0 0 auto;
  gap: 0;
  animation: ticker 38s linear infinite;
  will-change: transform;
}
.ticker__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1.6em;
  padding-right: 1.6em;
  font: 700 clamp(0.62rem, 1.1vw, 0.86rem) / 1 var(--font-text);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.ticker__group span::after {
  content: "•";
  margin-left: 1.6em;
  color: var(--cream);
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

.hero__scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(1.5rem, 4vh, 3rem);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  color: var(--ink);
  opacity: calc(1 - var(--p, 0) * 1.6);
  text-decoration: none;
}
.hero__scroll .kicker { font-size: 0.6rem; letter-spacing: 0.34em; }
.hero__scroll svg { animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ------------------------------------------------------------- band + rail */

.band {
  position: relative;
  padding: clamp(5rem, 13vw, 11rem) 0;
}
.band--cream { background: var(--cream); }
.band--gold { background: var(--gold); }
.band--ink { background: var(--ink); color: var(--cream); }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* ------------------------------------------------- the eclipse section head */

.eclipse {
  position: relative;
  display: grid;
  place-items: center;
  padding-inline: var(--gutter);
}

/* Word and disc share one grid cell, so the disc's height is part of the flow
   and nothing below it can ever collide with the circle.

   --q (0->1, set on scroll) opens the counter exactly as --p opens the hero's O.
   The disc is revealed by a growing clip circle rather than scaled, so it reads
   as a true circle at every step even when its copy makes it a capsule — and the
   ring is drawn around that same circle, so there is no second shape that can
   leak out from behind it. */
.eclipse__stack {
  position: relative;
  --q: 0;
  --size: var(--disc);      /* the disc's full width  */
  --disc-h: var(--disc);    /* and its full height — JS measures it */
  --core0: 0px;             /* the black core at rest: an O's counter, or nothing */
  --at-px: 0px;             /* the counter's offset from the word's centre */

  /* The visible core grows from the resting O to the whole disc.  Width and
     height are interpolated separately and the clip is a stadium, so the shape
     is a circle while it can be and only becomes a capsule once the copy makes
     the disc taller than it is wide — it is never an ellipse at any point. */
  --w: calc(var(--core0) + var(--q) * (var(--size) - var(--core0)));
  --h: calc(var(--core0) + var(--q) * (var(--disc-h) - var(--core0)));

  /* The O's stroke and counter, as fractions of the core, so the ring is the
     same ring at every size — a 4rem letter and a 30rem section head match. */
  --ring-gap: calc(var(--w) * var(--o-gap));
  --ring-stroke: calc(var(--w) * var(--o-stroke));
  --o-width: calc(var(--w) * (1 + 2 * (var(--o-gap) + var(--o-stroke))));

  display: grid;
  place-items: center;
  /* The ring is drawn outside the disc's box, so reserve its depth on both
     sides — otherwise it runs over the content below and off the top of the
     band above.  That ends the old bleed into the neighbouring band, which a
     ring this heavy read as clipping rather than as overlap. */
  padding-block: calc(var(--size) * (var(--o-gap) + var(--o-stroke)));
}
.eclipse__word,
.eclipse__disc { grid-area: 1 / 1; }

.eclipse__word {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 15vw, 13rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

/* Holds the word open by exactly as much of the disc as is currently showing,
   ring included — so the letters sit on the silhouette's edge at every step and
   nothing white can ever appear past them. */
.eclipse__counter {
  position: relative;
  flex: 0 0 auto;
  height: 0;
  width: var(--o-width);
}

/* the O's stroke and counter, hugging the core at every size */
.eclipse__counter::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w);
  height: var(--h);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  box-shadow:
    0 0 0 var(--ring-gap) #fff,
    0 0 0 calc(var(--ring-gap) + var(--ring-stroke)) var(--ink);
}

.eclipse__disc {
  position: relative;
  width: var(--size);
  min-height: var(--size);
  transform: translateX(var(--at-px));
  clip-path: inset(
    calc((var(--disc-h) - var(--h)) / 2) calc((var(--size) - var(--w)) / 2)
    round 999px
  );
  /* 999px, not 50%: a square stays a circle, a taller box becomes a capsule */
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  padding: calc(var(--size) * 0.19) calc(var(--size) * 0.15);
  text-align: center;
}

/* A picture, in a circle, orbiting the disc — the one place photography
   belongs here.  It opens with the section like everything else. */
/* --zoom is registered so it can be transitioned on its own: --q is rewritten
   every scroll frame, and tweening the scale itself would smear the section's
   opening instead of the tap. */
@property --zoom {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

.eclipse__figure {
  --d: calc(var(--size) * var(--fig-size, 0.42));
  --zoom: 1;
  position: absolute;
  z-index: 2;
  width: var(--d);
  height: var(--d);
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  cursor: zoom-in;
  left: 50%;
  top: 50%;
  translate:
    calc(-50% + var(--at-px) + var(--size) * var(--fig-x, 0.66) / 2)
    calc(-50% + var(--size) * var(--fig-y, 0.62) / 2);
  scale: calc(var(--q) * var(--zoom));
  opacity: var(--q);
  border-radius: 999px;
  overflow: hidden;
  background: var(--cream-deep);
  box-shadow: 0 0 0 calc(var(--d) * 0.045) var(--cream);
  transition: translate 0.6s var(--ease-out), --zoom 0.6s var(--ease-out);
}
/* An ornament, not a control: no pointer, nothing to tap. */
.eclipse__figure--still { cursor: default; }

/* Open: it leaves its orbit and comes to the middle of the DISC, which is the
   word's counter — offset from the stack's centre by --at-px, the same shift
   the disc itself is given.  Centring on the stack instead leaves it sitting
   a few pixels off inside the ring. */
.eclipse__figure[aria-expanded="true"] {
  --zoom: 2.2;
  translate: calc(-50% + var(--at-px)) -50%;
  z-index: 6;
  cursor: zoom-out;
}
@media (prefers-reduced-motion: reduce) {
  .eclipse__figure { transition: none; }
}
.eclipse__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fig-focus, 50% 50%);
  /* greyscale, so a photograph cannot drag the palette around */
  filter: grayscale(1) contrast(1.04);
}

.eclipse__inner {
  max-width: 24rem;
  font-size: clamp(0.72rem, 0.95vw, 0.86rem);
  line-height: 1.7;
  color: rgba(250, 245, 233, 0.82);
}
.eclipse__inner p { margin: 0 0 0.9em; }
.eclipse__inner p:last-child { margin-bottom: 0; }
.eclipse__inner strong,
.eclipse__inner .kicker { color: var(--cream); }
.eclipse__inner .kicker { display: block; margin-bottom: 1.2em; }
.eclipse__inner a { color: var(--gold); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-in:nth-child(2) { transition-delay: 0.06s; }
.reveal.is-in:nth-child(3) { transition-delay: 0.12s; }
.reveal.is-in:nth-child(4) { transition-delay: 0.18s; }
.reveal.is-in:nth-child(5) { transition-delay: 0.24s; }
.reveal.is-in:nth-child(6) { transition-delay: 0.30s; }
.reveal.is-in:nth-child(7) { transition-delay: 0.36s; }
.reveal.is-in:nth-child(8) { transition-delay: 0.42s; }
.reveal.is-in:nth-child(9) { transition-delay: 0.48s; }
.reveal.is-in:nth-child(10) { transition-delay: 0.54s; }
.reveal.is-in:nth-child(11) { transition-delay: 0.60s; }
.reveal.is-in:nth-child(12) { transition-delay: 0.66s; }

/* the copy only appears once the disc is most of the way open */
.eclipse__inner { opacity: clamp(0, calc((var(--q) - 0.62) * 3.6), 1); }

/* ---------------------------------------------------------------- journey */

/* The journey hangs off a spine, and each number sits on it inside the same
   disc-gap-ring the section words open into, so the device is the site's own
   rather than a second one.  Five rows of type against half a screen of empty
   gold is what made this section read as the plain one; the chapters take a
   side each instead, and the line down the middle is what they take it from. */

.chapters {
  --pin: clamp(3.4rem, 6vw, 5.2rem);
  position: relative;
  display: grid;
  gap: clamp(2.75rem, 4.5vw, 4rem);
  margin: var(--flow) 0 0;
  padding: 0;
  list-style: none;
}

/* the spine: stops at the first and last ring rather than running past them */
.chapters::before {
  content: "";
  position: absolute;
  top: calc(var(--pin) / 2);
  bottom: calc(var(--pin) / 2);
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--ink);
}

.chapter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--pin) minmax(0, 1fr);
  column-gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
}

/* the number in its ring, drawn from the same two ratios as the section word's
   O so the two can never drift apart */
.chapter__pin {
  grid-column: 2;
  grid-row: 1;
  width: var(--pin);
  height: var(--pin);
  border-radius: 50%;
  background: var(--cream);
  box-shadow:
    0 0 0 calc(var(--pin) * var(--o-gap)) var(--gold),
    0 0 0 calc(var(--pin) * (var(--o-gap) + var(--o-stroke))) var(--ink);
  display: grid;
  place-items: center;
}

.chapter__text { grid-row: 1; padding-top: calc(var(--pin) * 0.08); }
.chapter:nth-child(odd) .chapter__text { grid-column: 3; }
.chapter:nth-child(even) .chapter__text { grid-column: 1; text-align: right; }
.chapter:nth-child(even) .chapter__body { margin-left: auto; }

.chapter__index {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: calc(var(--pin) * 0.4);
  line-height: 1;
  letter-spacing: 0;
}

.chapter__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}
.chapter__body {
  margin: 0;
  max-width: min(42ch, 100%);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--ink-soft);
}

.section-intro {
  margin: var(--flow) auto 0;
  max-width: 44ch;
  text-align: center;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ------------------------------------------------- the apps, on the home page */

.applist {
  margin-top: var(--flow);
  display: grid;
  gap: clamp(0.6rem, 1.4vw, 1rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

/* one app */
.appcard {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border-radius: clamp(1.25rem, 2.4vw, 1.75rem);
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  transition: transform 0.4s var(--ease-out);
}
.appcard:hover { transform: translateY(-4px); }
.appcard__icon {
  width: clamp(3rem, 4.6vw, 3.75rem);
  height: auto;
  margin-bottom: 0.7rem;
  border-radius: 22%;
}
.appcard__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}
.appcard__tagline {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(250, 245, 233, 0.76);
}
.appcard__meta {
  margin: 0.45rem 0 0;
  font: 600 0.58rem/1 var(--font-text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.card {
  background: var(--ink);
  color: var(--cream);
  border-radius: clamp(1.75rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 3.4vw, 3rem);
  display: grid;
  align-content: start;
  gap: 1.1rem;
}
.card__logo {
  width: clamp(3.5rem, 6vw, 5rem);
  border-radius: 1.1rem;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}
.card__meta {
  font: 600 0.64rem/1 var(--font-text);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(250, 245, 233, 0.76);
}

.pill-link {
  justify-self: start;
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font: 700 0.68rem/1 var(--font-text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: transform 0.35s var(--ease-out), background 0.3s linear;
}
.pill-link:hover { transform: translateY(-3px); background: #fff; }
.pill-link--ghost {
  background: none;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.pill-link--ghost:hover { background: var(--ink); color: var(--gold); }

/* ---------------------------------------------------------------- footer */

.footer {
  background: var(--gold);
  padding: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  display: grid;
  justify-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}
.footer__nav {
  display: grid;
  gap: clamp(0.1rem, 0.8vw, 0.4rem);
  justify-items: center;
}
.footer__nav a {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.3s linear;
}
.footer__nav a:hover { font-style: italic; }

.social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.social a {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.3s linear, color 0.3s linear, transform 0.35s var(--ease-out);
}
.social a:hover { background: var(--ink); color: var(--gold); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

.copyright {
  font: 600 0.64rem/1.6 var(--font-text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

/* =============================================================== archive */

.page-head {
  padding: clamp(8rem, 18vh, 12rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  background: var(--gold);
}
.page-head .eclipse__disc { background: var(--ink); }

/* ----------------------------------------------------------- photography */

/* On ink the whole device has to invert or it disappears into the band: the
   disc becomes the cream shape and the O's ring swaps its two colours over. */
.band--ink .eclipse__disc { background: var(--cream); color: var(--ink); }
.band--ink .eclipse__inner { color: rgba(0, 0, 0, 0.7); }
.band--ink .eclipse__inner strong,
.band--ink .eclipse__inner .kicker { color: var(--ink); }
.band--ink .eclipse__counter::before {
  box-shadow:
    0 0 0 var(--ring-gap) var(--ink),
    0 0 0 calc(var(--ring-gap) + var(--ring-stroke)) var(--cream);
}

/* A wall of small tiles, two rows deep, scrolled sideways.

   The rhythm is not a pattern laid over the pictures: a portrait stands two
   rows tall and everything else lies in one, so the silhouette of the wall
   is set by what was actually photographed.  `dense` packing then closes the
   gaps a tall tile leaves behind, which is what stops it reading as a grid.

   A tile is a link to the full picture, so looking closer costs no
   JavaScript and works with none. */
.strip {
  margin-top: var(--flow);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  /* room for a tile to lift without being clipped by the scroller */
  padding-block: 0.75rem;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; user-select: none; }

.strip__track {
  --tile: clamp(6.5rem, 10vw, 9.5rem);
  display: grid;
  grid-auto-flow: column dense;
  grid-template-rows: var(--tile) var(--tile);
  grid-auto-columns: calc(var(--tile) * 1.5);
  gap: clamp(0.4rem, 0.7vw, 0.7rem);
  width: max-content;
  padding-inline: var(--gutter);
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: clamp(0.4rem, 0.7vw, 0.65rem);
  background: #111;          /* holds the shape while the picture loads */
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
/* standing up: two rows, and narrow enough to read as a portrait */
.tile--tall {
  grid-row: span 2;
  width: calc(var(--tile) * 1.12);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.04);
  transition: filter 0.45s var(--ease), transform 0.7s var(--ease-out);
}
/* the whole wall warms a little as you come near it, and the one under the
   pointer lifts clear of its neighbours in full colour */
.strip:hover .tile img { filter: grayscale(0.6); }
.tile:hover,
.tile:focus-visible {
  z-index: 2;
  transform: translateY(-0.4rem) scale(1.06);
  box-shadow: 0 1.1rem 2rem rgba(0, 0, 0, 0.55);
}
.tile:hover img,
.tile:focus-visible img { filter: none; transform: scale(1); }

@media (hover: none) {
  .tile img { filter: none; transform: none; }
}

/* ------------------------------------------------------------- the line */

/* The archive is one line, read by scrolling it sideways.

   It is the browser's own horizontal scroller and nothing more, so a trackpad
   swipe, shift-wheel, a touch swipe, the keyboard and a drag of the mouse all
   reach it; it works with the stylesheet alone, and it never takes the page's
   vertical scrolling away from the reader.  Each stop hangs its two blocks
   off one shared rail height, which is what keeps the line continuous from
   panel to panel.

   The home page's Stories band is the same component shorter: .lane--brief
   runs the years the other way round, most recent first, leaves the asides
   out and stands in a band instead of filling the screen. */

.lane {
  /* above centre: a year needs room for its aside and its numeral, a stop
     needs room for three cards, and the cards are the taller of the two */
  --rail-y: 44%;
  --pad: clamp(1.4rem, 4vw, 4rem);
  --card: 19rem;
  --stage: 100svh;
  /* the two panels the rail does not run through, shared with .lane__rail so
     the line can start at the first year and stop at the last */
  --open-w: min(100vw, 72rem);
  --end-w: min(100vw, 34rem);
  position: relative;
  background: var(--cream);
}

.lane__viewport {
  height: var(--stage);
  overflow-x: auto;
  overflow-y: hidden;
  /* this one only ever goes sideways, and a sideways overscroll is never
     handed back to the browser as a swipe through history */
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.lane__viewport::-webkit-scrollbar { display: none; }
.lane__viewport.is-dragging { cursor: grabbing; user-select: none; }

.lane__track {
  /* the rail is absolute against the track so that it can span every panel;
     without this it would resolve against the viewport and come out one
     screen wide */
  position: relative;
  display: flex;
  align-items: stretch;
  width: max-content;
  height: 100%;
}

/* The line itself runs from the first year to the last, not across the
   opening and closing panels — it is the record, not the page.  It sits over
   the panels rather than under them: the silence has a tone of its own and
   would otherwise paint the line out, which is the opposite of the point. */
.lane__rail {
  position: absolute;
  z-index: 1;
  left: var(--open-w);
  right: var(--end-w);
  top: var(--rail-y);
  height: 2px;
  background: var(--ink);
  opacity: 0.16;
}

.panel {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  padding-inline: var(--pad);
  border-left: 2px solid var(--ink-faint);
}
.panel:first-of-type { border-left: 0; }

/* ---- opening and closing panels ---- */

.panel--open {
  /* one panel among many rather than a full page head, so the device comes
     down to a size that leaves the word either side of it room to read */
  --disc: min(46vw, 20rem);
  display: grid;
  align-items: center;
  width: var(--open-w);
  padding-inline: 0;
  background: var(--gold);
}
.panel--open .eclipse__disc { background: var(--ink); }
.panel__inner { display: grid; justify-items: start; gap: 0.9rem; }
.panel--open .panel__inner { justify-items: stretch; }

.lane__count,
.lane__cue {
  margin: 0;
  padding-inline: var(--gutter);
  font: 600 0.66rem/1.4 var(--font-text);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.lane__count { opacity: 0.72; }
.lane__count b { font-weight: 700; }
.lane__cue {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
}
/* a rule that reaches out and draws back, in place of an arrow */
.lane__cue em {
  display: block;
  width: 2.25rem;
  height: 2px;
  background: var(--ink);
  transform-origin: left;
  animation: reach 2.2s var(--ease) infinite;
}
@keyframes reach {
  0%, 100% { transform: scaleX(0.35); }
  50%      { transform: scaleX(1); }
}

.panel--end {
  display: grid;
  align-content: center;
  width: var(--end-w);
  background: var(--ink);
  color: var(--cream);
}
.panel__head {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.panel--end p {
  margin: 0 0 0.6rem;
  max-width: 34ch;
  opacity: 0.74;
}
/* the ghost pill is drawn in ink, which is this panel's own colour */
.panel--end .pill-link--ghost {
  color: var(--cream);
  box-shadow: inset 0 0 0 2px rgba(250, 245, 233, 0.4);
}
.panel--end .pill-link--ghost:hover { background: var(--cream); color: var(--ink); }

/* ---- a stop: one year ----

   Two anchors and nothing else: the block above the rail hangs from it, the
   block below sits on it.  bottom:100% - rail puts an element's foot exactly
   on the line however tall its contents turn out to be.

   The panel's width has to be given rather than measured: both halves are
   positioned off the rail and so out of flow, which leaves the panel nothing
   to take a width from.  --card and the 1rem column gap below are the same
   two numbers, so the arithmetic holds. */

.stop {
  width: max(26rem, calc(var(--cols, 1) * var(--card) + (var(--cols, 1) - 1) * 1rem + var(--pad) * 2));
}
.stop__above,
.stop__below,
.hush__say {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
}
.stop__above { bottom: calc(100% - var(--rail-y) + 0.9rem); }
.stop__below { top: calc(var(--rail-y) + 0.9rem); }

.stop__note {
  margin: 0 0 1.4rem;
  max-width: 32ch;
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.66;
}
.stop__year {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.25rem, 9vw, 7rem);
  line-height: 0.78;
  letter-spacing: -0.045em;
  /* an outline, not a headline: the year marks the line, the titles carry it */
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  opacity: 0.5;
}
.stop__label {
  margin: 0 0 1.1rem;
  font: 700 0.66rem/1 var(--font-text);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* The node is the same O the section heads are built from: an ink core, a
   cream counter and an ink ring, at the proportions in --o-gap / --o-stroke. */
.stop__node {
  --node: 0.6rem;
  position: absolute;
  left: var(--pad);
  top: var(--rail-y);
  transform: translate(-50%, -50%);
  width: var(--node);
  height: var(--node);
  border-radius: 999px;
  background: var(--ink);
  box-shadow:
    0 0 0 calc(var(--node) * var(--o-gap)) var(--cream),
    0 0 0 calc(var(--node) * (var(--o-gap) + var(--o-stroke))) var(--ink);
}

/* three cards to a column, then start another */
.stop__posts {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--rows, 1), max-content);
  grid-auto-columns: var(--card);
  justify-content: start;
  gap: 0.75rem 1rem;
}

.stop__post {
  position: relative;
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 1.1rem 1rem;
  border-top: 2px solid var(--ink);
  text-decoration: none;
  isolation: isolate;
  transition: color 0.3s linear;
}
.stop__post:hover { --card-hover: 1; color: var(--cream); }
.stop__post::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--ink);
  opacity: var(--card-hover, 0);
  transform: scaleY(calc(0.82 + 0.18 * var(--card-hover, 0)));
  transform-origin: top;
  transition: opacity 0.3s linear, transform 0.4s var(--ease-out);
}
.stop__date {
  font: 600 0.6rem/1 var(--font-text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}
.stop__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
}
/* The reading time doubles as the hover affordance: an arrow slides out of it
   on the way in.  A mark riding the cursor, as the old list had, would cover
   the very card it was pointing at — there is no clear ground between them. */
.stop__read {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font: 600 0.58rem/1 var(--font-text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.45;
}
.stop__read::after {
  content: "\2192";
  font-size: 0.85rem;
  letter-spacing: 0;
  opacity: 0;
  transform: translateX(-0.4rem);
  transition: opacity 0.25s linear, transform 0.3s var(--ease-out);
}
.stop__post:hover .stop__date,
.stop__post:hover .stop__read { opacity: 0.8; }
.stop__post:hover .stop__read::after { opacity: 1; transform: none; }

/* ---- the silence ---- */

.hush {
  width: clamp(26rem, 46vw, 46rem);
  background: var(--cream-deep);
}
.hush__ticks {
  display: flex;
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  top: var(--rail-y);
  justify-content: space-between;
}
.hush__ticks i {
  position: relative;
  display: block;
  width: 2px;
  height: 0.85rem;
  background: var(--ink);
  opacity: 0.3;
  transform: translateY(-50%);
}
.hush__ticks i::after {
  content: attr(data-tick);
  position: absolute;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  font: 600 0.58rem/1 var(--font-text);
  letter-spacing: 0.14em;
  opacity: 0.75;
}
.hush__say { bottom: calc(100% - var(--rail-y) + 2.2rem); }
.hush__say h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hush__say p {
  margin: 0;
  max-width: 44ch;
  font-size: 0.92rem;
  line-height: 1.75;
  opacity: 0.68;
}

/* ---- the readout ----

   It sits over the line rather than beside it, so it carries its own ground:
   on a short screen the last card in a column reaches this corner, and cream
   type on cream cards would be the one thing here that cannot be read.  Both
   it and the progress line are outside the scroller — inside it, they would
   travel away with the panels. */

.lane__hud {
  display: grid;
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 3px;              /* clear of the progress line */
  gap: 0.2rem;
  padding: 0.85rem var(--gutter) 0.9rem;
  background: var(--cream);
  border-top: 2px solid var(--ink-faint);
  border-right: 2px solid var(--ink-faint);
  border-top-right-radius: 1rem;
  pointer-events: none;
}
.lane__hud-year {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.lane__hud-where {
  font: 600 0.6rem/1 var(--font-text);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
}
.lane__progress {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--ink-faint);
}
.lane__progress i {
  display: block;
  height: 100%;
  width: calc(var(--lane-p, 0) * 100%);
  background: var(--ink);
}

/* ---- the home page's line ----

   Shorter, and with less above the rail to hold: it carries no asides, so the
   numeral can sit nearer the top and the whole band take a third less of the
   screen than the archive's full-height one. */

.lane--brief {
  --open-w: 0px;
  --stage: min(60svh, 29rem);
  --rail-y: 32%;
}
.lane--brief .stop__year { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
.lane--brief .lane__hud { padding: 0.6rem var(--gutter) 0.65rem; }
.lane--brief .lane__hud-year { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.lane--brief .panel__head { font-size: clamp(1.75rem, 4vw, 2.6rem); }
.lane--brief .hush { width: clamp(20rem, 32vw, 32rem); }
.lane--brief .hush__say h2 { font-size: clamp(1.3rem, 2.8vw, 1.9rem); }
.lane--brief .hush__say p { font-size: 0.86rem; }
/* The short line has a third of the room above its rail that the archive has,
   and a silence has nothing hanging below it — so the copy goes under the
   rail into the space that was empty anyway, the same move the phone makes
   for the same reason. */
.lane--brief .hush__say {
  top: calc(var(--rail-y) + 2.2rem);
  bottom: auto;
}

/* A phone reads the line one stop at a time: a panel just narrower than the
   screen, so the next one shows at the edge, and the rail well above centre —
   a phone wraps a card title over three lines, so the column below it is the
   half that needs the room. */
@media (max-width: 40rem) {
  .lane {
    --rail-y: 34%;
    --pad: 1.25rem;
    --card: min(74vw, 17rem);
    --open-w: 100vw;
    --end-w: min(88vw, 20rem);
  }
  .lane--brief { --rail-y: 28%; --stage: min(64svh, 26rem); }
  .panel--open { --disc: min(62vw, 15rem); }
  /* the 26rem floor the wider screens use is itself wider than a phone, so
     the whole expression is restated rather than held back by a min-width */
  .stop {
    width: max(min(86vw, 21rem), calc(var(--cols, 1) * var(--card) + (var(--cols, 1) - 1) * 1rem + var(--pad) * 2));
  }
  .hush,
  .lane--brief .hush { width: min(92vw, 23rem); }
  /* A silence has nothing hanging below its rail, and on a phone the copy no
     longer fits in the third of the screen above it — so it changes sides,
     into the two thirds that were empty anyway. */
  .hush__say {
    top: calc(var(--rail-y) + 2.2rem);
    bottom: auto;
  }
  .hush__say p { font-size: 0.84rem; }
  .stop__year { font-size: clamp(2.5rem, 15vw, 4rem); }
  .lane--brief .stop__year { font-size: clamp(2.1rem, 12vw, 3.2rem); }
  .stop__note { font-size: 0.82rem; }
  .stop__post { padding: 0.6rem 0.85rem 0.7rem; }
  .stop__posts { gap: 0.5rem 1rem; }
  .stop__title { font-size: 0.85rem; }
  .stop__label { margin-bottom: 0.7rem; }
  .hush__ticks i::after { font-size: 0.5rem; letter-spacing: 0.04em; }
  .lane__hud-year { font-size: 1.5rem; }
}

/* a laptop screen leaves less below the rail than a desktop one, and the
   column of cards is what has to give — not the readout it would run into */
@media (max-height: 50rem) {
  .stop__post { padding: 0.65rem 0.9rem 0.75rem; }
  .stop__posts { gap: 0.5rem 1rem; }
  .stop__title { font-size: 0.88rem; }
  .stop__label { margin-bottom: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lane__cue em { animation: none; transform: scaleX(1); }
}

/* ================================================================== post */

/* The summary, folded away.

   <details> is the browser's own disclosure widget, so this needs no script,
   answers to the keyboard and still opens with CSS turned off.  It is drawn
   as a rule rather than a button: the row belongs to the same family of
   hairlines the rest of the page is ruled with, and the marker on the right
   is the site's O — an open ring that fills into a disc once the summary is
   showing. */
.brief {
  width: var(--shell);
  max-width: 44rem;
  margin: clamp(1.75rem, 4vw, 2.75rem) auto 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink-faint);
}
.brief__cue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  cursor: pointer;
  font: 700 0.66rem/1 var(--font-text);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  list-style: none;
}
.brief__cue::-webkit-details-marker { display: none; }
.brief__cue::after {
  content: "";
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--ink);
  transition: background 0.3s linear;
}
.brief[open] .brief__cue::after { background: var(--ink); }
.brief__text {
  margin: 0 0 1.2rem;
  max-width: 62ch;
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.74;
}


.post {
  background: var(--cream);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.post__head {
  background: var(--gold);
  padding: clamp(8rem, 18vh, 12rem) var(--gutter) clamp(3rem, 7vw, 5.5rem);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: clamp(1rem, 2.4vw, 1.75rem);
}
.post__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
  max-width: 18ch;
}
.post__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font: 600 0.64rem/1 var(--font-text);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.62);
}
.post__meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.4;
}

.prose {
  width: min(92vw, 44rem);
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  font-size: clamp(0.98rem, 1.15vw, 1.06rem);
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.8);
}
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.5em; }
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 2.4em 0 0.8em;
}
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.prose h3 { font-size: clamp(1.15rem, 2.1vw, 1.5rem); }
.prose h4 { font-size: clamp(1rem, 1.7vw, 1.2rem); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose ul,
.prose ol { margin: 0 0 1.6em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.6em; }
.prose li::marker { color: var(--ink); }
.prose blockquote {
  margin: 2em 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--ink);
  color: var(--cream);
  font-size: 1.05em;
  line-height: 1.7;
}
.prose blockquote p { margin: 0; }
.prose blockquote strong { color: var(--gold); }
.prose img {
  width: 100%;
  margin: 2.2em 0;
  border-radius: clamp(1rem, 2.4vw, 1.75rem);
  background: var(--cream-deep);
}
.prose pre {
  margin: 2em 0;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--ink);
  color: var(--cream);
  overflow-x: auto;
  font: 500 0.88rem/1.8 var(--font-mono);
}

/* ------------------------------------ the release chart, as a post's hero */

.prose .releases {
  width: min(94vw, 58rem);
  margin: 0 0 2.8em 50%;
  transform: translateX(-50%);
}
.prose .releases svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--ink);
}
.prose .releases .rc-kicker {
  font: 700 19px/1 var(--font-text);
  letter-spacing: 4px;
  fill: currentColor;
  opacity: 0.4;
}
.prose .releases .rc-month {
  font: 700 20px/1 var(--font-text);
  letter-spacing: 3px;
  text-anchor: middle;
  fill: currentColor;
  opacity: 0.5;
}
.prose figcaption {
  margin-top: 1.1em;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
  opacity: 0.6;
}

/* ------------------------------------------- a row of apps inside a post */

.prose .appgrid {
  list-style: none;
  margin: 2.2em 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.prose .appgrid li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 1.3rem;
  background: var(--cream-deep);
}
.prose .appgrid img {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  margin: 0;
  border-radius: 12px;
  background: none;
}
.prose .appgrid a {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.prose .appgrid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose .appgrid p {
  margin: 0.4em 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.78;
}
.prose .appgrid__meta {
  margin-top: 0.55em;
  font: 600 0.58rem/1 var(--font-text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ----------------------------------------------- comments (an archive) */

.responses {
  width: min(92vw, 44rem);
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 2px solid var(--ink-faint);
}

.responses__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
}

.responses__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.response {
  padding: clamp(1.1rem, 2.4vw, 1.6rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: clamp(1.1rem, 2.4vw, 1.6rem);
  background: var(--cream-deep);
}
.response p { margin: 0 0 0.5em; }
.response p:last-child { margin-bottom: 0; }

.response__meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font: 600 0.64rem/1 var(--font-text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}
.response__meta strong { color: var(--ink); font-weight: 700; }
.response__meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.responses__note {
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.post__foot {
  width: min(92vw, 44rem);
  margin: clamp(3.5rem, 8vw, 6rem) auto 0;
  display: grid;
  gap: 1.5rem;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 2px solid var(--ink);
}
.post__nav {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.post__nav a {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1.5rem;
  background: var(--cream-deep);
  text-decoration: none;
  transition: background 0.3s linear, color 0.3s linear;
}
.post__nav a:hover { background: var(--ink); color: var(--cream); }
.post__nav .kicker { opacity: 0.6; font-size: 0.6rem; }
.post__nav strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.25;
  text-transform: uppercase;
}
.post__nav a:last-child:not(:only-child) { text-align: right; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hero { height: 220vh; }
  .post__nav a:last-child:not(:only-child) { text-align: left; }
}

@media (max-width: 56rem) {
  /* no room for two columns of prose, so the spine goes to the left margin
     and every chapter reads off the same side of it */
  .chapters::before { left: calc(var(--pin) / 2); margin-left: 0; }
  .chapter { grid-template-columns: var(--pin) minmax(0, 1fr); }
  .chapter__pin { grid-column: 1; }
  .chapter:nth-child(odd) .chapter__text,
  .chapter:nth-child(even) .chapter__text { grid-column: 2; text-align: left; }
  .chapter:nth-child(even) .chapter__body { margin-left: 0; }
}

@media (max-width: 620px) {
  /* a smaller disc so the section word still shows either side of it, and half
     the ring thickness — at this scale a full-weight ring costs the copy more
     width than it is worth */
  :root {
    --disc: min(58vw, 33rem);
    --o-gap: 0.0254;
    --o-stroke: 0.0658;
  }
  .eclipse__word { font-size: clamp(2.6rem, 17vw, 5rem); }
  .eclipse__disc { padding: calc(var(--size) * 0.22) calc(var(--size) * 0.11); }
  .ticker { width: calc(62vw + var(--p, 0) * 38vw); }

  /* nine stacked cards is a long scroll — lay them on their side instead */
  .appcard {
    grid-template-columns: auto 1fr;
    gap: 0 1rem;
    padding: 1rem 1.1rem;
  }
  .appcard__icon {
    grid-row: 1 / span 3;
    width: 3rem;
    margin-bottom: 0;
  }
  .appcard__tagline { margin-top: 0.3rem; }

  /* The disc is a narrow capsule at this width, so there is no orbit to hang a
     circle off — it would land on the copy instead of beside it.  The picture
     stops orbiting and stands under the disc instead, at a size the column can
     hold.  It still opens with the section, since --q drives it either way. */
  /* It still orbits here, as it does on a wide screen — only smaller, and
     hung off the capsule's lower edge rather than its side, since a capsule
     has copy where a circle has room.  The vertical term is measured on
     --disc-h, the capsule's real height, not on --size, which is only its
     width. */
  .eclipse__figure {
    --d: calc(var(--size) * 0.34);
    translate:
      calc(-50% + var(--at-px) + var(--size) * var(--fig-x, 0.66) / 2)
      calc(-50% + var(--disc-h) * 0.5 + var(--d) * 0.3);
  }
  /* and it opens the same way: into the middle of the disc, as big as the
     capsule will take */
  .eclipse__figure[aria-expanded="true"] {
    --zoom: 2.6;
    translate: calc(-50% + var(--at-px)) -50%;
  }

  /* the chart scales with its viewBox, so its type has to grow to stay legible */
  .prose .releases .rc-kicker { font-size: 26px; }
  .prose .releases .rc-month { font-size: 30px; letter-spacing: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .hero__scroll svg { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .eclipse__stack { --q: 1; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
