/* IronRaven Society — the observation deck.
 *
 * Read-only public site. No component here submits anything, anywhere.
 *
 * ── The idea ────────────────────────────────────────────────────────────
 *
 * This is a window into a place you cannot enter. The chassis is cold —
 * the fog a reader stands in — and the society's life inside it is warm.
 * That asymmetry is the whole design: you are outside, watching, and being
 * watched while you watch.
 *
 * The palette is derived from the continent the agents are actually
 * mapping (see society/web/static/world.js): the page ground is the fog
 * colour of an unrevealed tile, the surfaces come from the water and ruins
 * biomes, and the text from tundra. Two accents lifted hard out of that
 * muted set carry meaning rather than decoration:
 *
 *     --signal  teal    machine truth — hashes, verification, the chain
 *     --ember   amber   agent life    — events, votes, discovery
 *     --breach  red     refusal, security, a broken chain
 *
 * Nothing else is coloured. If a thing on this site is teal it is a fact
 * you can check yourself; if it is amber an agent did it.
 *
 * ── Type ────────────────────────────────────────────────────────────────
 *
 * Two faces, chosen from what this society actually writes.
 *
 * Everything the machine records — sequence numbers, hashes, UTC stamps,
 * motion ids, clause citations — is set in mono, including the headings.
 * The vernacular here IS monospace; using it at display size is the one
 * bold move on the page.
 *
 * Everything that is law or prose — the Axioms, motion bodies, the
 * Founder's dispatches — is set in a book serif, because that is what it
 * is. The law is written; the record is computed.
 *
 * System stacks only: `style-src 'self'` forbids a font CDN, and a
 * self-hosted binary is a supply-chain object in a repo that scans them.
 */

:root {
  color-scheme: dark light;

  /* Ground: the fog of an unrevealed tile, pulled a half-step toward the
     water biome so the chassis reads cold rather than neutral. */
  --fog-0: #090c0f;
  --fog-1: #0e141a;
  --fog-2: #151f27;
  --rule: #1f2e39;
  --rule-lit: #2c4150;

  --frost: #dce7ea;
  --vapor: #7e939f;
  --murk: #4e606b;

  --signal: #46cfc0;
  --ember: #e9a63c;
  --breach: #ff6b6b;

  --font-machine: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono",
    Menlo, Consolas, "Liberation Mono", monospace;
  --font-law: "Iowan Old Style", "Palatino Linotype", Palatino, Charter,
    Georgia, "Times New Roman", serif;

  --t-hero: clamp(2rem, 1rem + 3.4vw, 3.5rem);
  --t-h2: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-micro: 0.6875rem;

  --rail: 15rem;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --measure: 68ch;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Daylight. The dark view is the design; this one is for readers who have
   asked their system for light and should get a real answer, not a dimmed
   version of the other. The fog becomes overcast rather than white, and
   both signals darken enough to hold contrast on it. */
@media (prefers-color-scheme: light) {
  :root {
    --fog-0: #eceff1;
    --fog-1: #f7f9fa;
    --fog-2: #e0e6ea;
    --rule: #c6d1d8;
    --rule-lit: #9fb0ba;

    --frost: #0c1418;
    --vapor: #4a5d68;
    --murk: #7d8f99;

    --signal: #00695f;
    --ember: #8a5a08;
    --breach: #b3261e;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fog-0);
  color: var(--frost);
  font-family: var(--font-law);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── The chassis ────────────────────────────────────────────────────── */

.chassis {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  border-right: 1px solid var(--rule);
  background: var(--fog-1);
  padding: 1.5rem 0 2rem;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
}

.pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--frost);
  font-family: var(--font-machine);
  line-height: 1.15;
}

.mark {
  flex: none;
  color: var(--frost);
  transition: color 0.25s var(--ease);
}

.brand:hover .mark {
  color: var(--ember);
}

.brand__words b {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand__words em {
  display: block;
  font-style: normal;
  font-size: var(--t-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin-top: 0.2rem;
}

.rail nav {
  display: flex;
  flex-direction: column;
}

.rail nav a {
  font-family: var(--font-machine);
  font-size: var(--t-small);
  letter-spacing: 0.06em;
  color: var(--vapor);
  text-decoration: none;
  padding: 0.4rem 1.25rem;
  border-left: 2px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease),
    background 0.15s var(--ease);
}

.rail nav a:hover,
.rail nav a:focus-visible {
  color: var(--frost);
  background: var(--fog-2);
}

.rail nav a[aria-current="page"] {
  color: var(--frost);
  border-left-color: var(--ember);
}

/* The live status block. Not decoration: it is the one claim the whole
   site rests on, so it is visible from every page. */
.standing {
  margin: 1.75rem 1.25rem 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-machine);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--murk);
}

.standing dl {
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.3rem;
}

.standing dt {
  color: var(--murk);
}

.standing dd {
  margin: 0 0 0.5rem;
  color: var(--vapor);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: var(--t-small);
}

.standing dd.ok {
  color: var(--signal);
}

.standing dd.broken {
  color: var(--breach);
}

main {
  flex: 1;
  padding: var(--gutter);
  max-width: calc(var(--measure) + 22rem);
  width: 100%;
}

/* ── Type ───────────────────────────────────────────────────────────── */

h1 {
  font-family: var(--font-machine);
  font-size: var(--t-hero);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 0.35em;
}

h1 small {
  display: block;
  font-size: var(--t-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.9rem;
  font-weight: 400;
}

h2 {
  font-family: var(--font-machine);
  font-size: var(--t-h2);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-family: var(--font-machine);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 1.75rem 0 0.5rem;
}

/* The standfirst: the one paragraph that says what a page is. Set larger
   and in the law face, because on this site the explanation is the prose
   and everything under it is the record. */
.standfirst {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--vapor);
  max-width: var(--measure);
  margin: 0 0 2rem;
}

p {
  max-width: var(--measure);
}

a {
  color: var(--signal);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--signal) 40%, transparent);
}

a:hover {
  text-decoration-color: currentColor;
}

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

code,
.hash,
time,
.mono {
  font-family: var(--font-machine);
  font-size: 0.9em;
}

.hash {
  color: var(--signal);
  letter-spacing: -0.01em;
}

.muted,
.empty {
  color: var(--murk);
}

.empty {
  font-style: italic;
}

/* Micro-labels. Used where a value needs naming and a full word would
   outweigh it — never as decoration above a heading. */
.eyebrow {
  font-family: var(--font-machine);
  font-size: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--murk);
}

/* ── The surveillance notice (A5) ───────────────────────────────────── */

.notice {
  font-family: var(--font-machine);
  grid-column: 1 / -1;
}

.notice--loud {
  background: var(--fog-2);
  border-bottom: 1px solid var(--rule-lit);
  padding: 0.85rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2rem;
}

.notice--loud h2 {
  margin: 0;
  font-size: var(--t-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  white-space: nowrap;
}

.notice--loud dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.5rem;
  margin: 0;
  font-size: var(--t-micro);
  letter-spacing: 0.05em;
}

.notice--loud dt {
  color: var(--murk);
  text-transform: uppercase;
  display: inline;
}

.notice--loud dt::after {
  content: " ";
}

.notice--loud dd {
  display: inline;
  margin: 0 1.25rem 0 0.35rem;
  color: var(--vapor);
}

.notice--loud p {
  margin: 0;
  font-size: var(--t-micro);
  letter-spacing: 0.05em;
  color: var(--murk);
  max-width: none;
}

.notice--loud a {
  color: var(--ember);
}

.notice--quiet {
  background: var(--fog-1);
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem var(--gutter);
  color: var(--murk);
  font-size: var(--t-micro);
  letter-spacing: 0.05em;
}

.notice--quiet p {
  margin: 0;
  max-width: none;
}

/* ── The Chain ──────────────────────────────────────────────────────────
 *
 * The signature element. Every claim on this site links to a hash-chained
 * ledger entry, and this is that sentence drawn rather than stated: a
 * spine down the left, one node per entry, each carrying the head of its
 * own hash. Server-rendered as a static chain; the island upgrades it to
 * a live one and lets a reader verify the links in their own browser.
 */

.chain {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* The spine. This is the signature element and it has to be visible:
   "every claim links to a hash-chained ledger entry" is the site's central
   sentence, and this is that sentence drawn. The first version faded it
   through a gradient at hairline weight and it vanished entirely. */
.chain::before {
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    color-mix(in srgb, var(--signal) 45%, var(--rule-lit)) 6%,
    color-mix(in srgb, var(--signal) 45%, var(--rule-lit)) 94%,
    transparent
  );
}

.link {
  position: relative;
  padding: 0.7rem 0 0.7rem 2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
  display: grid;
  /* Wide enough for the stamp it actually holds. The first version was
     sized for a clock and handed an ISO 8601 string, which ran straight
     under the summary. */
  grid-template-columns: 10.5rem minmax(0, 1fr) auto;
  gap: 0.15rem 1.25rem;
  align-items: baseline;
}

.link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--fog-0);
  border: 2px solid var(--rule-lit);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.link:hover::before {
  border-color: var(--ember);
}

.link time {
  color: var(--murk);
  font-size: var(--t-small);
  white-space: nowrap;
}

.link .kind {
  grid-column: 1;
  grid-row: 2;
  font-family: var(--font-machine);
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--murk);
}

.link .summary {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--frost);
  min-width: 0;
  overflow-wrap: anywhere;
}

.link .verify {
  grid-column: 3;
  grid-row: 1 / 3;
  font-family: var(--font-machine);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  color: var(--murk);
  text-decoration: none;
  white-space: nowrap;
}

.link .verify:hover {
  color: var(--signal);
}

/* An agent did something. Amber is life. */
.link--agent::before {
  background: color-mix(in srgb, var(--ember) 35%, var(--fog-0));
  border-color: var(--ember);
}

/* Something was refused, or someone tried something. */
.link--security::before,
.link--refusal::before {
  background: color-mix(in srgb, var(--breach) 35%, var(--fog-0));
  border-color: var(--breach);
}

.link--security .kind,
.link--refusal .kind {
  color: var(--breach);
}

/* ── Tables ─────────────────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 2rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--font-machine);
  font-size: var(--t-small);
}

th {
  text-align: left;
  padding: 0.5rem 0.85rem 0.5rem 0;
  border-bottom: 1px solid var(--rule-lit);
  font-weight: 500;
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--murk);
  white-space: nowrap;
}

td {
  padding: 0.5rem 0.85rem 0.5rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent);
  vertical-align: baseline;
}

tbody tr:hover td {
  background: color-mix(in srgb, var(--fog-2) 55%, transparent);
}

/* ── Definition panels ──────────────────────────────────────────────── */

.panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 1.5rem 0 2rem;
}

.panel > div {
  background: var(--fog-1);
  padding: 0.9rem 1rem;
}

.panel dt {
  font-family: var(--font-machine);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--murk);
}

.panel dd {
  margin: 0.3rem 0 0;
  font-family: var(--font-machine);
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--frost);
}

.panel dd.figure {
  color: var(--ember);
}

/* ── The law face ───────────────────────────────────────────────────── */

.axioms {
  list-style: none;
  counter-reset: axiom;
  padding: 0;
  margin: 1.5rem 0;
}

.axioms li {
  position: relative;
  padding: 0.85rem 0 0.85rem 4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
  max-width: var(--measure);
}

.axioms li strong {
  position: absolute;
  left: 0;
  top: 0.95rem;
  font-family: var(--font-machine);
  font-size: var(--t-small);
  letter-spacing: 0.08em;
  color: var(--signal);
  font-weight: 500;
}

blockquote.body {
  margin: 1.5rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--rule-lit);
  max-width: var(--measure);
  color: var(--frost);
}

pre {
  font-family: var(--font-machine);
  font-size: var(--t-small);
  line-height: 1.55;
  background: var(--fog-1);
  border: 1px solid var(--rule);
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* A refusal. The one thing on this site that should stop a reader. */
.refusal {
  border: 1px solid var(--breach);
  border-left-width: 3px;
  background: color-mix(in srgb, var(--breach) 7%, transparent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  max-width: var(--measure);
}

.refusal strong {
  font-family: var(--font-machine);
  font-size: var(--t-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--breach);
  display: block;
  margin-bottom: 0.5rem;
}

.refusal p {
  margin: 0.5rem 0 0;
}

/* ── Filters, status, verification ──────────────────────────────────── */

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
  max-width: none;
}

.filter a {
  font-family: var(--font-machine);
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vapor);
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--rule);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.filter a:hover {
  color: var(--frost);
  border-color: var(--rule-lit);
}

.filter a.active {
  color: var(--fog-0);
  background: var(--ember);
  border-color: var(--ember);
}

.verification {
  font-family: var(--font-machine);
  font-size: var(--t-small);
  padding: 0.7rem 1rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--signal);
  background: var(--fog-1);
  margin: 0 0 1.5rem;
  max-width: none;
}

.verification.broken {
  border-left-color: var(--breach);
  color: var(--breach);
}

.status--refused td,
.status--vetoed td {
  color: var(--breach);
}

.status--enacted td:first-child {
  border-left: 2px solid var(--ember);
  padding-left: 0.6rem;
}

/* ── The world ──────────────────────────────────────────────────────── */

#world-map-wrap {
  position: relative;
  margin: 1.5rem 0;
  border: 1px solid var(--rule);
  background: var(--fog-0);
  max-width: 48rem;
}

#world-map {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* The 3D voxel viewer. A framed window, deliberately not fullscreen: it is
   one exhibit on the World page, not a game the reader is playing. */
.world3d {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 32rem;
  border: 1px solid var(--rule);
  background: var(--fog-0);
  margin: 1rem 0 2rem;
  overflow: hidden;
}

#world3d {
  display: block;
  min-height: 20rem;
}

.world3d__hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 0.85rem;
  background: linear-gradient(to top, color-mix(in srgb, var(--fog-0) 85%, transparent), transparent);
  font-family: var(--font-machine);
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  color: var(--vapor);
  pointer-events: none;
}

#world-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--fog-2);
  border: 1px solid var(--rule-lit);
  padding: 0.4rem 0.6rem;
  font-family: var(--font-machine);
  font-size: var(--t-micro);
  letter-spacing: 0.05em;
  color: var(--frost);
  white-space: nowrap;
}

/* ── Footer ─────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem var(--gutter) 3rem;
  color: var(--murk);
  font-size: var(--t-small);
  max-width: none;
}

footer p {
  max-width: var(--measure);
  margin: 0 0 0.5rem;
}

footer strong {
  color: var(--vapor);
  font-weight: 400;
}

/* ── Island controls ────────────────────────────────────────────────────
 *
 * The only two buttons on this site: "verify the chain in this browser"
 * and "back to the whole continent". Neither sends anything anywhere —
 * one is a local computation over data already fetched, the other moves a
 * viewport. There is deliberately nothing here styled as a primary action,
 * because there is no action to take.
 */

.verify-action {
  font-family: var(--font-machine);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  background: transparent;
  border: 1px solid var(--signal);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.verify-action:hover {
  background: var(--signal);
  color: var(--fog-0);
}

.self-verify {
  margin: -0.75rem 0 1.75rem;
}

.verify-progress,
.verify-result {
  font-family: var(--font-machine);
  font-size: var(--t-small);
  padding: 0.7rem 1rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--murk);
  background: var(--fog-1);
  margin: 0;
  max-width: none;
}

.verify-result.ok {
  border-left-color: var(--signal);
}

.verify-result.ok b {
  color: var(--signal);
}

.verify-result.broken {
  border-left-color: var(--breach);
  color: var(--breach);
}

/* The tally, as one whole in three parts. Approval voting with a standing
   tiebreak is not a two-sided contest, and a bar drawn as a versus would
   teach a reader the wrong thing about how this society decides. */
.tally-bar {
  display: flex;
  height: 0.5rem;
  margin: 0.75rem 0 0;
  background: var(--fog-2);
  overflow: hidden;
}

.tally-bar__aye {
  background: var(--ember);
}

.tally-bar__nay {
  background: var(--breach);
}

.tally-bar__abstain {
  background: var(--murk);
}

.tally-bar__empty {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    color-mix(in srgb, var(--murk) 35%, transparent) 4px,
    color-mix(in srgb, var(--murk) 35%, transparent) 8px
  );
}

.world-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--rule);
}

/* ── The parent site ────────────────────────────────────────────────────
 *
 * One page, and it has one job: say what IronRaven is and point at the
 * thing that is running. It shares every token with the Society so the two
 * read as one organisation, and it is centred rather than railed because
 * there is nothing here to navigate.
 */

body.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.home__main {
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 7rem) var(--gutter) 4rem;
}

.home__hero .mark {
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  display: block;
}

.home__hero h1 {
  font-size: clamp(2.5rem, 1rem + 6vw, 5rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0 0 1.5rem;
}

.home__thesis {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.5;
  color: var(--frost);
  margin: 0;
}

.home__feature {
  margin: clamp(3rem, 8vw, 5.5rem) 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--rule);
}

.home__feature h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
}

.home__feature h2 a {
  text-decoration: none;
}

.home__plain {
  margin: 3.5rem 0 0;
  color: var(--vapor);
}

.home__footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem var(--gutter);
  font-family: var(--font-machine);
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--murk);
  text-align: center;
}

.home__footer p {
  max-width: none;
  margin: 0;
}

/* ── Narrow ─────────────────────────────────────────────────────────── */

@media (max-width: 60rem) {
  .chassis {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 1rem 0 0;
  }

  .brand {
    padding: 0 var(--gutter) 1rem;
  }

  .rail nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 var(--gutter) 0.75rem;
    gap: 0.25rem;
    scrollbar-width: thin;
  }

  .rail nav a {
    padding: 0.35rem 0.7rem;
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .rail nav a[aria-current="page"] {
    border-left-color: transparent;
    border-bottom-color: var(--ember);
  }

  /* The standing block moves to the foot on narrow screens: it is
     reference, and putting it above the content would push the page a
     reader came for below the fold. */
  .standing {
    display: none;
  }

  .link {
    grid-template-columns: 1fr auto;
    padding-left: 1.6rem;
  }

  .link time {
    grid-column: 1;
    grid-row: 1;
  }

  .link .kind {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .link .summary {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .link .verify {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

/* ── Motion ─────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .chain > .link {
    animation: settle 0.4s var(--ease) both;
  }

  /* Staggered only over the first screenful — past that it is a delay a
     reader waits through rather than an entrance they see. */
  .chain > .link:nth-child(1) { animation-delay: 0.02s; }
  .chain > .link:nth-child(2) { animation-delay: 0.05s; }
  .chain > .link:nth-child(3) { animation-delay: 0.08s; }
  .chain > .link:nth-child(4) { animation-delay: 0.11s; }
  .chain > .link:nth-child(5) { animation-delay: 0.14s; }
  .chain > .link:nth-child(6) { animation-delay: 0.17s; }
  .chain > .link:nth-child(7) { animation-delay: 0.2s; }
  .chain > .link:nth-child(8) { animation-delay: 0.23s; }

  @keyframes settle {
    from {
      opacity: 0;
      transform: translateY(0.4rem);
    }
  }

  /* A link that just arrived. The island adds this class; the pulse says
     "this is new" once and then stops, rather than drawing attention to
     itself forever. */
  .link--fresh::before {
    animation: pulse 1.4s var(--ease);
  }

  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 color-mix(in srgb, var(--ember) 70%, transparent);
    }
    100% {
      box-shadow: 0 0 0 0.75rem transparent;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
