/* Hearts & Farts, newspaper edition. Every page is a section of The Gasette:
   newsprint paper, hairline and double rules, display headlines, a serif body, mono datelines. */
:root {
  --red-50: #FEF5F6; --red-100: #F0CDCB; --red-200: #E4A3A1; --red-300: #DB7976; --red-400: #D1504B;
  --red-500: #C3362D; --red-600: #9A2B24; --red-700: #721F1B; --red-800: #481210; --red-900: #200607;
  --green-25: #FCFFF6; --green-50: #F3FFDB; --green-100: #E4FCAE; --green-200: #D4FB86; --green-300: #C4F963;
  --green-400: #B6F850; --green-500: #99D03F; --green-600: #739F2E; --green-700: #4E6D1F; --green-800: #2B3B0E; --green-900: #1D2806;
  --paper: #FBF7F1;       /* newsprint */
  --paper-2: #F2ECE3;
  --news: #1D1B1C;        /* newspaper black */
  --ink: #414042;         /* logo charcoal */
  --muted: #5A5552;
  --line: #CFC7BD;
  --kiln: var(--red-500);
  --toot: var(--green-300);
  --deep: var(--green-900);
  --white: #FFFFFF;
  --display: "Londrina Solid", "Arial Narrow", Impact, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.65,0,.35,1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--news); font: 400 18px/1.55 var(--serif); }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; background: repeating-linear-gradient(0deg, rgba(0,0,0,.014) 0 1px, transparent 1px 3px); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green-700); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; line-height: .92; text-wrap: balance; margin: 0; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.r { color: var(--red-500); }

/* Header: dateline strip + sticky section nav */
.dateline { border-bottom: 1px solid var(--news); }
.dateline .wrap { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; font: 600 11px var(--mono); flex-wrap: wrap; }
header.top { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 4px double var(--news); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 8px; }
.logo { display: block; line-height: 0; }
.logo svg { width: auto; height: 50px; }
nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
nav li + li { border-left: 1px solid var(--line); }
nav a { display: block; text-decoration: none; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 8px 14px; }
nav a:hover { color: var(--kiln); }
nav a[aria-current="page"] { color: var(--kiln); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Buttons: rubber-stamp style */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { font: 800 16px var(--body); padding: 12px 20px; border-radius: 4px; border: 2px solid var(--news); background: var(--paper); color: var(--news); text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--news); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); display: inline-block; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--news); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--news); }
.btn.hot { background: var(--kiln); color: var(--white); }

/* Section front: kicker, headline, dek between rules */
.front { padding: 36px 0 26px; border-bottom: 1px solid var(--news); margin-bottom: 30px; }
.kicker { font: 600 11px var(--mono); color: var(--kiln); text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: 8px; }
.front h1 { font-size: clamp(50px, 7.4vw, 104px); }
.dek { font-size: clamp(19px, 1.9vw, 23px); font-style: italic; margin: 14px 0 0; max-width: 62ch; color: var(--news); }
.sect { padding: 56px 0 8px; }
.sect-head { border-top: 4px double var(--news); padding-top: 14px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.sect-head h2 { font-size: clamp(40px, 5vw, 64px); }
.sect-head p { margin: 0; max-width: 44ch; font-style: italic; color: var(--muted); }
.more { margin-top: 26px; }

/* Ticker: slow TV news crawl */
.ticker { display: flex; align-items: stretch; background: var(--deep); color: var(--green-100); border-block: 1px solid var(--news); overflow: hidden; }
.tlabel { flex: none; display: flex; align-items: center; background: var(--kiln); color: var(--white); font: 900 15px/0.95 var(--display); text-transform: uppercase; letter-spacing: .04em; padding: 8px 14px; position: relative; z-index: 1; box-shadow: 8px 0 12px var(--deep); }
.tview { flex: 1; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker .row { display: inline-flex; animation: slide var(--dur, 90s) linear infinite; padding: 13px 0; }
.ticker:hover .row, .ticker:focus-within .row { animation-play-state: paused; }
.tset { display: inline-flex; align-items: baseline; }
.titem { font: 400 17px var(--serif); color: var(--green-50); text-decoration: none; }
a.titem:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.ttag { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--toot); margin-right: 6px; }
.tsep { color: var(--kiln); font-size: 10px; margin: 0 22px; align-self: center; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Stories (gallery cards) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0; border-top: 1px solid var(--news); }
.piece { display: flex; flex-direction: column; gap: 10px; background: none; border: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 18px; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.piece .pic { position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; border: 1px solid var(--news); }
.piece .pic img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 0.40s var(--ease); }
.piece:hover .pic img { transform: scale(1.04) rotate(-1deg); }
.piece:hover h3 { color: var(--kiln); }
.fn { position: absolute; top: 10px; right: 10px; font: 600 10px var(--mono); padding: 4px 8px; background: var(--kiln); color: var(--white); text-transform: uppercase; letter-spacing: .06em; }
.label h3 { font-size: 28px; }
.label .meta { color: var(--muted); font-size: 11px; text-transform: uppercase; margin-top: 4px; }
.label .note { font-size: 16px; margin: 6px 0 0; font-style: italic; }
.chips { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: baseline; margin-bottom: 16px; }
.chips::before { content: "Filed under:"; font: 600 11px var(--mono); text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }
.chip { font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 0; border: 0; background: none; color: var(--news); cursor: pointer; text-decoration: none; }
.chip:hover { color: var(--kiln); }
.chip[aria-pressed="true"] { color: var(--kiln); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.chip .n { opacity: .6; margin-left: 4px; }

/* Photo desk (Instagram) */
.iggrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ig { position: relative; display: block; text-decoration: none; }
.ig img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--news); filter: grayscale(1) contrast(1.15); transition: filter 0.40s var(--ease); }
.ig:hover img, .ig:focus-visible img { filter: none; }
.igd { display: block; margin-top: 6px; font-size: 10px; color: var(--muted); text-transform: uppercase; }
@media (max-width: 900px) { .iggrid { grid-template-columns: repeat(3, 1fr); } }

/* Home hero: The Gasette front page */
.tabloid { border-bottom: 1px solid var(--news); }
.paper { padding: 22px 0 44px; }
.mast { text-align: center; border-bottom: 4px double var(--news); padding-bottom: 8px; }
.mast .top { display: none; }
.mast .name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(60px, 10vw, 136px); line-height: .85; margin: 0; letter-spacing: .02em; color: var(--kiln); }
.mast .tag { font-style: italic; font-size: 16px; margin-top: 4px; }
.hed { font-size: clamp(42px, 6vw, 84px); line-height: .9; margin: 20px 0 10px; color: var(--news); }
.hed .r { color: var(--kiln); }
.paper .dek { margin: 0 0 22px; max-width: 70ch; }
.cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 26px; }
.cols > div { border-left: 1px solid var(--line); padding-left: 20px; } .cols > div:first-child { border: 0; padding: 0; }
.halftone { position: relative; display: grid; place-items: center; overflow: hidden; background: #EDE7DF; aspect-ratio: 4 / 3; border: 0; padding: 0; width: 100%; cursor: pointer; }
.halftone img { width: 86%; height: 92%; object-fit: contain; filter: grayscale(1) contrast(1.4) brightness(1.05); mix-blend-mode: multiply; transition: filter 0.48s var(--ease); }
.halftone::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(0,0,0,.18) 1px, transparent 1.4px) 0 0 / 4px 4px; mix-blend-mode: multiply; pointer-events: none; }
.halftone.lead:hover img, .halftone.lead:focus-visible img { filter: grayscale(0) contrast(1.05); }
.halftone.color { aspect-ratio: 1; }
.halftone.color img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) saturate(.9); mix-blend-mode: normal; }
.cap { font: italic 14px/1.4 var(--serif); margin: 6px 0 0; color: var(--muted); }
.body { font-size: 17px; line-height: 1.55; margin: 0 0 14px; }
.dropcap::first-letter { font-family: var(--display); font-weight: 900; font-size: 60px; float: left; line-height: .8; padding: 4px 8px 0 0; color: var(--kiln); }
.inside { list-style: none; padding: 0; margin: 0 0 16px; }
.inside li { border-top: 1px solid var(--line); }
.inside a { all: unset; display: block; width: 100%; padding: 9px 0; font: 15px/1.4 var(--serif); cursor: pointer; }
.inside a:hover b, .inside a:focus-visible b { color: var(--kiln); }
.inside a:focus-visible { outline: 3px solid var(--green-700); outline-offset: 2px; }
.inside b { font-family: var(--display); text-transform: uppercase; font-weight: 900; font-size: 19px; display: block; line-height: 1; margin-bottom: 2px; }
.paper .social, .social { margin: 16px 0 0; color: var(--muted); }

/* About: profile feature */
.profile { display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; align-items: start; }
.profile figure { margin: 0; }
.profile figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--news); }
.textcols { columns: 2 260px; column-gap: 32px; column-rule: 1px solid var(--line); }
.textcols p { margin: 0 0 14px; }
.pull { border-block: 4px double var(--news); margin: 26px 0; padding: 16px 0; text-align: center; }
.pull p { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 4vw, 54px); line-height: .92; margin: 0; }
.pull span { display: block; font: 600 11px var(--mono); color: var(--muted); margin-top: 8px; text-transform: uppercase; letter-spacing: .08em; }

/* Contact: letters to the editor */
.letters { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.faq h2 { font-size: 30px; border-bottom: 1px solid var(--news); padding-bottom: 8px; margin-bottom: 4px; }
.faq div { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq b { display: block; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 20px; line-height: 1.05; }
.faq b::before { content: "Q. "; color: var(--kiln); }
.faq p { margin: 4px 0 0; font-size: 16px; }
.faq p::before { content: "A. "; font-weight: 700; }
form { position: relative; border: 2px dashed var(--news); padding: 30px 26px 26px; background: var(--paper); display: grid; gap: 18px; font-family: var(--body); }
form::before { content: "✂ CLIP AND SEND"; position: absolute; top: -10px; left: 18px; background: var(--paper); padding: 0 8px; font: 600 11px var(--mono); letter-spacing: .08em; }
.coupon-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 34px; line-height: .95; margin: 0; text-align: center; border-bottom: 1px solid var(--news); padding-bottom: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label.f { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; display: grid; gap: 4px; }
label.f small { text-transform: none; letter-spacing: 0; font-weight: 400; }
input, select, textarea { font: 400 18px var(--serif); color: var(--news); background: transparent; border: 0; border-bottom: 1.5px solid var(--news); border-radius: 0; padding: 6px 2px; width: 100%; }
textarea { min-height: 120px; resize: vertical; border: 1.5px solid var(--news); padding: 8px; background-image: repeating-linear-gradient(0deg, transparent 0 31px, var(--line) 31px 32px); line-height: 32px; }
.err { color: var(--red-600); font: 600 14px var(--body); min-height: 1em; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 0; margin-bottom: 8px; }
.kinds { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.kinds input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kinds label { font: 400 17px var(--serif); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.kinds label::before { content: ""; width: 16px; height: 16px; border: 1.5px solid var(--news); display: inline-block; }
.kinds input:checked + label::before { background: var(--news); box-shadow: inset 0 0 0 3px var(--paper); }
.kinds input:focus-visible + label { outline: 3px solid var(--green-700); outline-offset: 2px; }
.done { display: none; gap: 12px; }
.done.show { display: grid; }
.done h3 { font-size: 34px; }
.done pre { white-space: pre-wrap; font: 400 13px/1.6 var(--mono); background: var(--paper-2); border: 1px solid var(--news); padding: 14px; margin: 0; }

/* Dialog: the clipping */
dialog { border: 1px solid var(--news); border-radius: 0; padding: 0; background: var(--paper); color: var(--news); width: min(860px, 100% - 32px); box-shadow: 10px 10px 0 rgba(29,27,28,.85); }
dialog::backdrop { background: rgba(29,27,28,.55); }
.dlg { display: grid; grid-template-columns: 1fr 1fr; }
.dlg .pic { background: var(--paper-2); border-right: 1px solid var(--news); display: grid; place-items: center; min-height: 340px; overflow: hidden; }
.dlg .pic img { width: 100%; height: 100%; max-height: 72vh; object-fit: contain; mix-blend-mode: multiply; }
.dlg .txt { padding: 30px 28px; display: grid; gap: 10px; align-content: start; }
.dlg h3 { font-size: 44px; }
.pill { font: 600 11px var(--mono); color: var(--kiln); text-transform: uppercase; letter-spacing: .1em; }
.dlg .story { margin: 4px 0; font-style: italic; font-size: 19px; }
.dlg dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 4px 0 8px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 10px; }
.dlg dt { font: 600 11px var(--mono); text-transform: uppercase; padding-top: 3px; color: var(--muted); }
.dlg dd { margin: 0; }
.x { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 1px solid var(--news); background: var(--paper); font: 800 20px var(--body); cursor: pointer; color: var(--news); }

/* Footer: back page */
footer { margin-top: 80px; border-top: 4px double var(--news); padding: 30px 0 34px; }
footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; align-items: start; }
footer .big { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 5.6vw, 72px); line-height: .92; }
footer h4 { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 8px; color: var(--muted); border-bottom: 1px solid var(--news); padding-bottom: 6px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { padding: 4px 0; }
footer .colophon { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); }

@media (max-width: 900px) {
  .cols, .profile, .letters, .dlg { grid-template-columns: 1fr; }
  .cols > div { border: 0; padding: 0; }
  .dlg .pic { border-right: 0; border-bottom: 1px solid var(--news); min-height: 240px; }
  footer .wrap { grid-template-columns: 1fr 1fr; } footer .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .two { grid-template-columns: 1fr; }
  .top .wrap { gap: 8px; } .logo svg { height: 40px; }
  .dateline .wrap span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker .row { animation: none; }
  .piece .pic img, .ig img, .halftone img, .btn { transition: none; }
}

/* Gallery card extras */
.piece { text-decoration: none; }
.count { position: absolute; left: 10px; bottom: 10px; font-size: 10px; background: var(--paper); border: 1px solid var(--news); padding: 3px 7px; text-transform: uppercase; }

/* Piece pages */
.kicker a { text-decoration: none; } .kicker a:hover { text-decoration: underline; }
.viewer-wrap { display: grid; grid-template-columns: 1.7fr 1fr; gap: 34px; align-items: start; }
.mainbtn { display: block; width: 100%; padding: 0; border: 1px solid var(--news); background: var(--paper-2); cursor: zoom-in; }
.mainbtn img { width: 100%; height: clamp(360px, 68vh, 720px); object-fit: contain; mix-blend-mode: multiply; }
.viewbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.thumbs { list-style: none; display: flex; gap: 10px; padding: 12px 0 0; margin: 0; flex-wrap: wrap; }
.thumbs button { display: block; width: 88px; height: 88px; padding: 0; border: 1px solid var(--line); background: var(--paper-2); cursor: pointer; opacity: .7; transition: opacity 0.35s var(--ease); }
.thumbs button:hover { opacity: 1; }
.thumbs button[aria-current="true"] { opacity: 1; outline: 3px solid var(--kiln); outline-offset: 2px; border-color: var(--news); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.facts { border-top: 4px double var(--news); padding-top: 14px; position: sticky; top: 100px; }
.facts h2 { font-size: 34px; margin-bottom: 10px; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 18px; font-size: 16px; }
.facts dt { font: 600 11px var(--mono); text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.facts dd { margin: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--news); border-bottom: 1px solid var(--news); margin-top: 48px; }
.pager a { text-decoration: none; padding: 16px 0; display: grid; gap: 4px; }
.pager a.next { text-align: right; border-left: 1px solid var(--line); }
.pager .mono { color: var(--muted); text-transform: uppercase; font-size: 11px; }
.pager b { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 26px; line-height: 1; }
.pager a:hover b { color: var(--kiln); }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20,18,19,.96); box-shadow: none; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(20,18,19,.9); }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 80px); object-fit: contain; }
.lb { position: absolute; background: var(--paper); color: var(--news); border: 1px solid var(--news); font: 800 28px var(--body); width: 52px; height: 52px; cursor: pointer; }
.lb.close { top: 16px; right: 16px; font-size: 24px; }
.lb.prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb.next { right: 16px; top: 50%; translate: 0 -50%; }
.lbcount { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; color: var(--paper); }
@media (max-width: 900px) {
  .viewer-wrap { grid-template-columns: 1fr; }
  .facts { position: static; }
  .mainbtn img { height: clamp(300px, 56vh, 520px); }
  .thumbs button { width: 64px; height: 64px; }
  .lightbox img { max-width: 100vw; }
  .lb.prev, .lb.next { top: auto; bottom: 10px; translate: none; }
}

/* Obituaries */
.obits .sect-head h2 { letter-spacing: .04em; }
.obitlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 0 32px; }
.obit { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--news); text-decoration: none; }
.obit img { width: 140px; height: 175px; object-fit: cover; border: 1px solid var(--news); filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; background: var(--paper-2); }
.obit h3 { font-size: 30px; }
.obit h3::before { content: "♥ "; color: var(--kiln); font-size: .7em; vertical-align: .1em; }
.obit .mono { display: block; color: var(--muted); text-transform: uppercase; font-size: 11px; margin: 4px 0 8px; }
.obit p { margin: 0; font-size: 16px; font-style: italic; }
.obit:hover h3 { color: var(--kiln); }
.obit:hover img { filter: none; }
.soldnote { border: 1px solid var(--news); padding: 14px 16px; margin: 0 0 16px; background: var(--paper-2); }
.soldnote p { margin: 4px 0 0; font-style: italic; font-size: 16px; }
@media (max-width: 560px) { .obitlist { grid-template-columns: 1fr; } .obit { grid-template-columns: 100px 1fr; } .obit img { width: 100px; height: 125px; } }

/* Profile fact box */
.factbox { border-top: 4px double var(--news); border-bottom: 1px solid var(--news); margin-top: 22px; padding: 12px 0 14px; }
.factbox h2 { font-size: 24px; margin-bottom: 8px; }
.factbox dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 15px; }
.factbox dt { font: 600 10px var(--mono); text-transform: uppercase; color: var(--muted); padding-top: 4px; letter-spacing: .06em; }
.factbox dd { margin: 0; }

/* Gallery: classifieds */
.index { border-block: 1px solid var(--news); padding: 8px 0; margin-bottom: 20px; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--muted); }
.classifieds { columns: 3 280px; column-gap: 22px; column-rule: 1px solid var(--line); }
.ad { break-inside: avoid; margin: 0 0 18px; border: 1px solid var(--news); background: var(--paper); font-family: var(--serif); }
.ad .cat { background: var(--news); color: var(--paper); font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; padding: 5px 8px; margin: 0; }
.adbody { display: block; padding: 10px 10px 12px; text-decoration: none; font-size: 15px; line-height: 1.4; color: var(--news); }
a.adbody:hover .adt { color: var(--kiln); }
.adpic { display: block; position: relative; background: var(--paper-2); margin-bottom: 8px; border: 1px solid var(--line); line-height: 0; }
.adpic::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(0,0,0,.09) 1px, transparent 1.4px) 0 0 / 4px 4px; mix-blend-mode: multiply; }
.adpic img { width: 100%; height: auto; }
.adt { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 21px; line-height: 1; letter-spacing: .01em; }
.adref { display: block; margin-top: 8px; font-size: 10px; color: var(--muted); text-transform: uppercase; }
a.adbody:hover .adref { color: var(--kiln); }
.ad.feature { border: 3px double var(--news); }
.ad.feature .cat { background: var(--kiln); }
.ad.feature .adt { font-size: 26px; }
.ad.note { border-style: dashed; }
.ad.note .cat { background: transparent; color: var(--news); border-bottom: 1px solid var(--news); }
.ad.note p { margin: 0; padding: 10px; font-size: 15px; line-height: 1.4; }
.ad.sold { position: relative; }
.ad.sold .adbody { color: var(--muted); position: relative; }
.ad.sold img { opacity: .7; }
.stamp { position: absolute; top: 46px; right: 10px; transform: rotate(-12deg); border: 3px solid var(--kiln); color: var(--kiln); font: 900 28px var(--display); text-transform: uppercase; padding: 2px 12px; letter-spacing: .08em; background: rgba(251,247,241,.85); }
.fine { margin-top: 14px; border-top: 1px solid var(--news); padding-top: 10px; font-size: 10px; color: var(--muted); text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .adpic img { transition: none; } }

/* ===== Motion ===== */
/* 1. Ink on paper: headlines print in with a smudge. Hidden only once JS confirms it can reveal them. */
@keyframes ink { 0% { opacity: 0; filter: blur(4px); transform: translateY(6px) scaleY(1.04); } 60% { opacity: 1; filter: blur(.6px); } 100% { opacity: 1; filter: none; transform: none; } }
html.motion .inkable { opacity: 0; }
html.motion .inkable.in { animation: ink 1.12s var(--ease) both; animation-delay: var(--d, 0ms); }

/* 2. Rubber stamps: buttons and the Sold stamp thunk down */
@keyframes stamp { 0% { opacity: 0; transform: scale(1.5) rotate(var(--rs, -4deg)); } 55% { opacity: 1; transform: scale(.94) rotate(var(--rs, -4deg)); } 75% { transform: scale(1.03) rotate(var(--rs, -4deg)); } 100% { opacity: 1; transform: scale(1) rotate(var(--rs, 0deg)); } }
html.motion .btns .btn { opacity: 0; }
html.motion .btns.in .btn { animation: stamp 0.72s var(--ease) both; animation-delay: calc(var(--i, 0) * 150ms + 200ms); }
html.motion .btns.in .btn:hover { transform: translate(-2px,-2px); }
.stamp { --rs: -12deg; }
html.motion .stamp { opacity: 0; }
html.motion .stamp.in { animation: stamp 0.80s var(--ease) 0.40s both; }

/* 4. Pinned classifieds wobble on hover */
.ad { transform-origin: 50% 0; transition: transform 0.56s var(--ease), box-shadow 0.35s var(--ease); }
.ad:hover { transform: rotate(-1.4deg); box-shadow: 4px 6px 0 rgba(29,27,28,.18); }
.ad:nth-child(even):hover { transform: rotate(1.2deg); }

/* 5. Teletype headline */
.hed .ch { visibility: hidden; }
.hed .ch.on { visibility: visible; }
.hed .caret { display: inline-block; width: .08em; height: .8em; margin-left: .04em; background: var(--kiln); vertical-align: -.02em; animation: caret .7s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html.motion .inkable, html.motion .btns .btn, html.motion .stamp { opacity: 1; animation: none !important; }
  .ad, .ad:hover, .ad:nth-child(even):hover { transform: none; transition: none; }
  .hed .ch { visibility: visible; }
}

/* Mobile menu */
.menubtn { display: none; align-items: center; gap: 10px; background: var(--paper); border: 2px solid var(--news); padding: 7px 10px 7px 12px; cursor: pointer; color: var(--news); font: inherit; }
.menubtn .mono { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.burger { display: grid; gap: 4px; width: 20px; }
.burger i { display: block; height: 2px; background: var(--news); transition: transform 0.40s var(--ease), opacity 0.35s var(--ease); }
.menubtn[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menubtn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.menubtn[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 720px) {
  .top .wrap { position: static; }
  header.top { position: sticky; }
  .menubtn { display: inline-flex; }
  #mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 4px double var(--news); box-shadow: 0 18px 30px rgba(29,27,28,.12); }
  #mainnav.open { display: block; animation: drop 0.35s var(--ease); }
  #mainnav ul { flex-direction: column; width: min(1180px, 100% - 40px); margin: 0 auto; padding: 6px 0 14px; }
  #mainnav li + li { border-left: 0; border-top: 1px solid var(--line); }
  #mainnav a { font: 900 30px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; padding: 14px 0; }
  #mainnav a[aria-current="page"] { text-decoration-thickness: 3px; text-underline-offset: 6px; }
  .dateline .wrap span:nth-child(2) { display: none; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #mainnav.open { animation: none; } .burger i { transition: none; } }

/* Logo: big at the top, shrinks once you scroll */
.logo svg { height: 84px; transition: height 0.48s var(--ease); }
.top .wrap { transition: padding 0.48s var(--ease); }
header.top.shrunk .logo svg { height: 46px; }
header.top.shrunk .wrap { padding-block: 6px; }
header.top.shrunk { box-shadow: 0 6px 14px rgba(29,27,28,.08); }
@media (max-width: 720px) {
  .logo svg { height: 64px; }
  header.top.shrunk .logo svg { height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .logo svg, .top .wrap { transition: none; } }
