/* ==========================================================================
   FILOGEJOS — dark editorial / magazine style
   Centralised design system. All typographic scale lives here.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* surfaces */
  --bg:          #0d0d0c;
  --bg-raised:   #151513;
  --bg-sunken:   #090908;
  --bg-card:     #171715;
  --bg-hover:    #1f1f1c;

  /* ink */
  --ink:         #e9e4d8;
  --ink-strong:  #fbf8f1;
  --ink-dim:     #a49e90;
  --ink-faint:   #6d685d;

  /* lines */
  --rule:        #2b2b26;
  --rule-strong: #3d3d35;

  /* accents — one per article variant */
  --accent:      #c5d136;   /* logo lime  */
  --accent-2:    #e9b949;   /* amber      */
  --accent-3:    #79cbbd;   /* teal       */
  --accent-4:    #e2765b;   /* terracotta */

  /* the live accent for the current block (re-bound per variant) */
  --c: var(--accent);

  --paper:       #f3f0e7;   /* mount behind scanned art */

  /* type */
  --font-display: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-label:   "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* measure & rhythm */
  --measure: 68ch;
  --shell: 1200px;
  --gap: clamp(1rem, 3vw, 2.5rem);
  --radius: 3px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint paper grain so large dark areas are not dead flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: var(--accent); color: #10100e; }

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

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.shell--narrow { width: min(100% - 2rem, 860px); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #10100e;
  padding: .6rem 1rem; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- 3. Shared type primitives ---------- */
.kicker {
  font-family: var(--font-label);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c);
}

.rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 0;
}

.mark {
  width: 1.05em; height: 1.28em;
  flex: none;
  display: inline-block;
  vertical-align: -.22em;
}

/* ---------- 4. Site header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 13, 12, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding-block: .55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: .01em;
  line-height: 1;
  margin-right: auto;
}
.brand img { width: 22px; height: 27px; }
.brand:hover { color: var(--accent); }

.nav { display: flex; align-items: center; gap: .25rem; }

.nav a {
  text-decoration: none;
  color: var(--ink-dim);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .55rem .8rem;
  border-radius: var(--radius);
  transition: color .18s, background-color .18s;
}
.nav a:hover { color: var(--ink-strong); background: var(--bg-hover); }
.nav a[aria-current="page"] { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  border-radius: var(--radius);
  padding: .45rem .7rem;
  font: inherit;
  font-size: .8125rem;
  cursor: pointer;
}

/* issue strip: 1..13 */
.issue-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  padding-block: .5rem .7rem;
  border-top: 1px solid var(--rule);
}
.issue-strip__label {
  font-family: var(--font-label);
  font-size: .625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-right: .5rem;
}
.issue-strip a,
.issue-strip span {
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding-inline: .4rem;
  font-size: .8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  color: var(--ink-dim);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: all .18s;
}
.issue-strip a:hover {
  color: #10100e;
  background: var(--accent);
  border-color: var(--accent);
}
.issue-strip a[aria-current="page"] {
  color: #10100e;
  background: var(--accent);
  border-color: var(--accent);
}
.issue-strip .is-missing {
  color: var(--ink-faint);
  border-style: dashed;
  opacity: .55;
  cursor: not-allowed;
}
.issue-strip .is-soon {
  color: var(--ink-faint);
  border-style: dotted;
}

/* article category navigation */
.category-strip {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding-block: .48rem .65rem;
  border-top: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}
.category-strip__label {
  flex: none;
  margin-right: .45rem;
  font-family: var(--font-label);
  font-size: .625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.category-strip a {
  flex: none;
  padding: .42rem .65rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink-dim);
  font-family: var(--font-label);
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s, background-color .18s, border-color .18s;
}
.category-strip a:hover {
  color: var(--ink-strong);
  background: var(--bg-hover);
  border-color: var(--rule);
}
.category-strip a[aria-current="page"] {
  color: #10100e;
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- 5. Masthead (home) ---------- */
.masthead {
  padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.masthead::after {
  content: "";
  position: absolute;
  left: 50%; top: -40%;
  width: min(900px, 90vw); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(197,209,54,.11), transparent 62%);
  pointer-events: none;
}
.masthead__logo {
  width: clamp(52px, 8vw, 76px);
  height: auto;
  margin: 0 auto clamp(1rem, 3vw, 1.75rem);
}
.masthead h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 13vw, 9.5rem);
  line-height: .84;
  letter-spacing: -.025em;
  margin: 0;
  color: var(--ink-strong);
}
.masthead__tagline {
  max-width: 46ch;
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
  color: var(--ink-dim);
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  line-height: 1.6;
}
.masthead__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  font-family: var(--font-label);
  font-size: .6875rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.masthead__meta a { color: var(--accent); text-underline-offset: .22em; }
.masthead__meta strong { color: var(--accent); font-weight: 600; }

/* ---------- 6. Section headings ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.25rem, 3vw, 2rem);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  letter-spacing: -.01em;
  margin: 0;
  color: var(--ink-strong);
  white-space: nowrap;
}
.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ---------- 7. Issue cards (home) ---------- */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
  gap: clamp(.85rem, 2vw, 1.4rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  list-style: none;
  margin: 0;
  padding-inline: 0;
}
.issue-grid > li { display: flex; }

.issue-card {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.35rem 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color .2s, transform .2s, background-color .2s;
}
.issue-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--c);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s ease;
}
.issue-card:hover {
  border-color: var(--rule-strong);
  background: var(--bg-hover);
  transform: translateY(-2px);
}
.issue-card:hover::before { transform: scaleY(1); }

.issue-card__no {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--c);
  font-variant-numeric: tabular-nums;
}
.issue-card__date {
  font-family: var(--font-label);
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.issue-card__titles {
  margin: .15rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-dim);
  font-size: .875rem;
  line-height: 1.55;
  display: grid;
  gap: .18rem;
}
.issue-card__titles li { position: relative; padding-left: .85rem; }
.issue-card__titles li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 4px; height: 4px;
  background: var(--c);
  opacity: .65;
}
.issue-card__count {
  margin-top: auto;
  padding-top: .9rem;
  font-family: var(--font-label);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.issue-card--empty {
  border-style: dashed;
  opacity: .6;
  cursor: default;
}
.issue-card--empty:hover { transform: none; background: var(--bg-card); }
.issue-card--empty .issue-card__no { color: var(--ink-faint); }

/* ---------- 8. Issue page header ---------- */
.issue-header {
  padding-block: clamp(2.25rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 2px solid var(--rule-strong);
}
.issue-header__top {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.issue-header__no {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 11vw, 7rem);
  line-height: .82;
  letter-spacing: -.03em;
  color: var(--ink-strong);
  margin: .4rem 0 0;
}
.issue-header__no span { color: var(--accent); }
.issue-header__date {
  font-family: var(--font-label);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: .9rem;
}

/* article category heading */
.collection-header {
  padding-block: clamp(2.25rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 2px solid var(--rule-strong);
}
.collection-header h1 {
  max-width: 18ch;
  margin: .35rem 0 .65rem;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.collection-header > p:last-child {
  margin: 0;
  color: var(--ink-dim);
  font-family: var(--font-label);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* "in this issue" panel */
.toc-panel {
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  padding: 1.25rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.toc-panel__title {
  font-family: var(--font-label);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .6rem;
}
.toc-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .3rem; }
.toc-panel li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink);
  font-size: .9375rem;
}
.toc-panel li::before {
  content: "\2731";
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-size: .7rem;
  line-height: 1.9;
}

/* ---------- 9. The article stream ---------- */
.stream {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 8vw, 6rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}
.stream--latest { padding-top: 0; }

/* --- 9a. Article --- */
.article {
  position: relative;
  min-width: 0;
  scroll-margin-top: 140px;
}

.article__head { margin-bottom: clamp(1.1rem, 2.5vw, 1.6rem); }

.article__kicker {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-label);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: .7rem;
}
.article__kicker .mark { opacity: .95; }
.article__kicker span { color: var(--ink-faint); }

.article__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 1.25rem + 2.1vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.018em;
  margin: 0;
  color: var(--ink-strong);
  text-wrap: balance;
}
.article__title-link { color: inherit; text-decoration: none; }
.article__title-link:hover { color: var(--c); }

.article__deck {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, .98rem + .55vw, 1.4rem);
  line-height: 1.42;
  color: var(--ink-dim);
  margin: .7rem 0 0;
  max-width: 54ch;
  text-wrap: pretty;
}

.article__byline {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1rem;
  padding: .3rem .7rem .3rem .5rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.article__byline::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c);
}

.article__body { min-width: 0; max-width: var(--measure); overflow-wrap: anywhere; }
.article__body > p { margin: 0 0 1.15em; text-wrap: pretty; }
.article__body > p.tight { margin-bottom: .28em; }
.article__body > p:last-child { margin-bottom: 0; }

.article__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.05rem + .55vw, 1.5rem);
  line-height: 1.25;
  color: var(--ink-strong);
  margin: 2em 0 .6em;
}
.article__body h4 {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c);
  margin: 1.9em 0 .5em;
}

.article__body strong { color: var(--ink-strong); font-weight: 650; }
.article__body em { font-style: italic; }
.article__body ul,
.article__body ol { max-width: var(--measure); padding-left: 1.35rem; }
.article__body li { margin-bottom: .45em; }
.article__body blockquote {
  margin: 1.5rem 0;
  padding: .25rem 0 .25rem 1.2rem;
  border-left: 3px solid var(--c);
  color: var(--ink-dim);
  font-family: var(--font-display);
  font-style: italic;
}
.article__body table {
  display: block;
  max-width: 100%;
  margin: 1.5rem 0;
  overflow-x: auto;
  border-collapse: collapse;
}
.article__body th,
.article__body td { padding: .5rem .7rem; border: 1px solid var(--rule-strong); text-align: left; }
.article__body hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--rule-strong); }
.article__body .article-image,
.article__deck .article-image {
  width: auto;
  max-width: min(100%, 760px);
  max-height: 78vh;
  margin: 1.6rem auto;
  padding: .45rem;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
}
.article__deck .article-image { margin-bottom: 1rem; }
.article__body p:has(> .article-image:only-child) { margin: 0; }

/* drop cap on the opening paragraph */
.article__body > p.lede::first-letter {
  float: left;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.4em;
  line-height: .8;
  padding: .06em .1em 0 0;
  margin-right: .04em;
  color: var(--c);
}

/* --- 9b. Article variants: rotate the accent + head treatment --- */
.article--v1 { --c: var(--accent); }
.article--v2 { --c: var(--accent-2); }
.article--v3 { --c: var(--accent-3); }
.article--v4 { --c: var(--accent-4); }

/* v1 — top rule, classic broadsheet */
.article--v1 .article__head {
  border-top: 3px solid var(--c);
  padding-top: 1rem;
}

/* v2 — left accent bar, indented */
.article--v2 {
  border-left: 1px solid var(--rule);
  padding-left: clamp(1rem, 3vw, 2rem);
}
.article--v2 .article__head { position: relative; }
.article--v2 .article__head::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1rem, 3vw, 2rem) - 1px);
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--c);
}

/* v3 — inset card */
.article--v3 {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
}
.article--v3 .article__title { font-style: italic; }

/* v4 — centred feature */
.article--v4 { text-align: center; }
.article--v4 .article__kicker { justify-content: center; }
.article--v4 .article__deck { margin-inline: auto; }
.article--v4 .article__body { text-align: left; margin-inline: auto; }
.article--v4 .article__head {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

/* --- 9c. Notes / sidebars / period adverts --- */
.note {
  max-width: var(--measure);
  padding: 1.35rem 1.5rem;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  position: relative;
}
.note--dashed {
  border-style: dashed;
  border-color: var(--rule-strong);
  background: transparent;
  text-align: center;
}
.note__label {
  position: absolute;
  top: -.62rem;
  left: 1.1rem;
  padding: 0 .5rem;
  background: var(--bg);
  font-family: var(--font-label);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.note--dashed .note__label { color: var(--accent-2); }
.note p { margin: 0 0 .8em; }
.note p:last-child { margin-bottom: 0; }
.note p.tight { margin-bottom: .25em; }
.note .article__byline { margin-top: .8rem; }

/* --- 9d. Full-width section banner from the original paper --- */
.band {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: .35rem;
}
.band::before, .band::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rule-strong));
}
.band::after { background: linear-gradient(90deg, var(--rule-strong), transparent); }
.band h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.35rem, 1.1rem + 1.3vw, 2.1rem);
  letter-spacing: -.01em;
  margin: 0;
  color: var(--accent);
  text-align: center;
}

/* --- 9e. Figures: art sits on a paper mount --- */
figure {
  margin: 1.6rem 0;
  max-width: var(--measure);
}
figure img {
  width: 100%;
  background: var(--paper);
  padding: .5rem;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
}
figure.figure--pop img {
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);
}
figcaption {
  margin-top: .6rem;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--ink-faint);
  font-style: italic;
  padding-left: .8rem;
  border-left: 2px solid var(--c);
}
.article--v4 figure { margin-inline: auto; }

/* --- 9f. Photo galleries (issues that ran a picture spread) --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(.6rem, 1.6vw, 1rem);
  max-width: 100%;
}
.gallery figure { margin: 0; max-width: none; }
.gallery img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: contain;
}
/* a lone pair reads better side by side than stretched wide */
.gallery[data-count="2"] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* --- 9g. Verse / legal-style runs --- */
.verse {
  margin: 1.3rem 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--c);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}

/* ---------- 10. Prev / next ---------- */
.pager {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--rule);
}
.pager a {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.pager a:hover { border-color: var(--accent); background: var(--bg-hover); }
.pager a:last-child { text-align: right; }
/* first or last issue: don't let the single link span the page */
.pager a:only-child { flex: 0 1 320px; margin-left: auto; }
.pager__dir {
  font-family: var(--font-label);
  font-size: .625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pager__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink-strong);
}

/* ---------- 11. Reading progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 60;
  transition: width .08s linear;
}

/* ---------- 12. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-sunken);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  color: var(--ink-faint);
  font-size: .875rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--ink-dim);
}
.site-footer__brand img { width: 18px; height: 22px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.site-footer a { color: var(--ink-dim); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ---------- 13. Prose page (about) ---------- */
.prose { max-width: var(--measure); padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 8vw, 6rem); }
.prose h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 1rem;
  color: var(--ink-strong);
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + .8vw, 1.65rem);
  margin: 2.2em 0 .6em;
  color: var(--ink-strong);
}
.prose p { margin: 0 0 1.15em; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--accent); text-underline-offset: .2em; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 760px) {
  .site-header__bar { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 0 0;
    border-top: 1px solid var(--rule);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 1rem; }

  .issue-strip { gap: .25rem; }
  .issue-strip__label { width: 100%; margin-bottom: .15rem; }
  .category-strip { width: 100%; padding-inline: 1rem; }

  .article--v2 { padding-left: 1rem; }
  .article--v3 { padding: 1.25rem 1.1rem; }
  .pager a:last-child { text-align: left; }
}

/* ---------- 15. Print ---------- */
@media print {
  :root { --bg: #fff; --ink: #111; --ink-strong: #000; --ink-dim: #444; --rule: #ccc; }
  body { background: #fff; color: #111; }
  body::before, .site-header, .pager, .progress, .site-footer { display: none !important; }
  .article { break-inside: avoid; }
}
