/* ============================================================
   MOMÉ — Editorial Design System
   ============================================================ */

/* ============================================================
   dear Momé · Brand System v5.1
   Built per Brand Guidelines (April 2026)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* TeX Gyre Termes — display family · GUST e-foundry, open license */
@font-face {
  font-family: 'TeX Gyre Termes';
  src: url('fonts/TeXGyreTermes-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'TeX Gyre Termes';
  src: url('fonts/TeXGyreTermes-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'TeX Gyre Termes';
  src: url('fonts/TeXGyreTermes-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'TeX Gyre Termes';
  src: url('fonts/TeXGyreTermes-BoldItalic.woff2') format('woff2');
  font-weight: 700; font-style: italic; font-display: swap;
}

/* Jimmy Script — for "dear" lockup and intimate signatures only */
@font-face {
  font-family: 'Jimmy Script';
  src: url('fonts/JimmyScript-Rg.woff2') format('woff2'),
       url('fonts/JimmyScript-Rg.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* Brand palette — exact hex from guidelines, page 5 */
  --ivory:    #FAF7F4;   /* surface / light · 50% of page */
  --cream:    #F0E9DE;   /* background · 25% */
  --brown:    #3D2B1F;   /* primary text · 12% */
  --taupe:    #A89080;   /* secondary support · 6% */
  --gold:     #C8A882;   /* accent · 4% (max 10% of any composition) */
  --moss:     #4A5340;   /* editorial / botanical · 2% */
  --sage:     #9FA88F;   /* botanical accent · 1% */

  /* Functional tones derived from palette */
  --brown-soft: #5C4636;
  --brown-mute: #8A7868;
  --rule:        rgba(61, 43, 31, 0.14);
  --rule-strong: rgba(61, 43, 31, 0.42);

  /* Typography */
  --display: 'TeX Gyre Termes', 'Times New Roman', serif;
  --sans:    'Montserrat', 'Helvetica Neue', system-ui, sans-serif;
  --script:  'Jimmy Script', 'Snell Roundhand', cursive;

  /* Tracking values per brand-guide hierarchy spec */
  --track-display: 0.04em;   /* +40 */
  --track-logo:    0.10em;   /* +100 */
  --track-subhead: 0.04em;   /* +4 */
  --track-caption: 0.02em;   /* +2 */
  --leading-body:  1.7;

  /* Measurements */
  --max:        1320px;
  --max-narrow: 720px;
  --pad:        clamp(20px, 4vw, 48px);

  /* Backwards-compat aliases — old class names continue to work */
  --ink:         var(--brown);
  --ink-soft:    var(--brown-soft);
  --ink-mute:    var(--brown-mute);
  --bone:        var(--ivory);
  --paper:       var(--cream);
  --paper-deep:  #E4DAC8;
  --oxblood:     var(--moss);     /* signature authority moments → moss now */
  --oxblood-soft:#5A6650;
  --rose:        var(--gold);     /* accent → gold (was rose) */
  --rose-soft:   #DAC4A6;
  --rust:        var(--gold);     /* drop caps, link underlines → gold */
  --walnut:      #2A1E15;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: var(--leading-body);    /* 1.7 per brand guide */
  color: var(--brown);
  background: var(--ivory);             /* never pure white per guardrails */
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle paper grain across the whole site */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
  z-index: 9999;
  mix-blend-mode: multiply;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- Typography system ---------- */
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
.script  { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--rose); font-size: inherit; line-height: inherit; letter-spacing: -0.01em; }
.label   { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); }
.rule-v  { width: 1px; height: 14px; background: var(--rule-strong); display: inline-block; vertical-align: middle; margin: 0 12px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: var(--track-display); color: var(--ink); }

/* Display headings use TeX Gyre Termes Regular at +40 tracking per brand spec */
.hero-title, .article-title, .partner-hero h1, .page-hero h1 {
  letter-spacing: var(--track-display);
  font-weight: 400;
}

/* ---------- Masthead ---------- */
.masthead {
  padding: 28px var(--pad) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  background: var(--bone);
}
/* ---------- The dear Momé lockup ----------
   Real SVG logo from designer (`assets/logo/dear-mome-brown.svg`)
   Per brand guide: 1× M-height clear space, scales fluidly
*/
.wordmark-block {
  text-align: center;
  padding: 16px 0 8px;
}
.wordmark {
  display: inline-block;
  line-height: 0;
}
.wordmark img {
  display: block;
  width: clamp(220px, 32vw, 360px);
  height: auto;
}
.tagline {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 16px;
}
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.nav a {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  transition: color .2s ease;
  padding: 4px 0;
  position: relative;
}
.nav a:hover { color: var(--rust); }
.nav a.active::after {
  content: ''; position: absolute; left: 50%; bottom: -4px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--rose); transform: translateX(-50%);
}

/* ---------- Hero (cover story) ---------- */
.hero {
  padding: 56px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: relative;
}
.hero-meta { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--oxblood); }
.hero-title {
  font-size: clamp(42px, 5.8vw, 88px);
  line-height: 0.95;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-title .script {
  display: block;
  font-size: 0.75em;
  line-height: 1.1;
  margin-top: 8px;
  letter-spacing: 0;
}
.hero-excerpt {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 440px;
  font-family: var(--display);
  font-style: italic;
}
.hero-byline { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }
.hero-byline strong { color: var(--ink); font-weight: 600; }
.hero-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.02) saturate(0.95); }
.hero-image::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 0.3 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; opacity: 0.35; pointer-events: none;
}
.hero-folio {
  position: absolute; top: 56px; right: var(--pad);
  font-family: var(--display); font-style: italic;
  font-size: 15px; color: var(--ink-mute);
}

/* ---------- Section headings ---------- */
.section {
  padding: clamp(48px, 7vw, 96px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--ink);
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.02em;
}
.section-head .label { flex-shrink: 0; margin-left: 24px; }

/* "See all →" link in section heads */
.see-all {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  transition: all .2s ease;
  white-space: nowrap;
}
.see-all:hover { color: var(--rust); border-bottom-color: var(--rust); }

/* ---------- Reading list (Things I Wish I Knew homepage treatment) ---------- */
.reading-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(32px, 5vw, 80px);
}
.reading-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: padding .3s ease;
}
.reading-item:hover { padding-left: 8px; }
.reading-item:hover .reading-title { color: var(--moss); }
.reading-item:hover .reading-thumb img { transform: scale(1.05); }
.reading-thumb {
  width: 96px;
  height: 96px;
  overflow: hidden;
  background: var(--paper);
  flex-shrink: 0;
}
.reading-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.reading-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.reading-cat {
  font-size: 11px;
  letter-spacing: var(--track-subhead);
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.reading-title {
  font-family: var(--display);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.22;
  color: var(--brown);
  letter-spacing: 0;
  transition: color .2s ease;
  margin: 0;
}
.reading-meta {
  font-size: 11px;
  letter-spacing: var(--track-caption);
  text-transform: uppercase;
  color: var(--brown-mute);
  margin-top: 2px;
}

/* Subtle background variant */
.band-paper { background: var(--paper); }
.band-paper .section { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }

/* ============================================================
   LEAD BLOCK — featured read + 2 stacked + editorial product
   Used near the top of the homepage. Three-column block:
   left = major article, middle = two stacked smaller articles,
   right = product we're quietly recommending.
   ============================================================ */
.lead-block {
  display: grid;
  grid-template-columns: 2.2fr 1.4fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
  align-items: stretch;
}

/* Left: featured article */
.lead-read {
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--brown);
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.lead-read:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(61, 43, 31, 0.08);
}
.lead-read-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper);
}
.lead-read-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.lead-read:hover .lead-read-image img { transform: scale(1.03); }

.lead-read-body {
  padding: clamp(20px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.lead-cat {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track-subhead);
  text-transform: uppercase;
  color: var(--gold);
}
.lead-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--brown);
  margin: 0;
}
.lead-excerpt {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.5;
  color: var(--brown-soft);
  margin: 0;
}
.lead-byline {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--track-caption);
  text-transform: uppercase;
  color: var(--brown-mute);
}

/* Middle: two stacked article cards — vertical layout (image top, text below) */
.lead-stacked {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.8vw, 24px);
}
.lead-mini {
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--brown);
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
  flex: 1;
}
.lead-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 43, 31, 0.08);
}
.lead-mini-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper);
}
.lead-mini-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.lead-mini:hover .lead-mini-image img { transform: scale(1.04); }

.lead-mini-body {
  padding: clamp(14px, 1.4vw, 18px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lead-mini-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--brown);
  margin: 0;
}
.lead-mini .lead-cat {
  font-size: 10px;
  margin: 0;
}
.lead-mini .lead-byline {
  margin: 0;
  padding: 0;
  font-size: 10px;
}

/* Right: editorial product feature */
.lead-pick {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  padding: clamp(18px, 2vw, 26px);
}
.lead-pick-label {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--moss);
  letter-spacing: 0;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.lead-pick-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--brown);
  flex: 1;
  transition: opacity .25s ease;
}
.lead-pick-card:hover { opacity: 0.92; }
.lead-pick-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ivory);
}
.lead-pick-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.lead-pick-card:hover .lead-pick-image img { transform: scale(1.02); }

.lead-pick-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.lead-pick-brand {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--track-subhead);
  text-transform: uppercase;
  color: var(--brown-mute);
}
.lead-pick-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.15;
  color: var(--brown);
  margin: 0;
}
.lead-pick-note {
  font-family: var(--display);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--brown-soft);
  margin: 0;
}
.lead-pick-price {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  color: var(--brown);
  margin-top: 4px;
}
.lead-pick-cta {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track-subhead);
  text-transform: uppercase;
  color: var(--brown);
  border-top: 1px solid var(--rule);
  transition: color .2s ease;
}
.lead-pick-card:hover .lead-pick-cta { color: var(--moss); }

/* Tablet: 2-column grid — feature top, then product + stacked side by side */
@media (max-width: 1080px) {
  .lead-block {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "read read"
      "stacked pick";
    gap: 24px;
  }
  .lead-read { grid-area: read; }
  .lead-stacked { grid-area: stacked; }
  .lead-pick { grid-area: pick; }
}

/* Mobile: single column */
@media (max-width: 720px) {
  .lead-block {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 24px;
  }
  .lead-read, .lead-stacked, .lead-pick { grid-area: auto; }
  .lead-pick-image { aspect-ratio: 16 / 9; }
}

/* ---------- Pillars (4 content pillars) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pillar {
  padding: 40px 28px;
  border-right: 1px solid var(--rule);
  transition: background .3s ease;
  cursor: pointer;
  position: relative;
}
.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--paper); }
.pillar-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 48px;
  color: var(--oxblood);
  line-height: 1;
  margin-bottom: 16px;
}
.pillar h3 {
  font-size: 24px;
  margin-bottom: 10px;
  line-height: 1.1;
}
.pillar p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.pillar-tag {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

/* ---------- Story grid (asymmetric magazine layout) ---------- */
.stories {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px 40px;
}
.story {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: transform .3s ease;
}
.story:hover { transform: translateY(-4px); }
.story:hover .story-image img { transform: scale(1.03); }
.story-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper);
  position: relative;
}
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1); filter: contrast(1.02); }
.story-image::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 0.25 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; opacity: 0.3; pointer-events: none;
}
.story-cat { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rust); font-weight: 600; }
.story-title {
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.story.large .story-title { font-size: 36px; }
.story.large .story-image { aspect-ratio: 4/5; }
.story-excerpt { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.story-byline { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }

/* Second story row style */
.stories-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.stories-secondary .story-title { font-size: 22px; }

/* ---------- Category page: full-bleed featured hero ---------- */
.cat-hero { display: block; }
.cat-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 76vh;
  min-height: 340px;
  overflow: hidden;
  background: var(--paper);
}
.cat-hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(0.22, 1, 0.36, 1);
}
.cat-hero:hover .cat-hero-media img { transform: scale(1.03); }
.cat-hero-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(20,14,10,0.64) 0%, rgba(20,14,10,0.14) 44%, rgba(20,14,10,0) 70%);
}
.cat-hero-title {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  right: clamp(20px, 5vw, 72px);
  bottom: clamp(22px, 4vw, 52px);
  z-index: 1;
  color: var(--ivory);
  font-family: var(--display);
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.cat-hero-caption {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--pad) 0;
}
.cat-hero-caption p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 680px;
}
.cat-hero-readmore {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}
.cat-hero-readmore:hover { color: var(--rust); border-bottom-color: var(--rust); }
@media (max-width: 760px) {
  .cat-hero-title { font-size: clamp(24px, 7vw, 38px); }
}

/* Category page: reuse the article rail grid, but let the main column
   fill its cell instead of being capped to article-body text width */
.article-with-rail.cat-grid .article-main { max-width: none; }

/* In Conversation category page: portrait reading-list thumbnails
   (interview portraits read better vertical than square) */
.cat-grid.ic-portrait .reading-item { grid-template-columns: 80px 1fr; }
.cat-grid.ic-portrait .reading-thumb { width: 80px; height: 100px; }

/* ---------- In Conversation (signature interview series) ---------- */
.conversation {
  padding: clamp(56px, 8vw, 120px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.conversation-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.conversation-portrait {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper);
  position: relative;
  display: block;
}
.conversation-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.92);
  transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1);
}
.conversation-portrait:hover img { transform: scale(1.03); }
.conversation-portrait::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 0.3 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.3;
  pointer-events: none;
}
.conversation-body .label { margin-bottom: 28px; display: block; }
.conversation-quote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 36px;
  font-weight: 400;
  border: 0;
  padding: 0;
}
.conversation-quote .script {
  font-style: normal;
  color: var(--rose);
  font-size: 1.05em;
}
.conversation-subject {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
  font-weight: 500;
}
.conversation-subject strong {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 16px;
  display: inline-block;
  margin-right: 8px;
}
.conversation-title {
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.conversation-read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: all .2s ease;
}
.conversation-read:hover { color: var(--rust); border-bottom-color: var(--rust); }

.conversation-archive {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.conversation-archive .label { margin-bottom: 28px; display: block; }
.conversation-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.conversation-thumb {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
}
.conversation-thumb:hover .thumb-img img { transform: scale(1.05); }
.thumb-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--paper);
  position: relative;
}
.thumb-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.02);
  transition: transform .5s ease;
}
.thumb-img::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 0.25 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.25;
  pointer-events: none;
}
.thumb-name {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.15;
  color: var(--ink);
  margin-top: 4px;
}
.thumb-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Product roundup article styles ----------
   Used for Essentials category articles (Strategist/Wirecutter format)
*/
.article-body table.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 36px 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}
.article-body table.compare thead {
  background: var(--cream);
  border-top: 2px solid var(--brown);
  border-bottom: 1px solid var(--rule);
}
.article-body table.compare th {
  padding: 12px 14px;
  text-align: left;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track-subhead);
  text-transform: uppercase;
  color: var(--brown);
}
.article-body table.compare td {
  padding: 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--brown-soft);
}
.article-body table.compare td:first-child {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-size: 18px;
  font-weight: 400;
  width: 36px;
  text-align: center;
}
.article-body table.compare td:nth-child(2) {
  font-weight: 500;
  color: var(--brown);
  width: 26%;
}
.article-body table.compare a {
  color: var(--brown);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body table.compare a:hover {
  color: var(--moss);
  text-decoration-color: var(--moss);
}
@media (max-width: 760px) {
  .article-body table.compare { font-size: 12px; }
  .article-body table.compare th,
  .article-body table.compare td { padding: 10px 8px; }
}

/* Numbered roundup item — used for "01. A complete postpartum recovery kit" style sections */
.article-body .roundup-item {
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}
.article-body .roundup-item:last-of-type { border-bottom: 0; }
.article-body .roundup-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 4px;
  display: block;
}
.article-body h3.roundup-title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: var(--track-display);
  line-height: 1.15;
  color: var(--brown);
  margin: 0 0 16px;
}
.article-body .roundup-item p { margin-bottom: 16px; }
/* Recipe stats line (yields / fridge / freezer) at the foot of a roundup item */
.article-body .recipe-meta {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}
.article-body .pick {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
  font-family: var(--display);
  color: var(--brown-soft);
}
.article-body .pick strong {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track-subhead);
  text-transform: uppercase;
  color: var(--brown);
  display: inline-block;
  margin-right: 8px;
}

/* Cost summary callout — used after the comparison table */
.article-body .cost-summary {
  background: var(--cream);
  padding: 24px 28px;
  margin: 24px 0 36px;
  border-left: 3px solid var(--gold);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}
.article-body .cost-summary strong { color: var(--brown); }

/* FAQ accordion — native <details>/<summary>, fully SEO-indexable */
.article-body .faq {
  margin-top: 8px;
}
.article-body .faq details {
  border-bottom: 1px solid var(--rule);
  padding: 0;
}
.article-body .faq details:first-of-type {
  border-top: 1px solid var(--rule);
}
.article-body .faq summary {
  list-style: none;          /* hide default disclosure triangle */
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.4;
  letter-spacing: 0;
  transition: color .2s ease;
  user-select: none;
}
.article-body .faq summary::-webkit-details-marker { display: none; }
.article-body .faq summary:hover { color: var(--moss); }
.article-body .faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  transition: transform .25s ease;
  font-style: normal;
}
.article-body .faq details[open] summary::after {
  content: '–';
  font-size: 32px;
  margin-top: -2px;
}
.article-body .faq details[open] summary { color: var(--moss); }
.article-body .faq details > p,
.article-body .faq details > div {
  padding: 0 0 24px 0;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.65;
  color: var(--brown-soft);
  margin-bottom: 0;
  animation: faqOpen .3s ease;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Section divider rule — small ornamental break */
.article-body .ornament {
  text-align: center;
  margin: 48px 0;
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 0.4em;
}

/* ---------- Interview / Q&A template ---------- */.interview-intro {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
  padding: 0 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.qa-q {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 14px;
  display: block;
  padding-left: 28px;
  position: relative;
  margin-top: 36px;
}
.qa-q::before {
  content: 'Q';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--display);
  font-style: italic;
  color: var(--rose);
  font-size: 20px;
  font-weight: 400;
}
.qa-a {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.65;
  color: var(--ink);
  padding-left: 28px;
  position: relative;
  margin-bottom: 16px;
}
.qa-a::before {
  content: 'A';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--display);
  font-style: italic;
  color: var(--oxblood);
  font-size: 20px;
  font-weight: 400;
}

/* ---------- Editorial quote / pullquote ---------- */
.pullquote-section {
  padding: clamp(64px, 10vw, 140px) var(--pad);
  background: var(--walnut);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pullquote-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.8;
  pointer-events: none;
}
.pullquote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.2;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.pullquote .script { color: var(--rose); font-style: normal; font-size: 1.05em; line-height: 1; }
.pullquote-attr {
  margin-top: 36px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 245, 236, 0.55);
  position: relative;
}

/* ---------- The Edit (recs section) ---------- */
.edit-band {
  background: var(--paper);
  padding: clamp(48px, 7vw, 96px) var(--pad);
}
.edit-inner { max-width: var(--max); margin: 0 auto; }
.edit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.edit-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}
.edit-item:hover .edit-image img { transform: scale(1.04); }
.edit-image {
  aspect-ratio: 1;
  background: var(--cream);
  overflow: hidden;
  position: relative;
}
.edit-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.edit-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-mute);
  margin-bottom: -4px;
}
.edit-name { font-family: var(--display); font-size: 20px; line-height: 1.15; }
.edit-desc { font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
.edit-price { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); font-weight: 600; margin-top: 4px; }
/* From Nourish (article cards): reserve up to three title lines so the
   descriptions below start at the same height across the row */
.edit-articles .edit-name {
  min-height: calc(20px * 1.15 * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* "Read more" link, pinned to the bottom of each card so it lines up
   across the row regardless of description length */
.edit-readmore {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 4px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}
.edit-item:hover .edit-readmore { color: var(--rust); border-bottom-color: var(--rust); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(64px, 10vw, 140px) var(--pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 2; }
.newsletter .label { color: var(--rose); margin-bottom: 20px; }
.newsletter h2 {
  font-size: clamp(38px, 5vw, 68px);
  color: var(--bone);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.newsletter h2 .script { display: block; font-size: 0.9em; margin-top: 8px; color: var(--rose); }
.newsletter p {
  font-size: 16px;
  color: rgba(245, 239, 230, 0.75);
  max-width: 480px;
  margin: 0 auto 36px;
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
}
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto 48px;
  border: 1px solid rgba(245, 239, 230, 0.22);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(245, 239, 230, 0.03);
}
.newsletter-form input {
  flex: 1;
  padding: 18px 24px;
  background: transparent;
  border: 0;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.02em;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(245, 239, 230, 0.4); }
.newsletter-form button {
  padding: 16px 32px;
  background: var(--rose);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background .2s ease;
}
.newsletter-form button:hover { background: var(--rose-soft); }
.newsletter-note { font-size: 13px; color: rgba(245, 239, 230, 0.5); margin-top: 36px; letter-spacing: 0.08em; }

/* ---------- Footer ---------- */
footer {
  background: var(--bone);
  border-top: 1px solid var(--rule);
  padding: 56px var(--pad) 32px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.footer-brand h3 {
  font-size: 56px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  line-height: 1;
}
.footer-wordmark {
  margin-bottom: 14px;
  line-height: 0;
}
.footer-wordmark a {
  display: inline-block;
  transition: opacity .2s ease;
}
.footer-wordmark a:hover { opacity: 0.7; }
.footer-wordmark img {
  display: block;
  width: 220px;
  height: auto;
}
.footer-brand p {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 320px;
}
.footer-col h4 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 20px; font-weight: 500; }
.footer-col a { display: block; padding: 8px 0; font-size: 16px; color: var(--ink-soft); transition: color .2s ease; }
.footer-col a:hover { color: var(--rust); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.footer-bottom a { color: var(--ink-mute); }
.footer-bottom a:hover { color: var(--rust); }
.footer-bottom-left { display: flex; flex-direction: column; gap: 6px; }
.footer-credit { font-size: 11px; letter-spacing: var(--track-caption); color: var(--brown-mute); }
.footer-credit a { color: var(--brown-mute); transition: color .2s ease; }
.footer-credit a:hover { color: var(--moss); }

/* Social icons in footer bottom */
.socials { display: flex; align-items: center; gap: 16px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink-mute);
  transition: all .2s ease;
  border: 1px solid transparent;
}
.socials a:hover {
  color: var(--oxblood);
  border-color: var(--rule);
  background: var(--paper);
}
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-hero {
  padding: 56px var(--pad) 24px;
  max-width: var(--max-narrow);
  margin: 0 auto;
  text-align: center;
}
.article-crumb { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 28px; }
.article-crumb a { color: var(--rust); }
.article-title {
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.02;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.article-dek {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 580px;
  margin: 0 auto 32px;
}
.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  margin: 32px auto 0;
  max-width: 480px;
}
.article-meta strong { color: var(--ink); font-weight: 600; }
.article-hero-image {
  max-width: var(--max);
  margin: 48px auto;
  padding: 0 var(--pad);
  position: relative;
}
.article-hero-image .img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--paper);
}
.article-hero-image img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.02); }
.article-hero-image::after {
  content: 'Photography — Editorial';
  display: block;
  text-align: right;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.article-body {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 40px var(--pad) 80px;
}

/* ============================================================
   TWO-COLUMN ARTICLE LAYOUT (with right rail)
   ------------------------------------------------------------
   Used for commerce/product/listicle articles where ads + related
   content live alongside the body. Apply by wrapping <article>
   contents below the hero in: <div class="article-with-rail">

   Structure:
     .article-with-rail
       .article-main      ← article body, mid-article ad slot
       .article-rail      ← sticky sidebar: related, ads, newsletter

   Single-column essay layout is unchanged — don't apply this class
   to immersive personal essays.
   ============================================================ */
.article-with-rail {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}
.article-with-rail .article-main {
  min-width: 0;       /* allow shrinking inside grid cell */
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0 0;
  width: 100%;
}
.article-with-rail .article-main .article-body {
  /* Reset the centered single-column rules — main column already manages width */
  max-width: none;
  margin: 0;
  padding: 0;
}

/* The sticky rail */
.article-rail {
  position: sticky;
  top: 24px;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  font-family: var(--sans);
}
.article-rail .rail-block {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.article-rail .rail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track-subhead);
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 16px;
  display: block;
}

/* Related articles list */
.article-rail .rail-related a {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--brown);
  transition: opacity .2s ease;
}
.article-rail .rail-related a:last-child { border-bottom: 0; }
.article-rail .rail-related a:hover { opacity: 0.7; }
.article-rail .rail-related .rail-thumb {
  aspect-ratio: 1/1;
  background: var(--paper);
  overflow: hidden;
}
.article-rail .rail-related .rail-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.article-rail .rail-related .rail-cat {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--track-subhead);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
  display: block;
}
.article-rail .rail-related .rail-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--brown);
}

/* Ad slot — unstyled placeholder ready for SheMedia/AdThrive/etc */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 1px dashed var(--rule-strong);
  color: var(--brown-mute);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--track-subhead);
  text-transform: uppercase;
  text-align: center;
}
.ad-slot::before {
  content: 'Advertisement';
}
.ad-slot.ad-leaderboard {
  /* 728x90 desktop, 320x50 mobile */
  height: 90px;
  max-width: 728px;
  margin: 32px auto;
}
.ad-slot.ad-rail {
  /* 300x250 medium rectangle in sidebar */
  height: 250px;
  width: 100%;
}
.ad-slot.ad-rail-tall {
  /* 300x600 half-page in sidebar — alternative to medium rectangle */
  height: 600px;
  width: 100%;
}
.ad-slot.ad-in-content {
  /* 300x250 inline mid-article unit */
  height: 250px;
  max-width: 480px;
  margin: 36px auto;
}
.ad-slot.ad-footer {
  /* 728x90 footer banner */
  height: 90px;
  max-width: 728px;
  margin: 24px auto 0;
}

/* Rail newsletter callout */
.article-rail .rail-newsletter {
  background: var(--cream);
  padding: 24px 20px;
  border-top: 2px solid var(--brown);
}
.article-rail .rail-newsletter h4 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--brown);
  margin-bottom: 8px;
  letter-spacing: 0;
}
.article-rail .rail-newsletter p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--brown-soft);
  margin-bottom: 14px;
}
.article-rail .rail-newsletter form { display: flex; flex-direction: column; gap: 8px; }
.article-rail .rail-newsletter input {
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--brown);
}
.article-rail .rail-newsletter button {
  padding: 10px 12px;
  background: var(--brown);
  color: var(--ivory);
  border: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track-subhead);
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease;
}
.article-rail .rail-newsletter button:hover { background: var(--moss); }

/* Browse-other-categories block */
.article-rail .rail-categories a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 16px;
  color: var(--brown);
  text-decoration: none;
  transition: color .2s ease, padding .2s ease;
  position: relative;
}
.article-rail .rail-categories a:last-child { border-bottom: 0; }
.article-rail .rail-categories a::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  opacity: 0;
  transition: opacity .2s ease, right .2s ease;
}
.article-rail .rail-categories a:hover {
  color: var(--moss);
  padding-left: 4px;
}
.article-rail .rail-categories a:hover::after {
  opacity: 1;
  right: -2px;
}

/* Mobile / tablet — rail drops below the article */
@media (max-width: 1080px) {
  .article-with-rail {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .article-rail {
    position: static;
    padding-top: 24px;
    border-top: 2px solid var(--brown);
    margin-top: 48px;
  }
  .article-with-rail .article-main { max-width: 720px; }
}

/* Mobile leaderboard adjustments */
@media (max-width: 600px) {
  .ad-slot.ad-leaderboard,
  .ad-slot.ad-footer {
    height: 50px;
    max-width: 320px;
  }
}
.article-body > p,
.article-body > h2,
.article-body > h3,
.article-body > ul,
.article-body > ol,
.article-body > blockquote,
.article-body > figure { margin-bottom: 28px; }
.article-body p {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
}
.article-body p:first-of-type::first-letter {
  font-size: 72px;
  float: left;
  line-height: 0.85;
  padding: 6px 14px 0 0;
  font-family: var(--display);
  color: var(--oxblood);
  font-weight: 400;
}
.article-body h2 {
  font-size: 32px;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}
.article-body h3 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0;
}
.article-body blockquote {
  border-left: 3px solid var(--oxblood);
  padding: 4px 0 4px 28px;
  margin: 40px 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.3;
  color: var(--ink);
}
.article-body blockquote .script { color: var(--rose); display: block; margin-top: 4px; font-style: normal; font-size: 0.85em; }
/* Scripted-dialogue blockquotes (e.g. What Do I Say) — softer, smaller than a pull-quote */
.article-body.script-quotes blockquote {
  font-size: 19px;
  line-height: 1.55;
  margin: 24px 0;
  padding: 2px 0 2px 22px;
}
/* Sample document / letter blockquote — renders as a readable mini-document, not a pull-quote */
.article-body blockquote.template-doc {
  font-family: var(--sans);
  font-style: normal;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: rgba(0,0,0,0.025);
  border-left: 3px solid var(--gold);
  padding: 22px 24px;
  margin: 32px 0;
}
.article-body blockquote.template-doc p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 10px;
}
.article-body blockquote.template-doc p:last-child { margin-bottom: 0; }
.article-body blockquote.template-doc strong { color: var(--brown); }
.article-body ul, .article-body ol { padding-left: 24px; font-family: var(--display); font-size: 20px; line-height: 1.65; }
.article-body ul li, .article-body ol li { margin-bottom: 10px; }
.article-body a { color: var(--rust); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body figure img { margin: 32px 0 8px; }
.article-body figcaption { font-size: 13px; color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }

/* Sponsored badge */
.sponsored-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}
.sponsored-badge::before { content: '✦'; color: var(--rose); font-size: 12px; }

/* Article end / more stories */
.more-stories {
  background: var(--paper);
  padding: clamp(56px, 8vw, 96px) var(--pad);
}
.more-stories-inner { max-width: var(--max); margin: 0 auto; }

/* ============================================================
   PARTNER / MEDIA KIT PAGE
   ============================================================ */
.partner-hero {
  padding: clamp(64px, 10vw, 140px) var(--pad) 64px;
  max-width: var(--max-narrow);
  margin: 0 auto;
  text-align: center;
}
.partner-hero h1 {
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.95;
  margin-bottom: 32px;
  letter-spacing: -0.025em;
}
.partner-hero h1 .script { display: block; font-size: 0.8em; margin-top: 4px; line-height: 1; }
.partner-hero p {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 560px;
  margin: 0 auto;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  max-width: var(--max);
  margin: 0 auto;
}
.stat {
  padding: 40px 24px;
  border-right: 1px solid var(--rule);
  text-align: center;
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat-num em { font-style: italic; color: var(--oxblood); }
.stat-label {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.offerings {
  padding: clamp(56px, 8vw, 120px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.offering {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.offering:last-child { border-bottom: 0; }
.offering-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 88px;
  line-height: 0.9;
  color: var(--oxblood);
}
.offering h3 {
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1.1;
}
.offering p {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-style: italic;
}
.offering-price {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  display: inline-block;
  border-radius: 999px;
}

.contact-cta {
  background: var(--walnut);
  color: var(--cream);
  padding: clamp(64px, 10vw, 140px) var(--pad);
  text-align: center;
}
.contact-cta h2 { font-size: clamp(36px, 5vw, 72px); color: var(--cream); margin-bottom: 20px; line-height: 1; }
.contact-cta h2 .script { color: var(--rose); font-size: 1.1em; }
.contact-cta p { font-family: var(--display); font-style: italic; font-size: 20px; color: rgba(250, 245, 236, 0.7); margin-bottom: 36px; }
.btn {
  display: inline-block;
  padding: 18px 38px;
  background: var(--rose);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  transition: all .25s ease;
}
.btn:hover { background: var(--bone); transform: translateY(-1px); }
.btn.btn-ghost { background: transparent; color: var(--cream); border: 1px solid rgba(250, 245, 236, 0.4); }
.btn.btn-ghost:hover { background: var(--cream); color: var(--ink); }

/* ============================================================
   ABOUT / GENERIC CONTENT PAGE
   ============================================================ */
.page-hero {
  padding: clamp(40px, 5vw, 72px) var(--pad) 64px;
  max-width: var(--max-narrow);
  margin: 0 auto;
  text-align: center;
}
.page-hero h1 { font-size: clamp(44px, 6vw, 96px); letter-spacing: -0.02em; margin-bottom: 24px; line-height: 1; }
.page-hero h1 .script { display: block; font-size: 0.8em; margin-top: 4px; }
.page-hero p { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--ink-soft); line-height: 1.5; }

/* ============================================================
   AUTHOR HERO — for /authors/<name>.html pages
   ============================================================ */
.author-hero {
  padding: clamp(72px, 10vw, 140px) var(--pad) 56px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.author-hero .author-crumb {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track-subhead);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.author-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brown);
  margin-bottom: 16px;
}
.author-hero p {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--track-subhead);
  text-transform: uppercase;
  color: var(--brown-mute);
  margin: 0;
}
/* Contributor headshot + bio. Order in markup: name → photo → bio. */
.author-hero .author-bio {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
  color: var(--brown-soft);
  max-width: 720px;
  margin: 20px auto 0;
}
.author-hero .author-bio a {
  color: var(--moss);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.author-hero .author-bio a:hover {
  text-decoration-color: var(--moss);
}
.author-hero .author-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 20px auto 0;
  background: var(--paper);
}
.author-hero .author-photo img {
  width: 100%; height: 100%; object-fit: cover;
}

.prose {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 40px var(--pad) 96px;
}
.prose p { font-family: var(--display); font-size: 20px; line-height: 1.65; margin-bottom: 24px; color: var(--ink); }
.prose h2 { font-size: 36px; margin-top: 48px; margin-bottom: 16px; }
.prose h3 { font-size: 22px; margin-top: 32px; margin-bottom: 10px; font-family: var(--sans); font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-folio { position: static; margin-bottom: 16px; }
  .pillars { grid-template-columns: 1fr 1fr 1fr; }
  .pillar:nth-child(3) { border-right: 0; }
  .pillar:nth-child(1), .pillar:nth-child(2), .pillar:nth-child(3) { border-bottom: 1px solid var(--rule); }
  .pillar:nth-child(5) { border-right: 0; }
  .stories { grid-template-columns: 1fr 1fr; }
  .story.large { grid-column: span 2; }
  .stories-secondary { grid-template-columns: 1fr; }
  .edit-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .offering { grid-template-columns: 1fr; gap: 16px; }
  .offering-num { font-size: 56px; }
  .conversation-feature { grid-template-columns: 1fr; gap: 32px; }
  .conversation-archive-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .reading-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--rule); }
  .pillar:last-child { border-bottom: 0; }
  .stories { grid-template-columns: 1fr; }
  .story.large { grid-column: auto; }
  .edit-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stats-band { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .stat:last-child { border-bottom: 0; }
  .newsletter-form { flex-direction: column; border-radius: 16px; }
  .newsletter-form input { text-align: center; padding: 16px; }
  .newsletter-form button { border-radius: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .nav { gap: 14px; }
  .nav a { font-size: 11px; }
  .masthead { padding-top: 20px; }
}

/* ---------- Page load reveal ---------- */
.fade-in { opacity: 0; transform: translateY(12px); animation: fadeUp .9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.fade-in.delay-1 { animation-delay: .1s; }
.fade-in.delay-2 { animation-delay: .2s; }
.fade-in.delay-3 { animation-delay: .3s; }
.fade-in.delay-4 { animation-delay: .4s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
