/* Hallmark · v2.0.0 · theme: custom · deal: manual · idea: "the page is issue one of a small magazine that follows one copy of one book from the shelf to the shop, the sale and the invoice" · vibe: "a culture quarterly, cool paper, one spot ink" · paper: cool white #f7f8fb (no cream, no brown, by request) · accent: ultramarine #1e2cc8, printed as a spot colour on whole spreads (cover, interlude, letters) · faces: Libre Caslon Display (heads), Newsreader (text), Hanken Grotesk (captions and controls) · hero: a cover; the cover line over one sentence and the demo, beside it the catalogue slip of the one copy · signature: the slip, "1 of 1" · posture: light/roman-serif/chromatic-ultramarine */
/* critique: one idea per spread, set big; the spot colour carries the pacing, not decoration. Photography is absent (no licensed photos of the house's own books yet), so type and the real product carry it; see the shot list in docs/EDITORIAL_CONCEPT.md. */
/* waive 54/67 (kickers): the issue line and the folio numerals are a magazine's running heads, set in the text faces at size, sentence case, untracked: not eyebrows. */

@font-face { font-family: "Libre Caslon Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/newsreader-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }

/* Tokens. Contrast (WCAG): ink on paper 17.3, ultra on paper 8.8, white on ultra 9.3,
   muted on paper 7.3, soft on ultra 6.1; dark: ink 16.1, accent 9.6, muted 8.2. */
:root {
  color-scheme: light dark;

  --color-paper: #f7f8fb;
  --color-paper-2: #eceef4;
  --color-ink: #11141c;
  --color-muted: #4b5266;
  --color-rule: #d3d8e3;
  --color-accent: #1e2cc8;
  --color-accent-deep: #1520a0;
  --color-spot: #1e2cc8;
  --color-on-spot: #ffffff;
  --color-on-spot-soft: #c8cdff;
  --color-slip: #ffffff;
  --color-slip-ink: #11141c;
  --color-slip-muted: #4b5266;
  --color-slip-rule: #d3d8e3;
  --shadow-slip: 0 1px 0 rgb(0 0 0 / 0.08), 0 24px 48px -24px rgb(8 12 60 / 0.55);

  --font-display: "Libre Caslon Display", "Times New Roman", serif;
  --font-text: "Newsreader", Georgia, serif;
  --font-ui: "Hanken Grotesk", system-ui, sans-serif;

  /* A fluid scale, far-apart steps. */
  --step--1: 0.9375rem;
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --step-3: clamp(2.25rem, 1.6rem + 2.8vw, 4rem);
  --step-4: clamp(3rem, 1.9rem + 5.6vw, 7rem);
  --step-5: clamp(5rem, 2rem + 13vw, 14rem);

  /* 4/8 spacing. */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 144px;
  --space-spread: clamp(var(--s-8), 4rem + 6vw, var(--s-10));

  --frame: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(var(--s-4), 2vw, var(--s-6));
  --measure: 34em;
  --radius: 2px;
  --mast-h: 60px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --fast: 150ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-paper: #0c0f17;
    --color-paper-2: #161a25;
    --color-ink: #e8ebf2;
    --color-muted: #a3aabb;
    --color-rule: #2a3040;
    --color-accent: #a8b2ff;
    --color-accent-deep: #c8cdff;
  }
}
:root[data-theme="dark"] {
  --color-paper: #0c0f17;
  --color-paper-2: #161a25;
  --color-ink: #e8ebf2;
  --color-muted: #a3aabb;
  --color-rule: #2a3040;
  --color-accent: #a8b2ff;
  --color-accent-deep: #c8cdff;
}

/* Base. */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--mast-h) + var(--s-4));
  hanging-punctuation: first last;
}
body {
  overflow-x: clip;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.55;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}
p { text-wrap: pretty; }
a { color: inherit; }
::selection { background: var(--color-spot); color: var(--color-on-spot); }

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

.frame {
  max-width: var(--frame);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

/* Focus: instant, never animated. */
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; transition: none; }
.cover :focus-visible, .interlude :focus-visible, .letters :focus-visible { outline-color: var(--color-on-spot); }

.skip {
  position: absolute; left: var(--s-4); top: -100px; z-index: 10;
  background: var(--color-ink); color: var(--color-paper);
  padding: var(--s-3) var(--s-4); font-family: var(--font-ui); font-weight: 500;
}
.skip:focus-visible { top: var(--s-4); }

/* Controls. One button, inverted on the spot-colour spreads. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: var(--s-3) var(--s-5);
  border-radius: var(--radius);
  background: var(--color-accent); color: var(--color-paper);
  font-family: var(--font-ui); font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.btn:hover { background: var(--color-accent-deep); }
.btn:active { transform: translateY(1px); }
.cover .btn, .letters .btn { background: var(--color-on-spot); color: var(--color-spot); }
.cover .btn:hover, .letters .btn:hover { background: var(--color-on-spot-soft); }

.more {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-ui); font-size: 1rem; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em;
  transition: text-decoration-thickness var(--fast) var(--ease), color var(--fast) var(--ease);
}
.more:hover { text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); }

/* The masthead: slim, sticky, the one persistent way into the demo. */
.mast {
  position: sticky; top: 0; z-index: 5;
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-rule);
}
.mast-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--mast-h); }
.nameplate {
  font-family: var(--font-display); font-size: 1.75rem; line-height: 1;
  text-decoration: none; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; min-height: 44px;
}
.mast ul { display: flex; align-items: center; gap: var(--s-1) var(--s-5); }
.mast li a:not(.sticker) {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--s-2);
  font-family: var(--font-ui); font-size: 1rem; font-weight: 500; text-decoration: none;
  transition: color var(--fast) var(--ease);
}
.mast li a:not(.sticker):hover { color: var(--color-accent); text-decoration: underline; text-underline-offset: 0.3em; }
.mast a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
.sticker {
  display: inline-flex; align-items: center; min-height: 44px; padding: var(--s-2) var(--s-4);
  border-radius: var(--radius);
  background: var(--color-accent); color: var(--color-paper);
  font-family: var(--font-ui); font-size: 1rem; font-weight: 600; text-decoration: none;
  transition: background-color var(--fast) var(--ease);
}
.sticker:hover { background: var(--color-accent-deep); }
.short-text { display: none; }
@media (max-width: 699px) {
  .mast .wide { display: none; }
  .wide-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .short-text { display: inline; }
}

/* The cover. */
.cover {
  background: var(--color-spot); color: var(--color-on-spot);
  padding-block: var(--s-5) clamp(var(--s-8), 4rem + 3vw, var(--s-10));
}
.cover-grid { display: grid; gap: var(--s-7) var(--gap); align-items: end; }
.issue-line { font-family: var(--font-ui); font-size: var(--step--1); font-weight: 500; color: var(--color-on-spot-soft); margin-bottom: var(--s-5); }
.issue-line a { text-decoration: none; }
.issue-line a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.dateline {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--color-on-spot-soft);
  font-family: var(--font-ui); font-size: var(--step--1); font-weight: 500; color: var(--color-on-spot-soft);
}
.cover h1 { font-size: var(--step-4); line-height: 0.94; max-width: 9em; }
.cover .lede { font-size: var(--step-1); line-height: 1.4; max-width: 24em; margin-block: var(--s-6) var(--s-7); }
.cover .more { color: var(--color-on-spot); }

.slip { max-width: 420px; justify-self: start; }
.slip-card {
  background: var(--color-slip); color: var(--color-slip-ink);
  padding: var(--s-6) var(--s-6) var(--s-5);
  border-radius: var(--radius);
  transform: rotate(-1deg);
  box-shadow: var(--shadow-slip);
}
.slip-label { font-family: var(--font-ui); font-size: var(--step--1); color: var(--color-slip-muted); }
.slip-count { font-family: var(--font-display); font-size: var(--step-3); line-height: 1; color: var(--color-spot); margin-block: var(--s-3) var(--s-5); font-variant-numeric: lining-nums; }
.slip-entry { font-size: var(--step-1); line-height: 1.35; }
.slip-author { font-weight: 500; }
.slip-imprint { margin-top: var(--s-2); color: var(--color-slip-muted); }
.slip-state {
  margin-top: var(--s-5); padding-top: var(--s-3);
  border-top: 1px solid var(--color-slip-rule);
  font-family: var(--font-ui); font-size: var(--step--1); font-weight: 500;
}
.slip figcaption { margin-top: var(--s-5); font-family: var(--font-ui); font-size: var(--step--1); color: var(--color-on-spot-soft); }

@media (min-width: 900px) {
  .cover-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .dateline { grid-column: 1 / -1; align-self: start; }
  .cover-copy { grid-column: 1 / span 7; }
  .slip { grid-column: 9 / -1; justify-self: stretch; }
}

/* Contents. */
.contents { padding-block: var(--space-spread); }
.contents-grid { display: grid; gap: var(--s-6) var(--gap); }
.contents h2 { font-size: var(--step-3); }
.toc { border-top: 1px solid var(--color-ink); }
.toc li { border-bottom: 1px solid var(--color-rule); }
.toc a, .toc-feature {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: var(--s-1) var(--s-4);
  padding-block: var(--s-4); text-decoration: none;
}
.toc-n { grid-row: span 2; font-family: var(--font-display); font-size: var(--step-2); line-height: 1; color: var(--color-accent); font-variant-numeric: lining-nums; }
.toc-t, .toc-feature-h { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; }
.toc-l { font-family: var(--font-ui); font-size: var(--step--1); color: var(--color-muted); }
.toc a:hover .toc-t, .toc-feature:hover .toc-feature-h { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.toc-feature {
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--s-5); padding: var(--s-5);
  background: var(--color-paper-2);
  border-left: 4px solid var(--color-accent);
}
.toc-feature-h { color: var(--color-accent); }
@media (min-width: 900px) {
  .contents-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .contents h2 { grid-column: 1 / span 4; }
  .toc { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); border-top: 0; }
  .toc li { border-top: 1px solid var(--color-ink); border-bottom: 0; }
  .toc-feature { grid-column: 5 / -1; }
}

/* A piece: folio, head, text, margin. */
.piece { padding-block: var(--space-spread); border-top: 1px solid var(--color-rule); }
.piece-grid { display: grid; gap: var(--s-5) var(--gap); }
.folio { font-family: var(--font-display); font-size: var(--step-3); line-height: 0.8; color: var(--color-accent); font-variant-numeric: lining-nums; }
.piece h2, .letters h2 { font-size: var(--step-3); max-width: 14em; }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: var(--s-4); }
.standfirst { font-size: var(--step-1); line-height: 1.4; }
.note {
  font-family: var(--font-ui); font-size: var(--step--1); line-height: 1.5; color: var(--color-muted);
  border-top: 1px solid var(--color-ink); padding-top: var(--s-3); max-width: 22em;
}

.dropcap > p:first-child::first-letter,
.dropcap-p::first-letter {
  font-family: var(--font-display); color: var(--color-accent);
  float: left; font-size: 4.1em; line-height: 0.82; margin: 0.06em 0.08em 0 0;
}
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
  .dropcap > p:first-child::first-letter,
  .dropcap-p::first-letter {
    float: none; font-size: inherit; line-height: inherit; margin: 0 0.1em 0 0;
    -webkit-initial-letter: 3; initial-letter: 3;
  }
}

@media (min-width: 900px) {
  .piece-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .folio { grid-column: 1 / span 2; font-size: var(--step-4); }
  .piece h2 { grid-column: 3 / span 8; }
  .piece .prose { grid-column: 3 / span 6; }
  .note { grid-column: 10 / -1; grid-row: 2; align-self: end; }
}

@media (min-width: 1100px) {
  .shelf .prose { grid-column: 3 / span 7; max-width: none; columns: 2; column-gap: var(--gap); }
  .shelf .prose p { break-inside: avoid-column; }
}
.paper { background: var(--color-paper-2); }

/* The window: a contact sheet of the six front doors. */
.sheet { margin-top: var(--s-7); }
.sheet ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--gap); }
.sheet li { min-width: 0; }
.sheet img {
  width: 100%; aspect-ratio: 390 / 480; object-fit: cover; object-position: top;
  background: var(--color-paper-2); outline: 1px solid var(--color-rule); outline-offset: -1px;
}
.sheet li span { display: block; margin-top: var(--s-2); font-family: var(--font-ui); font-size: var(--step--1); color: var(--color-muted); }
.sheet figcaption { margin-top: var(--s-6); font-family: var(--font-ui); font-size: var(--step--1); color: var(--color-muted); max-width: 36em; }
@media (min-width: 700px) {
  .sheet ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet img { aspect-ratio: 390 / 560; }
}
@media (min-width: 900px) {
  .sheet { grid-column: 1 / -1; }
  .sheet ul { grid-template-columns: repeat(6, minmax(0, 1fr)); padding-bottom: var(--s-8); }
  .sheet li:nth-child(even) { transform: translateY(var(--s-8)); }
  .sheet figcaption { margin-left: calc((100% + var(--gap)) / 6); }
}

/* The interlude: one line on a spot-colour page. */
.interlude { background: var(--color-spot); color: var(--color-on-spot); padding-block: var(--space-spread); }
.interlude-grid { display: grid; gap: var(--s-7) var(--gap); }
.interlude .pull { font-size: var(--step-4); line-height: 0.98; max-width: 11em; }
.interlude p { font-size: var(--step-1); line-height: 1.45; color: var(--color-on-spot-soft); max-width: 26em; }
@media (min-width: 900px) {
  .interlude-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .interlude .pull { grid-column: 1 / span 10; }
  .interlude p { grid-column: 7 / -1; }
}

/* The room: the one number, and the five states. */
.figure-big { display: grid; gap: var(--s-3) var(--gap); align-items: end; margin-block: var(--s-6); }
.big { font-family: var(--font-display); font-size: var(--step-5); line-height: 0.82; letter-spacing: -0.03em; color: var(--color-accent); font-variant-numeric: lining-nums; overflow-wrap: anywhere; min-width: 0; }
.figure-big figcaption { font-family: var(--font-ui); font-size: var(--step--1); color: var(--color-muted); max-width: 18em; }
.states { display: grid; gap: 0; counter-reset: none; }
.states li {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: var(--s-1) var(--s-3);
  padding-block: var(--s-4); border-top: 2px solid var(--color-ink);
}
.states .state-n { grid-row: span 2; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.1; font-variant-numeric: lining-nums; }
.states strong { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.05; }
.states li > span:last-child { font-family: var(--font-ui); font-size: var(--step--1); color: var(--color-muted); line-height: 1.45; }
.states .knock { border-top-color: var(--color-accent); }
.states .knock strong, .states .knock .state-n { color: var(--color-accent); }
@media (min-width: 900px) {
  .figure-big { grid-column: 3 / -1; grid-template-columns: auto minmax(0, 1fr); }
  .figure-big figcaption { padding-bottom: 1.2em; }
  .states { grid-column: 3 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gap); }
  .states li { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .states .state-n { grid-row: auto; }
}

/* The paper. */
.columns { display: grid; gap: var(--s-6) var(--gap); margin-top: var(--s-5); }
.columns li { border-top: 1px solid var(--color-ink); padding-top: var(--s-4); }
.columns h3 { font-size: var(--step-2); margin-bottom: var(--s-3); }
.columns p { color: var(--color-muted); }
@media (min-width: 700px) { .columns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .columns { grid-column: 3 / -1; } }

/* The small print. */
.small-print { display: grid; gap: 0 var(--gap); margin-top: var(--s-5); }
.small-print div { display: grid; gap: var(--s-1); padding-block: var(--s-4); border-top: 1px solid var(--color-rule); }
.small-print dt { font-weight: 500; font-size: var(--step-1); line-height: 1.25; }
.small-print dd { font-family: var(--font-ui); font-size: var(--step--1); color: var(--color-muted); }
@media (min-width: 700px) { .small-print { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .small-print { grid-column: 3 / span 9; } }

/* Letters: the back page and the sign-off. */
.letters { background: var(--color-spot); color: var(--color-on-spot); padding-block: var(--space-spread); }
.letters .folio { color: var(--color-on-spot-soft); }
.letters .standfirst { margin-bottom: var(--s-6); }
.letters .more { color: var(--color-on-spot); }
.address { font-family: var(--font-ui); font-size: 1rem; margin-bottom: var(--s-6); }
.blank { border-bottom: 1px dashed var(--color-on-spot-soft); color: var(--color-on-spot-soft); }
@media (min-width: 900px) {
  .letters h2 { grid-column: 3 / span 8; }
  .letters .prose { grid-column: 3 / span 6; }
}

/* The colophon. */
.colophon { border-top: 1px solid var(--color-rule); padding-block: var(--s-8) max(var(--s-8), env(safe-area-inset-bottom)); }
.colophon-grid { display: grid; gap: var(--s-5) var(--gap); font-family: var(--font-ui); font-size: var(--step--1); color: var(--color-muted); }
.colophon-name { font-family: var(--font-display); font-size: var(--step-2); color: var(--color-ink); line-height: 1; }
.colophon-text p + p { margin-top: var(--s-2); }
.quiet { max-width: 30em; }
.colophon-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.colophon-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); text-underline-offset: 0.3em; transition: color var(--fast) var(--ease); }
.colophon-links a:hover { color: var(--color-accent); }
@media (min-width: 900px) {
  .colophon-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .colophon-name { grid-column: 1 / span 2; }
  .colophon-text { grid-column: 3 / span 5; }
  .colophon-links { grid-column: 8 / -1; justify-content: flex-end; }
}

/* The feature article. */
.feature-head { background: var(--color-spot); color: var(--color-on-spot); padding-block: var(--s-8) var(--s-9); }
.feature-head-grid { display: grid; gap: 0 var(--gap); }
.feature-head h1 { font-size: var(--step-4); line-height: 0.96; max-width: 11em; }
.feature-head .standfirst { margin-top: var(--s-6); max-width: 28em; color: var(--color-on-spot); }
.feature-grid { display: grid; gap: var(--s-8) var(--gap); padding-block: var(--space-spread); }
.feature-body h2 {
  display: flex; align-items: baseline; gap: var(--s-4);
  font-size: var(--step-2); margin-block: var(--s-7) var(--s-3);
}
.feature-body .state-n { font-size: var(--step--1); font-family: var(--font-ui); font-weight: 600; color: var(--color-accent); min-width: 1.5rem; }
.pull-aside {
  margin-block: var(--s-7);
  border-top: 2px solid var(--color-accent); border-bottom: 1px solid var(--color-rule);
  padding-block: var(--s-5);
}
.pull-aside p { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.12; color: var(--color-accent); text-wrap: balance; }
.sidebar { align-self: start; border-top: 1px solid var(--color-ink); padding-top: var(--s-4); }
.sidebar h2 { font-size: var(--step-1); margin-bottom: var(--s-3); }
.sidebar li { font-family: var(--font-ui); font-size: var(--step--1); color: var(--color-muted); padding-block: var(--s-2); border-bottom: 1px solid var(--color-rule); }
@media (min-width: 900px) {
  .feature-head-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .feature-head-grid > * { grid-column: 3 / -1; }
  .feature-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .feature-body { grid-column: 3 / span 6; }
  .sidebar { grid-column: 10 / -1; position: sticky; top: calc(var(--mast-h) + var(--s-6)); }
  .pull-aside { margin-inline: calc(-1 * (100% + var(--gap)) / 6 * 2) 0; }
  .feature-end h2 { grid-column: 3 / span 8; }
  .feature-end .prose { grid-column: 3 / span 6; }
}

/* Not found. */
.lost { padding-block: var(--space-spread); }
.lost h1 { font-size: var(--step-4); margin-bottom: var(--s-5); }
.lost .actions { margin-top: var(--s-6); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:active { transform: none; }
}

@media print {
  .mast, .skip { display: none; }
  .cover, .interlude, .letters, .feature-head { background: none; color: var(--color-ink); }
}
