/* ============================================================================
   The Barrhaven Bugle — letterpress community-broadsheet system
   Aesthetic: wartime newspaper nameplate · newsprint paper · brass + bottle green
   Type: Fraunces (display) · Newsreader (body) · Saira Condensed (kickers/labels)
   Cache: edits ship immediately — a pre-commit hook re-stamps ?v=<hash> on the
   /styles.css reference in every HTML page (see scripts/stamp-asset-versions.mjs).
   ========================================================================== */

:root {
  --green:        #123a2b;
  --green-deep:   #0c2a1f;
  --green-ink:    #0a241a;
  --page:         #faf7f0;   /* warm-ivory page background (brighter than the old muddy paper) */
  --paper:        #f3ead7;   /* reserved for the masthead band — the locked flag palette */
  --paper-2:      #efe2c9;
  --paper-card:   #ffffff;   /* white card / panel surfaces, crisp against ivory */
  --paper-soft:   #fbf8f1;   /* faintly-warm panel when pure white is too stark */
  --brass:        #bd8526;
  --brass-bright: #d8a23a;
  --brass-deep:   #8a611a;
  --ink:          #1c1810;
  --ink-soft:     #2c271c;
  --red:          #9e3324;
  --muted:        #6a6049;
  --rule:         #c9bb9b;
  --rule-soft:    #d9cdb2;
  --rule-ink:     #1c1810;

  --shell: 1180px;
  --gutter: clamp(18px, 4vw, 40px);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --display: "Fraunces", Georgia, serif;
  --gothic: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--page);
  /* faint newsprint grain — dialed down so the ivory stays bright */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 18px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

::selection { background: var(--brass-bright); color: var(--green-ink); }

a {
  color: var(--green);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(189, 133, 38, 0.6);
  transition: color .18s ease, text-decoration-color .18s ease;
}
a:hover { color: var(--brass-deep); text-decoration-color: var(--brass); }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--green-ink);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 0.7rem;
  font-weight: 800;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); }
h2 { font-size: clamp(1.95rem, 4vw, 3.1rem); }
h3 { font-size: 1.4rem; font-weight: 700; }

p { margin: 0 0 1rem; }
strong { font-weight: 650; }

.inner { width: min(var(--shell), calc(100% - (var(--gutter) * 2))); margin-inline: auto; }

/* ---- kicker / section labels ------------------------------------------- */
.eyebrow, .kicker {
  font-family: var(--gothic);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 0.9rem;
}
.eyebrow::before, .kicker::before {
  content: "";
  width: 1.7em; height: 0;
  border-top: 2px solid var(--brass);
}

/* =========================================================================
   MASTHEAD — the front-page nameplate
   ========================================================================= */
.masthead {
  background:
    linear-gradient(180deg, rgba(18,58,43,0.05), transparent 150px),
    var(--paper);
  padding-top: 14px;
  border-bottom: 1px solid var(--rule);
}
.dateline {
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  font-family: var(--gothic);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.dateline-date { text-align: left; color: var(--green-ink); }
.dateline-edition { text-align: center; color: var(--brass-deep); }
.dateline-free { text-align: right; }

/* =========================================================================
   WEATHER EAR — glanceable conditions widget in the masthead corner
   ========================================================================= */
.nameplate-ear {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.wx {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--paper-card);
  border: 1.5px solid var(--green-ink);
  border-radius: 3px;
  box-shadow: 3px 3px 0 rgba(12,42,31,0.14);
  text-decoration: none;
  color: var(--green-ink);
  min-width: 150px;
}
.wx[hidden] { display: none; }
.wx-ico { font-size: 1.7rem; line-height: 1; }
.wx-read { display: flex; flex-direction: column; line-height: 1.1; }
.wx-temp {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  color: var(--green-ink); letter-spacing: -0.01em;
}
.wx-meta {
  font-family: var(--gothic); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.62rem; font-weight: 600;
  color: var(--muted);
}
.wx-place { color: var(--brass-deep); }

.nameplate {
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 96px 1fr 96px;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  padding: clamp(18px, 3.4vw, 34px) 0 clamp(10px, 2vw, 18px);
  border-top: 1px solid var(--rule);
  margin-top: -1px;
}
.nameplate-emblem {
  display: block;
  filter: drop-shadow(0 4px 14px rgba(12,42,31,0.28));
}
.nameplate-emblem img {
  width: clamp(70px, 9vw, 96px); height: auto; border-radius: 50%;
}
.nameplate-words { text-decoration: none; text-align: center; display: block; }
.nameplate-the {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--brass-deep);
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  letter-spacing: 0.02em;
  margin-bottom: -0.18em;
}
.nameplate-name {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  color: var(--green-ink);
  font-size: clamp(2.5rem, 8.6vw, 6.1rem);
  letter-spacing: -0.02em;
  line-height: 0.9;
}
.nameplate-motto {
  font-family: var(--gothic);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
}
/* double rule under nameplate, newspaper style */
.masthead-rule {
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  border: 0;
  border-top: 3px solid var(--rule-ink);
  border-bottom: 1px solid var(--rule-ink);
  height: 4px;
  margin-top: 6px;
}

/* =========================================================================
   RUNNING HEAD — slim sticky bar for nav + persistent subscribe
   ========================================================================= */
.runninghead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 240, 0.93);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--rule);
}
.runninghead-inner {
  position: relative;
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.runninghead-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 800; color: var(--green-ink);
  text-decoration: none; font-size: 1.06rem;
}
.runninghead-brand img { width: 26px; height: 26px; border-radius: 50%; }
.runninghead-nav { display: flex; align-items: center; gap: 20px; }
.runninghead-nav a {
  font-family: var(--gothic);
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
  font-size: 0.82rem; color: var(--ink-soft); text-decoration: none;
}
.runninghead-nav a:hover { color: var(--brass-deep); }
.runninghead-nav a.button { color: #fff; }

/* =========================================================================
   BUTTONS — "press stamp" subscribe
   ========================================================================= */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  min-height: 50px;
  padding: 0 24px;
  font-family: var(--gothic);
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
  font-size: 0.92rem;
  color: #fdf7e8;
  background: var(--green);
  border: 2px solid var(--green-ink);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(12,42,31,0.9);
  transition: transform .12s ease, box-shadow .12s ease, background .18s ease;
}
.button:hover {
  color: #fff;
  background: var(--green-deep);
  transform: translate(-1px,-1px);
  box-shadow: 6px 6px 0 rgba(12,42,31,0.95);
}
.button:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 rgba(12,42,31,0.9); }
.button.secondary {
  background: transparent; color: var(--green-ink);
  box-shadow: 4px 4px 0 rgba(189,133,38,0.55);
  border-color: var(--brass-deep);
}
.button.secondary:hover { background: rgba(189,133,38,0.12); color: var(--green-ink); }
.button.brass {
  background: var(--brass-deep); border-color: var(--brass-deep); color: #fff;
  box-shadow: 4px 4px 0 rgba(138,97,26,0.85);
}
.button.brass:hover { background: #6f4d15; color: #fff; }
a:focus-visible,
button:focus-visible,
.button:focus-visible,
.chip:focus-visible,
.share-btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
  text-decoration: none;
}

/* =========================================================================
   FRONT PAGE — lede + subscription rail
   ========================================================================= */
.frontpage {
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(280px, 1fr);
  gap: 0;
  padding: clamp(30px, 5vw, 56px) 0 clamp(34px, 5vw, 60px);
}
.lede { padding-right: clamp(24px, 4vw, 52px); }
.lede h1 { margin-top: 0.2rem; }
.lede-copy {
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 40ch;
}
.lede-copy.drop::first-letter {
  float: left;
  font-family: var(--display);
  font-weight: 900;
  font-size: 4.4em;
  line-height: 0.72;
  padding: 0.06em 0.12em 0 0;
  color: var(--green-ink);
}
.byline {
  font-family: var(--gothic);
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.76rem; color: var(--muted); font-weight: 600;
  margin: 0 0 1.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.hero-figure {
  margin: clamp(20px, 3vw, 30px) 0 0;
  border: 1px solid var(--rule-ink);
  position: relative;
  overflow: hidden;
  background: #d9cdb2;
}
.hero-figure img {
  width: 100%; aspect-ratio: 16 / 8; object-fit: cover;
  /* duotone newsprint halftone toward green/brass */
  filter: grayscale(1) contrast(1.08) brightness(1.12) sepia(0.28) hue-rotate(72deg) saturate(1.15);
  mix-blend-mode: normal;
}
.hero-figure::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(12,42,31,0.24), rgba(12,42,31,0.24)),
    radial-gradient(rgba(12,42,31,0.34) 22%, transparent 23%);
  background-size: auto, 4px 4px;
  mix-blend-mode: soft-light;
  opacity: 0.42;
  pointer-events: none;
}
.hero-figure figcaption {
  position: absolute; left: 0; bottom: 0;
  font-family: var(--gothic);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.66rem; font-weight: 600;
  color: #f3ead7;
  background: rgba(10,36,26,0.86);
  padding: 6px 12px;
}
.hero-actions, .section-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: clamp(22px, 3vw, 30px);
}

/* vertical column rule between lede and rail */
.rail {
  padding-left: clamp(24px, 3.4vw, 44px);
  border-left: 1px solid var(--rule-ink);
  position: relative;
}
.rail::before {
  /* second hairline → newspaper double column rule */
  content: ""; position: absolute; top: 0; bottom: 0; left: 3px;
  border-left: 1px solid var(--rule);
}

/* =========================================================================
   SIGNUP PANEL — "the subscription desk"
   ========================================================================= */
.signup-panel {
  background: var(--paper-card);
  border: 2px solid var(--green-ink);
  box-shadow: 6px 6px 0 rgba(12,42,31,0.16);
  padding: clamp(20px, 2.6vw, 26px);
}
.signup-panel h2,
.signup-panel h3 {
  font-size: 1.32rem; line-height: 1.12; margin-bottom: 0.6rem;
}
.rail .signup-panel { position: static; }
.signup-panel--featured { border-top: 5px solid var(--brass); }
.signup-value { font-size: 1rem; color: var(--ink-soft); margin: 0 0 1rem; }
.signup-panel label {
  display: block;
  font-family: var(--gothic);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.74rem; font-weight: 600; color: var(--green-ink);
  margin-bottom: 8px;
}
.signup-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.signup-row input {
  min-width: 0; width: 100%;
  min-height: 50px;
  border: 2px solid var(--rule);
  border-radius: 2px;
  background: #fffdf6;
  padding: 0 14px;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
}
.signup-row input:focus-visible {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(216,162,58,0.3);
}
.signup-row .button { width: 100%; }
.signup-panel small { display: block; color: var(--muted); margin-top: 12px; font-size: 0.86rem; }
.form-status { color: var(--muted); font-size: 0.84rem; margin: 12px 0 0; font-style: italic; }

/* Substack native subscribe embed */
.substack-embed {
  width: 100%;
  max-width: 480px;
  height: 320px;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #fff;
}
.embed-fallback {
  margin: 10px 0 0;
  font-family: var(--gothic);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 600;
}
.embed-fallback a { color: var(--brass-deep); }

/* whats-inside list in the rail */
.rail-list {
  list-style: none; margin: 26px 0 0; padding: 22px 0 0;
  border-top: 1px solid var(--rule);
}
.rail-list .kicker { margin-bottom: 0.7rem; }
.rail-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  padding: 9px 0; border-bottom: 1px dotted var(--rule);
  font-size: 0.98rem;
}
.rail-list .rail-list-heading {
  grid-template-columns: 1fr;
}
.rail-list .rail-list-heading .kicker {
  margin: 0;
}
.rail-list li:last-child { border-bottom: 0; }
.rail-list .num {
  font-family: var(--display); font-weight: 900; color: var(--brass-deep);
  font-size: 1.1rem; line-height: 1.3;
}

/* =========================================================================
   GENERIC SECTIONS
   ========================================================================= */
.page-section { padding: clamp(48px, 7vw, 88px) 0; }
.page-section.white { background: var(--paper-card); border-block: 1px solid var(--rule); }
.page-section.ink {
  background: var(--green-ink); color: #ece2cd;
  border-block: 1px solid var(--green-deep);
}
.page-section.ink h2, .page-section.ink h3 { color: #fbf3df; }
.page-section.ink .kicker { color: var(--brass-bright); }
.page-section.ink a { color: var(--brass-bright); }
.page-section.ink .button.brass { color: #fff; } /* keep filled orange buttons white, not link-orange */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 420px);
  gap: clamp(28px, 6vw, 68px);
  align-items: start;
}
.content { max-width: 70ch; }

.answer-box {
  border-left: 5px solid var(--brass);
  background: var(--paper-card);
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 32px);
  box-shadow: 5px 5px 0 rgba(12,42,31,0.1);
  font-size: 1.1rem;
}
.answer-box strong { color: var(--green-ink); }
.page-section.ink .answer-box { background: rgba(255,255,255,0.05); color: #ece2cd; }

/* coverage area */
.coverage-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 0; margin-top: 30px;
  border: 1px solid var(--rule-ink);
}
.coverage-pill {
  padding: 26px 16px; text-align: center;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  color: var(--green-ink);
  border-right: 1px solid var(--rule);
  background: var(--paper-card);
}
.coverage-pill:last-child { border-right: 0; }
.coverage-pill span {
  display: block; font-family: var(--gothic); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.66rem; color: var(--muted); margin-top: 6px;
}

/* departments / cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; margin-top: 30px; }
.card {
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--paper-card);
  border: 1px solid var(--rule-ink);
  margin-right: -1px; margin-bottom: -1px;
}
.card .card-no {
  font-family: var(--gothic); font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; font-size: 0.72rem; color: var(--red);
  display: block; margin-bottom: 0.7rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }

/* trust list */
.trust-grid {
  display: grid; grid-template-columns: minmax(0,0.92fr) minmax(0,1.08fr);
  gap: clamp(30px, 5vw, 56px); align-items: start;
}
.list { display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; }
.list li {
  border-left: 4px solid var(--brass);
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
}
.page-section:not(.ink) .list li { background: var(--paper-card); border-bottom: 1px solid var(--rule); }

/* answer hub question links */
.question-list { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid var(--rule-ink); }
.question-link {
  display: block; padding: 20px 0; text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: padding-left .18s ease, background .18s ease;
}
.question-link:hover { padding-left: 14px; background: rgba(189,133,38,0.08); }
.question-link strong {
  display: block; font-family: var(--display); font-weight: 700;
  color: var(--green-ink); font-size: 1.32rem; margin-bottom: 5px;
}
.question-link span { color: var(--ink-soft); }

/* =========================================================================
   SECTION INDEX STRIP — the paper's desks, at a glance (front page)
   ========================================================================= */
.section-strip {
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin: clamp(18px, 3vw, 28px) auto 0;
  border: 1px solid var(--rule-ink);
  border-top: 3px solid var(--green-ink);
  background: var(--paper-card);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.section-strip a {
  display: block;
  padding: 16px 18px;
  text-decoration: none;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background .15s ease;
}
.section-strip a:hover { background: rgba(189,133,38,0.10); }
.section-strip a strong {
  display: block;
  font-family: var(--display); font-weight: 800;
  color: var(--green-ink); font-size: 1.12rem; margin-bottom: 2px;
}
.section-strip a span {
  font-family: var(--gothic); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.64rem; font-weight: 600; color: var(--muted);
}
@media (max-width: 760px) {
  .section-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .section-strip { grid-template-columns: 1fr; }
}

/* =========================================================================
   AD SLOTS — IAB-standard, fillable; "your ad here" until sold
   Sizes: Featured 970x250 / 300x600 · Regular 300x250 (MPU) · Classified 320x100
   ========================================================================= */
.ad-slot {
  --ad-w: 300px;
  --ad-h: 250px;
  width: 100%;
  max-width: var(--ad-w);
  margin-inline: auto;
  position: relative;
  border: 1px solid var(--rule-ink);
  background: var(--paper-soft);
  overflow: hidden;
}
.ad-slot--featured  { --ad-w: 970px; --ad-h: 250px; }
.ad-slot--featured.ad-slot--rail { --ad-w: 300px; --ad-h: 600px; }
.ad-slot--regular   { --ad-w: 300px; --ad-h: 250px; }
.ad-slot--classified{ --ad-w: 728px; --ad-h: 100px; }

/* Native cards are the Bugle's own format (image + copy + CTA), not a fixed IAB image.
   Let a native regular card FILL its column instead of the 300px image cap, and grow in
   height with its copy. Image/placeholder ads keep their exact IAB footprint (untouched).
   On a wide content section the card is capped so it does not run full-bleed. */
.ad-rail:has(.ad-slot--regular .ad-native),
.ad-slot--regular:has(.ad-native) { max-width: 100%; }
.page-section .ad-rail:has(.ad-slot--regular .ad-native) { max-width: 460px; }

/* the "ADVERTISEMENT" eyebrow that sits above every slot */
.ad-rail { width: 100%; max-width: var(--ad-w); margin-inline: auto; }
.ad-label {
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.6rem; font-weight: 700; color: var(--muted);
  text-align: center; margin: 0 0 5px;
}

/* placeholder ("your ad here") state */
.ad-slot.is-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px;
  aspect-ratio: var(--ad-w) / var(--ad-h);
  border-style: dashed;
  border-color: var(--brass-deep);
  text-decoration: none;
  padding: 14px;
}
.ad-slot.is-empty strong {
  font-family: var(--display); font-weight: 800; color: var(--green-ink); font-size: 1.05rem;
}
.ad-slot.is-empty span {
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.66rem; font-weight: 600; color: var(--brass-deep);
}
.ad-slot.is-empty:hover { background: rgba(189,133,38,0.08); }

/* filled: plain image banner */
.ad-image { display: block; text-decoration: none; }
.ad-image img { width: 100%; height: auto; aspect-ratio: var(--ad-w) / var(--ad-h); object-fit: cover; }

/* filled: native (Amazon-style) card — image + title + body + brand/CTA */
.ad-native { display: block; text-decoration: none; color: var(--ink); background: var(--paper-card); }
.ad-native .ad-native-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ad-native .ad-native-body { padding: 12px 14px; }
.ad-native .ad-native-brand {
  display: flex; align-items: center; gap: 7px; margin-bottom: 6px;
}
.ad-native .ad-native-brand img { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; }
.ad-native .ad-native-brand span {
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.64rem; font-weight: 700; color: var(--muted);
}
.ad-native h4 {
  font-family: var(--display); font-weight: 700; color: var(--green-ink);
  font-size: 1.08rem; line-height: 1.12; margin: 0 0 5px;
}
.ad-native p { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 10px; }
.ad-native .ad-cta {
  display: inline-block;
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.74rem; font-weight: 700; color: #fff;
  background: var(--brass-deep); padding: 8px 16px; border-radius: 2px;
}
.ad-native:hover .ad-cta { background: #6f4d15; }
.ad-native .ad-price { font-weight: 700; color: var(--green-ink); }

/* classified: compact text-led unit */
.ad-slot--classified.ad-native .ad-native-img { display: none; }
.ad-slot--classified.ad-native h4 { font-size: 0.98rem; }

/* house ad — the Bugle selling its own ad inventory (distinct from a paid creative) */
.ad-house {
  display: flex; flex-direction: column; justify-content: center;
  aspect-ratio: var(--ad-w) / var(--ad-h);
  background: var(--green-ink); border-color: var(--green-ink);
  text-decoration: none; padding: 16px 18px;
}
.ad-house-body { display: flex; flex-direction: column; gap: 6px; max-width: 62ch; }
.ad-house-eyebrow {
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.6rem; font-weight: 700; color: var(--brass-bright);
}
.ad-house strong {
  font-family: var(--display); font-weight: 800; color: #fbf3df;
  font-size: 1.15rem; line-height: 1.1;
}
.ad-house p { margin: 0; color: #e7ddc8; font-size: 0.9rem; }
.ad-house .ad-cta {
  align-self: flex-start; margin-top: 4px;
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.72rem; font-weight: 700; color: var(--green-ink);
  background: var(--brass-bright); padding: 7px 14px; border-radius: 2px;
}
.ad-house:hover .ad-cta { background: #fff; }
.ad-slot--featured.ad-house { padding: 22px clamp(20px, 4vw, 40px); }
.ad-slot--featured.ad-house strong { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.ad-slot--featured.ad-house p { font-size: 1rem; }

/* =========================================================================
   SUBPAGE HEADER (running head reused on interior pages via .site-header)
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,247,240,0.95);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 3px double var(--rule-ink);
}
.nav {
  position: relative;
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto; min-height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--green-ink); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 1.18rem;
}
.brand-logo { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a {
  font-family: var(--gothic); text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 600; font-size: 0.82rem;
  color: var(--ink-soft); text-decoration: none;
}
.nav-links a:hover { color: var(--brass-deep); }
.nav-links a.button { color: #fdf7e8; }
.nav-links a[aria-current="page"],
.runninghead-nav a[aria-current="page"] {
  color: var(--brass-deep);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 5px;
}

/* =========================================================================
   MOBILE NAV — hamburger disclosure (shared: .site-header + .runninghead)
   ========================================================================= */
.nav-toggle {
  display: none;               /* desktop: hidden, links are inline */
  flex: 0 0 auto;
  width: 44px; height: 40px;
  align-items: center; justify-content: center;
  gap: 5px; flex-direction: column;
  background: transparent;
  border: 1.5px solid var(--rule-ink);
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--green-ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
/* keep the inline nav on one line at desktop widths (no mid-width wrapping) */
.brand span, .runninghead-brand { white-space: nowrap; }
.nav-links a, .runninghead-nav a { white-space: nowrap; }

.page-hero { padding: clamp(48px, 8vw, 92px) 0 16px; }
.page-hero h1 { max-width: 16ch; }

/* Interior content pages (about, sponsor, privacy, directory, etc.) use the homepage-scale
   display H1, which looks top-heavy over a short page. Right-size headings + add rhythm so a
   page with a big title and little text doesn't feel awkward. */
article.content > h1 {
  font-size: clamp(2.05rem, 3.6vw, 3.05rem);
  max-width: 22ch;
  margin-bottom: 1rem;
}
article.content h2 {
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  margin-top: 2.2rem;
}
article.content h2:first-of-type { margin-top: 1.6rem; }
article.content > p { max-width: 70ch; }
.breadcrumbs {
  font-family: var(--gothic); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.76rem; font-weight: 600;
  color: var(--muted); margin-bottom: 20px;
}
.breadcrumbs a { color: var(--brass-deep); text-decoration: none; }
.related { border-top: 1px solid var(--rule-ink); margin-top: 38px; padding-top: 28px; }

/* =========================================================================
   COLOPHON / FOOTER
   ========================================================================= */
.footer {
  background: var(--green-ink);
  color: #d9cdaf;
  padding: clamp(40px, 6vw, 60px) 0;
  border-top: 4px solid var(--brass);
}
.footer a { color: #f1e6c8; text-decoration-color: rgba(216,162,58,0.5); }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start;
}
.footer-grid strong {
  font-family: var(--display); font-weight: 900; font-size: 1.5rem;
  color: #fbf3df; display: block; margin-bottom: 0.5rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a {
  font-family: var(--gothic); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.84rem; font-weight: 600;
}
.colophon-note {
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.72rem; color: #9d8f6e; margin-top: 8px;
}

/* footer follow + share row */
.footer-social {
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(216,162,58,0.28);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
}
.footer-follow, .footer-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-share { margin-left: auto; }
.footer-social-label {
  font-family: var(--gothic); text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 700; color: #9d8f6e;
}
.social-btn, .share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--gothic); text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 600; line-height: 1;
  color: #f1e6c8; text-decoration: none;
  border: 1.5px solid rgba(216,162,58,0.5); border-radius: 2px;
  padding: 8px 12px; background: transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.social-btn:hover, .share-btn:hover {
  color: #fff; background: var(--brass); border-color: var(--brass);
}
.social-ico { width: 16px; height: 16px; fill: currentColor; flex: none; }
.share-btn.copied { color: #fff; background: var(--brass-bright); border-color: var(--brass-bright); }
@media (max-width: 620px) {
  .footer-share { margin-left: 0; }
}

/* =========================================================================
   MOTION — front-page reveal (refined, single orchestrated load)
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  .dateline   { animation: fall .6s ease both; }
  .nameplate-emblem { animation: settle .9s cubic-bezier(.2,.8,.2,1) both .05s; }
  .nameplate-the    { animation: fall .7s ease both .12s; }
  .nameplate-name   { animation: rise .8s cubic-bezier(.2,.8,.2,1) both .18s; }
  .nameplate-motto  { animation: fall .7s ease both .26s; }
  .masthead-rule    { animation: grow .9s cubic-bezier(.6,0,.2,1) both .3s; transform-origin: center; }
  .lede > *         { animation: rise .7s ease both .38s; }
  .rail             { animation: rise .7s ease both .5s; }

  @keyframes rise   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes fall   { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  @keyframes grow   { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
  @keyframes settle { from { opacity: 0; transform: translateY(-14px) rotate(-12deg) scale(.85); } to { opacity: 1; transform: none; } }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
/* Nav collapses to the hamburger below 1024px — the 9-link inline nav needs a wide screen,
   so tablets/narrow laptops get the clean disclosure menu instead of a cramped, wrapping row. */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-links, .runninghead-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--page);
    border: 1px solid var(--rule-ink);
    border-top: 0;
    box-shadow: 0 14px 30px rgba(12,42,31,0.18);
    padding: 6px 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-links[data-open], .runninghead-nav[data-open] { display: flex; }
  .nav-links a, .runninghead-nav a {
    padding: 13px 20px;
    font-size: 0.92rem;
    border-bottom: 1px dotted var(--rule);
  }
  .nav-links a:last-child, .runninghead-nav a:last-child { border-bottom: 0; }
  /* the Subscribe button sits in-flow inside the menu instead of floating over it */
  .nav-links a.button, .runninghead-nav a.button {
    margin: 10px 16px 6px;
    box-shadow: none;
  }
}

@media (max-width: 920px) {
  .frontpage { grid-template-columns: 1fr; }
  .lede { padding-right: 0; }
  .rail {
    padding-left: 0; border-left: 0; margin-top: 36px;
    padding-top: 30px; border-top: 3px double var(--rule-ink);
  }
  .rail::before { display: none; }
  .rail .signup-panel { position: static; }
  .trust-grid, .intro-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .nameplate {
    grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px;
  }
  .nameplate-motto { text-align: center; }
  .dateline {
    grid-template-columns: 1fr; justify-items: center; gap: 4px; text-align: center;
  }
  .dateline-date, .dateline-edition, .dateline-free { text-align: center; }
  .nameplate-ear { align-items: center; order: -1; }
  .wx { min-width: 0; }

  .cards { grid-template-columns: 1fr; }
  .coverage-strip { grid-template-columns: 1fr 1fr; }
  .coverage-pill:nth-child(2) { border-right: 0; }
  .coverage-pill { border-bottom: 1px solid var(--rule); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .button, .section-actions .button { width: 100%; }
}

/* =========================================================================
   COMMUNITY CALENDAR (/events/)
   ========================================================================= */
.cal-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.cal-toolbar {
  display: grid; gap: 14px;
  padding: 22px 0 28px;
  border-bottom: 3px double var(--rule-ink);
  margin-bottom: 28px;
}
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.chip-label {
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.72rem; font-weight: 600; color: var(--muted);
  width: 56px; flex: 0 0 auto;
}
.chip {
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.8rem; font-weight: 600;
  padding: 7px 14px;
  background: var(--paper-card);
  color: var(--ink-soft);
  border: 1.5px solid var(--rule-ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .1s ease;
}
.chip:hover { background: rgba(189,133,38,0.14); }
.chip.active { background: var(--green-ink); color: #f3ead7; border-color: var(--green-ink); }

.cal-list { display: block; }
.cal-day-label {
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.82rem; font-weight: 700; color: var(--red);
  padding: 6px 0; margin-top: 26px;
  border-bottom: 2px solid var(--brass);
}
.cal-day-label:first-child { margin-top: 0; }
.cal-day { display: grid; gap: 0; }

.event-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.event-time {
  font-family: var(--gothic); font-weight: 600; letter-spacing: 0.04em;
  font-size: 0.92rem; color: var(--green-ink);
  padding-top: 2px;
}
.event-title { font-size: 1.4rem; margin: 0 0 6px; line-height: 1.1; }
.event-title a { text-decoration: none; }
.event-title a:hover { text-decoration: underline; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.event-tag {
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.66rem; font-weight: 600; padding: 3px 8px; border-radius: 2px;
}
.tag-cat { background: var(--green-ink); color: #f3ead7; }
.tag-hood { background: transparent; color: var(--brass-deep); border: 1px solid var(--brass); }
.event-venue { color: var(--muted); font-size: 0.92rem; }
.event-desc { margin: 0 0 6px; color: var(--ink-soft); max-width: 62ch; }
.event-source {
  margin: 0; font-family: var(--gothic); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.68rem; color: var(--muted);
}
.event-clip {
  margin: 4px 0 0; font-family: var(--gothic); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.68rem;
}
.event-clip a { color: var(--brass); text-decoration: none; }
.event-clip a:hover { text-decoration: underline; }
.cal-empty {
  padding: 40px 0; font-size: 1.1rem; color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
}
.cal-foot {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule);
  font-size: 0.92rem; color: var(--muted);
}

@media (max-width: 600px) {
  .event-card { grid-template-columns: 1fr; gap: 4px; }
  .event-time { padding-top: 0; color: var(--brass-deep); }
  .chip-label { width: 100%; }
}

/* ===================== THE STRAND HERD (editorial cartoon) ===================== */
.strand-herd-section .section-lede {
  max-width: 60ch;
  margin: 0.35rem 0 1.25rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.05rem;
}
/* Home page: cartoon on the left, ad rail filling the space beside it.
   The rail matches the home-rail ad width (~406px) and the ad fills its column. */
.strand-herd-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 406px); gap: clamp(20px, 3vw, 32px); align-items: start; }
.strand-herd-rail .ad-slot { width: 100%; max-width: 100%; }
@media (max-width: 980px) { .strand-herd-layout { grid-template-columns: 1fr; } .strand-herd-rail { position: static; max-width: 460px; } }
.strand-herd {
  margin: 0;
  max-width: 760px;
}
.strand-herd-img {
  display: block;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  box-shadow: 0 2px 14px rgba(28, 24, 16, 0.10);
  text-decoration: none;
}
.strand-herd-img img { display: block; width: 100%; height: auto; }
.strand-herd figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.6rem;
}
.strand-herd-kicker {
  font-family: var(--gothic);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--green-ink);
}
.strand-herd-more {
  font-family: var(--gothic);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: var(--brass-deep);
}
/* Graceful placeholder before the first cartoon ships */
.strand-herd--placeholder { max-width: 760px; }
.strand-herd-soon {
  border: 1px dashed var(--rule);
  background: var(--paper-soft);
  padding: clamp(28px, 6vw, 56px);
  text-align: center;
  border-radius: 2px;
}
.strand-herd-soon .strand-herd-kicker { display: block; margin-bottom: 0.5rem; }
.strand-herd-soon p { margin: 0; color: var(--muted); font-family: var(--serif); }

/* Archive grid (/cartoon/) */
.sh-archive { margin: 1.5rem 0 1rem; }
/* Cartoon page: archive on the left, an ad rail filling the space beside it.
   The rail matches the home-rail ad width (~406px) and the ad fills its column. */
.sh-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 406px); gap: clamp(20px, 3vw, 32px); align-items: start; }
.sh-layout > .sh-archive { margin-top: 0; }
.sh-rail .ad-slot { width: 100%; max-width: 100%; }
@media (max-width: 980px) { .sh-layout { grid-template-columns: 1fr; } .sh-rail { max-width: 460px; } }
/* Each month is its own grid; the newest month is open, older months collapse (native details). */
.sh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(18px, 3vw, 28px);
}
.sh-month-block + .sh-month,
.sh-month + .sh-month { margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.sh-month-title {
  font-family: var(--gothic);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  color: var(--green-ink);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
details.sh-month { border-top: 1px solid var(--rule); padding-top: 0.4rem; }
details.sh-month > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--gothic);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-ink);
  padding: 0.6rem 0;
}
details.sh-month > summary::-webkit-details-marker { display: none; }
details.sh-month > summary::before { content: "\25B8\00a0\00a0"; color: var(--brass); }
details.sh-month[open] > summary::before { content: "\25BE\00a0\00a0"; }
details.sh-month[open] > summary { margin-bottom: 1rem; }
.sh-card {
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  box-shadow: 0 1px 8px rgba(28, 24, 16, 0.08);
}
.sh-card img { display: block; width: 100%; height: auto; }
.sh-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
  padding: 0.55rem 0.7rem 0.7rem;
}
.sh-card-reg {
  font-family: var(--gothic);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--green-ink);
}
.sh-card-meta { font-size: 0.8rem; color: var(--muted); }
.sh-archive-empty {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.05rem;
  max-width: 52ch;
}
