/* ==========================================================================
   Margin — Issue 14 "Low Water"
   A contemporary print quarterly, translated to the web.

   Art direction in one line: the page behaves like a broadsheet. A persistent
   margin rail carries the folio and the registration marks; content sits on an
   asymmetric 12-column grid; the single display motif is the contour line of a
   drained river, which returns as a rule, a frame, and a piece of survey art.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */

:root {
  /* Paper and ink */
  --paper:         #f2efe6;
  --paper-raised:  #faf8f1;
  --paper-sunk:    #e8e3d6;
  --ink:           #17150f;
  --ink-soft:      #4a463d;
  --ink-faint:     #6f6a5c;
  --rule:          #c9c2af;
  --rule-soft:     #ded8c8;

  /* Two accents only, both load-bearing: oxide for attention,
     water for anything cartographic or affirmative. */
  --oxide:         #a33a1a;
  --water:         #2f4f5c;
  --water-pale:    #dfe6e6;

  /* Type */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
                  Georgia, "Times New Roman", serif;
  --font-text:    Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --font-meta:    ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
                  "Helvetica Neue", Arial, sans-serif;

  /* Measure and rhythm */
  --shell:        80rem;
  --gutter:       clamp(1.15rem, 4vw, 3.5rem);
  --gap:          clamp(1.1rem, 2.2vw, 2.1rem);
  --measure:      34rem;

  /* Deliberately square. No pills anywhere on this page. */
  --tap:          2.75rem;
}

/* --- 2. Reset ----------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }

/* A whisper of paper tooth. Fixed, non-interactive, ignored by AT. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(0deg,   rgba(23,21,15,0.022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg,  rgba(23,21,15,0.016) 0 1px, transparent 1px 4px);
}

/* --- 3. Focus, skip link, screen-reader text ---------------------------- */

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 60;
  transform: translateY(-140%);
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-meta);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 140ms ease;
}
.skip-link:focus-visible { transform: translateY(0.5rem); }

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

/* --- 4. Shared apparatus ------------------------------------------------ */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.running {
  font-family: var(--font-meta);
  font-size: 0.6875rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.running__dot { padding-inline: 0.5em; color: var(--rule); }
.running--end { text-align: right; }

.byline__dot { padding-inline: 0.45em; color: var(--rule); }

/* The five-hairline band. Newspaper furniture, not a divider component. */
.rule-band {
  height: 5px;
  background-image: linear-gradient(
    to bottom,
    var(--ink) 0 1.5px,
    transparent 1.5px 2.5px,
    var(--rule) 2.5px 3px,
    transparent 3px 5px
  );
}

/* --- 5. Masthead -------------------------------------------------------- */

.masthead {
  position: relative;
  z-index: 3;
  padding-top: clamp(1rem, 2.4vw, 1.9rem);
}

.masthead__running {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  margin-block: clamp(0.5rem, 1.6vw, 1.4rem) clamp(0.4rem, 1.2vw, 0.9rem);
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 16.5vw, 10.5rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.035em;
  text-indent: -0.035em; /* optical: cancel the trailing sidebearing */
}

.masthead__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem var(--gap);
  padding-block: 0.8rem;
}

.contents-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
}

.contents-nav__link {
  position: relative;
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--ink);
  font-family: var(--font-meta);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
}
.contents-nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.contents-nav__link:hover::after,
.contents-nav__link:focus-visible::after,
.contents-nav__link[aria-current="true"]::after { transform: scaleX(1); }
.contents-nav__link[aria-current="true"] { color: var(--oxide); }

/* Reading-mode control: a switch, drawn as a switch. */
.mode-control { display: flex; }

.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--tap);
  padding: 0.45rem 0.9rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0;
  font-family: var(--font-meta);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.mode-toggle:hover { border-color: var(--ink); background: var(--paper-raised); }

.mode-toggle__glyph {
  position: relative;
  width: 1.7rem; height: 0.85rem;
  border: 1px solid var(--ink-soft);
  flex: none;
}
.mode-toggle__glyph::after {
  content: "";
  position: absolute;
  top: 1px; left: 1px;
  width: calc(50% - 1px);
  height: calc(100% - 2px);
  background: var(--ink-soft);
  transition: transform 180ms ease, background-color 180ms ease;
}
.mode-toggle[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.mode-toggle[aria-pressed="true"] .mode-toggle__glyph { border-color: var(--paper); }
.mode-toggle[aria-pressed="true"] .mode-toggle__glyph::after {
  transform: translateX(100%);
  background: var(--paper);
}

/* The reading-mode banner. */
.reading-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
}
.reading-bar[hidden] { display: none; }

.reading-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
  padding-block: 0.65rem;
}
.reading-bar__text {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-meta);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.reading-bar__flag {
  width: 1.5rem; height: 3px;
  background: var(--paper);
  flex: none;
}
.reading-bar__exit {
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  background: transparent;
  border: 1px solid rgba(242,239,230,0.5);
  border-radius: 0;
  color: var(--paper);
  font-family: var(--font-meta);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
}
.reading-bar__exit:hover { background: var(--paper); color: var(--ink); }

/* --- 6. Page frame and the margin rail --------------------------------- */

.page {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
}

.rail { display: none; }

.main {
  min-width: 0;
  padding-inline: var(--gutter);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.main > * + * { margin-top: clamp(3rem, 6.5vw, 5.5rem); }

.cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

/* Mobile-first: every child of an asymmetric grid takes the full measure.
   Without this, an un-spanned child auto-places into a single 1/12 column
   and the layout collapses. The wide breakpoints below re-break it. */
.cols > * { grid-column: 1 / -1; }

/* --- 7. Cover ----------------------------------------------------------- */

.issue-line {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  font-family: var(--font-meta);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.issue-line__no { color: var(--oxide); font-weight: 600; }
.issue-line__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.6vw, 2.9rem);
  font-style: italic;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  line-height: 1;
}
.issue-line__sep { color: var(--rule); }

.cover__title {
  grid-column: 1 / -1;
  margin-top: clamp(0.9rem, 2.4vw, 1.6rem);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8.2vw, 5.6rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.028em;
  text-wrap: balance;
  max-width: 22ch;
}

.cover__standfirst {
  display: grid;
  gap: 0.9rem;
  align-content: end;
}

.standfirst {
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 38ch;
  text-wrap: pretty;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.7rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
}
.byline__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.byline__meta {
  font-family: var(--font-meta);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.cover__figure { margin: 0; }

.cover__plate { line-height: 0; }
.cover__art { width: 100%; height: auto; }

/* Survey art. Stroke colour is inherited, so reading mode can cool it.
   non-scaling-stroke keeps hairlines at a true hairline width: without it a
   1-unit stroke on a phone renders at a third of a pixel and disappears. */
.art-crop, .art-contour, .art-tick, .art-scale, .art-note, .art-legend,
.art-thalweg { vector-effect: non-scaling-stroke; }

.art-crop    { fill: none; stroke: var(--rule); stroke-width: 1; }
.art-contour { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.art-contour__index { stroke-width: 2; }
.art-contour__water { fill: var(--water); fill-opacity: 0.09; stroke: var(--water); }
.art-tick    { fill: none; stroke: var(--ink-faint); stroke-width: 1; }
.art-scale   { fill: none; stroke: var(--ink-soft); stroke-width: 1; }
.art-note    { fill: none; stroke: var(--ink-faint); stroke-width: 1; }
.art-legend  { fill: none; stroke: var(--ink-soft); stroke-width: 1; }
.art-legend__index { stroke: var(--ink); stroke-width: 2; }

.art-scale text, .art-label, .art-note text, .art-legend text {
  fill: var(--ink-soft);
  stroke: none;
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.art-scale text,
.art-legend__note,
.art-note__sub { font-size: 10px; letter-spacing: 0.1em; text-transform: none; }
.art-legend__note { fill: var(--ink-faint); }
.art-note text { fill: var(--oxide); letter-spacing: 0.1em; }

.art-thalweg {
  fill: none;
  stroke: var(--water);
  stroke-width: 1.4;
  stroke-dasharray: 9 7;
  animation: flow 26s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -320; } }

.cover__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  margin-top: 0.85rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-meta);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 62ch;
}
.cover__caption-key {
  color: var(--oxide);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  flex: none;
}

/* Marginalia: the reason the grid is asymmetric in the first place. */
.cover__marginalia {
  border-top: 1.5px solid var(--ink);
  padding-top: 0.8rem;
}
.marginalia__head {
  font-family: var(--font-meta);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.marginalia__list { margin-top: 0.8rem; }
.marginalia__list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.4rem;
  padding-block: 0.6rem;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.marginalia__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--oxide);
}
.marginalia__foot {
  margin-top: 0.8rem;
  font-family: var(--font-meta);
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

/* --- 8. Section heads -------------------------------------------------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--ink);
}
.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.section-head__meta {
  font-family: var(--font-meta);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  min-width: 0;
  overflow-wrap: break-word;
}
.section-kicker {
  font-family: var(--font-meta);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oxide);
  margin-bottom: 0.7rem;
}

/* --- 9. Supporting stories --------------------------------------------- */

.stories { margin-top: var(--gap); }

.story {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
}

.story__index {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--paper-sunk);
  -webkit-text-stroke: 1px var(--rule);
  paint-order: stroke fill;
}

.story__glyph { margin-block: 0.2rem 0.4rem; max-width: 12rem; }
.story__glyph svg {
  width: 100%; height: auto;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.1;
  stroke-linecap: round;
}

.story__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.15rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.story__byline {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-style: italic;
  color: var(--ink-soft);
}
.story__summary {
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36ch;
  text-wrap: pretty;
}
.story__meta {
  margin-top: 0.3rem;
  font-family: var(--font-meta);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --- 10. Archive -------------------------------------------------------- */

.archive-strip {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--rule);
}

.archive-item {
  padding-block: 1.2rem 1.35rem;
}
.archive-item + .archive-item { border-top: 1px solid var(--rule); }

.archive-item__no {
  font-family: var(--font-meta);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxide);
}
.archive-item__title {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.archive-item__note {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 40ch;
}
.archive__foot {
  max-width: 52ch;
  margin-top: 1.1rem;
  font-family: var(--font-meta);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--ink-faint);
}

/* --- 11. Subscription --------------------------------------------------- */

.subscribe__grid { align-items: start; }

.subscribe__pitch {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
.subscribe__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.subscribe__lede {
  max-width: 40ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.1rem;
  padding-block: 1rem;
  border-block: 1px solid var(--ink);
}
.price__figure {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.price__unit {
  font-family: var(--font-meta);
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.perks { display: grid; gap: 0.45rem; }
.perks li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.perks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.85rem; height: 1px;
  background: var(--oxide);
}

.subscribe__panel {
  padding: clamp(1.2rem, 2.6vw, 1.9rem);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
}
.panel__head {
  padding-bottom: 0.7rem;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--font-meta);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.signup { margin-top: 1.2rem; }

/* Underline-only field. A box would look like a checkout; a rule looks typed. */
.field { position: relative; }
.field__label {
  display: block;
  font-family: var(--font-meta);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.field__input {
  width: 100%;
  min-height: var(--tap);
  padding: 0.35rem 0 0.5rem;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  appearance: none;
}
.field__input::placeholder {
  color: var(--ink-faint);
  opacity: 0.75;
}
.field__input:focus-visible {
  outline: none;
  border-bottom-color: var(--water);
}
.field__rule {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--oxide);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.field__input:focus-visible + .field__rule { transform: scaleX(1); }

.field__note {
  margin-top: 0.85rem;
  font-family: var(--font-meta);
  font-size: 0.73rem;
  line-height: 1.55;
  color: var(--ink-faint);
  max-width: 44ch;
}

.field__feedback {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.field__feedback:empty { margin-top: 0; }
.field__feedback[data-state="error"] { color: var(--oxide); }
.field__feedback[data-state="success"] { color: var(--water); }
.field__feedback strong { font-weight: 600; }

.signup__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
  margin-top: 1.4rem;
}
.signup__fineprint {
  font-family: var(--font-meta);
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--ink-faint);
  max-width: 26ch;
}

/* Square, inked, no radius. The only filled control on the page. */
.button {
  min-height: var(--tap);
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: var(--font-meta);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.button:hover { background: var(--oxide); border-color: var(--oxide); }
.button[disabled] {
  background: var(--paper-sunk);
  border-color: var(--rule);
  color: var(--ink-faint);
  cursor: default;
}

.noscript-note {
  margin-top: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--rule);
  font-family: var(--font-meta);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* --- 12. Colophon ------------------------------------------------------- */

.colophon {
  position: relative;
  z-index: 2;
  padding-block: clamp(2.2rem, 5vw, 3.4rem);
  background: var(--ink);
  color: var(--paper);
}
.colophon__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.colophon__wordmark {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.colophon__head {
  font-family: var(--font-meta);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rule);
  margin-bottom: 0.5rem;
}
.colophon__line {
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(242, 239, 230, 0.82);
  max-width: 38ch;
}
.colophon__line--fine {
  margin-top: 0.7rem;
  font-family: var(--font-meta);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(242, 239, 230, 0.6);
}

/* ==========================================================================
   13. Breakpoints — the composition is authored per width, not just squeezed
   ========================================================================== */

/* Narrow phones: stack the section heads so long meta lines (the ISBN) wrap
   onto their own line instead of forcing a horizontal scroll. */
@media (max-width: 39.99rem) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  /* The plate is shown as a crop of the survey rather than the whole sheet.
     preserveAspectRatio="slice" scales it to cover this frame, so the channel
     fills the width at a readable size and the 11px annotation — which would
     land near four real pixels on a phone — is dropped. The caption below
     carries what the annotation said. */
  .cover__plate {
    overflow: hidden;
    aspect-ratio: 4 / 1;
  }
  .cover__art { height: 100%; }
  .art-crop, .art-label, .art-tick, .art-scale, .art-note, .art-legend { display: none; }
}

/* Tablet: stories pair up, archive goes three across, subscribe stacks. */
@media (min-width: 40rem) {
  .cover__standfirst { max-width: 46rem; }
  .archive-strip { grid-template-columns: repeat(3, 1fr); }
  .archive-item { padding-inline: 1.1rem; }
  .archive-item:first-child { padding-left: 0; }
  .archive-item + .archive-item { border-top: 0; border-left: 1px solid var(--rule); }
  .archive-item:last-child { padding-right: 0; }
  .colophon__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop: the asymmetric 12-column broadsheet. */
@media (min-width: 62rem) {
  .page {
    grid-template-columns: clamp(2.5rem, 3.4vw, 4rem) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 3.25rem);
    max-width: calc(var(--shell) + 8rem);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  .main { padding-inline: 0; }

  /* The margin rail: folio, running label, registration marks. */
  .rail { display: block; }
  .rail__inner {
    position: sticky;
    top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    padding-top: 0.4rem;
    border-right: 1px solid var(--rule);
    min-height: 22rem;
    padding-right: 0.75rem;
  }
  .rail__folio {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    color: var(--oxide);
  }
  .rail__label {
    writing-mode: vertical-rl;
    font-family: var(--font-meta);
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink-faint);
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .rail__sep { width: 1px; height: 4rem; background: var(--rule); }
  .rail__crop { position: absolute; right: 0; width: 0.6rem; height: 0.6rem; }
  .rail__crop::before,
  .rail__crop::after { content: ""; position: absolute; background: var(--rule); }
  .rail__crop::before { width: 100%; height: 1px; top: 0; }
  .rail__crop::after  { width: 1px; height: 100%; right: 0; }
  .rail__crop--tl { top: 0; }
  .rail__crop--bl { bottom: 0; }

  .cover__title { grid-column: 1 / span 7; max-width: 18ch; }
  .cover__standfirst { grid-column: 9 / -1; grid-row: 2; }
  .cover__figure { grid-column: 1 / span 9; }
  .cover__marginalia {
    grid-column: 10 / -1;
    grid-row: 3;
    align-self: start;
    margin-top: 0.4rem;
  }

  .story--a { grid-column: 1 / span 5; }
  .story--b { grid-column: 7 / -1; }
  .story--c { grid-column: 1 / span 7; }

  .subscribe__pitch { grid-column: 1 / span 6; }
  .subscribe__panel { grid-column: 8 / -1; }
}

/* Wide: let the art breathe and open the measure a little. */
@media (min-width: 90rem) {
  :root { --shell: 88rem; }
  .cover__marginalia { grid-column: 10 / -1; }
}

/* Very small phones: 320–390 px. Nothing may rely on a wider viewport. */
@media (max-width: 24rem) {
  .masthead__running { gap: 0.2rem; }
  .running--end { text-align: left; }
  .wordmark { font-size: clamp(2.9rem, 17vw, 3.6rem); }
  .mode-toggle__label { font-size: 0.66rem; }
  .signup__actions { display: grid; }
  .button { width: 100%; }
}

/* ==========================================================================
   14. Reading mode — one measure, marginalia folded in, no side rail
   ========================================================================== */

html[data-reading="on"] body {
  font-size: clamp(1.075rem, 1rem + 0.35vw, 1.22rem);
  line-height: 1.78;
}

html[data-reading="on"] .page {
  grid-template-columns: 1fr;
  max-width: 58rem;
  gap: 0;
}
html[data-reading="on"] .rail { display: none; }

html[data-reading="on"] .cover,
html[data-reading="on"] .stories,
html[data-reading="on"] .subscribe__grid {
  grid-template-columns: 1fr;
  max-width: var(--measure);
  margin-inline: auto;
  gap: 1.4rem;
}

html[data-reading="on"] .cover__title,
html[data-reading="on"] .cover__standfirst,
html[data-reading="on"] .cover__figure,
html[data-reading="on"] .cover__marginalia,
html[data-reading="on"] .story,
html[data-reading="on"] .subscribe__pitch,
html[data-reading="on"] .subscribe__panel {
  grid-column: 1 / -1;
  grid-row: auto;
}

html[data-reading="on"] .cover__title { max-width: none; }
html[data-reading="on"] .standfirst,
html[data-reading="on"] .story__summary,
html[data-reading="on"] .subscribe__lede { max-width: none; }

/* Marginalia becomes a plainly-set note, not a sidebar. */
html[data-reading="on"] .cover__marginalia {
  margin-top: 0.4rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--rule);
}
html[data-reading="on"] .marginalia__list li { color: var(--ink-soft); }
html[data-reading="on"] .marginalia__foot { display: none; }

/* Typography relaxes toward the reading texture. */
html[data-reading="on"] .wordmark { font-size: clamp(2.6rem, 9vw, 4.2rem); }
html[data-reading="on"] .cover__title { font-size: clamp(1.9rem, 5.4vw, 2.8rem); }
html[data-reading="on"] .subscribe__title,
html[data-reading="on"] .issue-line__name { font-size: clamp(1.5rem, 4.4vw, 2.1rem); }
html[data-reading="on"] .price__figure { font-size: clamp(2rem, 5vw, 2.7rem); }
html[data-reading="on"] .story__index { font-size: 2rem; }
html[data-reading="on"] .archive-strip { grid-template-columns: 1fr; }
html[data-reading="on"] .archive-item { padding-inline: 0; }
html[data-reading="on"] .archive-item + .archive-item { border-top: 1px solid var(--rule); border-left: 0; }
html[data-reading="on"] .archive-item__note,
html[data-reading="on"] .colophon__line { max-width: var(--measure); }

/* The plate is the one thing that keeps its width: it is the page's image. */
html[data-reading="on"] .cover__art { opacity: 0.9; }
html[data-reading="on"] .subscribe__panel { border-color: var(--rule); }

/* ==========================================================================
   15. Motion and print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .art-thalweg { animation: none; }
}

@media print {
  .grain, .reading-bar, .skip-link, .mode-control { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page { display: block; }
  .rail { display: none; }
  .cover, .stories, .subscribe__grid { display: block; }
  .story, .archive-item { break-inside: avoid; }
  .button { background: #fff; color: #000; border-color: #000; }
  a { text-decoration: none; }
}
