/*!
 * Carmannews — v2 editorial design system
 * Brutalist editorial. Massive serif. Restrained palette. Asymmetric grid.
 * Fonts: Fraunces (display), Newsreader (body), DM Sans (UI), JetBrains Mono (meta).
 */

/* ============================================================
 * 1. DESIGN TOKENS
 * ============================================================ */
:root {
  /* Color — warm editorial palette */
  --paper:        #FBFAF6;
  --paper-2:      #F4F0E6;
  --ink:          #161513;
  --ink-2:        #2B2722;
  --sub:          #5A5147;
  --muted:        #8C857B;
  --rule:         #DDD6CC;
  --rule-strong:  #C8BFB1;
  --accent:       #6B1E1E;       /* oxblood */
  --accent-2:     #8B2828;
  --gold:         #B8924A;       /* warm gold */
  --gold-soft:    #E8D7A9;

  /* Category dots — sparingly used */
  --cat-business:  #2C5530;
  --cat-health:    #1B4079;
  --cat-tech:      #3D2B56;
  --cat-home:      #8B5A2B;
  --cat-lifestyle: #6B1E1E;

  /* Spacing — 4/8pt grid */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.5rem;
  --s-6:  2rem;
  --s-7:  3rem;
  --s-8:  4rem;
  --s-9:  6rem;
  --s-10: 8rem;

  /* Type scale */
  --t-caption: 0.6875rem;   /* 11px */
  --t-meta:    0.8125rem;   /* 13px */
  --t-small:   0.9375rem;   /* 15px */
  --t-body:    1.0625rem;   /* 17px */
  --t-lead:    1.25rem;     /* 20px */
  --t-h4:      1.5rem;      /* 24px */
  --t-h3:      1.875rem;    /* 30px */
  --t-h2:      2.5rem;      /* 40px */
  --t-h1:      4rem;        /* 64px */
  --t-mega:    6rem;        /* 96px */

  /* Container */
  --container:  1320px;
  --article:    680px;
  --gutter:     clamp(1rem, 4vw, 2.5rem);
}

/* ============================================================
 * 2. RESET (kept tight)
 * ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--rule); }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; line-height: 1.5; }
body {
  font-family: 'Newsreader', 'Source Serif 4', Georgia, serif;
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--paper);
  font-feature-settings: 'kern' 1, 'liga' 1, 'onum' 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { background: 0; cursor: pointer; font: inherit; color: inherit; }
ul, ol { list-style: none; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--paper); }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ============================================================
 * 3. TYPOGRAPHY
 * ============================================================ */
.font-display { font-family: 'Fraunces', 'Source Serif 4', Georgia, serif; font-feature-settings: 'ss01' 1, 'ss02' 1; }
.font-body    { font-family: 'Newsreader', 'Source Serif 4', Georgia, serif; font-feature-settings: 'kern' 1, 'liga' 1, 'onum' 1; }
.font-ui      { font-family: 'DM Sans', system-ui, sans-serif; font-feature-settings: 'ss01' 1, 'cv11' 1; }
.font-mono    { font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace; font-feature-settings: 'tnum' 1, 'ss03' 1; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', 'Source Serif 4', Georgia, serif;
  color: var(--ink);
  font-weight: 700;
  font-feature-settings: 'ss01' 1;
  line-height: 1.08;
  letter-spacing: -0.018em;
}
h1 { font-size: clamp(2.5rem, 5.5vw, var(--t-h1)); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.875rem, 3.5vw, var(--t-h2)); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.5rem, 2.5vw, var(--t-h3)); }
h4 { font-size: var(--t-h4); }

/* The signature element: editorial kicker */
.kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--t-caption);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}

/* Section labels — newspaper style */
.section-label {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: var(--t-meta);
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Byline — refined */
.byline {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--t-meta);
  color: var(--muted);
  letter-spacing: 0.005em;
}
.byline strong, .byline b { color: var(--ink); font-weight: 500; }
.byline .sep { color: var(--rule-strong); margin: 0 var(--s-2); }

/* Dek — italic editorial subhead */
.dek {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  color: var(--sub);
  line-height: 1.4;
  letter-spacing: -0.005em;
}

/* ============================================================
 * 4. LAYOUT
 * ============================================================ */
.wrap        { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 980px; margin-inline: auto; padding-inline: var(--gutter); }
.article-wrap { max-width: var(--article); margin-inline: auto; padding-inline: var(--gutter); }

.divider     { height: 1px; background: var(--ink); margin-block: var(--s-8); }
.divider-thin{ height: 1px; background: var(--rule); margin-block: var(--s-7); }
.divider-double { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 2px 0; }

/* Section padding */
.section { padding-block: clamp(3rem, 6vw, var(--s-9)); }
.section-tight { padding-block: clamp(2rem, 4vw, var(--s-7)); }

/* ============================================================
 * 5. MASTHEAD (HEADER)
 * ============================================================ */
.mast {
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.mast-band {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--rule);
}
.mast-band a { color: var(--ink); }
.mast-band a:hover { color: var(--accent); }
.mast-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; }

.mast-main { padding-block: var(--s-5); display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  color: var(--ink);
}
.brand-word {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.035em;
  font-feature-settings: 'ss01' 1;
}
.brand-word em {
  font-style: italic;
  font-weight: 600;
  font-feature-settings: 'ss02' 1;
  color: var(--accent);
}
.brand-tag {
  display: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: var(--s-4);
  padding-left: var(--s-4);
  border-left: 1px solid var(--rule);
}
@media (min-width: 900px) { .brand-tag { display: inline-block; } }

.nav-primary { display: none; align-items: center; gap: var(--s-5); }
@media (min-width: 900px) { .nav-primary { display: flex; } }
.nav-primary a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink);
  letter-spacing: -0.005em;
  position: relative;
  padding-block: 0.25rem;
}
.nav-primary a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-primary a:hover::after { transform: scaleX(1); }
.nav-primary .subscribe {
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  font-weight: 600;
  letter-spacing: 0;
}
.nav-primary .subscribe:hover { background: var(--accent); }
.nav-primary .subscribe::after { display: none; }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-right: -0.5rem;
}
@media (min-width: 900px) { .burger { display: none; } }
.burger svg { stroke: var(--ink); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--rule);
  padding: var(--s-4) 0;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding-block: var(--s-3);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}

/* ============================================================
 * 6. HERO COMPOSITION (asymmetric, magazine grid)
 * ============================================================ */
.hero {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 4rem);
  border-bottom: 1px solid var(--ink);
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.85fr 1fr; }
}

.hero-lead .kicker { margin-bottom: var(--s-3); }
.hero-lead h1 {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  margin-bottom: var(--s-4);
  text-wrap: balance;
}
.hero-lead h1 a { color: var(--ink); transition: color 0.2s; }
.hero-lead h1 a:hover { color: var(--accent); }
.hero-lead .dek {
  margin-bottom: var(--s-5);
  max-width: 38ch;
}
.hero-lead .cover {
  margin-top: var(--s-5);
  margin-bottom: var(--s-4);
  border: 1px solid var(--rule-strong);
  background: var(--paper-2);
}
.hero-lead .cover img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
}
.hero-lead .byline { margin-top: var(--s-3); }

/* Numbered also-today list */
.also-today {
  border-top: 2px solid var(--ink);
  padding-top: var(--s-4);
}
.also-today-label {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--s-4);
  letter-spacing: 0.01em;
}
.also-today ol { display: flex; flex-direction: column; gap: var(--s-4); }
.also-today li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: var(--s-3);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
.also-today li:last-child { border-bottom: 0; }
.also-today .num {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: oldstyle-nums;
}
.also-today .meta-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
  display: block;
}
.also-today .head {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.also-today a.head:hover { color: var(--accent); }
.also-today .byline { margin-top: var(--s-2); }

/* ============================================================
 * 7. SECTION HEADS (magazine-style)
 * ============================================================ */
.dept-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: var(--s-4);
  border-bottom: 2px solid var(--ink);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-6);
}
.dept-head .name {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.dept-head .name em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.dept-head .lead-in {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: var(--t-meta);
  color: var(--muted);
  padding-bottom: 0.25rem;
  display: none;
}
@media (min-width: 800px) { .dept-head .lead-in { display: block; } }
.dept-head .more {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--t-meta);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding-bottom: 0.25rem;
}
.dept-head .more:hover { color: var(--ink); }

/* Department category dot (small accent) */
.dept-dot {
  display: inline-block;
  width: 0.625rem; height: 0.625rem;
  border-radius: 50%;
  background: var(--ink);
  vertical-align: middle;
  margin-right: 0.625rem;
}
.dept-business  .dept-dot { background: var(--cat-business); }
.dept-health    .dept-dot { background: var(--cat-health); }
.dept-tech      .dept-dot { background: var(--cat-tech); }
.dept-home      .dept-dot { background: var(--cat-home); }
.dept-lifestyle .dept-dot { background: var(--cat-lifestyle); }

/* ============================================================
 * 8. STORY CARDS — text-first, no chrome
 * ============================================================ */
.story-grid {
  display: grid;
  gap: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 600px) { .story-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .story-grid { grid-template-columns: repeat(3, 1fr); } }

.story {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.story .kicker { margin-bottom: 0; }
.story .head {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.012em;
  margin: 0;
}
.story .head a { color: var(--ink); transition: color 0.2s; }
.story .head a:hover { color: var(--accent); }
.story .summary {
  font-family: 'Newsreader', serif;
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story .byline { margin-top: auto; }

/* Story with cover (used selectively) */
.story-with-cover .cover {
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  overflow: hidden;
  margin-bottom: var(--s-4);
}
.story-with-cover .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.story-with-cover:hover .cover img { transform: scale(1.025); }

/* Larger lead story within a strip */
.story-feature {
  display: grid;
  gap: var(--s-4);
}
.story-feature .head {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.story-feature .cover {
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  overflow: hidden;
}
.story-feature .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.story-feature:hover .cover img { transform: scale(1.03); }
.story-feature .dek { font-size: 1.0625rem; max-width: 50ch; }

/* List-style story row (no cover) */
.story-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.story-row:last-child { border-bottom: 0; }
.story-row .num {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.story-row .head {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.story-row .head a:hover { color: var(--accent); }
.story-row .kicker { margin-bottom: 0.375rem; }
.story-row .byline { margin-top: 0.625rem; }

/* ============================================================
 * 9. DEPARTMENT LAYOUTS — vary per section for visual rhythm
 * ============================================================ */
/* Business: lead + 4 small (2x2) */
.dept-layout-feature {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 900px) {
  .dept-layout-feature { grid-template-columns: 1.4fr 1fr; }
}
.dept-layout-feature .secondary { display: grid; gap: clamp(1.5rem, 3vw, 2rem); }
@media (min-width: 600px) {
  .dept-layout-feature .secondary { grid-template-columns: 1fr 1fr; }
}

/* Health: text-first 3-column with no covers */
.dept-layout-textgrid {
  display: grid;
  gap: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 800px)  { .dept-layout-textgrid { grid-template-columns: repeat(3, 1fr); } }

/* Tech: row-list with numbered items */
.dept-layout-list {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 900px) {
  .dept-layout-list { grid-template-columns: 1fr 1fr; }
}

/* Home: alternating left/right with covers */
.dept-layout-alt .item {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 800px) {
  .dept-layout-alt .item { grid-template-columns: 1fr 1fr; align-items: center; }
  .dept-layout-alt .item:nth-child(even) .item-cover { order: 2; }
}
.dept-layout-alt .item-cover { aspect-ratio: 4 / 3; background: var(--paper-2); border: 1px solid var(--rule); overflow: hidden; }
.dept-layout-alt .item-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dept-layout-alt .item:hover .item-cover img { transform: scale(1.04); }
.dept-layout-alt .head {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.dept-layout-alt .head a:hover { color: var(--accent); }
.dept-layout-alt .item-body { display: flex; flex-direction: column; gap: var(--s-3); }
.dept-layout-alt .summary { font-family: 'Newsreader', serif; color: var(--sub); }

/* Lifestyle: magazine 5-up — 1 big + 4 small in single row */
.dept-layout-magazine {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 1000px) {
  .dept-layout-magazine {
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .dept-layout-magazine .item-feature { grid-row: span 2; }
}

/* ============================================================
 * 10. LONG-FORM EDIT (the SEO essay section)
 * ============================================================ */
.editor-essay {
  background: var(--paper-2);
  border-block: 1px solid var(--ink);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.editor-essay .essay-wrap { max-width: 720px; margin-inline: auto; padding-inline: var(--gutter); }
.editor-essay .preamble {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-caption);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-5);
}
.editor-essay h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: var(--s-5);
  text-wrap: balance;
}
.editor-essay h3 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: var(--s-7) 0 var(--s-4);
  color: var(--ink);
}
.editor-essay .essay-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--t-meta);
  color: var(--muted);
  margin-bottom: var(--s-7);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.editor-essay .essay-meta strong { color: var(--ink); }
.editor-essay p {
  font-family: 'Newsreader', serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: var(--s-5);
  font-feature-settings: 'kern' 1, 'liga' 1, 'onum' 1;
}
.editor-essay p:first-of-type::first-letter {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  float: left;
  font-size: 4.5em;
  line-height: 0.85;
  margin: 0.05em 0.08em 0 -0.025em;
  color: var(--accent);
}
.editor-essay a { color: var(--accent); border-bottom: 1px solid currentColor; }
.editor-essay a:hover { color: var(--ink); }
.editor-essay strong { color: var(--ink); font-weight: 600; }

/* ============================================================
 * 11. AUTHORS ROW
 * ============================================================ */
.authors-strip { padding-block: clamp(3rem, 6vw, 5rem); }
.authors-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 600px) { .authors-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .authors-grid { grid-template-columns: repeat(4, 1fr); } }
.author-card {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--paper);
  border: 1px solid var(--rule);
  transition: border-color 0.2s, transform 0.2s;
}
.author-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.author-card .avatar {
  width: 4.5rem; height: 4.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.author-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card .name {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.author-card .role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
}
.author-card .bio {
  font-family: 'Newsreader', serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--sub);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
 * 12. NEWSLETTER BAND (oxblood, refined)
 * ============================================================ */
.newsletter {
  background: var(--accent);
  color: var(--paper);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  margin-block: 0;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.newsletter-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  position: relative;
}
@media (min-width: 900px) {
  .newsletter-inner { grid-template-columns: 1fr 1.05fr; align-items: center; }
}
.newsletter .preamble {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-caption);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--s-4);
}
.newsletter h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--paper);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: var(--s-4);
  text-wrap: balance;
}
.newsletter .lede {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.125rem;
  color: rgba(251, 250, 246, 0.85);
  line-height: 1.45;
  max-width: 38ch;
}
.newsletter-form { display: flex; flex-direction: column; gap: var(--s-3); }
.newsletter-form .form-row { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.newsletter-form input[type=email] {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 0;
}
.newsletter-form input[type=email]:focus { outline: 0; border-color: var(--gold); }
.newsletter-form button {
  padding: 1rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--gold); color: var(--ink); }
.newsletter-form .small {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--t-meta);
  color: rgba(251,250,246,0.7);
}
.newsletter-form .small a { color: var(--gold-soft); border-bottom: 1px solid currentColor; }

/* ============================================================
 * 13. TAG CLOUD
 * ============================================================ */
.tags-strip { padding-block: clamp(2rem, 4vw, 3.5rem); }
.tag-pills { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
.tag-pill {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--ink-2);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.15s, border-color 0.15s;
}
.tag-pill:hover { color: var(--accent); border-color: var(--accent); }
.tag-pill .count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 0.375rem;
}

/* ============================================================
 * 14. FOOTER (proper masthead style)
 * ============================================================ */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 6vw, 5rem) var(--s-6);
  margin-top: auto;
}
.foot-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 700px)  { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.foot .brand-word { color: var(--paper); }
.foot .brand-word em { color: var(--gold); }
.foot .blurb {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.9375rem;
  color: rgba(251,250,246,0.7);
  line-height: 1.55;
  max-width: 32ch;
  margin-top: var(--s-3);
}
.foot h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.foot ul { display: flex; flex-direction: column; gap: var(--s-2); }
.foot ul a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  color: rgba(251,250,246,0.85);
}
.foot ul a:hover { color: var(--gold); }

.foot-bottom {
  margin-top: clamp(3rem, 6vw, 4rem);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(251,250,246,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--t-meta);
  color: rgba(251,250,246,0.6);
}

/* ============================================================
 * 15. ARTICLE (single post) — for /single.php
 * ============================================================ */
.post-hero {
  padding-block: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.post-hero .kicker { margin-bottom: var(--s-4); }
.post-hero h1 {
  font-size: clamp(2rem, 5.5vw, 4rem);
  margin-bottom: var(--s-5);
  text-wrap: balance;
  max-width: 22ch;
}
.post-hero .dek { margin-bottom: var(--s-6); max-width: 50ch; }
.post-hero .byline { font-size: 0.9375rem; }
.post-hero .byline img { display: inline-block; vertical-align: middle; border-radius: 50%; margin-right: var(--s-2); }

.post-cover {
  margin-block: clamp(2rem, 4vw, 3rem);
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.post-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.prose {
  max-width: var(--article);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(2rem, 4vw, 3rem);
}
.prose p {
  font-family: 'Newsreader', serif;
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: var(--s-5);
  font-feature-settings: 'kern' 1, 'liga' 1, 'onum' 1;
}
.prose > p:first-of-type::first-letter {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  float: left;
  font-size: 4.5em;
  line-height: 0.85;
  margin: 0.04em 0.09em 0 -0.025em;
  color: var(--accent);
}
.prose h2 {
  font-size: clamp(1.625rem, 2.5vw, 2rem);
  margin: var(--s-8) 0 var(--s-4);
  letter-spacing: -0.015em;
}
.prose h3 {
  font-size: 1.375rem;
  font-style: italic;
  font-weight: 500;
  margin: var(--s-6) 0 var(--s-3);
  letter-spacing: -0.01em;
}
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: var(--s-5); list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--s-2); font-family: 'Newsreader', serif; font-size: 1.1875rem; line-height: 1.65; }
.prose blockquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: var(--s-5);
  margin: var(--s-7) 0;
  max-width: 100%;
}

/* Editor's note + Field notes (editorial callouts) */
.cmn-editor-note {
  background: var(--paper);
  border-left: 3px solid var(--accent);
  padding: var(--s-5);
  margin: var(--s-7) 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-style: normal !important;
  line-height: 1.55;
  color: var(--ink-2);
}
.cmn-editor-note strong {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink);
  font-weight: 600;
}
.cmn-field-notes {
  background: var(--paper-2);
  padding: var(--s-6);
  margin: var(--s-8) 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.cmn-field-notes h3 {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: var(--t-caption);
  font-style: normal !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-3);
}
.cmn-field-notes p { font-family: 'Newsreader', serif; font-size: 1.0625rem; color: var(--ink-2); margin: 0; }

/* Tags row after article */
.post-tags { padding-block: var(--s-5); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.post-tags .label { font-family: 'JetBrains Mono', monospace; font-size: var(--t-caption); letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }

/* Author bio */
.author-bio {
  margin-top: var(--s-7);
  display: grid;
  gap: var(--s-5);
  padding: var(--s-6);
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
@media (min-width: 600px) { .author-bio { grid-template-columns: 6rem 1fr; } }
.author-bio .avatar { width: 6rem; height: 6rem; border-radius: 50%; overflow: hidden; background: var(--paper); border: 1px solid var(--rule); }
.author-bio .avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-bio .name { font-family: 'Fraunces', serif; font-size: 1.375rem; font-weight: 700; color: var(--ink); margin-bottom: 0.25rem; letter-spacing: -0.012em; }
.author-bio .role { font-family: 'JetBrains Mono', monospace; font-size: var(--t-caption); letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-3); }
.author-bio .bio-text { font-family: 'Newsreader', serif; font-size: 1rem; line-height: 1.55; color: var(--sub); }
.author-bio .more { display: inline-block; margin-top: var(--s-3); font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 600; color: var(--accent); border-bottom: 1px solid currentColor; }

/* ============================================================
 * 16. BREADCRUMB + UTILITY
 * ============================================================ */
.crumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: var(--s-4);
  display: flex; flex-wrap: wrap; gap: 0.625rem; align-items: center;
}
.crumb a { color: var(--ink); }
.crumb a:hover { color: var(--accent); }
.crumb .sep { color: var(--rule-strong); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.9375rem;
  letter-spacing: 0.01em;
  transition: all 0.18s;
  border: 1px solid transparent;
}
.btn-ink     { background: var(--ink); color: var(--paper); }
.btn-ink:hover     { background: var(--accent); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* Skip link */
.skip {
  position: absolute; left: -10000px;
  background: var(--ink); color: var(--paper);
  padding: var(--s-3) var(--s-4); z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Helpers */
.balance { text-wrap: balance; }
.pretty  { text-wrap: pretty; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.hidden-mobile { display: none; }
@media (min-width: 800px) { .hidden-mobile { display: initial; } }

/* ============================================================
 * 17. ARCHIVE / CATEGORY PAGES (for archive.php to consume)
 * ============================================================ */
.page-header {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--ink);
}
.page-header .kicker { margin-bottom: var(--s-3); }
.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.025em;
  margin-bottom: var(--s-4);
  font-weight: 800;
  text-wrap: balance;
}
.page-header .description {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--sub);
  max-width: 56ch;
  line-height: 1.45;
}

/* ============================================================
 * 18. ANIMATION (subtle, editorial)
 * ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .stagger > * { opacity: 0; transform: translateY(10px); animation: rise 0.5s ease forwards; }
  .stagger > *:nth-child(1) { animation-delay: 0.05s; }
  .stagger > *:nth-child(2) { animation-delay: 0.10s; }
  .stagger > *:nth-child(3) { animation-delay: 0.15s; }
  .stagger > *:nth-child(4) { animation-delay: 0.20s; }
  .stagger > *:nth-child(5) { animation-delay: 0.25s; }
  @keyframes rise { to { opacity: 1; transform: translateY(0); } }
}

/* Cover loading state */
.cover, .item-cover { position: relative; }
.cover::before, .item-cover::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, var(--paper-2) 30%, var(--paper) 50%, var(--paper-2) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  z-index: 0;
  opacity: 0.5;
}
.cover img, .item-cover img { position: relative; z-index: 1; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
 * 19. NO-PRINT
 * ============================================================ */
@media print {
  .mast, .foot, .newsletter, .authors-strip, .tags-strip, .nav-primary { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
