/* ── TOKENS ─────────────────────────────────────────────────────── */
:root {
  --ink:      #0F0E0C;
  --ink2:     #1E1C18;
  --ink3:     #2D2B26;
  --parchment:#F5F0E8;
  --warm:     #EDE7D9;
  --cream:    #FAF7F2;
  --gold:     #1A52A8;
  --goldL:    #2E6FD9;
  --goldXL:   #7AAFF4;
  --rust:     #1A52A8;
  --sage:     #1A52A8;
  --mid:      #5A6473;
  --light:    #8A9AAD;
  --border:   rgba(26,82,168,0.2);
  --ff-disp:  'Playfair Display', Georgia, serif;
  --ff-body:  'Spectral', Georgia, serif;
  --ff-mono:  'JetBrains Mono', monospace;
}

/* ── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── NOISE GRAIN ─────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── UTILITY ────────────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }

.label {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.rule {
  width: 48px; height: 2px;
  background: var(--gold);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--parchment);
  border: 1.5px solid var(--ink);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink3);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-ghost-light {
  background: transparent;
  color: var(--parchment);
  border: 1.5px solid rgba(245,240,232,0.45);
}
.btn-ghost-light:hover {
  border-color: var(--goldXL);
  color: var(--goldXL);
}

/* ── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-up  { animation: fadeUp  0.8s cubic-bezier(.22,.68,0,1.2) both; }
.fade-in  { animation: fadeIn  0.9s ease both; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.25s; }
.d3 { animation-delay: 0.4s; }
.d4 { animation-delay: 0.55s; }
.d5 { animation-delay: 0.7s; }

/* ── NAV ────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo img {
  height: 30px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--ff-disp);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--ff-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--mid);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 0.75rem; align-items: center; }

/* ── HERO ───────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  padding: 120px 0 80px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Diagonal split */
#hero::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 55%;
  height: 100%;
  background: var(--ink2);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Gold ruled lines */
#hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(26,82,168,0.06) 1px, transparent 1px);
  background-size: 100% 80px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

h1 {
  font-family: var(--ff-disp);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--parchment);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
h1 em {
  font-style: italic;
  color: var(--goldXL);
}

.hero-desc {
  font-family: var(--ff-body);
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(245,240,232,0.72);
  line-height: 1.8;
  margin-bottom: 2.25rem;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero right — featured book */
.hero-book {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}
.hero-book-badge {
  background: var(--gold);
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35em 0.9em;
  font-weight: 500;
}
.hero-book-cover {
  width: 280px;
  box-shadow:
    -12px 12px 0 rgba(26,82,168,0.25),
    -24px 24px 0 rgba(26,82,168,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.hero-book-cover:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow:
    -14px 16px 0 rgba(26,82,168,0.3),
    -28px 30px 0 rgba(26,82,168,0.12);
}
.hero-book-caption {
  font-family: var(--ff-disp);
  font-style: italic;
  font-size: 0.92rem;
  color: rgba(245,240,232,0.55);
  text-align: center;
}

/* ── STATS BAND ─────────────────────────────────────────────────── */
#stats {
  background: var(--gold);
  padding: 1.2rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.stats-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.stat-item { text-align: center; }
.stat-value {
  font-family: var(--ff-disp);
  font-size: 1.8rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
}
.stat-label {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 0.2rem;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
}

/* ── FEATURED BOOKS ─────────────────────────────────────────────── */
#books {
  padding: 100px 0;
  background: var(--cream);
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-title {
  font-family: var(--ff-disp);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}
.section-title em { font-style: italic; color: var(--gold); }

.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Featured book (first, spans 2 cols) */
.book-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease;
}
.book-card:hover { transform: translateY(-4px); }
.book-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.book-cover-wrap {
  position: relative;
  overflow: hidden;
}
.book-cover-wrap img {
  width: 100%;
  display: block;
  box-shadow: 4px 6px 24px rgba(15,14,12,0.18);
  transition: transform 0.3s ease;
}
.book-card:hover .book-cover-wrap img {
  transform: scale(1.02);
}
.book-new-badge {
  position: absolute;
  top: 0.75rem; left: 0;
  background: var(--rust);
  color: white;
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25em 0.75em;
}

.book-info { display: flex; flex-direction: column; gap: 0.5rem; }
.book-series {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.book-title {
  font-family: var(--ff-disp);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.book-card.featured .book-title {
  font-size: 1.5rem;
}
.book-desc {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.65;
}
.book-card.featured .book-desc {
  font-size: 0.95rem;
}
.book-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ── LECTURE SERIES ─────────────────────────────────────────────── */
#lectures {
  padding: 100px 0;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
#lectures::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,82,168,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,82,168,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
#lectures .section-title { color: var(--parchment); }

.lectures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.lecture-card {
  background: var(--ink2);
  border: 1px solid rgba(26,82,168,0.18);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s;
}
.lecture-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.lecture-card:hover { border-color: rgba(26,82,168,0.5); }
.lecture-card:hover::before { transform: scaleX(1); }

.lecture-num {
  font-family: var(--ff-disp);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(26,82,168,0.12);
  line-height: 1;
  position: absolute;
  top: 1rem; right: 1.25rem;
  user-select: none;
}
.lecture-tag {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.lecture-title {
  font-family: var(--ff-disp);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--parchment);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.lecture-desc {
  font-size: 0.88rem;
  color: rgba(245,240,232,0.55);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.lecture-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.2s;
}
.lecture-link:hover { gap: 0.7rem; }

/* ── AUTHOR ─────────────────────────────────────────────────────── */
#author {
  padding: 100px 0;
  background: var(--parchment);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.author-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: center;
}
.author-portrait {
  position: relative;
}
.author-portrait::after {
  content: '';
  position: absolute;
  bottom: -12px; right: -12px;
  width: 100%; height: 100%;
  border: 2px solid var(--gold);
  pointer-events: none;
  z-index: 0;
}
.author-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: sepia(15%);
}
.author-content .label { margin-bottom: 1rem; }
.author-name {
  font-family: var(--ff-disp);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.author-name em { font-style: italic; color: var(--gold); }
.author-bio {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 580px;
}
.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── MANIFESTO ──────────────────────────────────────────────────── */
#manifesto {
  padding: 100px 0;
  background: var(--ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#manifesto::before {
  content: '"';
  position: absolute;
  top: -2rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-disp);
  font-size: 28rem;
  color: rgba(26,82,168,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.manifesto-label { margin-bottom: 2rem; }
blockquote {
  font-family: var(--ff-disp);
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.5;
  max-width: 820px;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 1;
}
blockquote em { color: var(--goldXL); font-style: normal; }
.manifesto-author {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── CTA ────────────────────────────────────────────────────────── */
#cta {
  padding: 100px 0;
  background: var(--warm);
  text-align: center;
}
#cta h2 {
  font-family: var(--ff-disp);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.15;
}
#cta h2 em { font-style: italic; color: var(--gold); }
#cta p {
  font-size: 1.05rem;
  color: var(--mid);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
}
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── FOOTER ─────────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  padding: 60px 0 32px;
  border-top: 2px solid var(--gold);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-name {
  font-family: var(--ff-disp);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(245,240,232,0.45);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h5 {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(245,240,232,0.5);
  transition: color 0.2s;
  font-family: var(--ff-body);
}
.footer-col ul a:hover { color: var(--parchment); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(26,82,168,0.15);
  font-size: 0.82rem;
  color: rgba(245,240,232,0.3);
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--ff-mono);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-book { display: none; }
  .books-grid { grid-template-columns: repeat(2,1fr); }
  .book-card.featured { grid-column: span 2; grid-template-columns: 1fr; }
  .lectures-grid { grid-template-columns: 1fr; }
  .author-inner { grid-template-columns: 1fr; }
  .author-portrait { max-width: 280px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
    position: absolute; top: 60px; left: 0; right: 0;
    padding: 1.25rem 2rem; background: var(--cream); border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .container { padding: 0 1rem; }
  .books-grid { grid-template-columns: 1fr; }
  .book-card.featured { grid-column: 1; }
  .stats-inner { gap: 2rem; }
  .stat-divider { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   Additions for the static site (subpages, video, manifesto)
   ════════════════════════════════════════════════════════════════ */

.nav-toggle {
  display: none;
  background: none; border: 1.5px solid var(--ink3);
  width: 40px; height: 36px; cursor: pointer;
  align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--ink);
}
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scaleX(1); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 200; background: var(--ink); color: #fff; padding: .5rem 1rem; }
:focus-visible { outline: 2px solid var(--goldL); outline-offset: 3px; }

/* ── PAGE HEADER (subpages) ─────────────────────────────────────── */
.page-head {
  background: var(--ink);
  padding: 130px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(26,82,168,0.06) 1px, transparent 1px);
  background-size: 100% 80px;
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin-bottom: 1rem; }
.page-head .hero-desc { max-width: 640px; margin-bottom: 0; }
.crumbs { font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--goldXL); margin-bottom: 1.25rem; }
.crumbs a:hover { color: #fff; }

.section { padding: 90px 0; }
.section.alt { background: var(--parchment); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.dark { background: var(--ink); color: var(--parchment); }
.section.dark .section-title { color: var(--parchment); }
.section.dark .section-title em { color: var(--goldXL); }
.section-intro { color: var(--mid); max-width: 640px; margin-top: .75rem; }
.section.dark .section-intro { color: rgba(245,240,232,0.6); }
.prose { max-width: 720px; }
.prose p { margin-bottom: 1.2rem; color: var(--ink3); font-size: 1.05rem; }
.prose h2 { font-family: var(--ff-disp); font-size: 1.6rem; margin: 2.5rem 0 1rem; line-height: 1.2; }
.prose h3 { font-family: var(--ff-disp); font-size: 1.2rem; margin: 2rem 0 .5rem; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose img { margin: 2rem 0; }
.prose blockquote { color: var(--ink); font-size: 1.3rem; margin: 2rem 0; text-align: left; }

/* ── BOOK DETAIL ────────────────────────────────────────────────── */
.book-detail {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 4rem;
  align-items: start;
}
.book-detail .book-cover-wrap img { box-shadow: none; }
.book-detail .book-series { font-size: .72rem; }
.book-detail h2 { font-family: var(--ff-disp); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; margin: .5rem 0 1.25rem; }
.book-detail h1.book-h1 { font-family: var(--ff-disp); font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.12; color: var(--ink); margin: .5rem 0 1.25rem; font-weight: 700; }
.book-detail .book-desc { font-size: 1.05rem; color: var(--ink3); line-height: 1.8; }
.book-detail .book-desc p + p { margin-top: 1rem; }
.book-detail .book-actions { margin-top: 1.75rem; }
.book-status { display: inline-block; font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: .3em .8em; border: 1.5px solid var(--gold); color: var(--gold); }

.toc { list-style: none; border-top: 1px solid var(--border); max-width: 820px; }
.toc li {
  display: flex; gap: 1.25rem; align-items: baseline;
  padding: .85rem 0; border-bottom: 1px solid var(--border);
  font-size: 1rem; color: var(--ink3);
}
.toc .toc-num { font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .1em; color: var(--gold); min-width: 5.5rem; text-transform: uppercase; flex-shrink: 0; }

/* ── VIDEO ──────────────────────────────────────────────────────── */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 2.5rem; }
.video-grid.two { grid-template-columns: repeat(2, 1fr); }
.video-card { display: flex; flex-direction: column; gap: .75rem; }
.video-card h3 { font-family: var(--ff-disp); font-size: 1.05rem; line-height: 1.3; font-weight: 600; }
.video-card p { font-size: .88rem; color: var(--mid); line-height: 1.6; }
.section.dark .video-card p, #lectures .video-card p { color: rgba(245,240,232,.55); }
.section.dark .video-card h3, #lectures .video-card h3 { color: var(--parchment); }
.yt {
  position: relative; aspect-ratio: 16 / 9; background: #000 center / cover no-repeat;
  cursor: pointer; overflow: hidden; border: 0; padding: 0; width: 100%; display: block;
}
.yt::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); transition: opacity .2s; }
.yt:hover::before { opacity: .4; }
.yt .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 44px; border-radius: 10px; background: rgba(15,14,12,.82);
  display: grid; place-items: center; transition: background .2s;
}
.yt:hover .play { background: #c4302b; }
.yt .play::after { content: ''; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.channel-band {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  border: 1px solid rgba(26,82,168,.35); background: var(--ink2); padding: 2rem 2.25rem; margin-top: 3rem;
  position: relative;
}
.channel-band h3 { font-family: var(--ff-disp); font-size: 1.4rem; color: var(--parchment); }
.channel-band p { color: rgba(245,240,232,.55); font-size: .92rem; }
.btn-yt { background: #c4302b; color: #fff; border: 1.5px solid #c4302b; }
.btn-yt:hover { background: #a3241f; border-color: #a3241f; }

.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.module { border: 1px solid var(--border); background: var(--cream); padding: 1.5rem 1.6rem; }
.module .lecture-tag { margin-bottom: .4rem; }
.module h3 { font-family: var(--ff-disp); font-size: 1.08rem; line-height: 1.3; margin-bottom: .5rem; }
.module ul { list-style: none; margin-bottom: .6rem; }
.module li { font-size: .9rem; color: var(--ink3); }
.module li span { font-family: var(--ff-mono); font-size: .7rem; color: var(--light); margin-left: .4rem; }
.module p { font-size: .88rem; color: var(--mid); line-height: 1.6; }

/* ── MANIFESTO ─────────────────────────────────────────────────── */
.principles { list-style: none; counter-reset: p; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; }
.principles li {
  counter-increment: p; position: relative; padding: 1.25rem 0 1.25rem 3.5rem;
  border-bottom: 1px solid var(--border); font-size: 1.02rem; color: var(--ink3); line-height: 1.6;
}
.principles li::before {
  content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 1.1rem;
  font-family: var(--ff-disp); font-weight: 900; font-size: 1.6rem; color: var(--gold); opacity: .35;
}
.lang-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; margin-top: 2.5rem; }
.lang-grid a { display: flex; flex-direction: column; gap: .4rem; }
.lang-grid img { aspect-ratio: 1; object-fit: cover; border: 1px solid var(--border); transition: transform .2s; }
.lang-grid a:hover img { transform: translateY(-3px); }
.lang-grid span { font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mid); }

/* ── FEATURE ROW (home YouTube) ─────────────────────────────────── */
.feature-video { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; margin-top: 3rem; position: relative; }
.feature-video .lecture-title { font-size: 1.6rem; }
.feature-video .lecture-desc { font-size: 1rem; }
#lectures .container { position: relative; }

/* ── RESPONSIVE (additions) ─────────────────────────────────────── */
@media (max-width: 960px) {
  .book-detail { grid-template-columns: 1fr; gap: 2.5rem; }
  .book-detail .book-cover-wrap { max-width: 420px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-video { grid-template-columns: 1fr; gap: 1.5rem; }
  .modules, .principles { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .video-grid, .video-grid.two { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: repeat(3, 1fr); }
  .section, #books, #lectures, #author, #manifesto, #cta { padding: 64px 0; }
  .page-head { padding: 100px 0 48px; }
  .toc .toc-num { min-width: 4.5rem; }
  .channel-band { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Readable accents on dark backgrounds (the brand blue is too dark on ink) */
#hero .label, #lectures .label, #lectures .lecture-tag, #lectures .lecture-link,
#manifesto .label, #manifesto .manifesto-author, .section.dark .label, .section.dark .lecture-tag,
.page-head .label, footer h5 { color: var(--goldXL); }
#hero .rule { background: var(--goldXL); }
#hero .btn-primary, .section.dark .btn-primary, #lectures .btn-primary { border-color: rgba(245,240,232,.55); }
#hero .hero-book-badge { color: #fff; }

@media (max-width: 640px) { .nav-toggle { display: inline-flex; } }
