/* Second Look — editorial fashion, bone + oxblood, duotone plates that develop on a second look */

@font-face {
  font-family: "DM Serif Display";
  src: url("assets/dm-serif.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #F2EFE9;
  --surface: #E8E3DA;
  --ink: #1A1817;
  --muted: #5E5751;
  --accent: #6B2F26;
  --accent-deep: #55241C;
  --accent-ink: #F7EFE6;
  --stone: #CDC2B3;
  --rule: rgba(26, 24, 23, 0.16);

  --serif: "DM Serif Display", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.09 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 50;
  padding: 12px 20px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; outline: 2px solid var(--accent); outline-offset: 2px; }

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

.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--inverse { color: var(--stone); }

.section-title {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: rgba(242, 239, 233, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink);
}
.masthead__bar {
  display: flex; align-items: center; gap: 32px;
  min-height: var(--header-h);
}
.wordmark {
  display: inline-flex; align-items: baseline; gap: 10px;
  min-height: 44px; padding-block: 8px;
  font-family: var(--serif); font-size: 26px; line-height: 1.1; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.wordmark__issue { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.masthead__nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.navlink {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 12px;
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 12px calc(100% - 10px) / 0 1px;
  transition: background-size 220ms var(--ease), color 200ms var(--ease);
}
.navlink:active { transform: scale(0.97); }
.pocket {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 8px 8px 16px;
  border: 1px solid var(--ink);
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 150ms var(--ease);
}
.pocket__n {
  display: inline-grid; place-items: center;
  min-width: 28px; height: 28px; padding-inline: 6px; border-radius: 14px;
  border: 1.5px dashed currentColor;
  font-family: var(--mono); font-size: 13px; font-weight: 400;
}
.pocket.has-saved .pocket__n { border-style: solid; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pocket.is-bumped .pocket__n { animation: bump 300ms var(--ease); }
.pocket:active { transform: scale(0.97); }
.pocket:focus-visible { outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 41%);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "side type lead"
    "side topics lead";
  min-height: min(960px, calc(100svh - var(--header-h)));
  border-bottom: 1px solid var(--ink);
  overflow: clip;
}
.hero__side {
  grid-area: side;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--rule);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.hero__type {
  grid-area: type;
  display: flex; flex-direction: column; gap: 28px;
  padding: 48px clamp(24px, 4vw, 64px) 32px;
}
.stats {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--rule);
  animation: fade 700ms var(--ease) both 200ms;
}
.stats__item {
  display: grid; gap: 4px;
  padding: 16px 40px 0 0; margin-right: 40px;
  border-right: 1px solid var(--rule);
}
.stats__item:last-child { border-right: 0; margin-right: 0; }
.stats dt { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stats dd { font-family: var(--serif); font-size: clamp(2.25rem, 3.4vw, 3.25rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.stats__item:nth-child(2) dd { color: var(--accent); }
.hero__title { margin-top: auto; }
.kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  animation: fade 600ms var(--ease) both;
}
.hero__title { font-family: var(--serif); font-weight: 400; color: var(--ink); }
.hero__second {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  padding-left: 0.08em;
  animation: rise 700ms var(--ease) both 60ms;
}
.hero__look {
  display: block;
  font-size: clamp(8rem, 19.5vw, 18rem);
  line-height: 0.8;
  letter-spacing: -0.045em;
  margin-left: -0.05em;
  padding-bottom: 0.06em;
  animation: rise 900ms var(--ease) both 140ms;
}
.hero__deck {
  max-width: 34ch;
  font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
  line-height: 1.5;
  animation: fade 700ms var(--ease) both 260ms;
}

/* Lead plate — the full-bleed colour-flipped band */
.lead {
  grid-area: lead;
  display: flex; flex-direction: column;
  background: var(--accent);
  color: var(--accent-ink);
  animation: wipe 900ms var(--ease) both;
}
.lead__plate {
  position: relative; flex: 1 1 auto; min-height: 260px;
  overflow: hidden; background: var(--accent);
}
.lead__plate img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  filter: contrast(1.12) brightness(1.04);
  animation: develop 1400ms var(--ease) both 250ms;
}
.lead__body {
  display: grid; gap: 16px;
  padding: 32px clamp(24px, 3vw, 48px) 32px;
}
.lead__label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.lead__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 3.1vw, 3.25rem);
  line-height: 1.02; letter-spacing: -0.025em;
  max-width: 16ch;
}
.lead__summary { font-size: 17px; line-height: 1.55; max-width: 44ch; }
.lead__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.lead__meta { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }
.lead__credit { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; opacity: 0.85; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  border: 0; background: var(--accent-ink); color: var(--accent);
  font-size: 16px; font-weight: 700; letter-spacing: 0.01em;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.btn-primary span { transition: transform 200ms var(--ease); display: inline-block; }
.btn-primary:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.btn-primary:active { transform: scale(0.97); }

/* Topic index */
.topics {
  grid-area: topics;
  padding: 0 clamp(24px, 4vw, 64px) 40px;
  animation: fade 700ms var(--ease) both 360ms;
}
.topics__list {
  display: flex; flex-wrap: wrap;
  margin: 12px 0 0; padding: 0; list-style: none;
  border-top: 2px solid var(--ink);
}
.topic {
  display: flex; align-items: baseline; gap: 8px;
  min-height: 56px; padding: 12px 20px 12px 0; margin-right: 20px;
  border: 0; background: none; text-align: left;
  font-family: var(--serif); font-size: clamp(1.375rem, 1.9vw, 1.75rem); line-height: 1.1; letter-spacing: -0.01em;
  color: var(--ink);
  box-shadow: inset 0 -1px 0 transparent;
  transition: color 200ms var(--ease), box-shadow 200ms var(--ease), transform 150ms var(--ease);
}
.topic__n { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.topic[aria-pressed="true"] { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.topic:focus-visible { outline-offset: 0; }
.topic:active { transform: scale(0.97); }

/* ---------- Contents ---------- */
.contents { padding-block: 96px 128px; scroll-margin-top: var(--header-h); }
.contents__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px;
}
.contents__count { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-bottom: 8px; }

.tools {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  align-items: end; gap: 16px 24px;
  margin-top: 40px; padding-block: 24px;
  border-top: 2px solid var(--ink);
}
.field { display: grid; gap: 8px; }
.field__label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field__control { position: relative; }
.field__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input, .select {
  width: 100%; height: 52px;
  border: 1px solid var(--ink); border-radius: 0;
  background: rgba(255, 255, 255, 0.45);
  font-size: 17px; color: var(--ink);
  transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.input { padding: 0 16px 0 42px; }
.input::placeholder { color: var(--muted); opacity: 1; }
.select {
  -webkit-appearance: none; appearance: none;
  padding: 0 44px 0 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231A1817' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.input:focus-visible, .select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; background-color: #fff; }
.input:focus, .select:focus { box-shadow: inset 0 -3px 0 var(--accent); }

.saved-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px;
  border: 1px solid var(--ink); background: transparent;
  font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 150ms var(--ease);
}
.saved-toggle__hole {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px dashed currentColor;
  transition: background-color 200ms var(--ease);
}
.saved-toggle__n { font-family: var(--mono); font-size: 13px; font-weight: 400; }
.saved-toggle[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.saved-toggle[aria-pressed="true"] .saved-toggle__hole { border-style: solid; background: var(--bg); }
.saved-toggle:active { transform: scale(0.97); }

/* Index rows */
.index { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) clamp(200px, 21vw, 300px);
  gap: 32px;
  padding-block: 32px;
  border-bottom: 1px solid var(--rule);
  transition: background-color 250ms var(--ease);
}
.row:focus-within { background: var(--surface); }
.row__no {
  font-family: var(--serif); font-size: 64px; line-height: 0.9; letter-spacing: -0.04em;
  color: var(--accent);
  padding-left: 8px;
}
.row__text { display: grid; align-content: start; gap: 4px; min-width: 0; }
.row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.row__cat { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.row__data { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.row__tag {
  display: none; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.row__tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.row[data-saved="true"] .row__tag { display: inline-flex; }

.row__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.75rem, 2.9vw, 2.875rem);
  line-height: 1.04; letter-spacing: -0.025em;
  max-width: 22ch;
}
.row__open {
  display: inline; padding: 6px 0; margin: 0;
  border: 0; background: none; text-align: left;
  font: inherit; letter-spacing: inherit; line-height: inherit; color: inherit;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 0 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 250ms var(--ease), color 200ms var(--ease);
}
.row__open::after { content: ""; position: absolute; inset: 0; }
.row__open:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.row__open:active { color: var(--accent); }
.row:has(.row__open:active) .row__plate { transform: scale(0.98); }
.row__summary { max-width: 58ch; margin-top: 8px; font-size: 17px; line-height: 1.6; color: #3A3532; }
.row__byline { margin-top: 8px; font-size: 14px; color: var(--muted); }
.row__byline strong { color: var(--ink); font-weight: 600; }

.row__plate {
  position: relative; align-self: start;
  aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--stone);
  transition: background-color 300ms var(--ease), transform 150ms var(--ease);
}
.row__plate img {
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: luminosity; filter: contrast(1.1);
  transition: transform 300ms var(--ease);
}
.row:focus-within .row__plate { background: var(--accent); }

/* Empty state */
.empty {
  display: grid; justify-items: start; gap: 12px;
  padding: 64px 0 32px;
  border-top: 1px solid var(--ink);
  margin-top: 8px;
}
.empty__mark { font-family: var(--serif); font-size: 96px; line-height: 0.8; color: var(--accent); }
.empty__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; }
.empty__text { max-width: 52ch; color: var(--muted); }

.btn-ink {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; margin-top: 8px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  font-size: 16px; font-weight: 600;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 150ms var(--ease);
}
.btn-ink:active { transform: scale(0.97); }

/* ---------- Interlude ---------- */
.interlude {
  background: var(--ink); color: var(--bg);
  padding-block: 144px;
  overflow: clip;
}
.interlude__grid {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px;
}
.interlude__quote { display: grid; gap: 40px; }
.interlude__quote blockquote { margin: 0; }
.interlude__quote blockquote p {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 5rem); line-height: 1.04; letter-spacing: -0.03em;
  max-width: 19ch;
  text-indent: -0.42em;
}
.interlude__quote blockquote p::before { content: "\201C"; color: var(--stone); }
.interlude__quote blockquote p::after { content: "\201D"; color: var(--stone); }
.interlude__quote figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.interlude__source { font-family: var(--mono); font-size: 13px; color: var(--stone); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid var(--bg); background: transparent; color: var(--bg);
  font-size: 16px; font-weight: 600;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 150ms var(--ease);
}
.btn-ghost:focus-visible { outline: 2px solid var(--bg); outline-offset: 3px; }
.btn-ghost:active { transform: scale(0.97); }

/* ---------- Saved shelf ---------- */
.shelf { padding-block: 96px 112px; background: var(--surface); }
.shelf__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding-bottom: 32px; border-bottom: 1px solid var(--ink); }
.shelf__head .section-title:focus { outline: none; }
.shelf__head .section-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shelf__summary { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-bottom: 8px; }
.shelf__empty { margin-top: 32px; max-width: 52ch; font-size: 18px; color: var(--muted); }
.shelf__empty strong { color: var(--ink); }

.stubs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 24px; margin: 32px 0 0; padding: 0; list-style: none;
}
.stub {
  position: relative;
  display: grid; grid-template-columns: 84px minmax(0, 1fr);
  background: var(--bg);
  border: 1px solid var(--ink);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.stub:nth-child(3n + 2) { margin-top: 24px; }
.stub__no {
  display: grid; align-content: space-between; justify-items: center;
  padding: 20px 8px;
  border-right: 1.5px dashed var(--ink);
  font-family: var(--serif); font-size: 36px; line-height: 1; letter-spacing: -0.03em; color: var(--accent);
}
.stub__no::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink);
}
.stub__body { display: grid; gap: 8px; padding: 20px 20px 12px; }
.stub__cat { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.stub__title { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.12; letter-spacing: -0.015em; }
.stub__open {
  display: inline; padding: 9px 0; border: 0; background: none; text-align: left;
  font: inherit; letter-spacing: inherit; line-height: inherit; color: inherit;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: 0 95%; background-size: 0 2px;
  transition: background-size 250ms var(--ease);
}
.stub__open:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.stub__open:active { color: var(--accent); }
.stub__meta { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.stub__remove {
  justify-self: start;
  min-height: 44px; padding: 10px 0; border: 0; background: none;
  font-size: 14px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: color 200ms var(--ease), transform 150ms var(--ease);
}
.stub__remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stub__remove:active { transform: scale(0.97); }

/* ---------- Colophon ---------- */
.colophon { padding-block: 96px 64px; border-top: 1px solid var(--ink); }
.colophon__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 32px 48px; align-items: start; }
.colophon__mark { font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.5rem); line-height: 0.95; letter-spacing: -0.035em; }
.colophon__text { display: grid; gap: 12px; max-width: 46ch; font-size: 15px; color: var(--muted); }
.colophon__links { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.textlink {
  display: inline-flex; align-items: center; min-height: 44px; padding-block: 10px;
  color: var(--ink); font-size: 15px; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: color 200ms var(--ease), text-decoration-color 200ms var(--ease);
}
.textlink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; text-decoration: none; }
.textlink:active { color: var(--accent); }

/* ---------- Reader (detail dialog) ---------- */
.reader {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
.reader::backdrop { background: rgba(26, 24, 23, 0.55); }
.reader[open] .reader__inner { animation: sheet-in 260ms var(--ease) both; }

.reader__bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 16px;
  min-height: var(--header-h);
  padding-inline: var(--gutter);
  background: rgba(242, 239, 233, 0.96);
  border-bottom: 1px solid var(--ink);
}
.reader__close {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 16px 10px 0;
  border: 0; background: none;
  font-size: 16px; font-weight: 600;
  transition: color 200ms var(--ease), transform 150ms var(--ease);
}
.reader__close span { display: inline-block; transition: transform 200ms var(--ease); }
.reader__close:active { transform: scale(0.97); }
.reader__crumb {
  flex: 1; min-width: 0; text-align: center;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.save {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 18px;
  border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 700;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 150ms var(--ease);
}
.save__hole {
  position: relative; flex: none;
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px dashed currentColor;
}
.save__hole::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: 50%;
  background: var(--accent); opacity: 0;
}
.save[aria-pressed="true"] { background: transparent; color: var(--accent); }
.save[aria-pressed="true"] .save__hole { border-style: solid; background: var(--accent); }
.save.is-punching .save__hole::after { animation: chad 420ms var(--ease) both; }
.save:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.save:active { transform: scale(0.97); }

.reader__article {
  max-width: 1360px; margin-inline: auto;
  padding: 64px var(--gutter) 128px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px;
}
.reader__head {
  grid-column: 1 / -1;
  display: grid; gap: 20px;
  padding-bottom: 48px; margin-bottom: 48px;
  border-bottom: 1px solid var(--ink);
}
.reader__head .label { color: var(--accent); }
.reader__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.75rem, 6.6vw, 6.75rem);
  line-height: 0.98; letter-spacing: -0.035em;
  max-width: 15ch;
}
.reader__title:focus { outline: none; }
.reader__title:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.reader__deck { font-family: var(--serif); font-size: clamp(1.375rem, 2.1vw, 1.875rem); line-height: 1.28; letter-spacing: -0.01em; max-width: 34ch; }
.reader__byline { font-size: 15px; color: var(--muted); }
.reader__byline strong { color: var(--ink); font-weight: 600; }

.reader__aside { grid-column: 1 / span 5; }
.reader__plate { position: sticky; top: calc(var(--header-h) + 32px); }
.reader__plate { background: var(--accent); }
.reader__plate img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  mix-blend-mode: luminosity; filter: contrast(1.1) brightness(1.05);
}
.reader__plate figcaption {
  padding: 12px 0 0; background: var(--bg);
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.facts {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 24px;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule);
  font-size: 14px;
}
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.facts dd { font-family: var(--mono); font-size: 13px; }

.reader__body {
  grid-column: 7 / span 6;
  max-width: 62ch;
  font-size: 19px; line-height: 1.7;
}
.reader__body p + p { margin-top: 1.1em; }
.reader__body p:first-child::first-letter {
  float: left;
  font-family: var(--serif); font-size: 5.1em; line-height: 0.78;
  padding: 0.06em 0.1em 0 0;
  color: var(--accent);
}
.reader__foot { grid-column: 7 / span 6; margin-top: 64px; display: grid; gap: 32px; }
.reader__end { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--accent); }
.next {
  display: grid; gap: 8px; justify-items: start;
  width: 100%; padding: 24px 0; min-height: 44px;
  border: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule);
  background: none; text-align: left;
  transition: color 200ms var(--ease), transform 150ms var(--ease);
}
.next__label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.next__title { font-family: var(--serif); font-size: clamp(1.625rem, 2.4vw, 2.25rem); line-height: 1.08; letter-spacing: -0.02em; }
.next__title::after { content: " \2192"; display: inline-block; transition: transform 200ms var(--ease); }
.next:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.next:active { transform: scale(0.99); color: var(--accent); }

/* ---------- Hover (pointer devices only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .wordmark:hover { color: var(--accent); }
  .navlink:hover { background-size: calc(100% - 24px) 1px; color: var(--accent); }
  .pocket:hover { background: var(--ink); color: var(--bg); }
  .btn-primary:hover { background: #fff; transform: translateY(-2px); }
  .btn-primary:hover span { transform: translateX(4px); }
  .topic:hover { color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent); }
  .input:hover, .select:hover { background-color: rgba(255, 255, 255, 0.8); }
  .saved-toggle:hover { background: var(--surface); }
  .saved-toggle[aria-pressed="true"]:hover { background: #33302D; }
  .row:hover .row__open { background-size: 100% 2px; }
  .row:hover .row__plate { background: var(--accent); }
  .row:hover .row__plate img { transform: scale(1.03); }
  .row:hover .row__no { color: var(--ink); }
  .btn-ink:hover { background: var(--accent); border-color: var(--accent); }
  .btn-ghost:hover { background: var(--bg); color: var(--ink); }
  .stub:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--accent); }
  .stub__open:hover { background-size: 100% 2px; }
  .stub__remove:hover { color: var(--accent); }
  .textlink:hover { color: var(--accent); text-decoration-color: var(--accent); }
  .reader__close:hover { color: var(--accent); }
  .reader__close:hover span { transform: translateX(-4px); }
  .save:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
  .save[aria-pressed="true"]:hover { background: var(--surface); color: var(--accent); border-color: var(--accent); }
  .next:hover { color: var(--accent); }
  .next:hover .next__title::after { transform: translateX(6px); }
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28%); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes develop {
  from { opacity: 0; filter: contrast(0.6) brightness(1.9) blur(6px); }
  to { opacity: 1; filter: contrast(1.12) brightness(1.04) blur(0); }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 45% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes chad {
  0% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translate(10px, 30px) rotate(50deg) scale(0.8); }
}
@keyframes quote-in { from { opacity: 0.15; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @supports (animation-timeline: view()) {
    .interlude__quote blockquote p {
      animation: quote-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
  }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .row { grid-template-columns: 80px minmax(0, 1fr) 200px; gap: 24px; }
  .row__no { font-size: 48px; }
}

@media (max-width: 960px) {
  :root { --header-h: 108px; }
  .masthead__bar { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-block: 4px 0; }
  .wordmark { font-size: 24px; }
  .masthead__nav { order: 3; flex: 1 0 100%; min-width: 0; border-top: 1px solid var(--rule); }
  .masthead__nav ul {
    overflow-x: auto; margin-left: -12px; padding-right: 24px;
    scrollbar-width: none;
  }
  .masthead__nav ul::-webkit-scrollbar { display: none; }
  .navlink { white-space: nowrap; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "type" "lead" "topics";
    min-height: 0;
  }
  .hero__side { display: none; }
  .hero__type { padding: 28px var(--gutter) 32px; gap: 20px; }
  .hero__second { font-size: clamp(2.25rem, 9vw, 3.5rem); }
  .hero__look { font-size: clamp(7.5rem, 36vw, 15rem); }
  .lead__plate { flex: none; height: clamp(140px, 30vw, 320px); min-height: 0; }
  .lead__body { padding: 24px var(--gutter) 28px; gap: 12px; }
  .topics { padding: 32px var(--gutter) 40px; }

  .contents { padding-block: 64px 96px; }
  .tools { grid-template-columns: minmax(0, 1fr) auto; }
  .field--search { grid-column: 1 / -1; }

  .row { grid-template-columns: 56px minmax(0, 1fr); gap: 8px 16px; padding-block: 24px 28px; }
  .row__plate { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 2 / 1; }
  .row__no { font-size: 40px; padding-left: 0; }

  .interlude { padding-block: 96px; }
  .interlude__grid { grid-template-columns: minmax(0, 1fr); }

  .reader__bar { gap: 12px; min-height: 64px; }
  .reader__article { grid-template-columns: minmax(0, 1fr); padding-top: 40px; padding-bottom: 96px; }
  .reader__head { padding-bottom: 32px; margin-bottom: 32px; }
  .reader__aside, .reader__body, .reader__foot { grid-column: 1 / -1; }
  .reader__plate { position: static; }
  .reader__plate img { aspect-ratio: 3 / 2; }
  .facts { margin-bottom: 40px; }
  .reader__body { font-size: 18px; }

  .colophon__grid { grid-template-columns: minmax(0, 1fr); }
  .stub:nth-child(3n + 2) { margin-top: 0; }
}

@media (max-width: 640px) {
  .stats { display: none; }
  .lead__summary { display: none; }
  .lead__foot { margin-top: 4px; }
  .lead__credit { display: none; }
  .hero__deck { font-size: 17px; }
  .reader__crumb { display: none; }
  .reader__bar { justify-content: space-between; }
  .section-title { font-size: clamp(2.25rem, 10vw, 3rem); }
  .interlude__quote blockquote p { font-size: clamp(2rem, 9vw, 2.75rem); text-indent: 0; }
  .topic { margin-right: 16px; padding-right: 12px; }
}
