/* ==========================================================================
   Margin — Issue 14, Low Water
   Contemporary print editorial for the web. System fonts only; no assets.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens and reading modes
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Paper — the default, an uncoated warm stock */
  --paper: #f4f0e8;
  --paper-deep: #ebe5d9;     /* a slightly heavier stock for panels */
  --ink: #1b1917;
  --ink-2: #57524a;          /* bylines, captions, hints */
  --rule: #cdc5b5;           /* hairlines */
  --rule-strong: #1b1917;    /* the thick rule in a double rule */
  --accent: #a33f22;         /* one rust — dried riverbed, a stamped receipt */
  --wash: rgba(163, 63, 34, 0.14);
  --ring-min: 0.22;          /* faintest shoreline */
  --ring-max: 1;             /* strongest shoreline */

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --col-gap: clamp(16px, 2.2vw, 36px);
  --max: 1380px;

  --step-0: 1.0625rem;       /* 17px body */
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 1.2rem + 2.4vw, 3.4rem);
  --step-display: clamp(2.25rem, 1.2rem + 4.2vw, 5.4rem);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-mode="dusk"] {
  color-scheme: light;
  --paper: #e6dcc8;
  --paper-deep: #dccfb6;
  --ink: #2b2521;
  --ink-2: #5d5348;
  --rule: #bcae95;
  --rule-strong: #2b2521;
  --accent: #963a1e;
  --wash: rgba(150, 58, 30, 0.16);
}

:root[data-mode="night"] {
  color-scheme: dark;
  --paper: #171614;
  --paper-deep: #1f1d1a;
  --ink: #ebe5d9;
  --ink-2: #a9a196;
  --rule: #3a3733;
  --rule-strong: #ebe5d9;
  --accent: #e8895f;
  --wash: rgba(232, 137, 95, 0.16);
  --ring-min: 0.18;
}

/* Without a stored choice (or without JS), follow the system scheme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-mode]) {
    color-scheme: dark;
    --paper: #171614;
    --paper-deep: #1f1d1a;
    --ink: #ebe5d9;
    --ink-2: #a9a196;
    --rule: #3a3733;
    --rule-strong: #ebe5d9;
    --accent: #e8895f;
    --wash: rgba(232, 137, 95, 0.16);
    --ring-min: 0.18;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.55;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
button, input { font: inherit; color: inherit; }
svg { display: block; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 0.2s var(--ease);
}
a:hover { text-decoration-color: var(--accent); }

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

::selection { background: var(--wash); }

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

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0;
  transform: translateY(-120%);
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-decoration: none;
  z-index: 10;
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: translateY(0.5rem); outline-color: var(--accent); }

/* Small caps-ish labels set in the monospace: the "marginalia" voice */
.label,
.kicker,
.running-head,
.section-head__no,
.story__genre,
.caption,
.field__label,
.field__hint,
.mode__legend,
.mode__option span,
.sections a,
.spine__no,
.spine__season,
.price__per,
.colophon__folio,
.issue-mark__label,
.issue-mark__season {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: lining-nums;
}

.byline {
  font-style: italic;
  color: var(--ink-2);
}
.byline__name { font-style: normal; color: var(--ink); }

/* The editorial double rule: a thick line with a hairline beneath. */
.rule-double {
  position: relative;
  border-top: 3px solid var(--rule-strong);
  padding-top: 6px;
}
.rule-double::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 2px;
  border-top: 1px solid var(--rule-strong);
}

/* --------------------------------------------------------------------------
   3. Masthead
   -------------------------------------------------------------------------- */
.masthead { padding-top: 0.75rem; }

.running-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-block: 0.6rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}

.masthead__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: var(--col-gap);
  padding-block: clamp(1rem, 3vw, 2.5rem) clamp(0.5rem, 2vw, 1.25rem);
}

.wordmark {
  font-size: clamp(4.25rem, 19.5vw, 17rem);
  line-height: 0.82;
  font-weight: 400;
  letter-spacing: -0.045em;
  margin-left: -0.05em;               /* optical alignment of the M to the rule */
  font-variant-numeric: normal;
}

.issue-mark {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  padding-bottom: 0.25em;
}
.issue-mark__no {
  font-size: clamp(3.4rem, 8.5vw, 7.5rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke;
}
@supports not (-webkit-text-stroke: 1px black) {
  .issue-mark__no { color: var(--ink); }
}
.issue-mark__text {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.1rem;
  border-left: 1px solid var(--ink);
  padding-left: 0.75rem;
}
.issue-mark__label,
.issue-mark__season { color: var(--ink-2); }
.issue-mark__title {
  font-size: var(--step-2);
  line-height: 1;
  font-style: italic;
  letter-spacing: -0.01em;
}

.masthead__bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding-block: 0.7rem;
  border-top: 3px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.masthead__bar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 2px;
  border-top: 1px solid var(--rule-strong);
}

.sections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.6rem;
}
.sections a {
  text-decoration: none;
  padding-block: 0.2rem;
  border-bottom: 1px solid transparent;
  color: var(--ink-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.sections a:hover,
.sections a[aria-current="location"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Reading mode: a segmented text control, no pills */
.mode {
  display: flex;
  align-items: baseline;
  gap: 0.2rem 1rem;
  flex-wrap: wrap;
}
.mode__legend {
  float: left;                          /* legends sit outside flex flow; float keeps it inline */
  color: var(--ink-2);
  margin-right: 0.4rem;
}
.mode__legend::after { content: ":"; }
.mode__option {
  position: relative;
  cursor: pointer;
}
.mode__option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.mode__option span {
  display: inline-block;
  padding-block: 0.2rem;
  border-bottom: 1px solid transparent;
  color: var(--ink-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.mode__option:hover span { color: var(--ink); }
.mode__option input:checked + span {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.mode__option input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   4. Cover story
   -------------------------------------------------------------------------- */
.cover { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem); }

.cover__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem var(--col-gap);
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  color: var(--ink-2);
  margin-bottom: 1.4rem;
}
.kicker__no { color: var(--accent); }

.cover__title {
  font-size: var(--step-display);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 11em;
  margin-bottom: 0.5em;
}
.cover__text .byline { margin-bottom: 1.6rem; }

.deck {
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 28em;
  text-wrap: pretty;
}
.deck::first-letter {
  float: left;
  font-size: 3.1em;
  line-height: 0.8;
  padding: 0.08em 0.1em 0 0;
  color: var(--accent);
}
.cover__note {
  margin-top: 1.25rem;
  max-width: 28em;
  color: var(--ink-2);
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
}

.rule-link {
  display: inline-block;
  margin-top: 2rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--ink);
  text-decoration: none;
  font-style: italic;
}
.rule-link:hover { color: var(--accent); }

.cover__art {
  color: var(--ink);
}
.contours {
  width: 100%;
  height: auto;
  max-height: 78vh;
}
.contours__rings path {
  --i: 0;                              /* each ring sets its own index inline */
  stroke-width: 1.2;
  /* older lines have faded: ring 0 is the faintest, ring 8 the strongest */
  opacity: calc(var(--ring-min) + (var(--ring-max) - var(--ring-min)) * var(--i) / 8);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.2s var(--ease) forwards;
  animation-delay: calc(0.12s + var(--i) * 0.16s);
}
.contours__rings path:nth-child(n+7) { stroke-width: 1.6; }
.contours__grid { opacity: 0.4; }
.contours__pool {
  fill: var(--accent);
  fill-opacity: 0.22;
  stroke: var(--accent);
  stroke-width: 1.2;
}
.contours__finds { opacity: 0.85; }
.contours__labels text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  fill: var(--ink-2);
  /* a paper halo knocks the contour out beneath the year, as on a printed map */
  paint-order: stroke fill;
  stroke: var(--paper);
  stroke-width: 5px;
  stroke-linejoin: round;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.caption {
  margin-top: 0.9rem;
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
  max-width: 40em;
  border-top: 1px solid var(--rule);
  padding-top: 0.6rem;
}
.caption__fig {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-right: 0.4rem;
}

/* --------------------------------------------------------------------------
   5. Section heads
   -------------------------------------------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem var(--col-gap);
  align-items: baseline;
  position: relative;
  border-top: 3px solid var(--rule-strong);
  padding-top: 0.9rem;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.section-head::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 2px;
  border-top: 1px solid var(--rule-strong);
}
.section-head__no { color: var(--accent); }
.section-head__title {
  font-size: var(--step-3);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.section-head__aside {
  color: var(--ink-2);
  font-style: italic;
  max-width: 26em;
}

/* --------------------------------------------------------------------------
   6. In this issue
   -------------------------------------------------------------------------- */
.issue { padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 6rem); }

.stories {
  display: grid;
  grid-template-columns: 1fr;
}
.story {
  position: relative;
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  column-gap: 0.75rem;
  grid-template-areas:
    "folio genre"
    "folio title"
    "folio byline"
    "folio summary";
  transition: border-color 0.2s var(--ease);
}
.story:first-child { border-top: 0; }
.story__folio {
  grid-area: folio;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}
.story:hover .story__folio { color: var(--accent); }
.story__genre { grid-area: genre; color: var(--ink-2); margin-bottom: 0.6rem; }
.story__title {
  grid-area: title;
  font-size: var(--step-2);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 0.35rem;
}
.story .byline { grid-area: byline; margin-bottom: 0.9rem; }
.story__summary {
  grid-area: summary;
  max-width: 30em;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   7. Archive strip — book spines on a shelf
   -------------------------------------------------------------------------- */
.archive {
  background: var(--paper-deep);
  padding-block: clamp(2rem, 5vw, 4rem);
  transition: background-color 0.35s var(--ease);
}
.archive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem var(--col-gap);
  align-items: end;
}
.section-head--compact { margin-bottom: 0; }

.spines {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--rule-strong);     /* the shelf */
}
.spine {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 5.6rem;
  height: 17rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 0.55rem 0;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.spine:nth-child(2) { height: 16.4rem; }
.spine:nth-child(3) { height: 17.4rem; }
.spine:hover { transform: translateY(-0.35rem); }
.spine__no {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  text-transform: none;
  padding-bottom: 0.4rem;
  margin-inline: 0.5rem;
  border-bottom: 1px solid var(--ink);
}
.spine__title {
  flex: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.8rem 0;
  margin: 0 auto;
  letter-spacing: 0.01em;
}
.spine__season {
  writing-mode: vertical-rl;
  margin: 0 auto;
  padding-bottom: 0.3rem;
  color: var(--ink-2);
  font-size: 0.68rem;
}

/* --------------------------------------------------------------------------
   8. Subscription
   -------------------------------------------------------------------------- */
.subscribe { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.subscribe__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem var(--col-gap);
}
/* each column carries its own double rule, like adjacent newspaper columns */
.offer,
.subscribe-form {
  position: relative;
  border-top: 3px solid var(--rule-strong);
  padding-top: 1rem;
}
.offer::before,
.subscribe-form::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 2px;
  border-top: 1px solid var(--rule-strong);
}

.offer__title {
  font-size: var(--step-3);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-top: 0.6rem;
}
.offer__plus { color: var(--accent); margin-inline: 0.15em; }

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  margin-top: 1.2rem;
  padding-block: 0.6rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.price__amount {
  font-size: clamp(3.2rem, 2rem + 5vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums;
}
.price__currency {
  font-size: 0.5em;
  vertical-align: 0.55em;
  margin-right: 0.08em;
  color: var(--accent);
}
.price__per { color: var(--ink-2); }

.terms {
  margin-top: 1.2rem;
  max-width: 26em;
}
.terms li {
  position: relative;
  padding-left: 1.4rem;
  padding-block: 0.35rem;
}
.terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 0.8rem;
  border-top: 1px solid var(--accent);
}

.subscribe-form { align-self: start; }
.subscribe-form__lede {
  font-size: var(--step-1);
  margin-bottom: 1.2rem;
}

.field__label {
  display: block;
  color: var(--ink-2);
  margin-bottom: 0.5rem;
}
.field__row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--ink);
  transition: border-color 0.2s var(--ease);
}
.field__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0.6rem 0;
  font-size: var(--step-1);
  outline-offset: 4px;
}
.field__input::placeholder { color: var(--ink-2); opacity: 0.6; }
.field__row:focus-within {
  border-bottom-color: var(--accent);
  border-bottom-width: 2px;
  margin-bottom: -1px;
}
.field__input[aria-invalid="true"] { color: var(--accent); }
.field--invalid .field__row { border-bottom-color: var(--accent); }

.button {
  background: none;
  border: 0;
  padding: 0.6rem 0 0.6rem 1rem;
  cursor: pointer;
  font-style: italic;
  font-size: var(--step-1);
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.button::after {
  content: " →";
  transition: transform 0.2s var(--ease);
  display: inline-block;
}
.button:hover { color: var(--accent); }
.button:hover::after { transform: translateX(0.2em); }
.button[disabled] { color: var(--ink-2); cursor: default; }
.button[disabled]::after { content: ""; }

.field__hint {
  margin-top: 0.7rem;
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
}
.field__msg {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  min-height: 1.5em;
  text-wrap: pretty;
}
.field__msg:empty { margin-top: 0; }
.field__msg--error { color: var(--accent); }
.field__msg--ok {
  color: var(--ink);
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}
.field__msg--ok strong { font-style: italic; font-weight: 400; }

.subscribe-form__reset {
  margin-top: 1rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.18em;
}
.subscribe-form__reset:hover { color: var(--ink); text-decoration-color: var(--accent); }

.subscribe-form[data-state="done"] .field__row,
.subscribe-form[data-state="done"] .field__hint { display: none; }

/* --------------------------------------------------------------------------
   9. Colophon
   -------------------------------------------------------------------------- */
.colophon {
  border-top: 1px solid var(--ink);
  padding-block: 1.5rem 3rem;
  color: var(--ink-2);
}
.colophon__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem var(--col-gap);
  align-items: start;
}
.colophon__mark {
  font-size: var(--step-2);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.colophon__text { max-width: 40em; font-size: 0.95rem; }
.colophon__folio a { text-decoration: none; }
.colophon__folio a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   10. Layout at width — asymmetric twelve-column composition
   -------------------------------------------------------------------------- */
@media (min-width: 720px) {
  .stories {
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--col-gap);
  }
  .story {
    border-top: 0;
    border-left: 1px solid var(--rule);
    padding-left: var(--col-gap);
    padding-block: 0.5rem 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "folio"
      "genre"
      "title"
      "byline"
      "summary";
  }
  .story:first-child { border-left: 0; padding-left: 0; }
  .story__folio {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
  }
  /* stagger the three like a contact sheet, not a row of cards */
  .story:nth-child(2) { margin-top: 2.5rem; }
  .story:nth-child(3) { margin-top: 5rem; }

  .section-head {
    grid-template-columns: 8rem 1fr 1fr;
  }
  .section-head__aside { justify-self: end; text-align: right; }

  .subscribe__grid { grid-template-columns: 1fr 1fr; }
  .colophon__grid { grid-template-columns: 8rem 1fr auto; }
}

@media (min-width: 960px) {
  .cover__grid {
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
  }
  .cover__text {
    grid-column: 1 / span 5;
    padding-top: 1.5rem;
  }
  .cover__art {
    grid-column: 7 / span 6;
    margin-top: clamp(2rem, 6vw, 5.5rem);   /* the picture hangs below the title: asymmetry */
  }

  .archive__grid { grid-template-columns: 5fr 7fr; }
  .archive__grid .section-head { grid-template-columns: 1fr; }
  .archive__grid .section-head__aside { justify-self: start; text-align: left; }
  .spines { justify-content: flex-start; gap: 0.75rem; padding-left: 1rem; }

  .subscribe__grid { grid-template-columns: 5fr 1fr 6fr; }
  .subscribe-form { grid-column: 3; }
}

@media (min-width: 1200px) {
  /* a true empty margin column on the left, a gap column between text and picture */
  .cover__text { grid-column: 2 / span 5; }
  .cover__art { grid-column: 8 / span 5; }
}

/* --------------------------------------------------------------------------
   11. Small screens — 390px and below
   -------------------------------------------------------------------------- */
@media (max-width: 719px) {
  .running-head { font-size: 0.66rem; gap: 0.3rem 1rem; }
  .masthead__grid {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }
  .issue-mark { padding-bottom: 0; }
  .masthead__bar { gap: 0.6rem 1rem; }
  .sections { gap: 0.2rem 1rem; }
  .cover__title { max-width: none; }
  .contours { max-height: none; }
  .spines { justify-content: center; }
  .spine { width: 5.2rem; }
}

@media (max-width: 420px) {
  .wordmark { font-size: clamp(4rem, 21vw, 5.5rem); }
  .mode { width: 100%; }
}

/* --------------------------------------------------------------------------
   12. Motion and print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .contours__rings path { stroke-dashoffset: 0; }
}

@media print {
  :root { --paper: #fff; --paper-deep: #fff; --ink: #000; --ink-2: #333; --rule: #999; --rule-strong: #000; }
  .skip, .mode, .sections, .subscribe-form, .colophon__folio { display: none; }
  .contours__rings path { animation: none; stroke-dashoffset: 0; }
  .cover__grid { display: block; }
  .story:nth-child(n) { margin-top: 0; }
}
