@charset "utf-8";

/* =============================================================================
   Wayfold — case study
   Visual mode: "Map-led editorial field notebook" (PROJECT_BRIEF.md).

   This stylesheet belongs to Wayfold alone. The page is built as a numbered
   route: one cobalt line runs from the masthead to the colophon and every
   section is a lettered stop pinned to it. Fraunces appears only at the
   stops and in the marginalia; Plus Jakarta Sans carries everything else.
   No CDN, no framework, no shared portfolio shell beyond the top nav bar.
   ========================================================================== */

/* ---- Fonts (self-hosted, SIL OFL, see assets/fonts/LICENSE-*.txt) -------- */
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/fraunces-latin-wght-italic.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('assets/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('assets/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
}
/* Real italics, not synthesised obliques: the faux slant eats the space after
   an emphasised run, which closes up "Downloaded chip" into one word. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url('assets/fonts/plus-jakarta-sans-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-display: swap;
  font-weight: 600;
  src: url('assets/fonts/plus-jakarta-sans-latin-600-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('assets/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('assets/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
}

/* ---- Tokens -------------------------------------------------------------
   Base five are the product palette (TOKENS.json). The two "-ink" values are
   the derived AA fills the Gate C repair introduced (§ Field checks); they are
   used here for the same reason they exist there — vermilion and sage do not
   reach 4.5:1 as text on paper, their derivatives do.                        */
:root {
  --paper: #f3efe6;
  --paper-50: #fbf9f4;
  --paper-200: #eae4d6;
  --paper-300: #ded6c3;
  --ink: #1e2421;
  --ink-600: #3a423d;
  /* Meta grey, chosen at 4.78:1 on paper so the small uppercase labels it sets
     clear AA as normal text. The lighter #6B726B only reached 4.31:1. */
  --ink-400: #646b64;
  --rule: rgba(30, 36, 33, 0.16);
  --rule-soft: rgba(30, 36, 33, 0.09);
  --cobalt: #2555d9;
  --cobalt-600: #1b41ae;
  --cobalt-tint: rgba(37, 85, 217, 0.08);
  --vermilion: #e65b45;
  --vermilion-ink: #be3e29;
  --sage: #8aa78a;
  --sage-ink: #4f6b50;
  --oxblood: #a32c1c;

  --ui: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces Variable', ui-serif, Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --rail: 88px;
  --gutter: 40px;
  --margin-col: 296px;
  --page: 1180px;
  --pad: 44px;
  --line-x: 43px; /* centre of the 2px route line inside the rail */
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  /* Plotted field paper. Two hairline grids at 28px, well under any text
     contrast threshold — texture, never a surface the type has to fight. */
  background-image:
    repeating-linear-gradient(0deg, rgba(30, 36, 33, 0.032) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(30, 36, 33, 0.032) 0 1px, transparent 1px 28px);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  overflow-x: hidden;
}

img,
video { max-width: 100%; }

figure { margin: 0; }

a {
  color: var(--cobalt-600);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:focus-visible,
:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

/* ---- Reusable editorial atoms ------------------------------------------- */
.overline {
  font-family: var(--ui);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin: 0;
}
.overline--cobalt { color: var(--cobalt-600); }

.lead {
  font-size: 21px;
  line-height: 1.5;
  font-weight: 500;
  margin: 0 0 22px;
}

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

.small {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-600);
}

b, strong { font-weight: 600; }

code, .mono { font-family: var(--mono); }

/* =========================================================================
   Global portfolio navigation — the ONLY element shared with other projects
   ========================================================================= */
.gnav {
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 249, 244, 0.82);
}
.gnav__in {
  max-width: var(--page);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.gnav__mark {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.gnav__here {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-600);
}
.gnav__here b {
  color: var(--cobalt-600);
  font-weight: 700;
}

/* =========================================================================
   Masthead — the notebook cover. Not a hero split: the title sits on open
   paper, the photograph is taped in above it, and the route line starts here.
   ========================================================================= */
.masthead {
  position: relative;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--pad) 8px;
  overflow: hidden;
}
.masthead__contours {
  position: absolute;
  inset: -60px -10% auto -10%;
  height: 620px;
  width: 120%;
  opacity: 0.5;
  pointer-events: none;
}
.masthead__top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: var(--gutter);
  align-items: start;
  padding-top: 54px;
}
.masthead__stamp {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt-600);
  margin: 0 0 26px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.masthead__stamp::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: var(--cobalt);
  opacity: 0.35;
}
.masthead h1 {
  font-family: var(--display);
  font-weight: 460;
  font-size: clamp(56px, 8.6vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0 0 6px;
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
}
.masthead__sub {
  font-family: var(--display);
  font-style: italic;
  font-weight: 380;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.3;
  color: var(--ink-600);
  margin: 0 0 26px;
  max-width: 20ch;
}
.masthead__line {
  font-size: 19px;
  line-height: 1.55;
  max-width: 46ch;
  margin: 0 0 30px;
}

/* The taped-in field photograph. */
.tapephoto {
  position: relative;
  margin-top: 8px;
  transform: rotate(-1.4deg);
}
.tapephoto img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(30, 36, 33, 0.08), 0 10px 26px rgba(30, 36, 33, 0.12);
}
.tapephoto::before,
.tapephoto::after {
  content: '';
  position: absolute;
  width: 92px;
  height: 26px;
  background: rgba(222, 214, 195, 0.86);
  border-left: 1px solid rgba(30, 36, 33, 0.06);
  border-right: 1px solid rgba(30, 36, 33, 0.06);
}
.tapephoto::before { top: -12px; left: -18px; transform: rotate(-7deg); }
.tapephoto::after { bottom: -11px; right: -20px; transform: rotate(-5deg); }
.tapephoto figcaption {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-600);
  margin-top: 16px;
  padding-left: 2px;
}

/* Fact strip under the masthead. */
.factstrip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px var(--gutter);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  margin-top: 40px;
  padding: 18px 0 20px;
}
.factstrip > div { min-width: 0; }
.factstrip dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 5px;
}
.factstrip dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

/* The route line leaves the masthead and enters the field. */
.masthead__start {
  position: relative;
  height: 64px;
  margin-top: 0;
}
.masthead__start::before {
  content: '';
  position: absolute;
  left: var(--line-x);
  top: 12px;
  bottom: 0;
  width: 2px;
  background: var(--cobalt);
}
.masthead__start::after {
  content: '';
  position: absolute;
  left: calc(var(--line-x) - 4px);
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--paper);
  border: 2px solid var(--cobalt);
}

/* =========================================================================
   The field — three columns: rail (route), body, margin (field notes)
   ========================================================================= */
.field {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--pad) 0;
}

.stop {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) minmax(0, var(--margin-col));
  column-gap: var(--gutter);
  padding: 8px 0 62px;
}
/* The route: one continuous 2px cobalt line stitched from per-section
   segments, so it can never out-run or fall short of the content. */
.stop::before {
  content: '';
  position: absolute;
  left: var(--line-x);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cobalt);
}
/* Edge-state stop: the route leaves the planned line, so its segment is drawn
   as a detour rather than as through-traffic. */
.stop--detour::before {
  background: none;
  width: 0;
  border-left: 2px dashed var(--cobalt);
}
/* Terminus — the route ends with a bar rather than being cut off. */
.stop--last::before { bottom: 74px; }
.stop--last::after {
  content: '';
  position: absolute;
  left: calc(var(--line-x) - 8px);
  bottom: 70px;
  width: 18px;
  height: 2px;
  background: var(--cobalt);
}

.stop__pin {
  position: relative;
  z-index: 1;
  grid-column: 1;
  justify-self: start;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--paper);
  border: 2px solid var(--cobalt);
  display: grid;
  place-items: center;
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cobalt-600);
  margin-left: calc(var(--line-x) - 22px);
  margin-top: 30px;
}
/* Tick from the pin into the text column. */
.stop__pin::after {
  content: '';
  position: absolute;
  left: 46px;
  top: 21px;
  width: var(--gutter);
  height: 2px;
  background: var(--cobalt);
  opacity: 0.55;
}
.stop--detour .stop__pin {
  border-style: dashed;
}

.stop__body {
  grid-column: 2;
  min-width: 0;
  padding-top: 24px;
}
.stop__margin {
  grid-column: 3;
  min-width: 0;
  padding-top: 34px;
}

.stop h2 {
  font-family: var(--display);
  font-weight: 480;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 6px 0 18px;
  max-width: 20ch;
}
.stop h3 {
  font-family: var(--ui);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.005em;
  margin: 34px 0 10px;
}
.stop h3:first-child { margin-top: 0; }

.stop__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt-600);
  margin: 0;
}

/* ---- Field notes (marginalia) ------------------------------------------- */
.note {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-600);
  border-left: 1px solid var(--sage);
  padding: 2px 0 2px 14px;
  margin: 0 0 26px;
}
.note b {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}
.note--flag { border-left-color: var(--vermilion); }

/* ---- Pull quote ---------------------------------------------------------- */
.pull {
  font-family: var(--display);
  font-weight: 420;
  font-size: clamp(23px, 2.9vw, 30px);
  line-height: 1.26;
  letter-spacing: -0.015em;
  color: var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0 24px;
  margin: 34px 0;
  max-width: 26ch;
}

/* ---- Plates (screen stills) --------------------------------------------- */
.plate { position: relative; }
.plate img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: var(--paper-50);
  box-shadow: 0 1px 2px rgba(30, 36, 33, 0.06), 0 3px 12px rgba(30, 36, 33, 0.06);
}
.plate figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-600);
  display: flex;
  gap: 10px;
}
.plate figcaption > span:first-child {
  flex: 0 0 auto;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cobalt-600);
  padding-top: 3px;
}

/* Plate placements — deliberately unequal, the way plates land in a notebook. */
.plate--margin { margin: 0 0 30px; }
.plate--pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin: 28px 0 8px;
}
.plate--wide { max-width: 396px; margin: 30px 0 8px; }
.plate--inset { max-width: 340px; margin: 28px 0 8px 34px; }

/* ---- Route map (task flow diagram) -------------------------------------- */
.routemap {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  position: relative;
}
.rm {
  --rm-pad: 46px;
  position: relative;
  padding: 0 0 22px var(--rm-pad);
  min-height: 40px;
}
.rm::before { /* connector down to the next node */
  content: '';
  position: absolute;
  left: 13px;
  top: 26px;
  bottom: -4px;
  width: 2px;
  background: var(--cobalt);
}
.rm:last-child::before { display: none; }
.rm__dot {
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid var(--cobalt);
  background: var(--paper);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--cobalt-600);
}
.rm__name {
  font-family: var(--ui);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 3px 0 3px;
}
.rm__trigger {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-600);
  margin: 0;
}
.rm__trigger b {
  font-weight: 600;
  color: var(--vermilion-ink);
  white-space: nowrap;
}
/* A stop that loops back on itself (the tie) */
.rm--loop .rm__dot { border-style: double; border-width: 4px; }

/* Detours hang off the line, dashed, and say where they return. */
.rm__detours {
  list-style: none;
  margin: 12px 0 4px;
  padding: 0;
}
.rm__detour {
  position: relative;
  margin: 0 0 10px 22px;
  padding: 10px 14px 11px 16px;
  border: 1px dashed var(--cobalt);
  border-radius: 6px;
  background: var(--cobalt-tint);
}
/* Elbow back to the route line. It has to cross the node's own left padding,
   so its reach is derived from --rm-pad instead of being hard-coded. */
.rm__detour::before {
  content: '';
  position: absolute;
  left: calc(15px - 22px - var(--rm-pad));
  top: 20px;
  width: calc(22px + var(--rm-pad) - 15px);
  height: 2px;
  background: none;
  border-top: 2px dashed var(--cobalt);
}
.rm__dh {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 3px;
}
.rm__detour p {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-600);
  margin: 0;
}
.rm__return {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-ink);
}

/* ---- Ledgers (tables) ---------------------------------------------------- */
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 4px 0 0;
}
.ledger caption {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-600);
  padding-bottom: 10px;
}
.ledger th,
.ledger td {
  text-align: left;
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: baseline;
}
.ledger thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-600);
  border-bottom: 1px solid var(--ink);
}
.ledger tbody tr:last-child td,
.ledger tbody tr:last-child th { border-bottom: 1px solid var(--ink); }
.ledger td.num,
.ledger th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding-right: 0;
  width: 74px;
}
.ledger tfoot td {
  font-weight: 700;
  border-bottom: none;
  padding-top: 11px;
}

/* Tally marks — decorative echo of the counts stated in text. */
.tally {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 12px;
  max-width: 260px;
}
.tally i {
  width: 13px;
  height: 13px;
  border-radius: 2px;
}
.tally i.pub { background: var(--ink); }
.tally i.qa {
  border: 1px dashed var(--ink-400);
  background: none;
}
.tally__key {
  font-size: 12.5px;
  color: var(--ink-600);
  margin: 0 0 20px;
}
.tally__key em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

/* ---- Swatch rows (contrast evidence) ------------------------------------ */
.swatches {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.swatches li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
}
.sw {
  flex: 0 0 auto;
  width: 74px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--paper);
  border: 1px solid rgba(30, 36, 33, 0.12);
}
.sw--old-v { background: var(--vermilion); }
.sw--new-v { background: var(--vermilion-ink); }
.sw--old-s { background: var(--sage); }
.sw--new-s { background: var(--sage-ink); }
.ratio {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.ratio--fail { color: var(--oxblood); }
.ratio--pass { color: var(--sage-ink); }

/* ---- Code specimen ------------------------------------------------------- */
.specimen {
  margin: 20px 0 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper-50);
  overflow: hidden;
}
.specimen__head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-200);
}
.specimen__path {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
}
.specimen__note {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-600);
}
.specimen pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.62;
  tab-size: 2;
}
.specimen code { white-space: pre; }
.specimen .c { color: var(--ink-400); font-style: italic; }
.specimen .k { color: var(--cobalt-600); }
.specimen .s { color: var(--sage-ink); }

/* ---- Video --------------------------------------------------------------- */
.take {
  display: grid;
  grid-template-columns: 322px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  margin-top: 8px;
}
.take video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: var(--ink);
  box-shadow: 0 1px 2px rgba(30, 36, 33, 0.06), 0 6px 20px rgba(30, 36, 33, 0.1);
}
.take__specs {
  margin: 0;
  font-size: 14px;
}
.take__specs dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-top: 14px;
}
.take__specs dt:first-child { margin-top: 0; }
.take__specs dd {
  margin: 2px 0 0;
  font-weight: 600;
}

/* ---- Live prototype entry ------------------------------------------------ */
.runit {
  margin: 30px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--cobalt);
  border-left-width: 3px;
  border-radius: 4px;
  background: var(--cobalt-tint);
}
.runit__kicker {
  margin: 0 0 8px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt-600);
}
.runit__line {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
}
.runit p:last-child { margin-bottom: 0; }
.runit__cta {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 4px;
  background: var(--cobalt-600);
  color: var(--paper-50);
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.runit__cta:hover { background: var(--cobalt); }
.runit__meta {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-600);
}

/* ---- Reference note (stamped aside) -------------------------------------- */
.stamp {
  border: 1.5px solid var(--oxblood);
  border-radius: 4px;
  padding: 20px 22px;
  margin: 26px 0 0;
  background: rgba(163, 44, 28, 0.035);
}
.stamp h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oxblood);
}
.stamp p { font-size: 15px; line-height: 1.55; }
.stamp p:last-child { margin-bottom: 0; }

/* ---- Object cutout in the margin ---------------------------------------- */
.object {
  margin: 0 0 24px;
}
.object img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid var(--rule);
  transform: rotate(1.2deg);
}
.object figcaption {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-600);
  margin-top: 16px;
}

/* ---- Chips --------------------------------------------------------------- */
.chips {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chips li {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 11px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper-50);
}
.chips li span {
  color: var(--ink-400);
  font-weight: 500;
}

/* ---- Colophon ------------------------------------------------------------ */
.colophon {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--pad) 90px;
}
.colophon__in {
  border-top: 2px solid var(--ink);
  padding-top: 28px;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) minmax(0, var(--margin-col));
  column-gap: var(--gutter);
}
.colophon__body { grid-column: 2; min-width: 0; }
.colophon__side { grid-column: 3; min-width: 0; }
.colophon h2 {
  font-family: var(--display);
  font-weight: 480;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.disclosure {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-600);
  border-left: 2px solid var(--ink);
  padding-left: 14px;
  margin: 22px 0 0;
}

/* =========================================================================
   Responsive — the field folds to a single column; the route stays.
   ========================================================================= */
@media (max-width: 1080px) {
  :root {
    --page: 900px;
    --margin-col: 240px;
    --gutter: 32px;
    --rail: 76px;
    --line-x: 37px;
  }
  .masthead__top { grid-template-columns: minmax(0, 1fr) 300px; }
  .take { grid-template-columns: 280px minmax(0, 1fr); }
}

@media (max-width: 860px) {
  :root {
    --pad: 28px;
    --rail: 52px;
    --gutter: 20px;
    --line-x: 25px;
  }
  .masthead__top {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 40px;
  }
  .tapephoto {
    order: -1;
    max-width: 420px;
    margin-top: 0;
    margin-bottom: 12px;
  }
  .factstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }

  /* Field notes stop being marginalia and become inline notes, keeping the
     same sage rule so the voice stays distinct from body copy. */
  .stop { grid-template-columns: var(--rail) minmax(0, 1fr); }
  .stop__body,
  .stop__margin { grid-column: 2; }
  .stop__margin { padding-top: 26px; }
  .stop__pin {
    width: 34px;
    height: 34px;
    font-size: 13px;
    margin-left: calc(var(--line-x) - 16px);
    margin-top: 24px;
  }
  .stop__pin::after { left: 34px; top: 15px; width: var(--gutter); }

  .plate--margin,
  .plate--wide,
  .plate--inset { max-width: 360px; margin-left: 0; }
  .plate--pair { gap: 18px; }

  .take { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .take video { max-width: 300px; }

  .colophon__in { grid-template-columns: var(--rail) minmax(0, 1fr); }
  .colophon__body,
  .colophon__side { grid-column: 2; }
  .colophon__side { margin-top: 26px; }
}

@media (max-width: 560px) {
  :root {
    --pad: 20px;
    --rail: 44px;
    --gutter: 14px;
    --line-x: 21px;
  }
  body { font-size: 16px; }
  .gnav__in { padding: 10px var(--pad); }
  .gnav__here { font-size: 10px; }
  .masthead h1 { font-size: clamp(46px, 13vw, 62px); }
  .masthead__sub { font-size: 19px; }
  .masthead__line { font-size: 17px; }
  .factstrip { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .stop { padding-bottom: 48px; }
  .stop__pin {
    width: 30px;
    height: 30px;
    font-size: 12px;
    margin-left: calc(var(--line-x) - 14px);
  }
  .stop__pin::after { left: 30px; top: 13px; }
  .plate--pair { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .plate--margin,
  .plate--wide,
  .plate--inset { max-width: none; }
  .rm { --rm-pad: 40px; }
  .ledger { font-size: 13.5px; }
  .ledger td.num, .ledger th.num { width: 58px; }
  .swatches li { flex-wrap: wrap; }
  .tally { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
