/* ============================================
   DropshipFeed — Editorial Magazine Aesthetic
   Fraunces (display) + Instrument Sans (body)
   ============================================ */

:root {
  --bg: #F5F0E8;
  --bg-card: #FDFBF7;
  --bg-dark: #1A1816;
  --bg-darker: #0F0E0D;
  --text: #1A1816;
  --text-muted: #6B6560;
  --text-subtle: #9A938B;
  --accent: #D94F2E;
  --accent-dark: #B33E20;
  --accent-soft: #F4E4DB;
  --border: #E5DED1;
  --border-strong: #C9BFB0;

  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --max-width: 1320px;
  --content-width: 720px;

  --shadow-sm: 0 1px 2px rgba(26, 24, 22, 0.04);
  --shadow: 0 4px 12px rgba(26, 24, 22, 0.06);
  --shadow-lg: 0 24px 60px rgba(26, 24, 22, 0.12);

  --radius: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}

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

a { color: var(--text); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

/* ============================================
   HEADER / NAV
   ============================================ */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(245, 240, 232, 0.92);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.brand em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.brand .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin-left: 4px;
  margin-bottom: 4px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-muted);
  position: relative;
}

.nav-links a:hover { color: var(--text); }

.nav-search {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.nav-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}

.nav-search input:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(26, 24, 22, 0.08);
}

.nav-search::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B6560' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 420px;
  overflow-y: auto;
  display: none;
  z-index: 200;
}

.search-results-dropdown.active { display: block; }

.search-result {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}

.search-result:hover { background: var(--accent-soft); }
.search-result:last-child { border-bottom: none; }

.search-result-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 2px;
}

.search-result-snippet {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

/* ============================================
   HOMEPAGE HERO
   ============================================ */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 32px 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  gap: 32px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02);
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 24, 22, 0.4) 100%);
  pointer-events: none;
}

/* ============================================
   FEATURED POST BANNER
   ============================================ */

.featured-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 32px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-head h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.section-head .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ============================================
   POST GRID
   ============================================ */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.post-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform .3s ease;
}

.post-card:hover { transform: translateY(-4px); }

.post-card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-dark);
  position: relative;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.post-card:hover .post-card-image img { transform: scale(1.04); }

.post-card-category {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-card-category::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--accent);
}

.post-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 100;
}

.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); }

.post-card-excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  margin-top: auto;
}

/* FEATURED LARGE CARD */
.post-card.featured-card {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 32px;
  background: var(--bg-dark);
  color: var(--bg);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.post-card.featured-card .post-card-image {
  aspect-ratio: 4/3;
  order: 2;
}

.post-card.featured-card h3 {
  font-size: 44px;
  line-height: 1.05;
  color: var(--bg);
}

.post-card.featured-card h3 a { color: var(--bg); }
.post-card.featured-card h3 a:hover { color: var(--accent); }

.post-card.featured-card .post-card-category { color: var(--accent); }
.post-card.featured-card .post-card-category::before { background: var(--accent); }

.post-card.featured-card .post-card-excerpt {
  color: rgba(245, 240, 232, 0.7);
  font-size: 17px;
  -webkit-line-clamp: 3;
}

.post-card.featured-card .post-card-meta { color: rgba(245, 240, 232, 0.5); }

/* ============================================
   CATEGORY FILTER PILLS
   ============================================ */

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.category-pill {
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  background: transparent;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s ease;
}

.category-pill:hover {
  border-color: var(--text);
  color: var(--text);
}

.category-pill.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ============================================
   NEWSLETTER BLOCK
   ============================================ */

.newsletter {
  background: var(--bg-dark);
  color: var(--bg);
  padding: 80px 32px;
  margin-top: 80px;
}

.newsletter-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.newsletter h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.newsletter h2 em {
  font-style: italic;
  color: var(--accent);
}

.newsletter p {
  font-size: 17px;
  color: rgba(245, 240, 232, 0.7);
  max-width: 540px;
  margin: 0 auto 36px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  background: transparent;
  border: 1px solid rgba(245, 240, 232, 0.3);
  border-radius: var(--radius);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-form input::placeholder { color: rgba(245, 240, 232, 0.5); }

.newsletter-form button {
  padding: 14px 26px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.newsletter-form button:hover { background: var(--accent-dark); }
.newsletter-form button:disabled { opacity: 0.6; cursor: wait; }

.newsletter-status {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(245, 240, 232, 0.8);
  min-height: 20px;
}

.newsletter-status.error { color: #FF8A6A; }
.newsletter-status.success { color: #8FD694; }

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--bg-darker);
  color: rgba(245, 240, 232, 0.7);
  padding: 64px 32px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.1);
  margin-bottom: 32px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--bg);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.footer-brand em {
  font-style: italic;
  color: var(--accent);
}

.footer-tagline {
  font-size: 14px;
  max-width: 320px;
  line-height: 1.5;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(245, 240, 232, 0.7);
  font-size: 14px;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(245, 240, 232, 0.4);
  font-family: var(--font-mono);
}

/* ============================================
   BLOG POST PAGE
   ============================================ */

.post-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.post-header-text .post-card-category { margin-bottom: 24px; }

.post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}

.post-header h1 em { font-style: italic; color: var(--accent); }

.post-lede {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.45;
  color: var(--text-muted);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 32px;
}

.post-meta-row {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.post-hero-image {
  aspect-ratio: 5/6;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
}

.post-hero-image img { width: 100%; height: 100%; object-fit: cover; }

.post-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.post-body > * { margin-bottom: 24px; }

.post-body h2 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 56px;
  margin-bottom: 20px;
  font-variation-settings: 'opsz' 100;
}

.post-body h2 em { font-style: italic; color: var(--accent); font-weight: 400; }

.post-body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
  margin-top: 40px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.post-body h4 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.post-body p {
  font-size: 18px;
  line-height: 1.7;
}

.post-body p a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.post-body p a:hover { color: var(--accent-dark); }

.post-body strong { font-weight: 600; color: var(--text); }

.post-body ul, .post-body ol {
  padding-left: 24px;
  font-size: 18px;
  line-height: 1.65;
}

.post-body li { margin-bottom: 10px; }

.post-body li::marker { color: var(--accent); }

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 32px 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.4;
  font-style: italic;
  color: var(--text);
  font-weight: 400;
}

.post-body blockquote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 14px;
}

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent-dark);
}

.post-body figure {
  margin: 40px 0;
}

.post-body figure img {
  width: 100%;
  border-radius: var(--radius);
}

.post-body figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

/* Pull quote style */
.pull-quote {
  border: none;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  text-align: center;
  padding: 40px 20px;
  margin: 40px -40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Callout boxes */
.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}

.callout p { font-size: 16px !important; line-height: 1.6; margin-bottom: 0 !important; }

/* Tables */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.post-body th {
  background: var(--text);
  color: var(--bg);
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.post-body td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.post-body tr:last-child td { border-bottom: none; }

.post-body tr:hover td { background: rgba(217, 79, 46, 0.04); }

/* Bar chart using CSS */
.bar-chart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
}

.bar-chart-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}

.bar-chart-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 60px;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
}

.bar-label { font-weight: 500; color: var(--text); }

.bar-track {
  height: 28px;
  background: var(--bg);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  position: relative;
  transition: width .6s ease;
}

.bar-fill.muted { background: var(--border-strong); }

.bar-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

/* Number callout grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 40px 0;
}

.stat-cell {
  background: var(--bg-card);
  padding: 28px 24px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Post body image layouts */
.post-body .full-bleed {
  margin-left: calc(-1 * (100vw - var(--content-width)) / 2);
  margin-right: calc(-1 * (100vw - var(--content-width)) / 2);
  max-width: 100vw;
}

/* Table of contents */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 0 0 40px;
}

.toc-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 600;
}

.toc ol {
  list-style: none;
  padding: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 0;
}

.toc li:last-child { border-bottom: none; }

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-right: 12px;
  font-weight: 600;
}

.toc a {
  font-size: 15px;
  color: var(--text);
}

.toc a:hover { color: var(--accent); }

/* Related posts */
.related-posts {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 32px;
  border-top: 1px solid var(--border);
}

.related-posts h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.related-posts h3 em { font-style: italic; color: var(--accent); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ============================================
   STATIC PAGES (TOS, Privacy, About)
   ============================================ */

.page-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 32px 40px;
  border-bottom: 1px solid var(--border);
}

.page-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.page-hero h1 em { font-style: italic; color: var(--accent); }

.page-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.55;
}

.page-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.page-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-top: 28px;
  margin-bottom: 10px;
}

.page-body p, .page-body li {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.page-body ul, .page-body ol { padding-left: 22px; margin-bottom: 16px; }

.page-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================
   SEARCH RESULTS PAGE
   ============================================ */

.search-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 32px;
}

.search-page-results {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.search-result-full {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.search-result-full img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius);
}

.search-result-full h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 8px;
}

.search-result-full p {
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ============================================
   404
   ============================================ */

.page-404 {
  max-width: 680px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  text-align: center;
}

.page-404 .code {
  font-family: var(--font-display);
  font-size: 160px;
  line-height: 1;
  font-weight: 400;
  color: var(--accent);
  font-style: italic;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.page-404 h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-404 p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 17px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background .2s;
  border: none;
  cursor: pointer;
}

.btn:hover { background: var(--accent); color: var(--bg); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 56px 24px 32px;
    gap: 40px;
  }
  .hero-visual { aspect-ratio: 3/2; max-height: 400px; }
  .post-header { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; }
  .post-hero-image { aspect-ratio: 3/2; }
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .post-card.featured-card {
    grid-column: span 2;
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
  .post-card.featured-card h3 { font-size: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .bar-row { grid-template-columns: 100px 1fr 50px; font-size: 12px; }
}

@media (max-width: 640px) {
  .nav { padding: 14px 20px; gap: 16px; flex-wrap: wrap; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    gap: 14px;
  }
  .menu-toggle { display: block; }
  .nav-search { max-width: 100%; flex: 1 1 100%; order: 3; }
  .brand { font-size: 22px; }
  .hero { padding: 40px 20px 24px; }
  .hero-meta { gap: 20px; }
  .hero-meta strong { font-size: 22px; }
  .featured-section { padding: 48px 20px; }
  .section-head h2 { font-size: 24px; }
  .section-head { flex-wrap: wrap; gap: 8px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card.featured-card { grid-column: span 1; }
  .post-card.featured-card h3 { font-size: 26px; }
  .newsletter { padding: 60px 20px; }
  .newsletter-form { flex-direction: column; }
  .post-header { padding: 32px 20px; }
  .post-body { padding: 32px 20px 64px; }
  .post-body h2 { font-size: 28px; margin-top: 40px; }
  .post-body h3 { font-size: 20px; }
  .post-body p, .post-body ul, .post-body ol { font-size: 16px; }
  .pull-quote { font-size: 24px; padding: 28px 0; margin: 28px 0; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .page-body { padding: 32px 20px 64px; }
  .search-result-full { grid-template-columns: 1fr; }
  .search-result-full img { width: 100%; height: 200px; }
  .page-404 .code { font-size: 100px; }
  .page-404 h1 { font-size: 28px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 32px; }
  .post-body table { font-size: 13px; display: block; overflow-x: auto; }
  .post-body table th, .post-body table td { padding: 10px 12px; }
  .bar-chart { padding: 20px; }
  .bar-row { grid-template-columns: 90px 1fr 50px; gap: 10px; font-size: 11px; }
  .bar-chart-title { font-size: 17px; }
  .abo-grid { grid-template-columns: repeat(2, 1fr); }
  .abo-chart { padding: 20px; }
  .abo-cell { padding: 14px 10px; }
  .abo-cell-main { font-size: 16px; }
}

/* ABO campaign structure chart */
.abo-chart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
}

.abo-chart-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}

.abo-chart-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.abo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.abo-cell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.abo-cell-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}

.abo-cell-main {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.abo-cell-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: auto;
  padding-bottom: 12px;
}

.abo-cell-budget {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.abo-chart-footer {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  letter-spacing: 0.03em;
}

.abo-chart-footer strong {
  color: var(--accent);
  font-weight: 600;
}

/* Utility */
.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;
}

/* Page load animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1, .hero-lede, .hero-meta { animation: fadeUp .8s ease backwards; }
.hero-lede { animation-delay: .1s; }
.hero-meta { animation-delay: .2s; }
.hero-visual { animation: fadeUp 1s ease .15s backwards; }
