/* FORTY — view-only issue. Warm-paper editorial look carried over from the newsroom. */
:root {
  --paper: #faf7f1; --desk: #e8e2d6; --ink: #211d18; --body: #4a4336; --muted: #7a6f5c; --light: #a8987a;
  --hair: #c9bfa9; --hair2: #d8d0c0; --amber: #d68a1e; --amber-text: #a8651a; --gold: #f1d26b;
  --tab-yellow: #fbf3d5; --tab-red: #c0392b;
  --serif: 'Libre Caslon Text', Georgia, serif; --sans: Archivo, 'Helvetica Neue', Arial, sans-serif;
  --gutter: 16px; --measure: 720px;
}
@media (min-width: 760px) { :root { --gutter: 48px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body { margin: 0; background: var(--desk); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--amber-text); }
button { font: inherit; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }

.kicker { font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--amber-text); margin: 0 0 8px; }
.label { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.btn { display: inline-block; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); padding: 13px 22px; font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: #3d3226; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(33,29,24,0.08); }

/* ---------- masthead ---------- */
.mast { background: var(--paper); border-bottom: 3px double var(--ink); text-align: center; padding: 18px var(--gutter) 0; }
.strip { display: flex; justify-content: space-between; gap: 12px; font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.strip span:first-child, .strip span:last-child { display: none; }
@media (min-width: 760px) { .strip { font-size: 11px; letter-spacing: 2.5px; } .strip span:first-child, .strip span:last-child { display: inline; } }
.mast h1 { font-size: clamp(64px, 18vw, 124px); line-height: 0.95; margin: 12px 0 4px; font-weight: 700; letter-spacing: 0.04em; }
.mast h1 a { color: inherit; text-decoration: none; }
.dateline { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--amber-text); padding: 0 8px; }
@media (min-width: 760px) { .dateline { font-size: 12px; letter-spacing: 4px; } }
.tabs { display: flex; justify-content: center; gap: 28px; margin-top: 16px; }
.tabs a { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 10px 2px 12px; border-bottom: 4px solid transparent; }
.tabs a[aria-current="page"] { border-bottom-color: var(--amber); }

main { background: var(--paper); }
.view { padding: 28px var(--gutter) 56px; max-width: 1240px; margin: 0 auto; }
.lede { max-width: var(--measure); margin-bottom: 26px; }
.lede h2 { font-size: clamp(30px, 6vw, 46px); line-height: 1.05; margin: 0 0 12px; font-weight: 700; }
.lede .sub { font-style: italic; color: var(--body); margin: 0 0 18px; }

/* ---------- newsstand wall ---------- */
.wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
@media (min-width: 560px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; } }
@media (min-width: 900px) { .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .wall { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 22px; } }
.slot { display: flex; flex-direction: column; gap: 8px; min-width: 0; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; }
.slot .cover { transform: rotate(var(--tilt, 0deg)); transition: transform .25s ease, box-shadow .25s ease; }
.slot:hover .cover, .slot:focus-visible .cover { transform: rotate(0deg) translateY(-4px) scale(1.02); box-shadow: 0 18px 36px rgba(30,22,8,0.35); }
.slot .under { display: flex; justify-content: space-between; gap: 8px; font-family: var(--sans); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.slot .under b { color: var(--ink); font-weight: 800; }

/* ---------- a cover, rendered live (scales with its container) ---------- */
.cover { container-type: inline-size; position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg, #141414); color: var(--fg, #fff);
  border: 1px solid var(--ink); box-shadow: 0 10px 26px rgba(30,22,8,0.25); display: flex; flex-direction: column; justify-content: space-between; }
.cover.framed { border: 2.6cqw solid var(--frame); }
.cover .ph { position: absolute; inset: 0; }
.cover .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
/* landscape & square photos: don't butcher them into 3:4 — letterbox over a blurred copy */
.cover .ph.fit img.bg { filter: blur(6cqw) brightness(0.55) saturate(1.1); transform: scale(1.25); }
.cover .ph.fit img.fg { object-fit: contain; }
.cover .shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.28), transparent 30%, transparent 55%, rgba(0,0,0,.6)); }
.cover .top { position: relative; text-align: center; padding: 5cqw 4cqw 0; }
.cover .masthead { font-weight: 900; line-height: 0.98; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.35); overflow-wrap: anywhere; font-family: var(--sans); letter-spacing: 0; font-size: var(--mast-size, 14cqw); }
.cover.serif .masthead { font-family: var(--serif); font-weight: 700; letter-spacing: 0.04em; }
.cover .tagline { font-family: var(--sans); font-size: 3.4cqw; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 1.5cqw; color: var(--accent); }
.cover .bottom { position: relative; padding: 0 4.5cqw 5cqw; display: flex; flex-direction: column; gap: 2cqw; }
.cover .main { font-family: var(--sans); font-weight: 900; font-size: 8cqw; line-height: 1.06; text-transform: uppercase; text-shadow: 0 1px 10px rgba(0,0,0,.45); overflow-wrap: anywhere; }
.cover .subline { font-family: var(--sans); font-weight: 600; font-size: 4.3cqw; line-height: 1.3; color: var(--accent); text-shadow: 0 1px 6px rgba(0,0,0,.35); }

/* ---------- cover viewer ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(20,17,12,0.94); display: grid; grid-template-columns: 1fr; align-content: start; overflow-y: auto; padding: 56px 12px 32px; }
@media (min-width: 760px) { .modal { grid-template-columns: 56px 1fr 56px; align-items: center; align-content: center; padding: 24px 0; } }
.modal-body { display: flex; flex-direction: column; align-items: center; gap: 18px; }
@media (min-width: 760px) { .modal-body { flex-direction: row; justify-content: center; gap: 40px; } }
.big-cover { width: min(100%, 62vh); }
@media (min-width: 760px) { .big-cover { width: min(48vw, 66vh); } }
.big-cover .cover { box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.cover-meta { color: var(--paper); max-width: 360px; text-align: center; }
@media (min-width: 760px) { .cover-meta { text-align: left; } }
.cover-meta .kicker { color: var(--gold); }
.cover-credit { font-style: italic; font-size: 18px; margin: 0 0 20px; line-height: 1.5; }
.cover-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@media (min-width: 760px) { .cover-actions { justify-content: flex-start; } }
.cover-actions .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cover-actions .btn.ghost { background: transparent; color: var(--paper); }
.modal-close { position: fixed; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(250,247,241,0.5); background: rgba(0,0,0,0.4); color: var(--paper); cursor: pointer; font-size: 16px; }
.modal-nav { position: fixed; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 64px; border: 0; background: rgba(0,0,0,0.35); color: var(--paper); font-size: 40px; line-height: 1; cursor: pointer; font-family: var(--serif); }
.modal-nav.prev { left: 0; } .modal-nav.next { right: 0; }
@media (min-width: 760px) { .modal-nav { position: static; transform: none; height: 100%; width: 56px; background: none; } }

/* ---------- editor's letter ---------- */
.letter { max-width: var(--measure); margin: 0 0 40px; padding: 26px 0 30px; border-top: 3px double var(--ink); scroll-margin-top: 8px; }
.letter:empty { display: none; }
.letter h2 { font-size: clamp(28px, 6vw, 40px); line-height: 1.05; margin: 0 0 18px; font-weight: 700; }
.letter-body p { margin: 0 0 14px; font-size: 17.5px; line-height: 1.65; text-wrap: pretty; }
.letter-body .salute { font-style: italic; }
.letter-body .signoff { margin-top: 20px; font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

/* ---------- table of contents ---------- */
.toc { list-style: none; margin: 0 0 40px; padding: 0; border-top: 3px double var(--ink); }
.toc li a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px dotted var(--hair); color: inherit; text-decoration: none; align-items: baseline; }
.toc li a:hover .h { text-decoration: underline; }
.toc .k { grid-column: 1; font-family: var(--sans); font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--amber-text); }
.toc .h { grid-column: 1; font-size: 17px; line-height: 1.3; }
.toc .b { grid-column: 2; grid-row: 1 / span 2; font-family: var(--sans); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); text-align: right; align-self: center; max-width: 34vw; }

/* ---------- stories ---------- */
.stories { display: flex; flex-direction: column; }
.story { border-bottom: 3px double var(--ink); padding: 30px 0 38px; scroll-margin-top: 8px; }
.story h2 { font-size: clamp(30px, 7vw, 50px); line-height: 1.04; margin: 0 0 12px; font-weight: 700; overflow-wrap: anywhere; }
.story .dek { font-style: italic; font-size: 19px; line-height: 1.5; margin: 0 0 16px; color: var(--body); max-width: 640px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 24px; font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 10px 0; margin-bottom: 22px; }
.byline .pb { color: var(--light); }
.body p { margin: 0 0 14px; text-wrap: pretty; }
.body p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .body.cols { column-count: 2; column-gap: 36px; } .body.cols p { break-inside: avoid; } }
.share { margin-top: 20px; background: none; border: 1px solid var(--hair); color: var(--muted); font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 7px 12px; cursor: pointer; }
.share:hover { border-color: var(--ink); color: var(--ink); }

/* photos: keep the picture's own shape. Portrait pairs sit side by side; landscape ones run full width. */
figure { margin: 0; }
figcaption { font-family: var(--sans); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--light); margin: 8px 0 0; }
.lead { margin-bottom: 22px; }
.lead img { width: 100%; height: auto; background: var(--desk); cursor: zoom-in; }
.lead.portrait img { width: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; }
.lead.square img { width: auto; max-width: 100%; max-height: 70vh; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 12px; margin-bottom: 22px; align-items: start; }
/* a portrait photo left alone on its row takes the full row on phones rather than sitting beside a hole */
@media (max-width: 899px) { .grid figure.portrait:last-child:nth-child(odd) { grid-column: span 2; } .grid figure.portrait:last-child:nth-child(odd) img { aspect-ratio: auto; max-height: 70vh; width: auto; max-width: 100%; margin: 0 auto; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.grid figure.landscape, .grid figure.square { grid-column: span 2; }
.grid img { width: 100%; height: auto; background: var(--desk); cursor: zoom-in; }
.grid figure.portrait img { aspect-ratio: 3 / 4; object-fit: cover; }
.grid figure.landscape img { aspect-ratio: 3 / 2; object-fit: cover; }
.grid figure.square img { aspect-ratio: 1; object-fit: cover; }

/* tabloid blurb */
.blurb { background: var(--tab-yellow); border: 3px solid var(--ink); padding: 22px 20px; }
@media (min-width: 760px) { .blurb { padding: 26px 30px; } }
.sticker { display: inline-block; background: var(--tab-red); color: #fff; font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: 3px; padding: 4px 10px; margin-bottom: 12px; }
.blurb h2 { font-family: var(--sans); font-weight: 900; font-size: clamp(24px, 6vw, 34px); line-height: 1.05; text-transform: uppercase; margin: 0 0 12px; }
.blurb .who { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.blurb .grid, .blurb .lead { margin-top: 16px; }
.blurb .body { max-width: var(--measure); }

/* list */
.list ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px 40px; }
@media (min-width: 700px) { .list ol { grid-template-columns: 1fr 1fr; } }
.list li { display: flex; gap: 14px; align-items: baseline; }
.list .n { font-family: var(--sans); font-weight: 800; font-size: 21px; color: var(--amber); min-width: 34px; }

/* interview */
.qa { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.qa .q { font-family: var(--sans); font-weight: 800; font-size: 15px; line-height: 1.45; color: var(--amber-text); margin: 0 0 6px; }
.qa .a { margin: 0; }

/* photo spread */
.spread .cap { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.spread .cap p { font-style: italic; margin: 0; max-width: 700px; }

/* ---------- print edition downloads ---------- */
.downloads { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 900px; }
@media (min-width: 700px) { .downloads { grid-template-columns: 1fr 1fr; } }
.dl { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--ink); padding: 18px 20px; color: inherit; text-decoration: none; background: #fff; }
.dl:hover { background: var(--tab-yellow); }
.dl b { font-size: 21px; line-height: 1.2; font-weight: 700; }
.dl span:last-child { color: var(--body); font-size: 15px; line-height: 1.5; }
.dl.static { border-style: dashed; background: none; }
.dl .kicker { margin: 0; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(20,17,12,0.96); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; gap: 12px; }
.lightbox img { max-width: 100%; max-height: 86vh; width: auto; height: auto; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox-cap { color: var(--light); font-family: var(--sans); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin: 0; text-align: center; }

/* ---------- footer ---------- */
.foot { background: var(--paper); border-top: 3px double var(--ink); padding: 18px var(--gutter) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-family: var(--sans); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--light); }

.loading { padding: 60px var(--gutter); text-align: center; font-style: italic; color: var(--muted); }
body.locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .slot .cover { transition: none; } }
