/*
 * Shared chrome for every page on mathazel.com: reset, type, the header navbar,
 * the logo, page layout and the footer.
 *
 * The hero additionally loads hero.css, which holds the centred field hero, the
 * before/after scroll flow and the proof strip - things only it has.
 *
 * Breakpoints follow Tailwind's: sm 640, md 768, lg 1024, all min-width.
 *
 * Every colour is a token. There is one paper, one panel and one ink, and every
 * other colour is an opacity of one of them. That rule is what keeps six pages,
 * a canvas hero and a dark footer reading as one surface - a literal rgba dropped
 * into a rule is how that drifts.
 *
 * The token values here are not free choices. They are the measured palette of the
 * reference language, and every one of them also appears in src/client/index.css so
 * the marketing site and the app are one product. Shared values are written as the
 * identical hex string in both files, on purpose, so a diff of the two token blocks
 * is meaningful. Change one and you have to change the other.
 */

/*
 * One face, self-hosted, one file.
 *
 * This replaces a stylesheet fetched from db.onlinewebfonts.com on every page load
 * of a site that is otherwise entirely first-party - a third party who could change
 * the face, or stop serving it, under a research instrument that has to render
 * identically for every participant.
 *
 * The path is ABSOLUTE and points into public/, not into this folder. public/ is
 * Vite's publicDir and is copied verbatim into dist/client, so /fonts/... answers
 * for this site and for the React app from one URL and one cache entry. A relative
 * url() would work here and be unreachable from the app.
 *
 * Note that absolutise() in vite.config.ts rewrites href/src in HTML only and never
 * touches a url() in a stylesheet - so this string is shipped exactly as written and
 * nothing in the build will correct it. The <link rel="preload"> in every <head> is
 * what puts it under check-links.mjs, which is the only reason a typo here fails the
 * build instead of silently rendering the whole site in Arial.
 */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/*
 * Inter carries body copy, Archivo carries display. Two faces rather than one,
 * because Archivo's tight display fit is exactly wrong at 16px and Inter's even
 * texture is exactly wrong at 90px.
 */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ------------------------------------------------------------ surfaces */
  /* A deeper light: the ground sits off white so the page is not glarey, and
     the panel is one clear step down from it. */
  --paper: #edeff3;
  --panel: #e2e6ec;
  --ink: #0a1124;

  /* ------------------------------------------------- ink, measured on paper
       #3d475e  8.07:1  body text
       #5a6377  5.23:1  secondary text
       #8b93a3  2.68:1  rules and icons. NEVER text. */
  --ink-72: #3d475e;
  --ink-62: #5a6377;
  --ink-40: #8b93a3;

  --hairline: rgba(10, 17, 36, 0.14);

  /* ------------------------------------------------------------- the blue
     Two values, and the split is a contrast one rather than a taste one.
     --accent is the brand blue and is what the eye reads as the colour of the
     product, but on this ground it measures 2.60:1, so it can fill a shape or
     draw a line and it cannot carry a word. --accent-deep is 5.01:1 on paper
     and takes white at 5.77:1, so every piece of blue TEXT and every filled
     button uses that one. */
  --accent: #339aef;
  --accent-deep: #1668b0;
  --accent-wash: #dce9f8;
  /* The pressed state of the filled button. */
  --accent-press: #12578f;
  --on-accent: #ffffff;

  /* --------------------------------------------------------- light on dark */
  --paper-60: rgba(237, 239, 243, 0.62);
  --paper-24: rgba(237, 239, 243, 0.24);
  --paper-06: rgba(237, 239, 243, 0.07);

  /* ------------------------------------------- the field's ramp, on paper
     The hero is a light section now, so the field draws pale-blue contours on
     the paper rather than a dark image. Mirrored as PALE/DEEP in field.js;
     a canvas cannot read a custom property, so the pair lives in two places on
     purpose and is commented at both ends. */
  --field-from: #edeff3;
  --field-to: #b9d4f2;

  /* ---------------------------------------------------------------- type */
  --face: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica,
    Arial, sans-serif;
  --face-display: "Archivo", var(--face);

  /* Display is set the way the reference sets it: weight 600, negative tracking,
     line-height below 1, sentence case. The tracking is what stops a 90px
     headline reading as gappy. */
  --t-display: clamp(2.75rem, 7vw, 5.625rem);
  --t-h1: clamp(2.25rem, 5vw, 4rem);
  --t-h2: clamp(2rem, 4.4vw, 3.5rem);
  --t-h3: clamp(1.5rem, 3vw, 2rem);
  --t-h4: clamp(1.25rem, 2.2vw, 1.5rem);
  --t-lede: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
  --t-body: 1rem;
  --t-micro: 0.75rem;

  --w-display: 600;
  --lh-display: 0.9;
  --lh-head: 1.05;
  --lh-body: 1.62;
  --lh-micro: 1.35;

  --track-display: -0.04em;
  --track-micro: 0.09em;

  /* --------------------------------------------------------- shape, motion */
  --r: 3px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.165, 0.84, 0.44, 1);
  --dur: 0.5s;

  /* ---------------------------------------------------------------- layout */
  --gutter: 22px;
  --section: clamp(5rem, 10vw, 9rem);
  --shell: 76rem;
  --measure: 46rem;
}


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

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[class],
ol[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

html,
body {
  font-family: var(--face);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink);
}

body {
  min-height: 100%;
  background-color: var(--paper);
}


a {
  color: inherit;
}

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

.icon {
  flex: none;
}

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


/* ============================================================ the floating bar */
/*
 * Inset from every viewport edge rather than spanning the top. Over the hero it is
 * translucent and light; past the hero ui.js adds .is-scrolled and it flips to
 * ink-on-paper. The two states share a geometry so only colour animates.
 */
.bar {
  position: fixed;
  inset: var(--gutter) var(--gutter) auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  background: rgba(237, 239, 243, 0.82);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  color: var(--ink);
  transition: all var(--dur) var(--ease);
}


.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: inherit;
  text-decoration: none;
  transition: opacity var(--dur) var(--ease);
}

.logo:hover { opacity: 0.7; }

.logo__mark { flex: none; border-radius: var(--r); }

.logo__word {
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
}

.menu {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  cursor: pointer;
}

/*
 * A real element, not a bullet glyph. Glyph metrics differ across the fallback face
 * while the webfont is swapping, and the dot would visibly jump.
 */
.menu__dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: var(--r-pill);
  background: currentColor;
  transition: transform var(--dur) var(--ease);
}

.menu[aria-expanded="true"] .menu__dot { transform: scale(1.7); }

/* ------------------------------------------------------------- the nav panel */
.nav-panel {
  position: absolute;
  inset: calc(100% + 8px) 0 auto;
  padding: 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  transform: translateY(-6px);
  /*
   * visibility on its own line, delayed, so a closed panel is genuinely
   * non-focusable rather than merely invisible. This is behaviour, not decoration.
   */
  visibility: hidden;
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility 0s linear var(--dur);
}

.nav-panel.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

.nav-panel__links { display: grid; gap: 0.25rem; }

.nav-panel__link {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: var(--lh-head);
  text-decoration: none;
  color: var(--ink);
  transition: opacity var(--dur) var(--ease);
}

.nav-panel__link:hover { opacity: 0.6; }
.nav-panel__link[aria-current="page"] { color: var(--ink-62); }

.nav-panel__foot {
  margin-top: 1.5rem;
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--ink-72);
}

/* ================================================================== eyebrow */
/* A dot and a small uppercase label. The one label style on the site. */
.eyebrow {
  display: inline-flex;
  /* flex-start, not center: a label that wraps keeps its dot on the first line. */
  align-items: flex-start;
  gap: 0.55rem;
  font-size: var(--t-micro);
  line-height: var(--lh-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--ink-72);
}

/*
 * The dot is a ::before with a background, not a bullet character. A glyph's
 * metrics differ across the fallback face while the webfont is swapping and the
 * dot would visibly jump; a coloured box cannot.
 */
.eyebrow::before {
  content: "";
  margin-top: 0.32em;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: var(--r-pill);
  background: currentColor;
}

.eyebrow--light { color: var(--paper-60); }

/* ================================================================= sections */
.section { padding: var(--section) var(--gutter); }
.section--panel { background: var(--panel); }
.section__inner { max-width: var(--shell); margin: 0 auto; }

.section__title {
  max-width: 20ch;
  margin: 0 auto;
  text-align: center;
  font-family: var(--face-display);
  font-size: var(--t-h2);
  font-weight: var(--w-display);
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  color: var(--ink);
  /* A centred three-word orphan under a 96px uppercase title is the single most
     visible failure mode of this layout. */
  text-wrap: balance;
}

/* ------------------------------------------- the asymmetric editorial column */
/*
 * Deliberately not 1fr 1fr. The left column holds a three-word label and the right
 * holds a paragraph; equal columns would leave the left one nine tenths empty and
 * read as a mistake rather than as a margin.
 */
.cols {
  display: grid;
  gap: 2rem;
  max-width: var(--shell);
  margin: clamp(3rem, 6vw, 6rem) auto 0;
}

@media (min-width: 900px) {
  .cols {
    grid-template-columns: minmax(10rem, 0.42fr) minmax(0, 1fr);
    gap: clamp(3rem, 8vw, 9rem);
  }
}

.cols__head {
  max-width: 24ch;
  font-family: var(--face-display);
  font-size: var(--t-h3);
  font-weight: var(--w-display);
  line-height: var(--lh-head);
  letter-spacing: -0.025em;
  color: var(--ink);
}

.cols__body {
  margin-top: 1.25rem;
  max-width: 52ch;
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--ink-72);
}

.cols__body > * + * { margin-top: 1.25rem; }
.cols__body a { color: var(--accent-deep); font-weight: 500; }

/* ==================================================================== figure */
.figure { margin: clamp(3rem, 6vw, 6rem) 0 0; }

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r);
  background: var(--paper);
}

.figure__cap {
  margin-top: 0.875rem;
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--ink-72);
}

.figure--pair { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .figure--pair { grid-template-columns: 1fr 1fr; } }

/* ===================================================================== stats */
/*
 * A hairline per cell rather than a 1px grid gap over a dark background. Five items
 * in a three-column grid leaves an empty sixth cell that fills with rule colour and
 * renders as a grey slab; a border-top stops where the list stops.
 */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 clamp(2rem, 6vw, 6rem);
  margin: clamp(3rem, 6vw, 6rem) 0 0;
}

@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat {
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--hairline);
}

.stat__n {
  font-family: var(--face-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  /* The one place the site leaves weight 400. Still one typeface - this is
     Archivo's wght axis - and it is what makes a 7rem numeral read as light
     rather than as a slab. */
  font-weight: var(--w-display);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}

.stat__unit {
  font-size: 0.22em;
  font-weight: 400;
  line-height: 1;
  vertical-align: super;
  margin-left: 0.28em;
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--ink-72);
}

.stat__cap {
  margin-top: 1rem;
  font-size: var(--t-micro);
  line-height: var(--lh-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--ink-72);
}

/* =================================================================== diagram */
.diagram {
  position: relative;
  margin: clamp(3rem, 6vw, 6rem) 0 0;
  padding: clamp(1.5rem, 4vw, 4rem);
  border-radius: var(--r);
  background: var(--panel);
  color: var(--ink);
}

.diagram svg { display: block; width: 100%; height: auto; }

.diagram__chip {
  position: absolute;
  right: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  background: var(--paper);
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--ink-72);
}

@media (max-width: 639px) {
  /* At 360px the chip would land on top of the diagram's lowest arrow. */
  .diagram__chip { position: static; display: block; margin-top: 1rem; }
}

/* ======================================================================= cta */
/*
 * The filled blue button. --accent-deep rather than --accent, because white on
 * the brand blue is 3.00:1 and on this one it is 5.77:1 - the button is the one
 * place the blue has to carry a word.
 */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--accent-deep);
  border-radius: var(--r);
  background: var(--accent-deep);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  color: var(--on-accent);
  transition: all var(--dur) var(--ease);
}

.cta:hover { background: var(--accent-press); border-color: var(--accent-press); }
.cta .icon { transition: transform var(--dur) var(--ease); }
.cta:hover .icon { transform: translateX(3px); }

/* The quiet variant, for a second action next to the blue one. */
.cta--ghost {
  background: transparent;
  border-color: var(--hairline);
  color: var(--ink);
}

.cta--ghost:hover { background: var(--panel); border-color: var(--ink-40); }

/* ==================================================================== footer */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding: var(--section) var(--gutter) var(--gutter);
}

.foot__top {
  display: grid;
  gap: 3rem;
  max-width: var(--shell);
  margin: 0 auto;
}

@media (min-width: 900px) {
  .foot__top { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

.foot__word {
  font-family: var(--face-display);
  font-size: clamp(3rem, 13vw, 10rem);
  font-weight: var(--w-display);
  /* Below 1.0 on purpose: a 176px wordmark should not carry 176px of leading it
     never uses. Archivo's caps do not descend, so nothing is clipped. */
  line-height: 0.85;
  letter-spacing: -0.045em;
  color: var(--paper);
}

.foot__links { display: grid; gap: 0.6rem; justify-items: start; }
@media (min-width: 900px) { .foot__links { justify-items: end; } }

.foot__links a {
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  text-decoration: none;
  /* .60 on ink is 6.15:1. Never --paper-24 for text: that is 2.18:1 and it is a
     border token, which is the one mistake this palette invites. */
  color: var(--paper-60);
  transition: color var(--dur) var(--ease);
}

.foot__links a:hover { color: var(--paper); }

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  max-width: var(--shell);
  margin: clamp(3rem, 6vw, 6rem) auto 0;
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  background: var(--paper-06);
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--paper-60);
}

.foot__bar a { color: inherit; }
.foot__bar a:hover { color: var(--paper); }

/* ============================================================== word reveal */
/*
 * Nothing is hidden until ui.js has split the words - the hiding rule is scoped to
 * .is-split, which only that code adds. With JS off the page renders plainly rather
 * than blank, and there is no flash of hidden text to un-hide.
 */
[data-reveal].is-split .word { display: inline-block; }

[data-reveal].is-split .word__in {
  display: inline-block;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  transition-delay: calc(var(--i) * 40ms);
}

[data-reveal].is-split.is-in .word__in { opacity: 1; }

/* ============================================================= content pages */
/*
 * The five pages that are prose. They load this file and not hero.css, which is why
 * every component above lives here rather than there.
 */
.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: calc(var(--gutter) * 6) var(--gutter) var(--section);
}

.page--wide { max-width: var(--shell); }

.page__title {
  margin-top: 1rem;
  font-family: var(--face-display);
  font-size: var(--t-h1);
  font-weight: var(--w-display);
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  color: var(--ink);
  text-wrap: balance;
}

.page__lede {
  margin-top: 1.5rem;
  font-size: var(--t-lede);
  line-height: var(--lh-body);
  color: var(--ink-72);
}

.prose { margin-top: clamp(2.5rem, 5vw, 4rem); }
.prose > * + * { margin-top: 1.25rem; }

.prose h2 {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--face-display);
  font-size: var(--t-h3);
  font-weight: var(--w-display);
  line-height: var(--lh-head);
  letter-spacing: -0.025em;
  color: var(--ink);
}

.prose h3 {
  margin-top: 2rem;
  font-family: var(--face-display);
  font-size: var(--t-h4);
  font-weight: var(--w-display);
  line-height: var(--lh-head);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.prose p,
.prose li {
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--ink-72);
}

.prose a { color: var(--accent-deep); font-weight: 500; }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose ul li::marker { color: var(--ink-40); }

/* A quiet block for an aside, a worked equation or a contact card. */
.panel {
  margin-top: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  background: var(--panel);
}

.eq {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 1px solid var(--hairline);
  border-radius: var(--r);
  background: var(--panel);
  font-variant-numeric: tabular-nums;
  font-size: var(--t-body);
  color: var(--ink-72);
}

/* ==================================================== the before/after split */
/*
 * Both sides get identical geometry. The claim is that these are the same size of
 * problem, and unequal boxes would undercut it before a word is read.
 *
 * The material distinction is what survived the glass card: the routine side is
 * --panel, an opaque closed box printed flat on the paper, and the task side is the
 * paper itself, the side that lets the ground through. Before is closed; after is
 * not.
 */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: clamp(3rem, 6vw, 6rem);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  background: var(--hairline);
  overflow: hidden;
}

@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.split__side { padding: clamp(1.5rem, 3vw, 2.75rem); }
.split__side--routine { background: var(--panel); }
.split__side--task { background: var(--paper); }

.split__label {
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--ink-72);
}

.split__text {
  margin-top: 1rem;
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--ink);
}

/* ============================================================ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    /*
     * The clamp used to stop at duration, which does not neutralise a staggered
     * reveal - it completes each word instantly but still one after another, a 40ms
     * staccato, which is exactly the effect the preference exists to avoid.
     */
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* A page that is one screen of content centres itself rather than sitting at the
   top of a tall empty column. */
.page--screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
}

.panel__title {
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--ink-72);
}

.panel__body {
  margin-top: 1rem;
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--ink);
}

.panel__body > * + * { margin-top: 1rem; }
.panel__body a { color: var(--ink); }

/* ======================================================= the visible section nav */
.bar__links {
  display: none;
  gap: 0.25rem;
}

.bar__link {
  padding: 0.45rem 0.7rem;
  border-radius: var(--r);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-72);
  transition: all var(--dur) var(--ease);
}

.bar__link:hover { background: var(--panel); color: var(--ink); }

/* The current section reads as a held chip, the way the reference marks its page. */
.bar__link[aria-current="page"] { background: var(--panel); color: var(--ink); }

.bar__act { display: none; align-items: center; gap: 0.875rem; }

.bar__quiet {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-72);
  transition: color var(--dur) var(--ease);
}

.bar__quiet:hover { color: var(--ink); }

.cta--sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.875rem;
  gap: 0.45rem;
}

@media (min-width: 900px) {
  /* The links carry the site above this width, so the Menu button has no job. */
  .bar__links,
  .bar__act { display: flex; }
  .menu { display: none; }
}

.section__lede {
  max-width: 44rem;
  margin: 1.25rem auto 0;
  text-align: center;
  font-size: var(--t-lede);
  line-height: var(--lh-body);
  color: var(--ink-62);
}

/* ================================================================== the live plot */
/* Lives here rather than in hero.css: the figure is on /exemplars/, and the content
   pages load only this file. */
.library__live {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  background: var(--paper);
}

.library__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--ink-62);
}

.library__title { color: var(--ink); }

.plot { display: block; width: 100%; height: auto; margin-top: 1.25rem; }

.plot__axis { stroke: var(--ink-40); stroke-width: 0.8; }
.plot__peak { stroke: var(--ink-40); stroke-width: 0.6; stroke-dasharray: 2 3; }
.plot__curve { stroke: var(--accent-deep); stroke-width: 1.6; fill: none; }
.plot__dropline { stroke: var(--ink-62); stroke-width: 0.8; stroke-dasharray: 2 3; }
.plot__marker { fill: var(--accent-deep); }

.plot__caption,
.slider__label {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--ink-62);
  font-variant-numeric: tabular-nums;
}

.plot__readout { color: var(--ink); }

.slider {
  width: 100%;
  margin-top: 1rem;
  accent-color: var(--accent-deep);
}
