/* Magazine sample — Issue 01 */

:root {
  --paper: #f3ece0;
  --paper-2: #ebe1d1;
  --ink: #2a1d13;
  --ink-soft: #5a4331;
  --muted: #7a5c42;
  --rule: #d4c4ae;
  --terra: #a0522d;
  --clay: #c4956a;
  --choc: #1e150e;
  --on-choc: #f3ece0;
  --shadow: 0 1px 0 rgba(42, 29, 19, 0.06), 0 18px 40px -22px rgba(42, 29, 19, 0.45);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

:root[data-theme='dark'] {
  --paper: #16100b;
  --paper-2: #1f1710;
  --ink: #efe6d8;
  --ink-soft: #d4c3ad;
  --muted: #b09579;
  --rule: #3b2c20;
  --terra: #d9885c;
  --clay: #a8764c;
  --choc: #0d0906;
  --on-choc: #efe6d8;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }
::selection { background: var(--terra); color: var(--paper); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

/* Texture: paper grain + faint diagonal, atmosphere only */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 60;
  opacity: 0.35; mix-blend-mode: multiply;
  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 baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .11 0 0 0 0 .07 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(122, 92, 66, 0.035) 14px 15px);
}
:root[data-theme='dark'] .grain { mix-blend-mode: screen; opacity: 0.18; }

/* ------------------------------------------------------------------ */
/* Shared type                                                         */
/* ------------------------------------------------------------------ */

.kicker {
  display: block;
  margin: 0 0 12px;
  font: 500 11px/1.3 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
}
.display {
  margin: 0;
  font: 400 clamp(56px, 11vw, 168px)/0.9 var(--serif);
  letter-spacing: -0.03em;
}
.display--md { font-size: clamp(40px, 6.2vw, 92px); line-height: 0.98; }
.display em, .feature__title em { color: var(--terra); }

.dropcap::first-letter {
  float: left;
  font: 400 5.2em/0.8 var(--serif);
  margin: 0.08em 0.1em 0 0;
  color: var(--terra);
}

.page { position: relative; padding: clamp(72px, 10vw, 140px) var(--gutter); }
.page + .page { border-top: 1px solid var(--rule); }

/* Crop marks at every page corner */
.page::before, .page::after {
  content: ''; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border-color: var(--muted); opacity: 0.5;
}
.page::before { top: 14px; left: 14px; border-top: 1px solid; border-left: 1px solid; }
.page::after { bottom: 14px; right: 14px; border-bottom: 1px solid; border-right: 1px solid; }

/* ------------------------------------------------------------------ */
/* Motion primitives                                                   */
/* ------------------------------------------------------------------ */

[data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* split words: masked rise */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.14em 0.2em 0.16em 0.08em; margin: -0.14em -0.2em -0.16em -0.08em; }
.w > span { display: inline-block; transform: translate3d(0, 135%, 0); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 55ms); }
[data-split] { opacity: 1; transform: none; }
[data-split].is-in .w > span { transform: none; }

/* masthead chars */
.mast .ch { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.18em 0.1em 0.08em; margin: -0.18em -0.1em -0.08em; }
.mast .ch > span { display: inline-block; transform: translate3d(0, 125%, 0) rotate(6deg); transform-origin: 0 100%; transition: transform 1.3s var(--ease-out); transition-delay: calc(200ms + var(--i) * 65ms); }
.is-ready .mast .ch > span { transform: none; }

/* ------------------------------------------------------------------ */
/* Running head                                                        */
/* ------------------------------------------------------------------ */

.runhead {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  font: 500 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  transform: translate3d(0, -100%, 0);
  transition: transform 0.6s var(--ease-out);
}
.runhead.is-shown { transform: none; }
.runhead:focus-within { transform: none; }
.runhead__mast { font: 600 20px/1 var(--serif); letter-spacing: -0.01em; text-transform: none; }
.runhead__section { color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.runhead__right { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.runhead__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--terra); transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}
.folio { display: inline-flex; gap: 6px; align-items: baseline; font-variant-numeric: tabular-nums; }
.folio__roll { display: inline-block; font: 600 16px/1 var(--serif); letter-spacing: 0; color: var(--terra); }
.folio__of { color: var(--muted); }
.roll-up { animation: roll-up 0.45s var(--ease-out); }
.roll-down { animation: roll-down 0.45s var(--ease-out); }
@keyframes roll-up { from { transform: translateY(70%); opacity: 0; } }
@keyframes roll-down { from { transform: translateY(-70%); opacity: 0; } }

/* ------------------------------------------------------------------ */
/* Cover                                                               */
/* ------------------------------------------------------------------ */

.cover::before { display: none; }
.cover { min-height: 100vh; min-height: 100svh; padding-top: 22px; display: flex; flex-direction: column; overflow: hidden; }
.cover__top {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 10px; border-bottom: 1px solid var(--ink);
  font: 500 11px/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
}
.mast {
  margin: 0.04em 0 0;
  font: 600 clamp(64px, 19.2vw, 360px)/0.8 var(--serif);
  letter-spacing: -0.055em;
  text-align: center;
  white-space: nowrap;
  will-change: transform;
}
.cover__tag {
  margin: 14px 0 0; padding: 8px 0; text-align: center;
  border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink);
  font: 500 11px/1.2 var(--sans); letter-spacing: 0.34em; text-transform: uppercase;
}
.cover__grid {
  flex: 1; display: grid; gap: clamp(16px, 2.4vw, 36px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(0, 1fr);
  align-items: stretch; margin-top: clamp(20px, 3vw, 40px);
}
.cover__lines { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.cover__lines--right { text-align: right; }
.cl {
  display: block; text-decoration: none;
  opacity: 0; transform: translate3d(0, 18px, 0);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(900ms + var(--i) * 120ms);
}
.is-ready .cl { opacity: 1; transform: none; }
.cl__kick { display: block; font: 500 10px/1.3 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--terra); }
.cl__head { display: block; margin: 6px 0; font: 400 clamp(22px, 2.4vw, 38px)/1 var(--serif); letter-spacing: -0.01em; transition: color 0.3s; }
.cl__dek { display: block; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.cl__dek b { font-weight: 500; color: var(--terra); white-space: nowrap; }
.cl:hover .cl__head { color: var(--terra); }

.cover__art { position: relative; margin: 0; min-height: 320px; overflow: hidden; border: 1px solid var(--ink); }
.cover__art > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); will-change: transform; }
.cover__art::after {
  content: ''; position: absolute; inset: 0; background: var(--paper);
  transform-origin: 50% 0; transition: transform 1.4s var(--ease-out) 0.5s;
}
.is-ready .cover__art::after { transform: scaleY(0); }
.cover__stamp {
  position: absolute; right: 4%; bottom: 4%; width: clamp(80px, 11vw, 150px); z-index: 1;
  mix-blend-mode: multiply; opacity: 0.9;
  animation: spin 40s linear infinite;
}

.cover__issue {
  margin: clamp(18px, 2.4vw, 32px) 0 0;
  font: 400 clamp(28px, 4.6vw, 72px)/1 var(--serif); letter-spacing: -0.02em; text-align: center;
}
.cover__issue em { color: var(--terra); }

.sticker {
  position: absolute; z-index: 2;
  top: clamp(190px, 26vw, 460px); left: calc(var(--gutter) + 22%);
  width: clamp(96px, 11vw, 150px); aspect-ratio: 1;
  display: grid; place-items: center; text-decoration: none;
  background: var(--terra); color: var(--paper); border-radius: 50%;
  box-shadow: var(--shadow);
  transform: rotate(-12deg) scale(0);
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 1.6s;
}
.is-ready .sticker { transform: rotate(-12deg) scale(1); }
.sticker:hover { transform: rotate(0deg) scale(1.06); transition-delay: 0s; }
.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.sticker text { fill: currentColor; font: 500 15px var(--sans); text-transform: uppercase; }
.sticker__core { font: 600 clamp(16px, 1.7vw, 22px)/0.9 var(--serif); text-align: center; }
.sticker__core em { font-weight: 400; }
@keyframes spin { to { transform: rotate(360deg); } }

.cover__foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 24px; gap: 16px; }
.barcode { display: flex; flex-direction: column; gap: 4px; background: var(--paper); padding: 6px 8px 4px; border: 1px solid var(--rule); }
.barcode svg { width: 120px; height: 40px; fill: var(--ink); }
.barcode span { font: 500 9px/1 var(--sans); letter-spacing: 0.12em; }
.cover__open {
  font: 500 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid var(--ink);
}
.cover__open span { display: inline-block; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* ------------------------------------------------------------------ */
/* Contents                                                            */
/* ------------------------------------------------------------------ */

.contents__head { display: flex; flex-direction: column-reverse; gap: 8px; padding-bottom: 24px; border-bottom: 3px double var(--ink); }
.contents__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 96px); margin-top: 40px; }
.letter { align-self: start; position: sticky; top: 90px; }
.letter__lede { margin: 0 0 18px; font: 400 clamp(28px, 3vw, 42px)/1.05 var(--serif); }
.letter__lede em { color: var(--terra); }
.letter__body { margin: 0; color: var(--ink-soft); font-size: 15px; }
.letter__sig { margin: 24px 0 0; font: italic 400 26px/1 var(--serif); }
.letter__sig span { display: block; margin-top: 8px; font: 400 12px/1.3 var(--sans); font-style: normal; color: var(--muted); letter-spacing: 0.04em; }

.toc { list-style: none; margin: 0; padding: 0; }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a {
  display: grid; grid-template-columns: clamp(64px, 9vw, 120px) 1fr auto; gap: 20px; align-items: baseline;
  padding: 22px 0; text-decoration: none; position: relative;
}
.toc a::before {
  content: ''; position: absolute; inset: 0; background: var(--paper-2);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.45s var(--ease-out); z-index: -1;
}
.toc a:hover::before, .toc a:focus-visible::before { transform: scaleY(1); }
.toc__num { font: 400 clamp(40px, 5vw, 72px)/0.9 var(--serif); color: var(--terra); font-variant-numeric: lining-nums; transition: transform 0.5s var(--ease-out); }
.toc a:hover .toc__num { transform: translateX(10px); }
.toc__body .kicker { margin-bottom: 6px; color: var(--muted); }
.toc__title { display: block; font: 400 clamp(24px, 2.6vw, 38px)/1.05 var(--serif); }
.toc__dek { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-soft); }
.toc__arrow { font-size: 22px; transform: translateX(-8px); opacity: 0; transition: 0.4s var(--ease-out); padding-right: 8px; }
.toc a:hover .toc__arrow { transform: none; opacity: 1; }

/* ------------------------------------------------------------------ */
/* Feature                                                             */
/* ------------------------------------------------------------------ */

.feature__opener { max-width: 1100px; margin: 0 auto clamp(48px, 7vw, 100px); text-align: center; }
.feature__title { margin: 0; font: 400 clamp(60px, 12.5vw, 200px)/0.86 var(--serif); letter-spacing: -0.04em; }
.feature__dek { max-width: 680px; margin: 28px auto 0; font: italic 400 clamp(18px, 1.7vw, 23px)/1.45 var(--serif); color: var(--ink-soft); }
.byline {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  margin: 28px 0 0; font: 500 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.pill { border: 1px solid var(--terra); color: var(--terra); border-radius: 999px; padding: 5px 10px; }

.feature__spread { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.feature__media { position: sticky; top: 84px; }
.plate { margin: 0; }
.plate__frame {
  overflow: hidden; border: 1px solid var(--ink); background: var(--paper-2);
  clip-path: inset(calc((1 - var(--wipe, 0)) * 100%) 0 0 0);
}
.plate__frame img { width: 100%; transform: scale(calc(1.18 - var(--wipe, 0) * 0.18)); transform-origin: 50% 100%; }
.plate figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.plate figcaption b { color: var(--terra); font-weight: 500; margin-right: 6px; letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }

.feature__text { max-width: 620px; font-size: 17px; line-height: 1.7; }
.feature__text p { margin: 0 0 1.2em; }
.subhead { margin: 2em 0 0.6em; font: 600 clamp(22px, 2vw, 28px)/1.15 var(--serif); }

.pull { margin: 2.2em 0; padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.pull p { margin: 0 !important; font: 400 clamp(28px, 3vw, 42px)/1.15 var(--serif); letter-spacing: -0.01em; }
.pull .w > span { transform: none; color: color-mix(in srgb, var(--ink) 18%, transparent); transition: color 0.35s; }
.pull .w.is-inked > span { color: var(--ink); }
.pull cite { display: block; margin-top: 16px; font: 500 11px/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; font-style: normal; color: var(--terra); }

.specs { margin: 2.4em 0 1.6em; padding: 22px; background: var(--paper-2); border-left: 3px solid var(--terra); }
.specs dl { margin: 0; display: grid; gap: 10px; }
.specs dl div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; font-size: 14px; }
.specs dt { font: 500 10px/1.9 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; }
.specs__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0 !important; }
.specs__links a, .colophon__more, .letters__alt a, .ad__link {
  font: 500 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 4px; transition: background-size 0.4s var(--ease-out), color 0.3s;
}
.specs__links a:hover, .colophon__more:hover, .letters__alt a:hover, .ad__link:hover { color: var(--terra); background-size: 0 1px; background-position: 100% 100%; }
.continued { font: italic 400 15px/1 var(--serif); color: var(--muted); text-align: right; }

/* ------------------------------------------------------------------ */
/* Profile                                                             */
/* ------------------------------------------------------------------ */

.profile { background: var(--paper-2); }
.profile__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.profile__art { margin: 0; position: sticky; top: 90px; }
.profile__art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--ink); filter: sepia(0.15) contrast(1.02); }
.profile__art figcaption { margin-top: 12px; font: italic 400 15px/1.3 var(--serif); }
.profile__art figcaption span { display: block; font: 400 12px/1.3 var(--sans); font-style: normal; color: var(--muted); margin-top: 4px; }
.profile__intro { margin: 28px 0 36px; font: 400 clamp(17px, 1.5vw, 20px)/1.55 var(--serif); color: var(--ink-soft); }
.qa { margin: 0; }
.qa > div { padding: 22px 0; border-top: 1px solid var(--rule); }
.qa dt { font: 600 clamp(19px, 1.6vw, 23px)/1.25 var(--serif); }
.qa dt::before { content: 'Q. '; color: var(--terra); }
.qa dd { margin: 10px 0 0; color: var(--ink-soft); }
.qa dd::before { content: 'A. '; font: 600 15px var(--serif); color: var(--terra); }

.stats { list-style: none; padding: 0; margin: clamp(56px, 8vw, 110px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px double var(--ink); }
.stats li { padding: 24px 20px 0 0; }
.stats li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.stats__num { display: block; font: 400 clamp(52px, 7vw, 110px)/0.9 var(--serif); color: var(--terra); font-variant-numeric: tabular-nums; }
.stats__label { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-soft); max-width: 22ch; }

/* ------------------------------------------------------------------ */
/* Archive / classifieds                                               */
/* ------------------------------------------------------------------ */

.archive { padding-top: 0; }
.ticker { margin: 0 calc(var(--gutter) * -1) clamp(56px, 8vw, 110px); overflow: hidden; background: var(--ink); color: var(--paper); }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker span { white-space: nowrap; padding: 14px 0; font: 500 12px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; }
@keyframes ticker { to { transform: translateX(-50%); } }

.archive__head { display: grid; grid-template-columns: auto minmax(0, 360px); justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 20px; border-bottom: 3px double var(--ink); }
.archive__dek { margin: 0; color: var(--ink-soft); }
.archive__dek b { color: var(--ink); font-weight: 500; }

.classifieds { column-count: 4; column-gap: 0; column-rule: 1px solid var(--rule); margin-top: 32px; }
.dept { break-inside: auto; padding: 0 18px; }
.dept__head {
  display: flex; justify-content: space-between; margin: 0 0 14px; padding: 8px 10px;
  background: var(--ink); color: var(--paper); break-after: avoid;
  font: 500 11px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
}
.dept + .dept .dept__head { margin-top: 18px; }
.ad {
  break-inside: avoid; margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px dashed var(--rule);
  font-size: 13.5px; line-height: 1.5;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s, background 0.3s;
}
.ad header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ad h4 { margin: 0; font: 700 15px/1.15 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; }
.ad__status { flex: none; font: 500 9px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra); border: 1px solid currentColor; padding: 3px 5px; }
.ad p { margin: 6px 0 0; color: var(--ink-soft); }
.ad .ad__stack { font-size: 11.5px; color: var(--muted); }
.ad__link { display: inline-block; margin-top: 10px; font-size: 10.5px; }
.ad__link.is-muted { background: none; color: var(--muted); }
.ad--display { padding: 14px; border: 1px solid var(--ink); background: var(--paper); }
.ad--display h4 { font: 400 26px/1 var(--serif); letter-spacing: -0.01em; text-transform: none; }
.ad:hover { transform: translate3d(0, -3px, 0) rotate(-0.4deg); }
.ad--display:hover { box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ */
/* Back pages                                                          */
/* ------------------------------------------------------------------ */

.back__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: clamp(32px, 6vw, 110px); }
.colophon { align-self: start; padding: 26px; border: 1px solid var(--ink); }
.colophon__lede { margin: 0 0 20px; font: italic 400 19px/1.45 var(--serif); }
.colophon dl { margin: 0 0 22px; display: grid; gap: 14px; }
.colophon dt { font: 500 10px/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); }
.colophon dd { margin: 3px 0 0; font-size: 14px; color: var(--ink-soft); }
.letters__body { max-width: 560px; margin: 26px 0 36px; font-size: 17px; color: var(--ink-soft); }
.letters__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.letters__mail a { font: 400 clamp(22px, 3.2vw, 44px)/1.1 var(--serif); text-decoration: none; word-break: break-all; transition: color 0.3s; }
.letters__mail a:hover { color: var(--terra); }
.letters__mail button {
  border: 1px solid var(--ink); background: none; color: var(--ink); border-radius: 999px; padding: 9px 16px; cursor: pointer;
  font: 500 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; transition: background 0.3s, color 0.3s;
}
.letters__mail button:hover { background: var(--ink); color: var(--paper); }
.letters__alt { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 22px; }

.endmark {
  margin: clamp(72px, 10vw, 140px) calc(var(--gutter) * -1) calc(clamp(72px, 10vw, 140px) * -1);
  padding: clamp(56px, 8vw, 110px) var(--gutter);
  background: var(--choc); color: var(--on-choc); text-align: center;
}
.endmark p { margin: 0; font: 400 clamp(30px, 5vw, 76px)/1.05 var(--serif); letter-spacing: -0.02em; }
.endmark em { color: var(--clay); }
.endmark .endmark__sig { margin-top: 24px; font: italic 400 24px/1 var(--serif); }

/* Cursor peek */
.peek {
  position: fixed; left: 0; top: 0; z-index: 70; width: 240px; pointer-events: none;
  padding: 6px; background: var(--paper); border: 1px solid var(--ink); box-shadow: var(--shadow);
  opacity: 0; transition: opacity 0.25s;
}
.peek.is-on { opacity: 1; }
.peek img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

:root[data-theme='dark'] .cover__stamp { mix-blend-mode: screen; filter: invert(1) sepia(0.5); opacity: 0.55; }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1100px) {
  .classifieds { column-count: 3; }
}

@media (max-width: 860px) {
  .runhead { grid-template-columns: auto 1fr auto; }
  .runhead__section { text-align: left; }
  .cover__grid { grid-template-columns: 1fr 1fr; }
  .cover__art { grid-column: 1 / -1; order: -1; aspect-ratio: 4 / 3; min-height: 0; }
  .cover__lines--right { text-align: left; }
  .sticker { top: auto; bottom: 150px; left: auto; right: var(--gutter); }
  .contents__grid, .feature__spread, .profile__grid, .back__grid { grid-template-columns: 1fr; }
  .letter, .feature__media, .profile__art { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .classifieds { column-count: 2; }
  .archive__head { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hide-sm { display: none; }
  .runhead__section { display: none; }
  .cover__top span:nth-child(2) { display: none; }
  .cover__grid { grid-template-columns: 1fr; }
  .cover__lines { gap: 20px; }
  .cover__tag { letter-spacing: 0.2em; font-size: 10px; }
  .toc a { grid-template-columns: 56px 1fr; }
  .toc__arrow { display: none; }
  .classifieds { column-count: 1; }
  .dept { padding: 0; }
  .stats li { padding-right: 10px; }
  .stats li + li { padding-left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  [data-reveal], .cl { opacity: 1; transform: none; }
  .w > span, .mast .ch > span { transform: none; }
  .cover__art::after { transform: scaleY(0); }
  .sticker { transform: rotate(-12deg); }
  ::view-transition-new(root) { animation: none; }
}

/* Same final states for the `?still` review flag */
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.still [data-reveal], .still .cl { opacity: 1; transform: none; }
.still .w > span, .still .mast .ch > span { transform: none; }
.still .cover__art::after { transform: scaleY(0); }
.still .sticker { transform: rotate(-12deg); }
