/* ============================================================
   YOU DON'T OWN WHAT YOU STREAM
   Design: ink-on-paper editorial / physical-media aesthetic
   ============================================================ */

:root {
  --paper: #f5f0e6;
  --paper-deep: #ebe3d2;
  --ink: #1d1813;
  --ink-soft: #52483c;
  --ink-faint: #8a7d6c;
  --red: #b3271a;
  --red-dark: #8f1f14;
  --rule: #d9cfba;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', Arial, sans-serif;
  --shadow: 0 10px 30px rgba(29, 24, 19, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); }
a:hover { color: var(--red-dark); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }

.kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block; }

/* ---------------- Header ---------------- */
.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-width: 0; overflow: hidden; }
.brand-mark {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  font-family: var(--sans);
}
.brand-text { min-width: 0; }
.brand-title { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-nav { display: flex; align-items: center; gap: 26px; flex-shrink: 0; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.site-nav a:hover { color: var(--red); border-bottom-color: var(--red); }
.site-nav a.nav-cta { background: var(--red); color: var(--paper); padding: 9px 16px; border-bottom: none; }
.site-nav a.nav-cta:hover { background: var(--red-dark); color: var(--paper); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 10px 6px;
  flex-shrink: 0; z-index: 60; position: relative;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; display: block; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--rule); font-size: 0.82rem; }
  .site-nav a.nav-cta { margin-top: 12px; text-align: center; border-bottom: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(24, 18, 12, 0.62); pointer-events: none; }
.hero-content { position: relative; z-index: 2; padding: 110px 24px 96px; max-width: 980px; margin: 0 auto; text-align: left; }
.hero-kicker { color: #f0c9bc; }
.hero-kicker::before { background: #f0c9bc; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  margin: 22px 0 24px;
  color: var(--paper);
}
.hero h1 em { font-style: italic; color: #e8553f; }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.25rem); color: rgba(245, 240, 230, 0.88); max-width: 640px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stamp {
  display: inline-block;
  border: 2px solid #e8553f;
  color: #e8553f;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 14px;
  transform: rotate(-2deg);
  margin-bottom: 20px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 28px;
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--paper);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--paper); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------------- Sections ---------------- */
.section { padding: 88px 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-deep { background: var(--paper-deep); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }
.section-dark .section-head p { color: rgba(245, 240, 230, 0.8); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }

/* Explainer strip */
.explainer-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.explainer-grid h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--paper); }
.explainer-list { list-style: none; }
.explainer-list li {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 18px;
  margin-bottom: 22px;
  color: rgba(245, 240, 230, 0.88);
}
.explainer-list strong { color: var(--paper); font-family: var(--serif); font-size: 1.08rem; display: block; margin-bottom: 2px; }
@media (max-width: 800px) { .explainer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------------- Blog cards ---------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.blog-card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-type { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.blog-card-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.blog-card-body h3 a { color: var(--ink); text-decoration: none; }
.blog-card-body h3 a:hover { color: var(--red); }
.blog-card-body p { font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.blog-card-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }

/* ---------------- Stats ---------------- */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 800px) { .stats-row { grid-template-columns: 1fr; } }
.stat { border-top: 3px solid var(--red); padding-top: 18px; }
.stat-number { font-family: var(--serif); font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1; color: var(--red); }
.stat-label { margin-top: 10px; font-size: 0.95rem; color: var(--ink-soft); }
.section-dark .stat-label { color: rgba(245, 240, 230, 0.75); }

/* ---------------- Video section ---------------- */
.video-frame { background: var(--ink); }
.video-frame .video-shell { position: relative; }

/* ---------------- Sources ---------------- */
.source-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .source-list { grid-template-columns: 1fr; } }
.source-card { border: 1px solid var(--rule); background: var(--paper); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.2s, box-shadow 0.2s; }
.source-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.source-tag { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.source-card h3 { font-size: 1.15rem; }
.source-card p { font-size: 0.9rem; color: var(--ink-soft); flex: 1; }
.source-card a { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.source-card a::after { content: " >"; }

/* ---------------- Form ---------------- */
.form-wrap { max-width: 640px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--ink-faint);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 0;
}
input:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
textarea { min-height: 130px; resize: vertical; }
#formStatus p { padding: 12px 0; font-weight: 600; }

/* ---------------- Article / post pages ---------------- */
.post-hero { padding: 72px 0 48px; border-bottom: 2px solid var(--ink); }
.post-hero .container { max-width: 840px; }
.post-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 18px 0; }
.post-hero h1 em { font-style: italic; color: var(--red); }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.post-meta .pm-author { color: var(--red); }

.post-body { max-width: 760px; margin: 0 auto; padding: 48px 24px 88px; font-size: 1.08rem; }
.post-body p { margin-bottom: 1.35em; }
.post-body h2 { font-size: 1.75rem; margin: 2.2em 0 0.8em; }
.post-body h3 { font-size: 1.3rem; margin: 1.8em 0 0.6em; }
.post-body a { color: var(--red); }
.post-body .lede::first-letter {
  font-family: var(--serif);
  font-size: 3.6em;
  font-weight: 700;
  float: left;
  line-height: 0.82;
  padding: 6px 10px 0 0;
  color: var(--red);
}
.pullquote {
  border-left: 4px solid var(--red);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.35;
  padding: 8px 0 8px 24px;
  margin: 2em 0;
  color: var(--ink);
}
.note-box {
  border: 2px solid var(--ink);
  background: var(--paper-deep);
  padding: 24px 26px;
  margin: 2.4em 0;
  font-size: 0.95rem;
}
.note-box .note-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.post-figure { margin: 2.4em 0; }
.post-figure img { width: 100%; }
.post-figure figcaption { font-size: 0.8rem; color: var(--ink-faint); margin-top: 10px; letter-spacing: 0.04em; }

.video-embed { margin: 2.2em 0; }
.video-embed .video-shell { position: relative; padding-top: 56.25%; background: var(--ink); }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed figcaption, .video-embed .video-caption { font-size: 0.8rem; color: var(--ink-faint); margin-top: 10px; letter-spacing: 0.04em; }

/* Timeline + data tables in posts */
.data-table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 0.95rem; }
.data-table th { text-align: left; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); background: var(--ink); padding: 12px 14px; }
.data-table td { padding: 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.data-table td:first-child { font-weight: 700; white-space: nowrap; color: var(--red); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 2em 0; }
@media (max-width: 700px) { .mini-stats { grid-template-columns: 1fr; } }
.mini-stat { border: 1px solid var(--rule); border-top: 3px solid var(--red); background: var(--paper); padding: 20px; }
.mini-stat .num { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: var(--red); line-height: 1.1; }
.mini-stat .lbl { font-size: 0.85rem; color: var(--ink-soft); margin-top: 8px; }

/* TOC + breadcrumb + related */
.breadcrumb { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }

.toc-box { border: 1px solid var(--rule); background: var(--paper); padding: 20px 24px; margin: 0 0 12px; }
.toc-box .toc-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.toc-box a { display: block; text-decoration: none; color: var(--ink); font-size: 0.9rem; padding: 5px 0; border-bottom: 1px dashed var(--rule); }
.toc-box a:last-child { border-bottom: none; }
.toc-box a:hover { color: var(--red); }

.related { background: var(--paper-deep); border-top: 2px solid var(--ink); padding: 72px 0; }
.related h2 { font-size: 1.6rem; margin-bottom: 32px; }
.related .blog-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .related .blog-grid { grid-template-columns: 1fr; } }

/* Listing page hero */
.listing-hero { padding: 72px 0 56px; border-bottom: 2px solid var(--ink); }
.listing-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin: 18px 0 14px; }
.listing-hero p { max-width: 620px; color: var(--ink-soft); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: rgba(245, 240, 230, 0.82); padding: 64px 0 40px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-grid h4 { color: var(--paper); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(245, 240, 230, 0.82); text-decoration: none; }
.footer-grid a:hover { color: #e8553f; }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--paper); margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(245, 240, 230, 0.2); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.footer-bottom a { color: rgba(245, 240, 230, 0.82); }
