@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("../fonts/carlito-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("../fonts/carlito-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("../fonts/carlito-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("../fonts/carlito-bolditalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg-dark: #14100d;
  --bg-cream: #f2e6ce;
  --bg-brown: #3b2b1e;
  --card-dark: #1a1410;
  --text-cream: #f7ead7;
  --text-dark: #1a120e;
  --muted-cream: #d4c4ae;
  --muted-dark: #5a4a3c;
  --red: #a32820;
  --gold: #c9a45a;
  --max: 1120px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Carlito", "Calibri", "Segoe UI", "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-cream);
  background: var(--bg-dark);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--bg-dark);
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 16, 13, 0.94);
  border-bottom: 1px solid rgba(247, 234, 215, 0.12);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.logo {
  text-decoration: none;
  color: var(--text-cream);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo small {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.download {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.4rem 0.8rem;
  font-size: 0.95rem;
  border-radius: 2px;
  white-space: nowrap;
}
.download:hover, .download:focus { background: var(--gold); color: var(--bg-dark); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  cursor: pointer;
  border: 1px solid rgba(247, 234, 215, 0.35);
  padding: 0.4rem 0.8rem;
  font-size: 0.95rem;
  border-radius: 2px;
  user-select: none;
}
.site-nav {
  display: none;
  position: absolute;
  right: 1.25rem;
  top: calc(100% + 0.35rem);
  background: var(--bg-dark);
  border: 1px solid rgba(247, 234, 215, 0.2);
  min-width: 16rem;
  padding: 0.5rem 0;
  max-height: 70vh;
  overflow: auto;
}
.site-nav a {
  display: block;
  text-decoration: none;
  padding: 0.45rem 1rem;
  color: var(--text-cream);
}
.site-nav a:hover, .site-nav a:focus { background: var(--bg-brown); color: var(--gold); }
.nav-toggle:focus-visible + .nav-toggle-label,
.nav-toggle-label:hover { border-color: var(--gold); color: var(--gold); }
.nav-toggle:checked ~ .site-nav { display: block; }
.header-inner { position: relative; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}
.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}
.rule {
  width: 3.2rem;
  height: 0.28rem;
  background: var(--red);
  border: 0;
  margin: 0 0 1.25rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 1rem; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
.lede, .body-text { max-width: 42rem; }
.muted { color: var(--muted-cream); }
.speech {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(247, 234, 215, 0.18);
  color: var(--muted-cream);
  font-size: 1rem;
  max-width: 46rem;
}
.speech h3 { color: inherit; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
section[id] { scroll-margin-top: 4.5rem; }

/* Themes by section */
.theme-dark { background: var(--bg-dark); color: var(--text-cream); }
.theme-cream { background: var(--bg-cream); color: var(--text-dark); }
.theme-cream .muted, .theme-cream .speech { color: var(--muted-dark); }
.theme-cream .speech { border-top-color: rgba(26, 18, 14, 0.15); }
.theme-brown { background: var(--bg-brown); color: var(--text-cream); }

.hero-grid, .split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-grid img, .split img, .portrait {
  width: 100%;
  object-fit: cover;
}
.meta-line { margin: 0.35rem 0; }
.disclaimer {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted-cream);
  max-width: 40rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}
.stat {
  background: var(--bg-brown);
  color: var(--text-cream);
  padding: 1rem 0.6rem 0.9rem;
  border-top: 5px solid var(--red);
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold);
  font-weight: 600;
}
.stat span { display: block; font-size: 0.9rem; color: var(--muted-cream); }

.about-grid, .plot-grid, .hero-char, .opinion-grid, .close-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.about-grid { grid-template-columns: 1fr 1fr; align-items: start; }

.plot-item { display: grid; grid-template-columns: 8px 1fr; gap: 1rem; margin: 0 0 1.2rem; }
.plot-item .bar { background: var(--red); }
.place { color: var(--gold); font-weight: 700; margin: 0 0 1.25rem; }

.attr-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  margin: 0 0 0.8rem;
  align-items: center;
}
.attr-label {
  background: var(--bg-brown);
  color: var(--gold);
  text-align: center;
  padding: 0.85rem 0.5rem;
  font-weight: 700;
}

.transform {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: center;
  margin: 1.5rem 0;
  text-align: center;
}
.transform figcaption { margin-top: 0.6rem; color: var(--gold); font-weight: 700; }
.arrow { font-size: 2.2rem; color: var(--red); font-weight: 700; }

.cast {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.cast article {
  background: var(--bg-brown);
  color: var(--text-cream);
  padding: 0.6rem 0.6rem 1rem;
}
.cast h3 { color: var(--gold); font-size: 1.05rem; margin: 0.7rem 0 0.4rem; font-family: var(--sans); }
.cast p { margin: 0; font-size: 0.98rem; }
.cast img { aspect-ratio: 1; object-fit: cover; width: 100%; }

.themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.theme-card {
  background: var(--card-dark);
  padding: 1.1rem 1.1rem 1.2rem 1.2rem;
  border-left: 5px solid var(--red);
}
.theme-card .num { color: var(--gold); font-family: var(--serif); font-size: 1.4rem; margin: 0 0 0.35rem; }
.theme-card h3 { margin: 0 0 0.4rem; }
.theme-card p { margin: 0; color: var(--muted-cream); }
.theme-photo { margin: 0; }
.theme-photo img { width: 100%; height: 100%; object-fit: cover; }

.features { list-style: none; margin: 0; padding: 0; }
.features li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0.9rem;
  margin: 0 0 1.15rem;
  align-items: start;
}
.features .dot { width: 14px; height: 14px; background: var(--red); margin-top: 0.45rem; }
.features h3 { margin: 0 0 0.15rem; }
.features p { margin: 0; color: var(--muted-dark); }

.quote-list p {
  margin: 0 0 1.2rem;
  font-style: italic;
  font-size: 1.15rem;
  padding-left: 1rem;
  border-left: 5px solid var(--red);
}
.badge {
  display: inline-block;
  background: var(--red);
  color: var(--text-cream);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.closing-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35;
  margin: 1.5rem 0;
}
.thanks { color: var(--gold); font-family: var(--serif); font-size: 1.6rem; margin-top: 1.5rem; }
.gold-line { border: 0; border-top: 1px solid var(--gold); margin: 1.5rem 0; }

.slides h2 { margin-bottom: 0.5rem; }
.slide-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.slide-grid a { text-decoration: none; color: inherit; }
.slide-grid figcaption { font-size: 0.85rem; margin-top: 0.35rem; }
.slide-grid img { border: 1px solid rgba(247, 234, 215, 0.15); width: 100%; }

.site-footer {
  background: #0d0b09;
  color: var(--muted-cream);
  font-size: 0.95rem;
}
.site-footer .wrap { padding-top: 2rem; padding-bottom: 2.5rem; }
.site-footer a { color: var(--gold); }
.site-footer p { margin: 0.4rem 0; }

@media (max-width: 900px) {
  .hero-grid, .split, .about-grid, .plot-grid, .hero-char, .opinion-grid, .close-grid {
    grid-template-columns: 1fr;
  }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .cast { grid-template-columns: repeat(2, 1fr); }
  .themes { grid-template-columns: 1fr; }
  .slide-grid { grid-template-columns: repeat(2, 1fr); }
  .transform { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .attr-row { grid-template-columns: 7rem 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1.05rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .header-inner { flex-wrap: wrap; }
  .logo { font-size: 0.95rem; }
}
@media (min-width: 901px) {
  /* keep 5 theme cards: 3 on first row, then 2 + photo */
  .themes { grid-template-columns: repeat(3, 1fr); }
  .theme-photo { grid-column: 3; grid-row: 2; }
}

@media print {
  .site-header, .skip, .nav-toggle-label, .download { display: none !important; }
  section { break-inside: avoid; }
  body { background: #fff; color: #111; }
}
