/* cmbmaps.com: one stylesheet for every page. No scripts, no web fonts, no third-party requests.
   Every colour is a token below; light and dark themes follow the visitor's setting.
   The hero band, page heads and map plates stay on the dark "sky" ground in both themes. */

/* ------------------------------------------------------------------------------------------
   Parchment, the app's default palette (merged from assets/palette.css, which
   tools/make-images.py generates from CMBKit's Palette.swift: 17 evenly spaced entries
   of its 256-entry lookup table, coldest first).
   ------------------------------------------------------------------------------------------ */
:root {
  --parchment-stops: #0e1a6e 0%, #15308d 6.25%, #1d47ad 12.5%, #2e63c9 18.75%, #5488d8 25%, #7bade5 31.25%, #a6c6e5 37.5%, #d1dbe0 43.75%, #fbeed8 50%, #fadcb1 56.25%, #f9c786 62.5%, #f5ad5e 68.75%, #ef8f31 75%, #dd6623 81.25%, #c6351f 87.5%, #912214 93.75%, #5c1409 100%;
  --parchment: linear-gradient(to right, var(--parchment-stops));
  --parchment-deep-blue: #0e1a6e;
  --parchment-blue: #2457c5;
  --parchment-pale-blue: #86b6e8;
  --parchment-cream: #fbefd9;
  --parchment-sand: #f8c27a;
  --parchment-orange: #ee8a26;
  --parchment-red: #c4301f;
  --parchment-brown: #5c1409;
}

/* ------------------------------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------------------------------ */
:root {
  color-scheme: light dark;

  /* Page (light: warm parchment) */
  --bg: #fbfaf7;
  --surface: #f4f1ea;
  --fg: #1d1c1a;
  --muted: #5b5853;
  --rule: #e2ddd2;
  --accent: #a6481b;
  --cool: var(--parchment-blue);
  --focus: var(--parchment-blue);
  --chart-accent: var(--parchment-red);
  --shot-edge: rgb(29 28 26 / 0.14);
  --shadow: 0 1px 2px rgb(29 28 26 / 0.06), 0 12px 32px -8px rgb(29 28 26 / 0.22);

  /* The sky ground (the same in both themes) */
  --sky: #0b0b0d;
  --sky-fg: #ecebe8;
  --sky-strong: #ffffff;
  --sky-muted: #aaa69f;
  --sky-rule: #2a2a2f;
  --sky-accent: #f0a46b;
  --sky-focus: var(--parchment-pale-blue);

  --sky-veil: rgb(11 11 13 / 0.72);

  /* Type */
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Type scale: every font size on the site is one of these steps */
  --text-2xs: 0.6875rem;                                  /* 11: the smallest map furniture */
  --text-xs: 0.75rem;                                     /* 12: kickers, terms, colour-bar ends */
  --text-s: 0.8125rem;                                    /* 13: map labels, caveat lines, small print */
  --text-m: 0.9375rem;                                    /* 15: captions, secondary text */
  --text-base: 1.0625rem;                                 /* 17: body */
  --text-l: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);   /* 18–20: ledes */
  --step1: 1.3125rem;                                     /* 21: minor headings */
  --step2: 1.75rem;                                       /* 28: section headings */
  --step3: clamp(1.875rem, 1.45rem + 1.7vw, 2.5rem);      /* 30–40: h2 */
  --step4: clamp(2.5rem, 1.7rem + 3.4vw, 4rem);           /* 40–64: h1 */
  --step5: clamp(3rem, 1.9rem + 5vw, 5.5rem);             /* 48–88: the home page's title */

  /* Measure */
  --measure: 40rem;
  --wide: 68rem;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --surface: #18181b;
    --fg: #ecebe8;
    --muted: #aaa69f;
    --rule: #2d2d32;
    --accent: #f0a46b;
    --cool: var(--parchment-pale-blue);
    --focus: var(--parchment-pale-blue);
    --chart-accent: var(--parchment-orange);
    --shot-edge: rgb(255 255 255 / 0.14);
    --shadow: 0 12px 32px -10px rgb(0 0 0 / 0.7);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--text-base)/1.65 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step4); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: var(--step3); }
h3 { font-size: var(--step1); font-weight: 600; letter-spacing: 0; }

p, ul, ol, dl, blockquote, table { margin: 0 0 1rem; }
p, li, dd, figcaption { text-wrap: pretty; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.4rem; }
strong { font-weight: 600; }
sub { font-size: 0.7em; line-height: 0; }

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

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

code, .num {
  font-family: var(--mono);
  font-size: 0.88em;
  font-variant-numeric: tabular-nums;
}
code { overflow-wrap: anywhere; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--sky-fg);
  color: var(--sky);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; outline-color: var(--sky-focus); }

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

.section { padding-block: var(--section); }
.section--alt { background: var(--surface); }

.section-head { max-width: var(--measure); margin: 0 0 clamp(2.25rem, 4vw, 3.5rem); }
.section .wrap > :last-child { margin-bottom: 0; }
.section-head h2 { margin-bottom: 1.25rem; }
.section-head .lede:last-child { margin-bottom: 0; }
.prose h2 { margin-bottom: 1.25rem; }

.lede {
  font-size: var(--text-l);
  line-height: 1.6;
}

.kicker {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.small { font-size: var(--text-m); color: var(--muted); }

/* ------------------------------------------------------------------------------------------
   Header and navigation (on the sky ground)
   ------------------------------------------------------------------------------------------ */
.site-header { background: var(--sky); color: var(--sky-fg); }
.site-header :focus-visible, .hero :focus-visible, .page-head :focus-visible { outline-color: var(--sky-focus); }

.nav {
  width: min(var(--wide), 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 2rem;
  padding-block: 0.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.2rem;
  color: var(--sky-fg);
  font-family: var(--serif);
  font-size: var(--text-l);
  text-decoration: none;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav li + li { margin-top: 0; }
.nav ul a {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--sky-muted);
  font-size: var(--text-m);
  text-decoration: none;
}
.nav a:hover { color: var(--sky-strong); }
.nav ul a[aria-current="page"] {
  color: var(--sky-fg);
  text-decoration: underline;
  text-decoration-color: var(--sky-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}
@media (max-width: 29.99rem) {
  .nav ul { gap: 0.25rem 1.1rem; }
}

/* The signature rule: the Parchment colour bar as a thin full-bleed line */
.rule { height: 3px; background: var(--parchment); }

/* ------------------------------------------------------------------------------------------
   Colour bar with its scale ends
   ------------------------------------------------------------------------------------------ */
.scale {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem 1rem;
  margin: 0;
  color: var(--scale-fg, var(--muted));
  font: 500 var(--text-xs)/1.3 var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  text-align: left;
}
.scale::before {
  content: "";
  grid-column: 1 / -1;
  height: var(--bar, 6px);
  border-radius: calc(var(--bar, 6px) / 2);
  background: var(--parchment);
}
.scale .hi { text-align: right; }
.scale--hero { --bar: 4px; max-width: 40rem; margin: clamp(1.5rem, 3vw, 2.25rem) auto 0; }
.scale--shared { max-width: 26rem; margin: clamp(1.25rem, 3vw, 2rem) auto 0; }
.scale--large { --bar: 10px; font-size: var(--text-s); }

/* ------------------------------------------------------------------------------------------
   Home: hero
   ------------------------------------------------------------------------------------------ */
.hero {
  background: var(--sky);
  color: var(--sky-fg);
  text-align: center;
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem) 0 clamp(3.5rem, 2rem + 5vw, 6rem);
  --scale-fg: var(--sky-muted);
}
.hero h1 {
  font-size: var(--step5);
  line-height: 1;
}
.subtitle {
  margin: 0.6rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(var(--step1), 1.05rem + 0.9vw, var(--step2));
  line-height: 1.3;
  color: var(--sky-accent);
}
.hero-figure {
  width: min(62rem, 100% - 2 * var(--gutter));
  margin: clamp(2rem, 1rem + 4vw, 3.5rem) auto 0;
}
.hero-figure img { width: 100%; }
.hero-figure figcaption {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  font-size: var(--text-s);
  line-height: 1.6;
  text-align: left;
  color: var(--sky-muted);
}
.hero-figure figcaption a { color: var(--sky-fg); }
.hero-body {
  width: min(38rem, 100% - 2 * var(--gutter));
  margin: clamp(2.5rem, 1.5rem + 3vw, 3.5rem) auto 0;
}
.hero .lede { color: var(--sky-fg); }
.actions { margin: 1.75rem 0 1.1rem; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--sky-fg);
  color: var(--sky);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1.2;
  text-decoration: none;
}
.cta::after { content: "→"; content: "→" / ""; font-weight: 400; }
.cta:hover { background: var(--sky-strong); }
.meta {
  margin: 0 0 0.4rem;
  font-family: var(--mono);
  font-size: var(--text-s);
  letter-spacing: 0.02em;
  color: var(--sky-fg);
  text-wrap: balance;
}
.hero .small { color: var(--sky-muted); margin: 0; }

/* ------------------------------------------------------------------------------------------
   Home: what you are looking at
   ------------------------------------------------------------------------------------------ */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.split .prose { margin-inline: 0; }
.split .prose p:last-child { margin-bottom: 0; }
@media (min-width: 62rem) {
  .split {
    grid-template-columns: minmax(0, var(--measure)) minmax(0, 21rem);
    justify-content: space-between;
    gap: 4rem;
  }
  .split .aside { padding-top: 4.5rem; }
}
.numbers { margin: 0 0 2.75rem; border-top: 1px solid var(--rule); }
.numbers > div { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.numbers dt {
  font-family: var(--mono);
  font-size: var(--text-base);
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.numbers dd { margin: 0.1rem 0 0; font-size: var(--text-m); color: var(--muted); }
.colourbar-note { margin: 0; }
.colourbar-note figcaption { margin-top: 0.9rem; font-size: var(--text-m); line-height: 1.6; color: var(--muted); }

/* ------------------------------------------------------------------------------------------
   Figures and plates (maps on the sky ground)
   ------------------------------------------------------------------------------------------ */
figure { margin: 0; }
.figure { margin: 0 0 clamp(3.5rem, 6vw, 5.5rem); }
.figure > figcaption {
  max-width: var(--measure);
  margin: 1.1rem 0 0;
  font-size: var(--text-m);
  line-height: 1.6;
  color: var(--muted);
}
.credit { display: block; margin-top: 0.45rem; }

.plate {
  background: var(--sky);
  color: var(--sky-fg);
  border-radius: var(--radius);
  padding: clamp(1rem, 0.5rem + 2.2vw, 2.25rem);
  --scale-fg: var(--sky-muted);
}
.plate :focus-visible { outline-color: var(--sky-focus); }
@media (prefers-color-scheme: dark) {
  .plate { box-shadow: inset 0 0 0 1px var(--sky-rule); }
}

.panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 48rem) {
  .panels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
}
.panel img { width: 100%; }
.panel figcaption {
  margin-top: 0.7rem;
  text-align: center;
  line-height: 1.4;
}
.label {
  display: block;
  font-family: var(--mono);
  font-size: var(--text-s);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--sky-fg);
  text-wrap: balance;
}
.caveat-line {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--text-s);
  line-height: 1.4;
  color: var(--sky-muted);
}

/* The patch: squares side by side on wide screens, stacked on phones like the whole-sky maps. The true-size Moon
   ring is tiny, so a tag that is not to scale points to it, as the app's close-up does. */
.patch-img { position: relative; max-width: 22rem; margin-inline: auto; }
.panels--patch .panel img { border-radius: 6px; }
.moon-tag {
  position: absolute;
  left: calc(9.5% + 4px);   /* the ring's centre is at 7.5 %, 92.5 %; its radius is about 1 % */
  top: 92.5%;
  transform: translateY(-50%);
  padding: 0.05rem 0.45rem 0.1rem;
  border-radius: 999px;
  background: var(--sky-veil);
  color: var(--sky-fg);
  font: 500 var(--text-2xs)/1.35 var(--sans);
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* The lead-ins of the close-ups and of the bands */
.sub-head { max-width: var(--measure); margin: 0 0 1.75rem; }
.sub-head h3 { font-size: var(--step2); font-weight: 500; margin-bottom: 0.75rem; }
.sub-head p { margin: 0; }

/* Three of Planck's bands: one plate each, each with its own scale */
.bands { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .band { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; }
  .band figcaption { margin-top: 0; }
}
@media (min-width: 64rem) {
  .bands { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
}
.band .plate { padding: clamp(0.9rem, 0.5rem + 1.2vw, 1.25rem); }
.band .label { margin-bottom: 0.8rem; text-align: center; }
.band .plate img { margin-bottom: 0.9rem; }
.band figcaption { margin-top: 0.9rem; font-size: var(--text-m); line-height: 1.55; color: var(--muted); }
.band figcaption strong { color: var(--fg); }

/* ------------------------------------------------------------------------------------------
   Home: three missions
   ------------------------------------------------------------------------------------------ */
.missions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.75rem; margin: 0 0 clamp(4rem, 7vw, 6rem); }
@media (min-width: 56rem) {
  .missions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.75rem); }
}
.mission h3 { font-size: var(--step2); font-weight: 500; margin-bottom: 1rem; }
.agency {
  margin-left: 0.6rem;
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: 0.35em;
}
.facts { margin: 0 0 1.1rem; border-top: 1px solid var(--rule); }
.facts > div {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--text-m);
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-family: var(--mono); font-size: var(--text-s); font-variant-numeric: tabular-nums; padding-top: 0.15rem; }
.caveat {
  padding-left: 0.9rem;
  border-left: 3px solid var(--cool);
  font-size: var(--text-m);
}

/* ------------------------------------------------------------------------------------------
   Home: in the app
   ------------------------------------------------------------------------------------------ */
.lenses { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin: 0 0 clamp(3.5rem, 6vw, 5rem); }
@media (min-width: 48rem) {
  .lenses { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
}
.lenses > div { padding-top: 1rem; border-top: 2px solid var(--fg); }
.lenses dt { font-family: var(--serif); font-size: var(--step2); line-height: 1.2; margin-bottom: 0.4rem; }
.lenses dd { margin: 0; color: var(--muted); }

.shots {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin: 0 0 clamp(3.5rem, 6vw, 5rem);
  padding: 0;
  list-style: none;
}
.shots li + li { margin-top: 0; }
.shot img {
  width: 100%;
  border-radius: 9% / 4.14%;
  box-shadow: 0 0 0 1px var(--shot-edge), var(--shadow);
  background: var(--sky);
}
.shot h3 { font-size: var(--step1); font-weight: 500; line-height: 1.2; margin: 0 0 0.45rem; }
.shot p { margin: 0; font-size: var(--text-m); line-height: 1.55; color: var(--muted); }
@media (max-width: 35.99rem) {
  .shot { display: grid; grid-template-columns: 9.25rem minmax(0, 1fr); gap: 1.1rem; align-items: center; }
}
@media (min-width: 36rem) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2rem; }
  .shot img { max-width: 14rem; margin: 0 auto 1.25rem; }
  .shot figcaption { max-width: 14rem; margin-inline: auto; }
}
@media (min-width: 56rem) {
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4rem 2.5rem; }
}

.ipads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 48rem; margin: 0 auto 2.5rem; }
@media (min-width: 40rem) { .ipads { gap: 2.5rem; } }
.ipad img {
  width: 100%;
  max-width: 21.5rem;
  margin: 0 auto 1.1rem;
  border-radius: 4% / 3%;
  box-shadow: 0 0 0 1px var(--shot-edge), var(--shadow);
  background: var(--sky);
}
.ipad figcaption { max-width: 21.5rem; margin-inline: auto; font-size: var(--text-s); line-height: 1.5; color: var(--muted); }
@media (min-width: 40rem) { .ipad figcaption { font-size: var(--text-m); line-height: 1.55; } }
.shots-credit { max-width: var(--measure); margin: 0 auto clamp(4rem, 7vw, 6rem); font-size: var(--text-s); line-height: 1.6; color: var(--muted); text-align: center; text-wrap: balance; }

.also { max-width: 56rem; }
.features {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.features li { position: relative; margin: 0; padding: 0.85rem 0 0.85rem 1.6rem; border-bottom: 1px solid var(--rule); }
.features li::before, .checks li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 0.85rem;
  height: 3px;
  border-radius: 2px;
  background: var(--parchment);
}
.features li::before { top: 1.65rem; }
@media (min-width: 48rem) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
}

/* ------------------------------------------------------------------------------------------
   Home: how we know (charts inline as SVG, themed by currentColor and --chart-accent)
   ------------------------------------------------------------------------------------------ */
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.duo + .duo { margin-top: clamp(4rem, 7vw, 6rem); }
.duo h3 { font-size: var(--step2); font-weight: 500; margin-bottom: 1rem; }
.duo .text { max-width: var(--measure); }
.duo .text p:last-child { margin-bottom: 0; }
@media (min-width: 75rem) {
  .duo { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: clamp(2.5rem, 4vw, 4rem); }
}
.chart-figure { color: var(--fg); width: 100%; max-width: 44rem; }
.chart-figure .chart { display: block; width: 100%; height: auto; }
.chart-figure .chart--narrow { display: none; }
@media (max-width: 39.99rem) {
  .chart-figure .chart--wide { display: none; }
  .chart-figure .chart--narrow { display: block; }
}
.chart-figure figcaption { max-width: var(--measure); margin-top: 1rem; font-size: var(--text-m); line-height: 1.6; color: var(--muted); }

/* ------------------------------------------------------------------------------------------
   Home: honest by design, history
   ------------------------------------------------------------------------------------------ */
.principles { max-width: 56rem; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.principles li { margin: 0; padding: 1.15rem 0; border-bottom: 1px solid var(--rule); }
.principles strong { display: block; margin-bottom: 0.3rem; font-family: var(--serif); font-size: var(--step1); font-weight: 500; line-height: 1.3; }
@media (min-width: 48rem) {
  .principles li { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2.5rem; }
  .principles strong { margin: 0; }
}
.history {
  max-width: 38rem;
  margin: clamp(4rem, 7vw, 5.5rem) auto 0;
  text-align: center;
  font-family: var(--serif);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--muted);
}
.history::before {
  content: "";
  display: block;
  width: 4rem;
  height: 3px;
  margin: 0 auto 1.5rem;
  border-radius: 2px;
  background: var(--parchment);
}

/* ------------------------------------------------------------------------------------------
   Inner pages: the page head on the sky ground
   ------------------------------------------------------------------------------------------ */
.page-head {
  background: var(--sky);
  color: var(--sky-fg);
  padding: clamp(2rem, 1rem + 4vw, 4.5rem) 0 clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
.page-head .inner { width: min(var(--measure), 100% - 2 * var(--gutter)); margin-inline: auto; }
.page-head--wide .inner { width: min(56rem, 100% - 2 * var(--gutter)); }
.page-head--wide .lede { max-width: var(--measure); }
.page-head .lede { color: var(--sky-fg); margin: 1.1rem 0 0; }
.page-head a { color: var(--sky-accent); }
.page-head .muted { color: var(--sky-muted); margin: 0.9rem 0 0; }
.page-body { padding-block: clamp(3rem, 2rem + 4vw, 5rem) var(--section); }
.page-body h2 { margin: clamp(3rem, 5vw, 4rem) 0 1.25rem; }
.page-body .prose > h2:first-child, .page-body .prose > p:first-child { margin-top: 0; }
.page-body h3 { margin: 2.25rem 0 0.6rem; font-size: var(--step1); }

/* Support: questions and answers */
.qa { padding: 1.5rem 0 0.5rem; border-top: 1px solid var(--rule); }
.qa:last-child { border-bottom: 1px solid var(--rule); padding-bottom: 1.25rem; }
.page-body .qa h3 { margin: 0 0 0.6rem; }
.qa p:last-child { margin-bottom: 0.75rem; }

/* Accessibility lists */
.checks { padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 1.6rem; }
.checks li + li { margin-top: 0.75rem; }
.checks li::before { top: 0.8em; }

/* Privacy */
.policy-lead { font-size: var(--text-l); line-height: 1.55; }

/* ------------------------------------------------------------------------------------------
   The data page
   ------------------------------------------------------------------------------------------ */
.toc { max-width: 56rem; margin: 0 auto clamp(3rem, 5vw, 4rem); }
.toc p { max-width: var(--measure); }
.toc ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin: 0; padding: 0; list-style: none; font-size: var(--text-m); }
.toc li + li { margin-top: 0; }

.data-section { max-width: 56rem; margin: 0 auto; }
.data-section + .data-section { margin-top: clamp(4rem, 7vw, 5.5rem); }
.data-section > h2 { margin: 0 0 1.5rem; }
.data-section > p, .data-section > ul, .data-section > blockquote, .data-section > .ack { max-width: var(--measure); }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 2.5rem;
  padding: 1.75rem 0 1rem;
  border-top: 1px solid var(--rule);
}
.product h3 { margin: 0; font-size: var(--step1); }
.product--thumb { grid-template-areas: "head" "thumb" "spec"; }
.product--thumb h3 { grid-area: head; }
.product--thumb .thumb { grid-area: thumb; max-width: 22rem; }
.product--thumb .spec { grid-area: spec; }
@media (min-width: 52rem) {
  .product--thumb {
    grid-template-columns: minmax(0, 1fr) 17rem;
    grid-template-areas: "head thumb" "spec thumb";
    grid-template-rows: auto 1fr;
    align-items: start;
  }
}
.thumb .plate { padding: 0.9rem; }
.thumb img { width: 100%; margin-bottom: 0.75rem; }
.thumb .label { text-align: center; margin-bottom: 0.6rem; font-size: var(--text-xs); }
.thumb .scale { font-size: var(--text-2xs); --bar: 5px; column-gap: 0.5rem; }
.thumb figcaption { margin-top: 0.6rem; font-size: var(--text-s); line-height: 1.5; color: var(--muted); }

.spec { margin: 0; }
.spec > div { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.spec > div:last-child { border-bottom: 0; }
.spec dt {
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec dd { margin: 0.15rem 0 0; font-size: var(--text-m); }
@media (min-width: 40rem) {
  .spec > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.25rem; }
  .spec dt { padding-top: 0.2rem; }
  .spec dd { margin: 0; }
}

.beams { width: 100%; max-width: 32rem; margin: 0.75rem 0 0.25rem; border-collapse: collapse; font-size: var(--text-m); }
.beams caption { text-align: left; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-bottom: 0.4rem; }
.beams th, .beams td { padding: 0.4rem 0.75rem 0.4rem 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; vertical-align: top; }
.beams thead th { font-size: var(--text-s); color: var(--muted); font-weight: 600; }
.beams td, .beams tbody th { font-family: var(--mono); font-size: var(--text-s); font-variant-numeric: tabular-nums; }
.beams td.unit { font-family: var(--sans); font-size: var(--text-s); color: var(--muted); }

.ack { margin: 0 0 1.75rem; }
.ack-name { margin: 0 0 0.4rem; font-weight: 600; }
blockquote {
  margin: 0;
  padding: 0.1rem 0 0.1rem 1.25rem;
  border-left: 3px solid var(--rule);
  font-family: var(--serif);
  font-size: var(--text-base);
  line-height: 1.6;
}
blockquote p { margin: 0; }

.page-body h3.kicker { font-size: var(--text-xs); }
.page-body h3.sources-group { margin: 1.75rem 0 0.75rem; }
.sources { padding: 0; list-style: none; }
.sources li { padding-left: 1.25rem; text-indent: -1.25rem; font-size: var(--text-m); }
.sources li + li { margin-top: 0.6rem; }

/* ------------------------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--text-m);
  line-height: 1.6;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 52rem) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 4rem; }
  .footer-links ul { justify-content: flex-end; }
}
.site-footer p { margin: 0 0 0.5rem; max-width: 40rem; }
.footer-made { color: var(--fg); font-family: var(--serif); font-size: var(--text-base); }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 0; }
.copyright { grid-column: 1 / -1; font-family: var(--mono); font-size: var(--text-s); }
.site-footer .copyright { margin: 0; }

/* ------------------------------------------------------------------------------------------
   Not found
   ------------------------------------------------------------------------------------------ */
.notfound { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.notfound .inner { width: min(36rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.notfound h1 { margin-bottom: 1.25rem; }
.notfound p { color: var(--sky-fg); }
.notfound .links { margin-top: 2rem; }

/* ------------------------------------------------------------------------------------------
   Motion and print
   ------------------------------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .site-header, .skip, .actions, .footer-links { display: none; }
}
