/* ============================================================
   THE PRESIDENTS — The Making of the United States
   assets/css/style.css  |  "The Gilded Volume — Ivory Edition"
   Palette: #ffffff (paper) · #241d14 (ink) · #a8792e (gold)
   Fonts: Fraunces · Newsreader · IBM Plex Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,700;1,9..144,300;1,9..144,400&family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300;1,6..72,400&family=IBM+Plex+Mono:wght@300;400&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --leather:   #ffffff;
  --leather2:  #faf8f4;
  --leather3:  #f2ede1;
  --cream:     #241d14;
  --cream2:    #453a2a;
  --cream3:    #6b5d47;
  --gold:      #a8792e;
  --gold2:     #8c6224;
  --gold3:     #8f6a28;
  --red:       #8b2020;
  --ff-title:  'Fraunces', Georgia, serif;
  --ff-body:   'Newsreader', 'Georgia', serif;
  --ff-mono:   'IBM Plex Mono', 'Courier New', monospace;
  /* ── MOLDURA DOS RETRATOS ──────────────────────────────────
     Para trocar entre madeira e ouro, comente um bloco e
     descomente o outro. Nada mais precisa mudar.            */

  /* OURO (talha dourada, retrato de estado) — ativo */
  --frame-a: #f4dda1;
  --frame-b: #d4ab55;
  --frame-c: #a87f2e;
  --frame-d: #6f4f1c;
  --frame-e: #8a6425;
  --frame-f: #f0d68f;
  --frame-g: #6b4c1b;
  --frame-mat: #f7f1e4;

  /* MADEIRA (nogueira escura, veio antigo)
  --frame-a: #7a5836;
  --frame-b: #5d3f24;
  --frame-c: #3f2916;
  --frame-d: #2a1b0e;
  --frame-e: #6b4a2b;
  --frame-f: #8a6640;
  --frame-g: #4a3120;
  --frame-mat: #f3ecdd;
  */

  --max-width: 1240px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--leather);
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold2); }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--ff-title);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.mono { font-family: var(--ff-mono); font-size: 0.8rem; letter-spacing: 0.08em; }

/* ── Site Header ──────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(168, 121, 46, 0.2);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-title);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-logo__mark { width: 32px; height: 32px; display: block; flex-shrink: 0; }
.site-logo__text { line-height: 1.15; }
@media (max-width: 480px) {
  .site-logo__text { font-size: 0.7rem; letter-spacing: 0.1em; white-space: normal; max-width: 9.5em; }
}

.site-logo span { color: var(--gold); }

.site-nav a {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream3);
  margin-left: 2rem;
}
.site-nav a:hover { color: var(--gold); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background-color: #0c111b;
  background-image:
    linear-gradient(rgba(12,17,27,0.28) 0%, rgba(12,17,27,0.42) 100%),
    url('../img/hero.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(10,13,20,0.32) 0%, transparent 72%);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero .hero__eyebrow { color: #d8b45a; text-shadow: 0 1px 6px rgba(0,0,0,0.6); opacity: 1; }
.hero .hero__title { color: #f4efe4; text-shadow: 0 2px 14px rgba(0,0,0,0.65); }
.hero .hero__subtitle { color: #ded3bd; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.hero .hero__stat-number { color: #d8b45a; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.hero .hero__stat-label { color: #ded3bd; text-shadow: 0 1px 6px rgba(0,0,0,0.55); }
.hero .hero__rule { background: #c8a24a; opacity: 0.7; }

/* ── Hero entrance (on load) ──────────────────────────────── */
.hero__eyebrow,
.hero__title,
.hero__work,
.hero__desc,
.hero__actions,
.hero__rule,
.hero__stats {
  animation: heroIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero__eyebrow  { animation-delay: 0.25s; }
.hero__title    { animation-delay: 0.55s; }
.hero__work     { animation-delay: 0.85s; }
.hero__desc     { animation-delay: 1.05s; }
.hero__actions  { animation-delay: 1.25s; }
.hero__rule     { animation: heroInRule 1.1s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 1.45s; }
.hero__stats    { animation-delay: 1.65s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroInRule {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 0.7; transform: translateY(0); }
}

/* ── Scroll reveal (sections) ─────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.js .reveal.reveal--in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero__title, .hero__work, .hero__desc, .hero__actions, .hero__rule, .hero__stats {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── The Book: gentle in-view motion ──────────────────────── */
.js .the-book .book3d {
  opacity: 0;
  transform: rotateY(-32deg) rotateX(6deg) translateY(14px);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
.js .the-book.reveal--in .book3d {
  opacity: 1;
  transform: rotateY(-26deg) rotateX(5deg) translateY(0);
}
.js .the-book .book-highlight {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.js .the-book.reveal--in .book-highlight { opacity: 1; transform: none; }
.js .the-book.reveal--in .book-highlight:nth-child(1) { transition-delay: 0.05s; }
.js .the-book.reveal--in .book-highlight:nth-child(2) { transition-delay: 0.15s; }
.js .the-book.reveal--in .book-highlight:nth-child(3) { transition-delay: 0.25s; }
.js .the-book.reveal--in .book-highlight:nth-child(4) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .js .the-book .book3d,
  .js .the-book .book-highlight {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .js .the-book.reveal--in .book3d { transform: rotateY(-26deg) rotateX(5deg) !important; }
}

.hero__eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--cream3);
  font-weight: 300;
  margin-bottom: 3rem;
  max-width: 560px;
}

.hero__rule {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 3rem;
  opacity: 0.5;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
}

.hero__stat-number {
  font-family: var(--ff-title);
  font-size: 2.5rem;
  color: var(--gold);
  display: block;
  line-height: 1;
}

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

/* ── Hero: work title + description + actions (new branding) ─ */
.hero__work {
  font-family: var(--ff-title);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--gold2);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.hero .hero__work { color: #e6c98a; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }

.hero__desc {
  font-family: var(--ff-body);
  font-size: clamp(0.98rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  color: var(--cream2);
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}
.hero .hero__desc { color: #e4dac6; text-shadow: 0 1px 8px rgba(0,0,0,0.55); }

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  border: 1px solid transparent;
}
.btn--primary {
  background: linear-gradient(180deg, #b8873a, #a8792e);
  color: #fbf6ea;
  box-shadow: 0 4px 14px rgba(20,16,12,0.28);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #c8974a, #b3842f);
  box-shadow: 0 8px 22px rgba(20,16,12,0.34);
}
.btn--ghost {
  background: transparent;
  border-color: rgba(216,180,90,0.6);
  color: #e6c98a;
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: #d8b45a;
  color: #f4e6c4;
  background: rgba(168,121,46,0.10);
}

/* Alias anchor so old #chapters links still land correctly */
.anchor-alias { position: absolute; display: block; height: 0; scroll-margin-top: 90px; }

/* ── The Book (intro section + CSS book) ──────────────────── */
.the-book { border-top: 1px solid rgba(200,162,74,0.12); padding-top: 5.5rem; padding-bottom: 5.5rem; }
.the-book__inner {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.the-book__text { flex: 1 1 380px; max-width: 560px; }
.section__eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 1rem;
}
.the-book__desc {
  font-family: var(--ff-body);
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--cream2);
  margin-top: 1.25rem;
  font-weight: 300;
  max-width: 30em;
}
.the-book__desc--sub {
  font-size: 0.98rem;
  color: var(--cream3);
  margin-top: 1rem;
}

/* Editorial highlights — 2×2 on desktop, stacked on mobile */
.book-highlights {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2.5rem;
  margin: 2.5rem 0;
  max-width: 34em;
}
.book-highlight {
  padding-left: 1rem;
  border-left: 1px solid rgba(168,121,46,0.4);
}
.book-highlight__label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.book-highlight__text {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--cream2);
  font-weight: 300;
}

.the-book__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.the-book__format {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream3);
  opacity: 0.75;
  margin-top: 1.5rem;
}

.the-book__visual {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 1rem 2.5rem;
  perspective: 1800px;
}
.the-book__figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.the-book__caption {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream3);
  opacity: 0.55;
  margin-top: 1.75rem;
  text-align: center;
  max-width: 15em;
  line-height: 1.5;
}

/* Concept cover — hardcover, deep navy-black with gilt */
.book3d {
  position: relative;
  width: 244px;
  height: 340px;
  transform: rotateY(-26deg) rotateX(5deg);
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.the-book__visual:hover .book3d { transform: rotateY(-19deg) rotateX(4deg); }

.book3d__cover {
  position: absolute; inset: 0;
  border-radius: 2px 6px 6px 2px;
  background:
    radial-gradient(130% 90% at 12% 10%, rgba(255,255,255,0.08), transparent 52%),
    linear-gradient(150deg, #14110c 0%, #1e1a13 46%, #100d09 100%);
  border: 1px solid rgba(168,121,46,0.34);
  box-shadow:
    inset 0 0 0 10px rgba(168,121,46,0.10),
    inset 0 0 0 11px rgba(168,121,46,0.22),
    inset 0 0 34px rgba(0,0,0,0.5),
    22px 26px 50px rgba(20,16,12,0.42),
    6px 8px 16px rgba(20,16,12,0.30);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 2.5rem 1.75rem;
  text-align: center;
}
.book3d__spine {
  position: absolute;
  left: -22px; top: 0; bottom: 0;
  width: 24px;
  transform: rotateY(90deg);
  transform-origin: right center;
  background: linear-gradient(#241f16, #100c08);
  border-radius: 2px 0 0 2px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
  overflow: hidden;
}
.book3d__spine-text {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) rotate(90deg);
  white-space: nowrap;
  font-family: var(--ff-title);
  font-style: italic;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: rgba(216,180,90,0.7);
}
.book3d__seal {
  font-family: var(--ff-title);
  font-style: italic;
  font-size: 1.15rem;
  color: #d8b45a;
  width: 2.4rem; height: 2.4rem;
  line-height: 2.25rem;
  border: 1px solid rgba(216,180,90,0.55);
  border-radius: 50%;
}
.book3d__brand {
  font-family: var(--ff-mono);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #cdb079;
}
.book3d__rule { width: 42px; height: 1px; background: rgba(216,180,90,0.55); }
.book3d__work {
  font-family: var(--ff-title);
  font-style: italic;
  font-weight: 400;
  font-size: 1.7rem;
  color: #f0e6d0;
  line-height: 1.1;
}
.book3d__tagline {
  font-family: var(--ff-mono);
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(205,176,121,0.85);
  margin-top: 0.25rem;
}

/* Bridge into Presidents */
.section-bridge {
  text-align: center;
  font-family: var(--ff-title);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--gold2);
  letter-spacing: 0.01em;
  margin: 1rem auto 0;
  padding: 0 2rem;
}

@media (max-width: 700px) {
  .book-highlights { grid-template-columns: 1fr; gap: 1.4rem; }
  .the-book__inner { gap: 2.5rem; }
  .the-book__actions .btn { flex: 1 1 100%; text-align: center; }
}
@media (max-width: 560px) {
  .book3d { width: 190px; height: 266px; }
  .the-book__visual { padding: 1rem; }
}

/* ── Section ──────────────────────────────────────────────── */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
  scroll-margin-top: 84px;
}

.section__header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(200,162,74,0.15);
  padding-bottom: 1.25rem;
}

.section__title {
  font-family: var(--ff-title);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--cream);
}

.section__count {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* ── President Grid ───────────────────────────────────────── */
.presidents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5px;
  background: rgba(200,162,74,0.08);
  border: 1px solid rgba(200,162,74,0.08);
}

/* ── President Card ───────────────────────────────────────── */
.president-card {
  background: var(--leather2);
  padding: 2rem;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
  border: 1px solid transparent;
}

.president-card:hover {
  background: var(--leather3);
  border-color: rgba(200,162,74,0.2);
  z-index: 1;
}

.president-card--upcoming {
  opacity: 0.45;
  cursor: default;
}
.president-card--upcoming:hover {
  background: var(--leather2);
  border-color: transparent;
}

.president-card__chapter {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold3);
  margin-bottom: 0.6rem;
}

.president-card__name {
  font-family: var(--ff-title);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.3rem;
  line-height: 1.15;
}

.president-card__ordinal {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.president-card__sub {
  font-size: 0.875rem;
  color: var(--cream3);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.president-card__dates {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.president-card__date {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: var(--cream3);
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.president-card__last-words {
  border-top: 1px solid rgba(200,162,74,0.1);
  padding-top: 1rem;
  font-size: 0.82rem;
  color: var(--cream2);
  font-style: italic;
  line-height: 1.5;
}

.president-card__last-words-label {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold3);
  display: block;
  margin-bottom: 0.3rem;
  font-style: normal;
}

.president-card__cta {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transition: opacity var(--transition);
}

.president-card:hover .president-card__cta { opacity: 1; }

.president-card__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream3);
  opacity: 0.4;
}

/* ── Chapter Page ─────────────────────────────────────────── */
.chapter-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10rem 2rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.chapter-hero__eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0.75;
}

.chapter-hero__name {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.chapter-hero__ordinal {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.chapter-hero__sub {
  font-size: 1.1rem;
  color: var(--cream3);
  font-style: italic;
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.chapter-hero__rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  opacity: 0.5;
}

/* ── Excerpt ──────────────────────────────────────────────── */
.chapter-excerpt {
  max-width: 780px;
  margin: 4rem auto;
  padding: 0 2rem;
  font-size: 1.175rem;
  line-height: 1.85;
  color: var(--cream2);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

#about p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.chapter-excerpt p:first-child::first-letter {
  font-family: var(--ff-title);
  font-size: 5.5rem;
  font-weight: 400;
  color: var(--gold);
  float: left;
  line-height: 0.75;
  margin: 0.1em 0.08em 0 0;
  padding: 0.05em 0.05em 0 0;
}

/* ── Ficha Técnica ────────────────────────────────────────── */
.ficha {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(200,162,74,0.15);
  border-bottom: 1px solid rgba(200,162,74,0.15);
}

.ficha__title {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0.75;
}

.ficha__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(200,162,74,0.08);
}

.ficha__item {
  background: var(--leather2);
  padding: 1rem 1.25rem;
}

.ficha__label {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold3);
  margin-bottom: 0.3rem;
}

.ficha__value {
  font-size: 0.9rem;
  color: var(--cream);
  line-height: 1.5;
}

/* ── Last Words ───────────────────────────────────────────── */
.last-words-block {
  max-width: 780px;
  margin: 4rem auto;
  padding: 2.5rem 3rem;
  border-left: 2px solid var(--gold);
  background: rgba(200,162,74,0.04);
}

.last-words-block__label {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold3);
  margin-bottom: 1rem;
}

.last-words-block__text {
  font-family: var(--ff-title);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.last-words-block__source {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: var(--cream3);
  letter-spacing: 0.06em;
  opacity: 0.7;
}

/* ── Highlights List ──────────────────────────────────────── */
.highlights {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.highlights__title {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0.75;
}

.highlights__list { list-style: none; }

.highlights__item {
  border-top: 1px solid rgba(200,162,74,0.1);
  padding: 1rem 0;
  color: var(--cream2);
  font-size: 0.9rem;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.highlights__item::before {
  content: '—';
  color: var(--gold);
  opacity: 0.5;
  font-family: var(--ff-mono);
  flex-shrink: 0;
}

/* ── Back Link ────────────────────────────────────────────── */
.back-link {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}
.back-link:hover { color: var(--gold); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(200,162,74,0.1);
  padding: 3rem 2rem;
  text-align: center;
}

.site-footer__mark {
  width: 46px;
  height: 46px;
  display: block;
  margin: 0 auto 1.25rem;
  opacity: 0.85;
}

.site-footer__text {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--cream3);
  opacity: 0.5;
}

/* ── Waitlist ─────────────────────────────────────────────── */
.waitlist { max-width: 820px; }

.waitlist__inner {
  text-align: center;
  background: var(--leather2);
  border: 1px solid rgba(168,121,46,0.18);
  border-radius: 4px;
  padding: 4rem 2.5rem;
}

.waitlist__eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 1rem;
}

.waitlist__title {
  font-family: var(--ff-title);
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 1.2rem;
}

.waitlist__copy {
  color: var(--cream2);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 2.25rem;
}

.waitlist__form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: 0 auto;
}

.waitlist__hp { display: none; }

.waitlist__input {
  flex: 1;
  padding: 0.9rem 1rem;
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--cream);
  background: var(--leather);
  border: 1px solid rgba(168,121,46,0.3);
  border-radius: 3px;
}
.waitlist__input:focus { outline: none; border-color: var(--gold); }

.waitlist__btn {
  padding: 0.9rem 1.6rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #241d14;
  background: var(--gold);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.waitlist__btn:hover { background: var(--gold2); color: #fff; }

.waitlist__note {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--cream3);
  opacity: 0.7;
  margin-top: 1.25rem;
}

.waitlist__thanks {
  font-family: var(--ff-title);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--gold);
  margin-top: 0.5rem;
}

@media (max-width: 520px) {
  .waitlist__form { flex-direction: column; }
  .waitlist__inner { padding: 3rem 1.5rem; }
}

/* ── Chapter CTA (next + waitlist) ────────────────────────── */
.chapter-cta {
  max-width: 780px;
  margin: 0 auto;
  padding: 1rem 2rem 5rem;
  text-align: center;
}

.chapter-cta__next {
  display: inline-block;
  min-width: 300px;
  padding: 1.5rem 2.5rem;
  background: var(--leather2);
  border: 1px solid rgba(168,121,46,0.3);
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.chapter-cta__next:hover {
  background: var(--leather3);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.chapter-cta__next-label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold3);
  margin-bottom: 0.45rem;
}

.chapter-cta__next-name {
  display: block;
  font-family: var(--ff-title);
  font-size: 1.4rem;
  color: var(--cream);
}

.chapter-cta__waitlist {
  margin-top: 1.75rem;
  font-family: var(--ff-body);
  font-size: 0.92rem;
  color: var(--cream2);
}
.chapter-cta__waitlist a { color: var(--gold); font-style: italic; }
.chapter-cta__waitlist a:hover { color: var(--gold2); }

/* ── Portraits ────────────────────────────────────────────── */
/* Portrait gallery wall — framed like a state portrait */
.president-card__portrait {
  margin: -2rem -2rem 1.25rem;
  padding: 1.9rem 1rem 1.7rem;
  min-height: 258px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    /* foco de luz da galeria */
    radial-gradient(ellipse 62% 78% at 50% 8%, rgba(255,250,238,.78), transparent 62%),
    /* parede de sala de retratos */
    linear-gradient(172deg, #e9e0cd 0%, #e0d5be 55%, #d5c9ae 100%);
  border-bottom: 1px solid rgba(168,121,46,0.20);
}
/* rodapé de madeira da galeria */
.president-card__portrait::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  background: linear-gradient(#c7b08a, #a98d63);
  opacity: .55;
}

.president-card__portrait img {
  display: block;
  max-height: 190px;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--frame-mat);           /* passe-partout de museu */
  padding: 10px;
  border: 11px solid var(--frame-b);
  border-image: linear-gradient(135deg,
      var(--frame-a) 0%,     /* luz batendo no relevo */
      var(--frame-b) 12%,
      var(--frame-c) 26%,
      var(--frame-d) 38%,    /* sulco profundo */
      var(--frame-e) 48%,
      var(--frame-b) 62%,
      var(--frame-f) 74%,
      var(--frame-g) 88%,
      var(--frame-d) 100%    /* sombra do relevo */
    ) 1;
  box-shadow:
    /* degraus internos do entalhe */
    inset 0 0 0 1px rgba(78,55,20,.55),
    inset 0 0 0 3px rgba(245,225,170,.30),
    inset 0 0 6px 3px rgba(60,42,16,.32),
    /* recuo do passe-partout */
    inset 0 2px 5px rgba(60,42,16,.22),
    /* quadro pendurado na parede */
    0 14px 30px rgba(38,28,14,.34),
    0 3px 8px rgba(38,28,14,.26),
    0 1px 0 rgba(255,246,222,.35);
  filter: grayscale(10%) sepia(5%);
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease, filter .4s ease;
}

.president-card:hover .president-card__portrait img {
  transform: translateY(-4px) scale(1.015);
  box-shadow:
    inset 0 0 0 1px rgba(78,55,20,.55),
    inset 0 0 0 3px rgba(245,225,170,.38),
    inset 0 0 6px 3px rgba(60,42,16,.28),
    inset 0 2px 5px rgba(60,42,16,.20),
    0 24px 44px rgba(38,28,14,.40),
    0 5px 12px rgba(38,28,14,.28),
    0 1px 0 rgba(255,246,222,.45);
  filter: grayscale(0%) sepia(0%);
}

.chapter-portrait {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 2rem;
  background:
    linear-gradient(var(--frame-mat), var(--frame-mat)) padding-box,
    linear-gradient(140deg, var(--frame-a) 0%, var(--frame-b) 20%, var(--frame-c) 45%,
                    var(--frame-d) 60%, var(--frame-b) 85%, var(--frame-f) 100%) border-box;
  border: 5px solid transparent;
  box-shadow: 0 12px 30px rgba(36,29,20,0.24);
}
.chapter-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* preenche o medalhão, sem sobra de fundo */
  object-position: center 18%; /* puxa para o alto: o rosto fica centrado */
  border-radius: 50%;
}

/* ── Primary Sources ──────────────────────────────────────── */
.primary-sources {
  max-width: 780px;
  margin: 3.5rem auto;
  padding: 0 2rem;
}
.primary-sources__title {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: 0.85;
}
.primary-sources__list { list-style: none; }
.primary-sources__item { border-top: 1px solid rgba(168,121,46,0.15); }
.primary-sources__item:last-child { border-bottom: 1px solid rgba(168,121,46,0.15); }
.primary-sources__item a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0.25rem;
  text-decoration: none;
  transition: background 0.25s ease, padding-left 0.25s ease;
}
.primary-sources__item a:hover {
  background: var(--leather2);
  padding-left: 0.75rem;
}
.primary-sources__name {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--cream);
}
.primary-sources__item a:hover .primary-sources__name { color: var(--gold2); }
.primary-sources__src {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold3);
  white-space: nowrap;
  flex-shrink: 0;
}


/* ── End-of-page waitlist call to action ──────────────────── */
.end-cta {
  max-width: 720px;
  margin: 5rem auto 1rem;
  padding: 3rem 2.5rem;
  text-align: center;
  background: var(--leather2);
  border: 1px solid rgba(168,121,46,0.18);
  border-radius: 4px;
}
.end-cta__eyebrow {
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); opacity: .85; margin-bottom: .9rem;
}
.end-cta__title {
  font-family: var(--ff-title); font-size: 1.8rem; font-weight: 400;
  color: var(--cream); margin-bottom: 1rem;
}
.end-cta__copy {
  color: var(--cream2); line-height: 1.75; max-width: 480px; margin: 0 auto 2rem;
  font-size: .98rem;
}
.end-cta__btn {
  display: inline-block; padding: .95rem 2rem;
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: #fff; background: var(--gold);
  border-radius: 3px; text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.end-cta__btn:hover { background: var(--gold2); color: #fff; transform: translateY(-2px); }
.end-cta__note {
  font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .06em;
  color: var(--cream3); opacity: .7; margin-top: 1.1rem;
}
@media (max-width: 560px) { .end-cta { padding: 2.25rem 1.4rem; margin: 3.5rem auto 1rem; } }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--leather); }
::-webkit-scrollbar-thumb { background: var(--gold3); border-radius: 3px; }

/* ── Mobile nav toggle ────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero__stats { gap: 1.5rem; }
  .presidents-grid { grid-template-columns: 1fr; }
  .ficha__grid { grid-template-columns: 1fr; }
  .chapter-hero__name { font-size: clamp(2.5rem, 10vw, 4rem); }
  .last-words-block { padding: 1.5rem; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(168, 121, 46, 0.2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    flex-direction: column;
    padding: 0.5rem 2rem 1.25rem;
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { margin: 0.85rem 0; font-size: 0.8rem; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 480px) {
  .section { padding: 3rem 1.25rem; }
  .hero { padding: 7rem 1.25rem 3rem; }
  .hero__stats { flex-direction: column; align-items: center; gap: 1.5rem; }
}

/* ── Utility ──────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }
.italic { font-style: italic; }

/* ── Page transitions ─────────────────────────────────────── */
.fade-in { animation: fadeIn 0.6s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
