/* ============================================================
   LOST SANTOS v5 - vintage newspaper / broadsheet
   Newsprint paper, blackletter masthead, dramatic display serifs,
   justified columns, red tags, postage stamp, stat counters.
   ============================================================ */

:root {
  --paper:  #dcd5c5;
  --paper2: #e7e1d3;
  --ink:    #17150f;
  --red:    #c1402a;
  --rule:   #2a261d;
  --muted:  #514c40;
  --maxw:   1320px;
  --black:  "Pirata One", "UnifrakturCook", serif;   /* masthead blackletter */
  --disp:   "Fraunces", Georgia, serif;               /* big display serif   */
  --body:   "PT Serif", Georgia, serif;               /* column body         */
  --mono:   "Space Mono", "Courier New", monospace;   /* stamp / tips        */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* newsprint grain - sits BEHIND content (z-index:-3) so it only textures the
   paper, never your photos. Drop pre-grained photos in and they show untouched. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 30px; position: relative; z-index: 2; }

.display { font-family: var(--disp); font-optical-sizing: auto; font-weight: 900; }

/* ---------- masthead ---------- */
.masthead { border-bottom: 1.5px solid var(--rule); }
.masthead .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px 30px;
}
.masthead .place { font-family: var(--body); font-size: 14px; font-style: italic; }
.masthead .title {
  font-family: var(--black); font-weight: 400;
  font-size: clamp(20px, 3.1vw, 46px); text-align: center; line-height: 1; white-space: nowrap;
}
.masthead .menu { justify-self: end; display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
.masthead .menu span { display: block; width: 30px; height: 2px; background: var(--ink); }
.subrule { border-bottom: 3px double var(--rule); }

/* edition dateline */
.dateline .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 30px; }
.dateline span { font-family: var(--body); font-style: italic; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.dateline .mid { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); }

/* full-screen newspaper nav overlay */
.nav-overlay { position: fixed; inset: 0; z-index: 10000; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s ease; }
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-overlay nav { text-align: center; }
.nav-overlay a { display: block; font-family: var(--disp); font-weight: 900; font-optical-sizing: auto;
  font-size: clamp(32px, 7vw, 66px); line-height: 1.08; padding: 5px 0; color: var(--ink); transition: color .18s ease; }
.nav-overlay a:hover { color: var(--red); font-style: italic; }
.nav-close { position: absolute; top: 22px; right: 30px; background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 22px; color: var(--ink); line-height: 1; }
.nav-overlay .ov-foot { position: absolute; bottom: 28px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav-overlay .ov-top { position: absolute; top: 24px; left: 30px; font-family: var(--black);
  font-size: 22px; }

/* ---------- featured row (3 columns) ---------- */
.featured { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 1.5px solid var(--rule); }
.featured .col { padding: 34px 28px; }
.featured .col + .col { border-left: 1.5px solid var(--rule); }

.figure { aspect-ratio: 16/10; border: 1.5px solid var(--rule); overflow: hidden; position: relative;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 1px, transparent 1px 10px), var(--paper2); }
.figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
  transition: transform .55s ease; }
.figure:hover img { transform: scale(1.045); }
.figure .ph { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.figure .ph::before { content: "Photograph forthcoming"; font-family: var(--body); font-style: italic;
  font-size: 14px; letter-spacing: 0; color: var(--ink); margin-bottom: 7px; }

.headline { display: flex; align-items: center; gap: 10px; margin: 16px 0 8px; }
.headline h3 { font-family: var(--disp); font-weight: 900; font-size: 26px; letter-spacing: -.01em; }
.badge { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em;
  background: var(--red); color: #f6efe1; padding: 3px 7px; }
.kicker { font-size: 16px; line-height: 1.45; color: var(--ink); }

.center-col { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.center-col .big {
  font-family: var(--disp); font-weight: 900; font-optical-sizing: auto;
  font-size: clamp(34px, 4.4vw, 60px); line-height: .95; letter-spacing: -.01em;
}
.center-col .sub {
  font-family: var(--disp); font-weight: 400; font-size: clamp(20px,2.4vw,30px);
  line-height: 1.15; margin-top: 14px;
}
.tip { font-family: var(--body); font-size: 14px; margin-top: 20px; }
.tip b { font-family: var(--mono); font-size: 11px; background: var(--ink); color: var(--paper); padding: 2px 6px; }

/* ---------- inverted masthead block ---------- */
.invert { background: var(--ink); color: var(--paper2); padding: 30px 0 34px; overflow: hidden; }
.invert .giant {
  font-family: var(--disp); font-weight: 900; font-optical-sizing: auto;
  /* 9.2vw keeps all 14 characters of SANANDREASJPEG inside the viewport at
     every width. If the handle ever gets LONGER, lower this number: the text
     renders about 9.75x the font-size wide, and .invert clips what overflows
     instead of scrolling, so too big looks broken rather than merely wide. */
  font-size: clamp(18px, 9.2vw, 168px); line-height: .86; text-align: center;
  letter-spacing: -.03em; white-space: nowrap;
}
.invert-sub {
  text-align: center; margin-top: 12px;
  font-family: var(--mono); font-size: clamp(10px, 1.1vw, 13px);
  letter-spacing: .18em; text-transform: uppercase; color: rgba(231,218,187,.6);
}

/* ---------- stats row ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-bottom: 1.5px solid var(--rule);
  border-top: 1.5px solid var(--rule); }
.stat { padding: 26px 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.stat + .stat { border-left: 1.5px solid var(--rule); }
.stat .label { font-family: var(--body); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(13px,1.3vw,16px); line-height: 1.15; }
.stat .label small { display: block; font-weight: 400; font-style: italic; text-transform: none; color: var(--muted); }
.stat .num { font-family: var(--disp); font-weight: 900; font-optical-sizing: auto; font-size: clamp(38px,4.6vw,62px); line-height: 1; }

/* ---------- secondary editorial row + stamp ---------- */
/* two columns since the third (the "Think, capture, preserve." panel) was
   removed. Put it back to 1fr 1fr 1fr when that slot is filled again. */
.editorial { display: grid; grid-template-columns: 1fr 1fr; }
.editorial .col { padding: 36px 28px; }
.editorial .col + .col { border-left: 1.5px solid var(--rule); }
.smallcap { font-family: var(--disp); font-weight: 900; font-size: 30px; letter-spacing: -.01em; margin-bottom: 12px; }
.editorial p { font-family: var(--body); font-size: 17px; line-height: 1.5; }
.right-big { font-family: var(--disp); font-weight: 900; font-optical-sizing: auto;
  font-size: clamp(34px,4.2vw,58px); line-height: .95; }

/* postage stamp */
.stamp {
  width: 168px; background: var(--paper2); border: 2px dotted var(--rule);
  padding: 14px; transform: rotate(2.5deg); box-shadow: 2px 4px 0 rgba(0,0,0,.12);
  margin: 0 0 18px auto;
}
.stamp .burst { width: 64px; height: 40px; margin: 2px auto 4px; }
.stamp .sig { width: 90px; height: 26px; margin: 0 auto; }
.stamp .line { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; border-bottom: 1px solid var(--rule);
  padding: 4px 0 2px; }

/* ---------- section divider ---------- */
.divider { border-top: 1.5px solid var(--rule); border-bottom: 3px double var(--rule); }
.divider .wrap { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 30px; }
.divider h2 { font-family: var(--disp); font-weight: 900; font-optical-sizing: auto;
  font-size: clamp(26px,3.4vw,44px); letter-spacing: -.01em; }
.divider .note { font-family: var(--body); font-style: italic; font-size: 15px; color: var(--muted); }
/* on a phone the heading and its note stack instead of fighting for one line */
@media (max-width: 700px) {
  .divider .wrap { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; }
  .divider h2 { line-height: 1.05; }
  .divider .note { font-size: 14px; }
}

/* ---------- gallery grid (newspaper photo grid) ---------- */
.gallery { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1.5px solid var(--rule); }
.gallery .cell { padding: 26px 22px; border-bottom: 1.5px solid var(--rule); }
.gallery .cell + .cell { border-left: 1.5px solid var(--rule); }
.gallery .cell:nth-child(4n+1) { border-left: none; }
.gallery .cell:nth-child(n+5) { } /* second row inherits */
.gallery .cell h4 { font-family: var(--disp); font-weight: 900; font-size: 20px; margin: 12px 0 6px; }
.gallery .cell p { font-family: var(--body); font-size: 14px; line-height: 1.45; color: var(--muted); }
.gallery .cell .res { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--ink); margin-top: 8px; }
.gallery .cell .dl { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid var(--rule); padding: 8px 12px;
  transition: background .15s, color .15s; }
.gallery .cell .dl:hover { background: var(--ink); color: var(--paper); }

/* simple page intro (sub-masthead) for interior pages */
.page-intro { padding: 44px 30px 20px; text-align: center; }
.page-intro h1 { font-family: var(--disp); font-weight: 900; font-optical-sizing: auto;
  font-size: clamp(40px, 8vw, 110px); line-height: .9; letter-spacing: -.02em; }
.page-intro p { font-family: var(--body); font-size: 17px; color: var(--muted); margin-top: 14px;
  font-style: italic; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- blog: lead story + article page ---------- */
.lead { display: grid; grid-template-columns: 1.1fr 1fr; border-bottom: 1.5px solid var(--rule); }
.lead .fig-col { padding: 34px 28px; }
.lead .txt-col { padding: 34px 28px; border-left: 1.5px solid var(--rule);
  display: flex; flex-direction: column; justify-content: center; }
.lead .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.lead h2 { font-family: var(--disp); font-weight: 900; font-optical-sizing: auto;
  font-size: clamp(30px, 4vw, 56px); line-height: .98; letter-spacing: -.01em; }
.lead .excerpt { font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); margin: 16px 0; }
.lead .meta { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); margin-top: 16px; }
.read-link { align-self: flex-start; font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; border: 1.5px solid var(--rule); padding: 11px 16px; transition: background .15s, color .15s; }
.read-link:hover { background: var(--ink); color: var(--paper); }

.post { max-width: 760px; margin: 0 auto; padding: 46px 28px 14px; text-align: center; }
.post .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.post h1 { font-family: var(--disp); font-weight: 900; font-optical-sizing: auto;
  font-size: clamp(34px, 5.2vw, 66px); line-height: 1.0; letter-spacing: -.015em; margin: 14px 0; }
.post .meta { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.post-hero { max-width: 1040px; margin: 28px auto 0; padding: 0 28px; }
.post-body { max-width: 720px; margin: 0 auto; padding: 30px 28px 30px; }
.post-body p { font-family: var(--body); font-size: 18px; line-height: 1.62; margin-bottom: 16px; }
.post-body p:first-of-type::first-letter { font-family: var(--disp); font-weight: 900; float: left;
  font-size: 66px; line-height: .72; padding: 6px 10px 0 0; }
.post-body h2 { font-family: var(--disp); font-weight: 900; font-size: 26px; margin: 26px 0 8px; }
.post-foot { max-width: 720px; margin: 0 auto; padding: 0 28px 56px; }
.back-link { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; border: 1.5px solid var(--rule); padding: 10px 14px; transition: background .15s, color .15s; }
.back-link:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 880px) {
  .lead { grid-template-columns: 1fr; }
  .lead .txt-col { border-left: none; border-top: 1.5px solid var(--rule); }
}

/* ---------- feature pull-quote ---------- */
.pull { border-bottom: 1.5px solid var(--rule); padding: 64px 30px; text-align: center; }
.pull blockquote { font-family: var(--disp); font-weight: 400; font-optical-sizing: auto; font-style: italic;
  font-size: clamp(26px,3.6vw,46px); line-height: 1.18; max-width: 900px; margin: 0 auto; }
.pull cite { display: block; margin-top: 22px; font-family: var(--mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--muted); }

/* ---------- blog index (table of contents) ---------- */
.index-row { display: grid; grid-template-columns: 2fr 1fr; border-bottom: 1.5px solid var(--rule); }
.index-list { padding: 30px; }
.index-item { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px dotted var(--rule); }
.index-item:last-child { border-bottom: none; }
.index-item .t { font-family: var(--disp); font-weight: 600; font-size: clamp(18px,2vw,24px); }
.index-item .leader { flex: 1; border-bottom: 1px dotted var(--rule); transform: translateY(-4px); }
.index-item .d { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.almanac { border-left: 1.5px solid var(--rule); padding: 30px; }
.almanac h3 { font-family: var(--disp); font-weight: 900; font-size: 22px; margin-bottom: 14px; }
.almanac dl { font-family: var(--body); font-size: 15px; }
.almanac dt { font-weight: 700; margin-top: 12px; }
.almanac dd { color: var(--muted); font-style: italic; }

/* ---------- footer masthead ---------- */
.foot { background: var(--ink); color: var(--paper2); padding: 50px 0 34px; }
.foot .big { font-family: var(--black); font-weight: 400; font-size: clamp(30px,5vw,64px);
  text-align: center; line-height: 1.05; margin-bottom: 36px; }
.foot .cols { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.foot .cols h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: #b9b2a0; margin-bottom: 12px; }
.foot .cols a { display: block; font-family: var(--body); font-size: 16px; padding: 4px 0; color: var(--paper2); }
.foot .cols a:hover { color: var(--red); }
.foot .end { text-align: center; margin-top: 40px; font-family: var(--body); font-style: italic;
  font-size: 14px; color: #b9b2a0; border-top: 1px solid rgba(255,255,255,.16); padding-top: 22px; }

/* ---------- drag-sideways carousel ---------- */
.carousel-sec { border-bottom: 1.5px solid var(--rule); }
.carousel {
  display: flex; overflow-x: auto; scroll-snap-type: none;
  cursor: grab; scrollbar-width: none; -ms-overflow-style: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { cursor: grabbing; }
.carousel.dragging * { user-select: none; }
.slide {
  flex: 0 0 clamp(280px, 33vw, 420px); padding: 30px 28px;
  border-right: 1.5px solid var(--rule); scroll-snap-align: start;
}
.slide .figure { aspect-ratio: 4/3; }
.slide h4 { font-family: var(--disp); font-weight: 900; font-size: 24px; margin: 14px 0 6px; }
.slide p { font-family: var(--body); font-size: 15px; line-height: 1.45; color: var(--muted); }
.slide .res { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; margin-top: 10px; }

/* ---------- scroll-in reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ---------- About / editor's note (newspaper columns + drop-cap) ---------- */
.about { padding: 52px 30px; }
.about h2 { font-family: var(--disp); font-weight: 900; font-optical-sizing: auto;
  font-size: clamp(30px, 4.2vw, 54px); letter-spacing: -.01em; line-height: 1; }
.about .byline { font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin: 12px 0 26px; }
.about .columns { column-count: 3; column-gap: 36px; column-rule: 1px solid var(--rule); }
.about .columns p { font-family: var(--body); font-size: 16px; line-height: 1.58;
  margin: 0 0 14px; text-align: justify; hyphens: auto; }
.about .columns p:first-of-type::first-letter {
  font-family: var(--disp); font-weight: 900; float: left; font-size: 70px; line-height: .72;
  padding: 6px 10px 0 0; color: var(--ink);
}
.about .note { font-family: var(--body); font-style: italic; color: var(--muted);
  font-size: 13px; margin-top: 22px; }

/* ---------- Where in San Andreas? puzzle ---------- */
.puzzle { border-bottom: 1.5px solid var(--rule); }
#puzzleBox { display: grid; grid-template-columns: 1fr 1.1fr; }
#puzzleBox .pz-fig { aspect-ratio: auto; min-height: 340px; border: none;
  border-right: 1.5px solid var(--rule); }
#puzzleBox .pz-fig img, #puzzleBox .pz-fig:hover img {
  transform: scale(var(--pz-zoom, 1)); cursor: default; }
.pz-side { padding: 36px 30px; display: flex; flex-direction: column; }
.pz-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.pz-side h3 { font-family: var(--disp); font-weight: 900; font-optical-sizing: auto;
  font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -.01em; line-height: 1; }
.pz-clue { font-family: var(--body); font-style: italic; font-size: 17px;
  color: var(--muted); margin: 14px 0 20px; }
.pz-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pz-choices button { font-family: var(--mono); font-size: 13px; letter-spacing: .03em;
  text-align: left; padding: 13px 14px; background: var(--paper2);
  border: 1.5px solid var(--rule); color: var(--ink); cursor: pointer;
  transition: background .15s, color .15s; }
.pz-choices button:hover:not(:disabled):not(.right) { background: var(--ink); color: var(--paper); }
.pz-choices button.wrong { color: var(--red); border-color: var(--red);
  text-decoration: line-through; opacity: .6; cursor: default; }
.pz-choices button.right { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.solved .pz-choices button:not(.right) { opacity: .45; cursor: default; }
.pz-msg { font-family: var(--body); font-weight: 700; font-size: 16px; margin-top: 16px; }
.pz-last { font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--muted); margin-top: auto; padding-top: 18px; }
@media (max-width: 880px) {
  #puzzleBox { grid-template-columns: 1fr; }
  #puzzleBox .pz-fig { min-height: 240px; border-right: none; border-bottom: 1.5px solid var(--rule); }
  .pz-choices { grid-template-columns: 1fr; }
}

/* ---------- latest-edition strip (front page) ---------- */
.edition-strip { border-bottom: 1.5px solid var(--rule); display: flex; align-items: baseline;
  justify-content: center; gap: 16px; flex-wrap: wrap; padding: 13px 24px; }
.edition-strip .ed-no { font-family: var(--disp); font-weight: 900; font-size: 18px; color: var(--red); }
.edition-strip .ed-title { font-family: var(--disp); font-weight: 600; font-style: italic; font-size: 18px; }
.edition-strip .ed-date { font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); }
.edition-strip .ed-link { font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; border-bottom: 1.5px solid var(--rule); padding-bottom: 2px; }
.edition-strip .ed-link:hover { color: var(--red); border-color: var(--red); }

/* ---------- the archive (past editions) ---------- */
.arch-item { display: grid; grid-template-columns: 110px 1.1fr 1fr; gap: 28px;
  padding: 36px 30px; border-bottom: 1.5px solid var(--rule); }
.arch-no { font-family: var(--disp); font-weight: 900; font-optical-sizing: auto;
  font-size: clamp(34px, 4vw, 58px); line-height: 1; color: var(--red); }
.arch-info h3 { font-family: var(--disp); font-weight: 900; font-optical-sizing: auto;
  font-size: clamp(24px, 3vw, 38px); letter-spacing: -.01em; line-height: 1.05; }
.arch-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin: 10px 0 12px; }
.arch-info p { font-family: var(--body); font-size: 16px; line-height: 1.55; }
.arch-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: start; }
.arch-thumbs .figure { aspect-ratio: 16/10; }
.arch-thumbs .ph { font-size: 7px; padding: 6px; }
.arch-thumbs .ph::before { font-size: 10px; margin-bottom: 3px; }
@media (max-width: 880px) {
  .arch-item { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- "coming soon" / empty-state notices ---------- */
.empty-note { padding: 54px 30px; text-align: center; max-width: 620px; margin: 0 auto; }
.empty-note.wide { max-width: 760px; }
.empty-note.small { padding: 40px 24px; }
.empty-note h3 { font-family: var(--disp); font-weight: 900; font-optical-sizing: auto;
  font-size: clamp(24px, 3.2vw, 40px); letter-spacing: -.01em; line-height: 1.05; }
.empty-note p { font-family: var(--body); font-size: 16.5px; line-height: 1.55;
  color: var(--muted); margin: 14px 0 22px; }
.empty-note .read-link { display: inline-block; }
.empty-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- phone wallpapers (portrait grid) ---------- */
.phone-grid { display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1.5px solid var(--rule); }
.phone-grid .cell { padding: 26px 22px; border-bottom: 1.5px solid var(--rule);
  border-left: 1.5px solid var(--rule); }
.phone-grid .cell:nth-child(4n+1) { border-left: none; }
.phone-grid .cell h4 { font-family: var(--disp); font-weight: 900; font-size: 20px; margin: 12px 0 6px; }
.phone-grid .cell p { font-family: var(--body); font-size: 14px; line-height: 1.45; color: var(--muted); }
.phone-grid .cell .res { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; margin-top: 8px; }
.phone-grid .cell .dl { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid var(--rule); padding: 8px 12px;
  transition: background .15s, color .15s; }
.phone-grid .cell .dl:hover { background: var(--ink); color: var(--paper); }
.figure.phone-fig { aspect-ratio: 9 / 19.5; }
@media (max-width: 880px) {
  .phone-grid { grid-template-columns: 1fr 1fr; }
  .phone-grid .cell:nth-child(4n+1) { border-left: 1.5px solid var(--rule); }
  .phone-grid .cell:nth-child(odd) { border-left: none; }
}

/* ---------- period-correct advertisement box ---------- */
.ad-box { border-bottom: 1.5px solid var(--rule); padding: 26px 30px; }
.ad-box .ad-label { display: block; text-align: center; font-family: var(--mono);
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px; }
.ad-box .ad-space { max-width: 728px; min-height: 96px; margin: 0 auto;
  border: 1.5px solid var(--rule); background: var(--paper2);
  display: flex; align-items: center; justify-content: center; padding: 14px; }
.ad-box .ad-ph { font-family: var(--body); font-style: italic; font-size: 15px; color: var(--muted); text-align: center; }
/* once a real ad <ins> fills the slot, the placeholder text is simply removed */

/* ---------- newsletter / subscribe ---------- */
.subscribe { border-bottom: 1.5px solid var(--rule); padding: 56px 30px; }
.sub-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.subscribe h3 { font-family: var(--disp); font-weight: 900; font-optical-sizing: auto;
  font-size: clamp(28px, 3.8vw, 48px); letter-spacing: -.01em; }
.subscribe > .sub-inner > p { font-family: var(--body); font-size: 16.5px; line-height: 1.5;
  color: var(--muted); max-width: 540px; margin: 12px auto 26px; }
.sub-form { display: flex; max-width: 480px; margin: 0 auto; border: 1.5px solid var(--rule); background: var(--paper2); }
.sub-form input { flex: 1; border: none; background: transparent; padding: 14px 16px;
  font-family: var(--mono); font-size: 14px; color: var(--ink); }
.sub-form input:focus { outline: none; background: rgba(255,255,255,.4); }
.sub-form button { border: none; border-left: 1.5px solid var(--rule); background: var(--ink);
  color: var(--paper); font-family: var(--disp); font-weight: 900; font-size: 15px; padding: 0 22px; cursor: pointer; }
.sub-form button:hover { background: var(--red); }
.sub-msg { font-family: var(--body); font-style: italic; color: var(--ink); margin-top: 18px; font-size: 16px; }
@media (max-width: 560px) {
  .sub-form { flex-direction: column; }
  .sub-form button { border-left: none; border-top: 1.5px solid var(--rule); padding: 12px; }
}

/* ---------- The Back Page: letters + funnies ---------- */
.backpage { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1.5px solid var(--rule); }
.backpage .col { padding: 36px 28px; }
.backpage .col + .col { border-left: 1.5px solid var(--rule); }
.backpage h3 { font-family: var(--disp); font-weight: 900; font-size: 26px; margin-bottom: 16px; }
.letter { font-family: var(--body); font-style: italic; font-size: 15.5px; line-height: 1.5; margin-bottom: 18px; }
.letter.open { font-style: normal; }   /* an open call, not a quotation */
.letter .sign { display: block; font-style: normal; font-family: var(--mono); font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--rule); }
.strip .panel { aspect-ratio: 1; border-right: 1.5px solid var(--rule);
  display: flex; align-items: center; justify-content: center; background: var(--paper2); }
.strip .panel:last-child { border-right: none; }
.strip .panel svg { width: 66%; height: 66%; }
.strip-cap { font-family: var(--body); font-style: italic; font-size: 13px; color: var(--muted);
  margin-top: 10px; text-align: right; }

/* ---------- classifieds ---------- */
.classifieds { border-bottom: 1.5px solid var(--rule); padding: 36px 30px; }
.classifieds h3 { font-family: var(--disp); font-weight: 900; font-size: 26px; margin-bottom: 20px; }
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.class-item { border: 1.5px solid var(--rule); background: var(--paper2); padding: 14px 16px; }
.class-item .class-head { font-family: var(--mono); font-weight: 700; font-size: 11px;
  letter-spacing: .14em; color: var(--red); display: block; margin-bottom: 6px; }
.class-item p { font-family: var(--body); font-size: 14.5px; line-height: 1.45; }
.class-note { font-family: var(--body); font-style: italic; font-size: 13.5px;
  color: var(--muted); margin-top: 16px; text-align: right; }
.class-note a { text-decoration: underline; }
@media (max-width: 880px) {
  .class-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRINT - Ctrl+P turns the site into an actual paper newspaper
   ============================================================ */
@media print {
  body { background: #fff; }
  body::before, body::after { display: none; }           /* screen grain off */
  .reveal { opacity: 1 !important; transform: none !important; }
  .masthead .menu, .nav-overlay, .lightbox, .sub-form, .pz-msg,
  .edition-strip .ed-link, .figure .ph::before { display: none !important; }
  .invert, .foot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .carousel { overflow: visible; flex-wrap: wrap; cursor: default; }
  .slide { flex: 1 1 30%; }
  .slide.clone { display: none; }                        /* no duplicate loop slides */
  .gallery .cell, .slide, .stat, .backpage .col, .arch-item,
  .class-item, .puzzle, .pull, .about, .lead { break-inside: avoid; }
  a { text-decoration: none; }
}

/* ---------- footer barcode ---------- */
/* ---------- lightbox (full-res photo viewer) ---------- */
.figure img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 11000; background: rgba(8,7,5,.95);
  display: flex; align-items: center; justify-content: center; padding: 32px;
  animation: lbfade .22s ease; }
.lightbox[hidden] { display: none; }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; max-width: 94vw; display: flex; flex-direction: column; align-items: center; }
.lb-figure img { max-width: 94vw; max-height: 76vh; object-fit: contain;
  border: 1px solid rgba(231,218,187,.18); cursor: default; }
.lb-figure figcaption { margin-top: 16px; font-family: var(--disp); font-weight: 900;
  font-size: 22px; color: #e7dabb; text-align: center; }
.lb-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: #b9b2a0; margin-top: 6px; }
.lb-dl { margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: #e7dabb; border: 1px solid rgba(231,218,187,.5);
  padding: 9px 16px; text-decoration: none; transition: background .15s, color .15s; }
.lb-dl:hover { background: #e7dabb; color: #16120c; }
.lb-close { position: absolute; top: 22px; right: 28px; background: none; border: none;
  color: #e7dabb; font-family: var(--mono); font-size: 14px; letter-spacing: .1em; cursor: pointer; }
.lb-close:hover { color: var(--red); }

/* colophon / legal small print in footer */
.colophon { max-width: 760px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.16); text-align: center; }
.colophon h6 { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: #b9b2a0; margin-bottom: 14px; }
.colophon p { font-family: var(--body); font-size: 12.5px; line-height: 1.55; color: #9b9482; margin-bottom: 10px; }
.colophon strong { color: #cfc8b6; font-weight: 700; }
.colophon a { color: #cfc8b6; text-decoration: underline; }

.barcode { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-top: 34px; }
.barcode svg { height: 46px; width: auto; }
.barcode .code { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: #b9b2a0; }

@media (max-width: 880px) {
  .about .columns { column-count: 1; }
  .backpage { grid-template-columns: 1fr; }
  .backpage .col + .col { border-left: none; border-top: 1.5px solid var(--rule); }
}

/* ============================================================
   TEXTURE DRAFTS - switch with ?tex=aged | pulp | fresh
   (rougher, real-newsprint feeling grain + ink + paper tone)
   ============================================================ */

/* stronger base grain for everyone */
body::before { opacity: .6; }

/* extra fibrous / blotchy ink layer (theme-tunable) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  opacity: 0; mix-blend-mode: multiply; transition: opacity .2s;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(60,45,20,.25) 100%);
}

/* --- A · AGED BROADSHEET: warm, yellowed, foxing, soft edges --- */
body.tex-aged {
  --paper: #d3c7a8; --paper2: #e0d4b4; --ink: #241d11; --rule: #38301d;
  --red: #aa3a1e; --muted: #5e5337;
}
body.tex-aged::before { opacity: .72; }
body.tex-aged::after {
  opacity: 1;
  background:
    radial-gradient(circle at 18% 24%, rgba(120,85,30,.18), transparent 9%),
    radial-gradient(circle at 72% 38%, rgba(120,85,30,.15), transparent 7%),
    radial-gradient(circle at 40% 76%, rgba(120,85,30,.16), transparent 8%),
    radial-gradient(circle at 88% 82%, rgba(120,85,30,.13), transparent 6%),
    radial-gradient(130% 100% at 50% 50%, transparent 52%, rgba(50,35,12,.4) 100%);
}

/* --- B · GRAY PULP: cool low-contrast newsprint + halftone in photos --- */
body.tex-pulp {
  --paper: #c7c4b8; --paper2: #d4d1c5; --ink: #20201d; --rule: #2c2c27;
  --red: #a83e2b; --muted: #56564d;
}
body.tex-pulp::before { opacity: .68; }
body.tex-pulp .figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  mix-blend-mode: screen;
  background-image: radial-gradient(rgba(255,255,255,.6) 0.7px, transparent 1.1px);
  background-size: 4px 4px;
}

/* --- C · FRESH PRINT: brighter paper, crisp ink, CMYK misregistration --- */
body.tex-fresh {
  /* fresh print, nudged a touch warmer/yellower for a gentle aged feel */
  --paper: #e7dabb; --paper2: #f0e6c8; --ink: #16120c; --rule: #241f15;
  --red: #c4421f; --muted: #4f4937;
}
/* grainier paper: stronger base grain + a fine paper-tooth overlay */
body.tex-fresh::before { opacity: .78; }
body.tex-fresh::after {
  opacity: .45; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 150px 150px;
}
/* CMYK plate misregistration - scaled to the size of the type it sits on, so
   the big display block stays dramatic while the masthead stays easy to read */
body.tex-fresh .invert .giant {          /* huge: 38–168px */
  text-shadow:
    2.6px 0 rgba(0,174,239,.62),
   -2.6px 0 rgba(236,0,140,.58),
    0 1.8px rgba(255,221,0,.42);
}
body.tex-fresh .foot .big {              /* medium: 30–64px */
  text-shadow:
    1.4px 0 rgba(0,174,239,.45),
   -1.4px 0 rgba(236,0,140,.42),
    0 1px rgba(255,221,0,.28);
}
body.tex-fresh .masthead .title {        /* small: 20–46px - keep it crisp */
  text-shadow:
    0.7px 0 rgba(0,174,239,.30),
   -0.7px 0 rgba(236,0,140,.28);
}

@media (max-width: 880px) {

@media (max-width: 880px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .cell:nth-child(4n+1) { border-left: 1.5px solid var(--rule); }
  .gallery .cell:nth-child(odd) { border-left: none; }
  .index-row { grid-template-columns: 1fr; }
  .almanac { border-left: none; border-top: 1.5px solid var(--rule); }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .featured, .editorial { grid-template-columns: 1fr; }
  .featured .col + .col, .editorial .col + .col { border-left: none; border-top: 1.5px solid var(--rule); }
  .stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .masthead .place { display: none; }
  .masthead .wrap { grid-template-columns: 1fr auto; }
}

/* ============================================================
   PHONE FIXES - most readers arrive on a phone
   ============================================================ */
@media (max-width: 560px) {
  /* the three-part dateline can't sit on one line at phone width */
  .dateline .wrap { flex-wrap: wrap; justify-content: center; gap: 3px 10px; padding: 8px 16px; }
  .dateline span { white-space: normal; font-size: 12px; text-align: center; }
  .dateline .mid { font-size: 10px; letter-spacing: .08em; }

  /* give the page a little more usable width */
  .wrap { padding: 0 18px; }
  .masthead .wrap { padding: 14px 18px; }
  .about, .classifieds, .horoscopes, .backpage .col,
  .featured .col, .editorial .col, .gallery .cell, .phone-grid .cell { padding-left: 18px; padding-right: 18px; }
  .page-intro { padding: 34px 18px 16px; }
  .pull { padding: 40px 18px; }
  .subscribe { padding: 40px 18px; }
  .arch-item { padding: 28px 18px; }

  /* nothing may push the page sideways */
  html, body { overflow-x: hidden; }
}

@media (max-width: 560px) {
  /* easier thumbs: bigger tap targets in the footer and on small links */
  .foot .cols a { padding: 9px 0; }
  .foot .cols { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  .edition-strip .ed-link, .class-note a { display: inline-block; padding: 8px 0; }
  .dl, .read-link, .back-link { padding: 12px 16px; }

  /* nudge the tiniest type up a notch so it stays readable on a phone */
  .dateline .mid { font-size: 11px; }
  .gallery .cell .res, .phone-grid .cell .res, .slide .res { font-size: 11px; }
  .foot .cols a, .colophon p { font-size: 14px; }
}

/* ---------- reserved phone slots (shot but not published yet) ---------- */
.phone-grid .cell.reserved { opacity: .72; }
.phone-grid .cell.reserved .figure { border-style: dashed; }
.soon-tag { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--red);
  border: 1.5px dashed var(--red); padding: 8px 12px; }
.reserved-note { text-align: center; font-family: var(--body); font-style: italic;
  font-size: 15px; color: var(--muted); padding: 22px 24px 0; }
