/* The roll-call page. Colour, radius and layout tokens live in brand.css, loaded first.
 * One face, four sizes: statement, numeral, list, label. See DESIGN.md for the rules. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", var(--sans);
  font-size: 1rem;
  line-height: 1.4;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
p, h1, h2, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }

/* Links: a thin petrol-tint underline is the non-colour cue that a name is clickable. */
a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: rgb(var(--accent-rgb) / 0.7);   /* ~3.8:1 on white: the underline is the cue that a name is a link */
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
a:hover { color: var(--accent); text-decoration-color: currentColor; text-decoration-thickness: 2px; }
a:focus-visible { outline: var(--focus-ring); outline-offset: 3px; border-radius: 2px; }

/* ---- Nav ------------------------------------------------------------------------------ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand .mark { color: var(--accent); flex: none; }

/* ---- Statement ------------------------------------------------------------------------ */
.statement { padding: clamp(32px, 4vw, 80px) var(--gutter) clamp(40px, 5vw, 96px); }
.statement__text {
  font-size: clamp(2.5rem, 6vw, 7rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}
.mark--inline {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  vertical-align: -0.04em;
  color: var(--accent);
}
.tile { opacity: 0.45; }
.tile--1, .tile--3 { opacity: 1; }

/* The page's one motion: a staggered pulse loop on the mark's tiles (nav and headline). Opacity
   only, so it stays on the compositor; a quarter-cycle apart, the fill travels round the mark.
   Under reduced motion the tiles rest at the opacities above. */
@media (prefers-reduced-motion: no-preference) {
  .tile { animation: tile-pulse 3.4s ease-in-out infinite; }
  .tile--2 { animation-delay: 0.85s; }
  .tile--3 { animation-delay: 1.7s; }
  .tile--4 { animation-delay: 2.55s; }
}
@keyframes tile-pulse { 0%, 100% { opacity: 0.16; } 50% { opacity: 1; } }

/* ---- Facts: one hairline, three facts, aligned to the roll's columns below ------------ */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin: 0 var(--gutter);
  padding-top: 14px;
  border-top: 1px solid var(--accent);
  font-size: 1rem;
}
.facts__item:nth-child(2) { grid-column: 3; }
.facts__item--end { grid-column: 4; justify-self: end; text-align: right; }

/* ---- Roll call ------------------------------------------------------------------------ */
.roll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding: clamp(72px, 10vw, 160px) var(--gutter) clamp(56px, 8vw, 120px);
}
/* Sticky to the viewport's foot, so the numeral stays in view while the names scroll and
   lands beside the end of the list. */
.roll__people {
  position: sticky;
  bottom: var(--gutter);
  align-self: end;
  display: flex;
  flex-direction: column;
}
.numeral {
  display: block;
  margin-left: -0.05em;
  font-size: clamp(12rem, 30vw, 30rem);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.roll__word {
  margin-top: 10px;
  font-size: clamp(2.5rem, 5.4vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.roll__caption { margin-top: 14px; font-size: 1rem; color: var(--muted); }
.roll__body { align-self: start; }
.roll__label { margin-bottom: 28px; font-size: 1rem; font-weight: 400; color: var(--muted); }
.names {
  font-size: clamp(1.125rem, 1.35vw, 1.375rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
}
.names__note { color: var(--muted); }

/* ---- Footer --------------------------------------------------------------------------- */
.footer { padding: clamp(56px, 8vw, 112px) var(--gutter) 32px; }
.footer__ask { font-size: clamp(1.5rem, 2.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 40px;
  padding-top: 14px;
  border-top: 1px solid var(--accent);
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---- Narrow screens: everything stacks in reading order ------------------------------- */
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; row-gap: 4px; }
  .facts__item:nth-child(2), .facts__item--end { grid-column: auto; justify-self: start; text-align: left; }
  .roll { grid-template-columns: 1fr; row-gap: 40px; }
  .roll__people { position: static; }
}
