/* ==========================================================================
   ANNEAL — tokens, reset, primitives, shell.

   The design is a materials datasheet: a warm near-black ground, bone ink,
   hairline rules, tabular figures, and a palette taken from the temper scale
   (the oxide colours steel shows at known temperatures). The two sibling
   rebrands of the same reference went dark-oceanic and light-warm-paper; this
   one is deliberately neither, so the three cannot read as one template.

   Warm near-black is the whole trick. A blue-black would land on top of the
   oceanic sibling; #100D0B has red in it, which is what makes the ember accent
   look like heat rather than a highlight colour.

   Accent tokens are overwritten at boot from js/brand.js. The values here are
   the fallback for the frames before the module runs, and they are the only
   place in the codebase those hexes may appear.
   ========================================================================== */

:root {
  /* --- Ground. Four steps, all warm. --card and --ground-3 are the lightest
     surfaces text ever sits on, so they are the worst case for every ink. */
  --ground:       #100D0B;
  --ground-2:     #16120F;
  --ground-3:     #1C1815;
  --card:         #191512;

  /* --- Ink. Every step clears WCAG AA (4.5:1) against ALL FOUR grounds; the
     binding case is --ground-3. Measured, not chosen — run
     `node tools/contrast.mjs`, which reads these very declarations and exits
     non-zero on a failure. --faint is real text (table headers, field labels,
     figure captions), not decoration, which is exactly the step a sibling
     site got wrong at 2.6:1. There is no room for a fifth step. */
  --ink:          #F4EEE7;
  --ink-2:        #CBC1B6;
  --ink-3:        #A99D92;
  --faint:        #8C8177;

  /* Handed to canvas as literal hex — a canvas cannot read a CSS variable. */
  --ground-rgbhex: #100D0B;

  /* --- The temper scale (see js/brand.js). Overwritten at boot. */
  --ember:        #F26419;
  --straw:        #E8B44A;
  --temper:       #7A7BD0;
  --quench:       #6FBBD2;

  /* --- Rules. A datasheet is mostly hairlines, so there are three weights and
     they are used consistently: --line for panel edges, --line-2 for table
     rows, --line-3 for anything a reader is meant to notice. */
  --line:         rgba(244, 238, 231, .10);
  --line-2:       rgba(244, 238, 231, .16);
  --line-3:       rgba(244, 238, 231, .28);

  --radius:       12px;
  --radius-sm:    7px;
  --radius-lg:    18px;

  /* Shadows on a ground this dark do almost nothing; the depth comes from a
     1px top highlight on panels instead (see .panel). These stay for the few
     elements that genuinely float. */
  --shadow:       0 18px 40px -28px rgba(0, 0, 0, .9);
  --shadow-lg:    0 40px 90px -50px rgba(0, 0, 0, 1);

  --wrap:         1200px;
  --nav-h:        66px;

  /* Archivo is the stamped display face, Barlow the signage-derived text face,
     Azeret Mono the datasheet numerics. None of the three appears on either
     sibling site — the type is part of not being the same template. */
  --display: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans:    'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  --mono:    'Azeret Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 22px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* The mill scale. One very low-alpha repeating gradient pair, no image asset.
   Without it the flat fills read as CSS; with it they read as a surface.
   color-mix against the tokens rather than rgba() literals of the same
   colours — a literal here is a value that would silently not follow a
   rebrand, and validate.mjs would not catch it because it is not an accent. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
  background:
    repeating-linear-gradient(
      104deg,
      transparent 0 3px,
      color-mix(in srgb, var(--ink) 1.6%, transparent) 3px 4px
    ),
    radial-gradient(
      120% 80% at 50% -10%,
      color-mix(in srgb, var(--ember) 5%, transparent) 0%,
      transparent 62%
    );
}
body > * { position: relative; z-index: 1; }

/* Scroll-reveal, scoped to .js so the page is fully visible without
   JavaScript. The class is set by an inline script in <head> BEFORE any
   stylesheet — without that, ~40 elements start at opacity 0 and a reader
   with JS blocked, or one module error, gets a blank page. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
@media print {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.95rem, 3.7vw, 2.85rem); }
h3 { font-size: 1.24rem; letter-spacing: -.02em; line-height: 1.25; }
h4 { font-size: 1.02rem; letter-spacing: -.012em; }

p { margin: 0 0 1.05em; color: var(--ink-2); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}

/* Datasheet numerals: tabular, so columns of figures line up, and slightly
   tightened because Azeret is wide. Any number a reader might compare to
   another number gets this. */
.num, .fig, td.num, .spec-v {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  letter-spacing: -.03em;
}

/* The section index. A datasheet numbers its clauses, so every section
   eyebrow carries one — it is set from the markup, not generated, so the
   printed order and the DOM order cannot disagree. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .69rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: attr(data-index);
  color: var(--ember);
  border: 1px solid color-mix(in srgb, var(--ember) 40%, transparent);
  border-radius: 3px;
  padding: 1px 5px 0;
  font-size: .66rem;
  letter-spacing: .06em;
}
.eyebrow:not([data-index])::before { display: none; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 26px;
}

.section { padding: clamp(64px, 9vw, 118px) 0; position: relative; }
.section.alt { background: var(--ground-2); }
.section.alt::before,
.section.alt::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.section.alt::before { top: 0; }
.section.alt::after { bottom: 0; }

.section-head { max-width: 720px; margin-bottom: clamp(34px, 4.4vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.section-head h2 + .lede { margin-top: 18px; }

/* Grid containers need min-width: 0 or a wide descendant (a table inside an
   overflow-x wrapper, a long mono string) sets a content-based minimum, blows
   the track out and the symptom shows up on some innocent element three
   columns away. Every known layout container is capped here; any new grid
   needs the same. */
.grid, .cards, .rails, .bento, .steps, .split, .footer-top, .ba, .how, .route-stages { min-width: 0; }
.grid > *, .cards > *, .rails > *, .bento > *, .steps > *, .split > *,
.footer-top > *, .ba > *, .how > *, .route-stages > * { min-width: 0; }

.split {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Panels — the datasheet card.

   The depth is a 1px top highlight, not a shadow: on a ground this dark a
   drop shadow is invisible, but a hairline of light along the top edge reads
   instantly as a raised surface.
   -------------------------------------------------------------------------- */

.panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--ink) 16%, transparent) 22%,
    color-mix(in srgb, var(--ink) 16%, transparent) 78%,
    transparent
  );
}
.panel.flush { padding: 0; overflow: hidden; }

/* Corner ticks — the registration marks on a drawing. Decorative, but they
   are what make a plain rectangle read as a technical document. */
.panel.ticked { --tick: 9px; }
.panel.ticked::after {
  content: '';
  position: absolute;
  inset: 9px;
  pointer-events: none;
  border-radius: 3px;
  background:
    linear-gradient(var(--line-3) 0 0) 0 0 / 1px var(--tick) no-repeat,
    linear-gradient(var(--line-3) 0 0) 0 0 / var(--tick) 1px no-repeat,
    linear-gradient(var(--line-3) 0 0) 100% 0 / 1px var(--tick) no-repeat,
    linear-gradient(var(--line-3) 0 0) 100% 0 / var(--tick) 1px no-repeat,
    linear-gradient(var(--line-3) 0 0) 0 100% / 1px var(--tick) no-repeat,
    linear-gradient(var(--line-3) 0 0) 0 100% / var(--tick) 1px no-repeat,
    linear-gradient(var(--line-3) 0 0) 100% 100% / 1px var(--tick) no-repeat,
    linear-gradient(var(--line-3) 0 0) 100% 100% / var(--tick) 1px no-repeat;
}

/* --------------------------------------------------------------------------
   Spec list — label left, value right, dotted leader between. The single most
   datasheet-looking primitive on the site, and it carries most of the numbers.
   -------------------------------------------------------------------------- */

.spec { margin: 0; display: grid; gap: 0; }
.spec > div {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr minmax(0, auto);
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.spec > div:last-child { border-bottom: 0; }
.spec dt, .spec-k {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0;
}
.spec .leader {
  border-bottom: 1px dotted var(--line-2);
  transform: translateY(-4px);
  min-width: 12px;
}
.spec dd, .spec-v {
  margin: 0;
  font-family: var(--mono);
  font-size: .87rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  color: var(--ink);
  text-align: right;
}
.spec-v.accent { color: var(--ember); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ember);
  color: #14100D;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ember) 45%, transparent);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--ember) 88%, #FFF);
  box-shadow: 0 0 26px -6px color-mix(in srgb, var(--ember) 60%, transparent);
}

.btn-ghost {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--line-3); background: color-mix(in srgb, var(--ink) 9%, transparent); }

.btn-sm { height: 37px; padding: 0 15px; font-size: .87rem; }

/* Square icon affordance, sized to match .btn-sm so the header row is even.
   Deliberately not a .btn: the max-width:1000px rule hides .btn inside
   .header-actions, and this should survive to mobile beside the burger. */
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--ink-3);
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.icon-link:hover {
  color: var(--ink);
  border-color: var(--line-3);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}
.icon-link svg { display: block; }

/* Text link with a rule that grows from the left on hover. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ember);
  text-decoration: none;
  font-weight: 600;
  font-size: .93rem;
}
.link .arrow { transition: transform .18s ease; }
.link:hover .arrow { transform: translateX(3px); }

:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 2px solid var(--quench);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Pills & tags
   -------------------------------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--straw);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--straw) 18%, transparent);
}

/* Uppercase label chip. Named .stamp rather than .tag on purpose: a sibling
   site had a scratch page collide with a generic .tag class. */
.stamp {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stamp.ember  { color: var(--ember);  border-color: color-mix(in srgb, var(--ember) 36%, transparent);  background: color-mix(in srgb, var(--ember) 8%, transparent); }
.stamp.straw  { color: var(--straw);  border-color: color-mix(in srgb, var(--straw) 36%, transparent);  background: color-mix(in srgb, var(--straw) 8%, transparent); }
.stamp.temper { color: var(--temper); border-color: color-mix(in srgb, var(--temper) 40%, transparent); background: color-mix(in srgb, var(--temper) 9%, transparent); }
.stamp.quench { color: var(--quench); border-color: color-mix(in srgb, var(--quench) 36%, transparent); background: color-mix(in srgb, var(--quench) 8%, transparent); }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .9rem;
}
table.data th {
  text-align: left;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
table.data td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { color: var(--ink); font-weight: 500; }
table.data td.num { text-align: right; color: var(--ink); }

/* Base rule FIRST, media query after — a media query adds no specificity, so
   a `display: flex` written above an unconditional `display: none` loses at
   every width and the affordance never renders anywhere. That exact bug
   shipped on a sibling site. */
.scroll-hint {
  display: none;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
@media (max-width: 760px) { .scroll-hint { display: flex; } }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--ground) 78%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 22px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: .04em;
  flex: none;
}
.brand .mark { width: 26px; height: 26px; flex: none; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-left: 22px;
  border-left: 1px solid var(--line-2);
  height: 26px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink-3);
  font-size: .91rem;
  font-weight: 500;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
/* The active marker is NOT in the markup — main.js reads <body data-page> and
   sets aria-current. That is what lets the shell blocks be compared byte for
   byte across all seven files. */
.nav a[aria-current='page'] { color: var(--ink); }
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  margin-top: 26px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--ember);
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}
.burger svg { display: block; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .header-actions .btn { display: none; }
  .burger { display: inline-flex; }
  /* The icon sits beside the burger at this width, so it takes the burger's
     40px rather than the .btn-sm 37px it matches on desktop — a 3px mismatch
     between two adjacent squares is the kind of thing that reads as sloppy
     without being nameable. */
  .icon-link { width: 40px; height: 40px; }
  .header-actions { margin-left: auto; }
}

/* Mobile sheet.

   `display: flex` from an author stylesheet BEATS the UA stylesheet's
   [hidden] { display: none }, so without the explicit rule below the sheet is
   permanently open on every page under 1000px — invisible on desktop, total
   on a phone. It shipped that way on a sibling site. */
.mobile-sheet {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 26px 40px;
  background: var(--ground);
  border-top: 1px solid var(--line);
  overflow-y: auto;
}
.mobile-sheet[hidden] { display: none; }
.mobile-sheet a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.mobile-sheet a .idx {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--faint);
}
.mobile-sheet .btn { margin-top: 22px; height: 48px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ground-2);
  padding: clamp(48px, 6vw, 76px) 0 34px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand p { color: var(--ink-3); font-size: .93rem; max-width: 38ch; margin-top: 14px; }
.footer-col h2 {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--ink-3); text-decoration: none; font-size: .93rem; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 26px;
}
.footer-bottom .copy { color: var(--faint); font-size: .84rem; }
.footer-bottom .socials { display: flex; gap: 8px; margin-left: auto; }
.socials a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--ink-3);
}
.socials a:hover { color: var(--ink); border-color: var(--line-3); }

/* The demo disclosure. This is the one line on the page that most needs to be
   readable, so it uses --ink-3 rather than --faint. */
.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--straw) 26%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--straw) 5%, transparent);
  color: var(--ink-3);
  font-size: .86rem;
  line-height: 1.55;
}
.demo-note strong { color: var(--straw); font-weight: 600; }

/* The palette strip: the four accents with the temperature each one is the
   colour of. It is generated from brand.js, so it cannot disagree with the
   tokens it is illustrating. */
.temper-strip {
  display: flex;
  gap: 0;
  margin-top: 22px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  /* Load-bearing. Without it the nowrap labels below set a content-based
     minimum on this flex row, that minimum widens the footer grid track, and
     the whole PAGE scrolls sideways — measured at 579px against a 500px
     viewport. The symptom showed up on .footer-brand, three levels away from
     the cause. */
  min-width: 0;
}
.temper-strip .sw { flex: 1 1 0; padding: 9px 10px 8px; min-width: 0; }
.temper-strip .sw b { display: block; height: 4px; border-radius: 2px; margin-bottom: 8px; }
/* Name and temperature stack rather than sharing a line: at four swatches
   across a footer column there is not room for "Incandescent · 1180°C" and
   the ellipsis ate the number, which is the half that explains the colour. */
.temper-strip .sw span,
.temper-strip .sw em {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: .58rem;
  letter-spacing: .04em;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.temper-strip .sw em { color: var(--ink-3); margin-top: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ember);
  color: #14100D;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }
