/* ============================================================
   LA GUERRA CRISTERA — Shared stylesheet (Phase 2)
   Editorial Mexican aesthetic / bone paper / terracotta + indigo
   ============================================================ */

:root {
  --bone:        #f2ecdf;
  --bone-soft:   #e8dfcc;
  --ink:         #1a1714;
  --ink-soft:    #3a342c;
  --indigo:      #1f2a44;
  --terracotta:  #b14d2a;
  --terracotta-dark: #8a3a1f;
  --ochre:       #c8923a;
  --sangre:      #7a1d1d;
  --sand:        #c4b896;
  --line:        rgba(26,23,20,0.18);
  --line-strong: rgba(26,23,20,0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1, 0 0 0 0 0.09, 0 0 0 0 0.08, 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

main, header, footer, nav, .hero-section { position: relative; z-index: 2; }
main { flex: 1; }

/* ============ TYPOGRAPHY ============ */

h1, h2, h3, h4 {
  font-family: 'Abril Fatface', Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; margin-top: 2.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.7rem; margin-top: 2rem; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; margin-top: 1.5rem; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; }

p { margin-bottom: 1.1rem; max-width: 68ch; }
ul, ol { margin: 0 0 1.2rem 1.5rem; max-width: 68ch; }
li { margin-bottom: 0.4rem; }

a {
  color: var(--terracotta-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}
a:hover { color: var(--sangre); }

em { font-style: italic; }
strong { font-weight: 700; color: var(--ink); }

.smallcaps {
  font-family: 'Playfair Display', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.82em;
  font-weight: 600;
}

.kicker {
  font-family: 'Playfair Display', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.dropcap::first-letter {
  font-family: 'Abril Fatface', Georgia, serif;
  font-size: 5rem;
  line-height: 0.85;
  float: left;
  padding: 0.15rem 0.75rem 0 0;
  color: var(--terracotta);
}

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

.site-header {
  border-bottom: 2px solid var(--ink);
  padding: 1rem 2rem 0.7rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bone);
  position: relative;
  z-index: 10;
}

.masthead {
  font-family: 'Abril Fatface', Georgia, serif;
  font-size: 1.6rem;
  color: var(--ink);
  text-decoration: none;
}
.masthead span { color: var(--terracotta); }

.site-date {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

nav.primary {
  border-bottom: 1px solid var(--line);
  background: var(--bone);
  padding: 0.3rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

nav.primary ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

nav.primary li { margin: 0; }

nav.primary a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
  border-bottom: none;
}

nav.primary a:hover,
nav.primary a.current {
  color: var(--terracotta);
  background: rgba(177,77,42,0.07);
}

nav.primary li + li::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--line);
  vertical-align: middle;
  margin-right: -1px;
}

/* ============ PAGE HEADER (not homepage hero) ============ */

.page-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--bone);
}

.page-header .kicker {
  margin-bottom: 1.2rem;
}

.page-header h1 {
  font-family: 'Abril Fatface', Georgia, serif;
  max-width: 18ch;
}

.page-header .lede {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  max-width: 52ch;
  color: var(--ink-soft);
  margin-top: 1.2rem;
}

.breadcrumb {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.breadcrumb a:hover { color: var(--terracotta); }

/* ============ LAYOUT ============ */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

section.content {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}
section.content:last-of-type { border-bottom: none; }

.ornament {
  text-align: center;
  font-size: 1.2rem;
  color: var(--terracotta);
  letter-spacing: 0.5em;
  margin: 2.5rem 0;
  opacity: 0.7;
}
.ornament::before, .ornament::after {
  content: '';
  display: inline-block;
  width: 50px;
  height: 1px;
  background: var(--ink);
  vertical-align: middle;
  margin: 0 1rem;
  opacity: 0.4;
}

/* ============ FIGURES ============ */

figure { margin: 2.5rem 0; }

figure img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(0.08) contrast(1.04);
  background: var(--bone-soft);
}

figure.framed {
  border: 1px solid rgba(26,23,20,0.3);
  padding: 0.6rem;
  background: var(--bone);
  box-shadow: 0 3px 22px rgba(0,0,0,0.08);
}

figcaption {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-soft);
  padding: 0.7rem 0.3rem 0;
  font-style: italic;
  border-top: 1px solid var(--line);
  margin-top: 0.75rem;
}

figcaption strong {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--terracotta);
  margin-right: 0.6rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.image-grid figure { margin: 0; }
.image-grid figure img { aspect-ratio: 3/4; object-fit: cover; }

/* ============ PULLQUOTES ============ */

blockquote {
  border-left: 3px solid var(--terracotta);
  margin: 2.5rem 0;
  padding: 0.4rem 0 0.4rem 1.8rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--ink);
  max-width: 55ch;
}

blockquote cite {
  display: block;
  font-family: 'EB Garamond', Georgia, serif;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 1rem;
}
blockquote cite::before { content: '— '; }

.pullquote {
  font-family: 'Abril Fatface', Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1.18;
  color: var(--terracotta);
  text-align: center;
  padding: 2.5rem 1rem;
  margin: 2.5rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  max-width: none;
}

.pullquote-attr {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 1rem;
  font-weight: 400;
}

/* ============ STATS ============ */

.stat-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 2.5rem 0;
  border: 1px solid var(--ink);
  background: var(--bone);
}

.stat {
  padding: 1.6rem 1.3rem;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat:last-child { border-right: none; }

.stat-number {
  font-family: 'Abril Fatface', Georgia, serif;
  font-size: 2.7rem;
  color: var(--terracotta);
  line-height: 1;
  display: block;
}

.stat-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

@media (max-width: 640px) {
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
}

/* ============ CARDS ============ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 2rem 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.card {
  padding: 1.8rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  background: var(--bone);
  transition: background 0.25s, color 0.25s;
  display: block;
}

.card:hover {
  background: var(--ink);
  color: var(--bone);
}
.card:hover .card-kicker { color: var(--ochre); }
.card:hover .card-arrow { color: var(--ochre); }

.card-kicker {
  font-family: 'Playfair Display', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  color: var(--terracotta);
  font-weight: 700;
  display: block;
  margin-bottom: 0.7rem;
  transition: color 0.25s;
}

.card-title {
  font-family: 'Abril Fatface', Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.1;
  margin-bottom: 0.55rem;
}

.card-excerpt {
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.card-arrow {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--terracotta);
  transition: color 0.25s;
}
.card-arrow::after { content: ' →'; }

/* ============ TIMELINE ============ */

.timeline {
  border-left: 2px solid var(--ink);
  padding: 0.5rem 0 0.5rem 2.2rem;
  margin: 2.5rem 0;
  max-width: 720px;
}

.tl-item {
  padding: 0 0 1.8rem;
  position: relative;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -2.85rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  background: var(--terracotta);
  border: 3px solid var(--bone);
  box-shadow: 0 0 0 1px var(--ink);
  border-radius: 50%;
}

.tl-date {
  font-family: 'Playfair Display', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  color: var(--terracotta);
  font-weight: 700;
  display: block;
  margin-bottom: 0.3rem;
}

.tl-title {
  font-family: 'Abril Fatface', Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.tl-item p { font-size: 0.97rem; max-width: 60ch; }

/* ============ VIDEO EMBEDS ============ */

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--ink);
  margin: 1.5rem 0 0.6rem;
  border: 1px solid var(--ink);
  overflow: hidden;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.8rem;
  margin: 2rem 0;
}

.video-card figcaption {
  padding-top: 0.5rem;
  border-top: none;
  margin-top: 0.4rem;
}

/* ============ FB BLOCK ============ */

.fb-block {
  background: var(--indigo);
  color: var(--bone);
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 0 0;
  position: relative;
  overflow: hidden;
}

.fb-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1, 0 0 0 0 1, 0 0 0 0 1, 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
}

.fb-block > * { position: relative; z-index: 1; }
.fb-block h2 { color: var(--ochre); margin-top: 0; margin-bottom: 0.8rem; }
.fb-block p { color: var(--bone-soft); max-width: 48ch; margin: 0 auto 1.3rem; }

.fb-button {
  display: inline-block;
  background: var(--ochre);
  color: var(--ink);
  padding: 0.85rem 1.8rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  text-decoration: none;
  border: 2px solid var(--ochre);
  transition: background 0.25s, color 0.25s;
}
.fb-button:hover { background: transparent; color: var(--ochre); }

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

.site-footer {
  background: var(--ink);
  color: var(--bone-soft);
  padding: 3rem 2rem 2rem;
  border-top: 3px double var(--terracotta);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.site-footer h4 {
  font-family: 'Abril Fatface', Georgia, serif;
  color: var(--ochre);
  margin: 0 0 0.8rem;
  font-size: 1.3rem;
}

.site-footer a {
  color: var(--bone-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(244,239,228,0.2);
}
.site-footer a:hover { color: var(--ochre); border-color: var(--ochre); }

.site-footer ul { list-style: none; margin: 0; max-width: none; }
.site-footer li { margin-bottom: 0.45rem; font-size: 0.92rem; }

.footer-mast {
  font-family: 'Abril Fatface', Georgia, serif;
  font-size: 1.7rem;
  color: var(--bone);
  margin-bottom: 0.5rem;
}
.footer-mast span { color: var(--terracotta); }

.footer-note {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sand);
  margin-top: 1.3rem;
  line-height: 1.6;
  max-width: 45ch;
}

.footer-copy {
  max-width: 1180px;
  margin: 2rem auto 0;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(244,239,228,0.15);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  text-align: center;
}

/* ============ UTILITIES ============ */

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 2.5rem 0;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.tag {
  display: inline-block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.2rem 0.6rem;
  background: var(--terracotta);
  color: var(--bone);
  font-weight: 600;
  margin: 0 0.3rem 0.3rem 0;
}
.tag.indigo { background: var(--indigo); }
.tag.ochre { background: var(--ochre); color: var(--ink); }

/* ============ MOBILE ============ */

@media (max-width: 640px) {
  body { font-size: 17px; }
  .container, .container-narrow { padding: 0 1.2rem; }
  .site-header { padding: 0.9rem 1.2rem 0.6rem; }
  nav.primary a { padding: 0.45rem 0.55rem; font-size: 0.66rem; letter-spacing: 0.1em; }
  .page-header { padding: 3rem 0 2rem; }
}


/* ============================================================
   WAVE 4 ADDITIONS · append to existing assets/style.css
   ============================================================ */

/* Fuentes citadas block — appears at the foot of content pages */
.fuentes-citadas {
  max-width: 720px;
  margin: 4rem auto 2rem;
  padding: 2rem 2.25rem;
  background: rgba(196, 119, 80, 0.06);
  border-left: 3px solid var(--terracotta, #c47750);
  border-radius: 2px;
  font-family: 'EB Garamond', 'Playfair Display', Georgia, serif;
}
.fuentes-citadas h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--terracotta, #c47750);
  letter-spacing: 0.01em;
}
.fuentes-citadas ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
.fuentes-citadas li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  text-indent: -1.5rem;
  line-height: 1.55;
  font-size: 0.98rem;
  color: var(--ink, #2a2926);
  border-bottom: 1px dotted rgba(42, 41, 38, 0.15);
}
.fuentes-citadas li:last-child {
  border-bottom: none;
}
.fuentes-citadas li em {
  color: var(--indigo, #2d3f5f);
}
.fuentes-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(42, 41, 38, 0.7);
  border-top: 1px solid rgba(42, 41, 38, 0.1);
  padding-top: 0.75rem;
}

/* See also link block */
.see-also {
  max-width: 720px;
  margin: 2rem auto;
  padding: 1rem 0;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: rgba(42, 41, 38, 0.8);
  border-top: 1px solid rgba(42, 41, 38, 0.15);
  border-bottom: 1px solid rgba(42, 41, 38, 0.15);
}
.see-also a {
  color: var(--terracotta, #c47750);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.see-also a:hover {
  border-bottom-style: solid;
}

/* Inline "See more" pointer — used in protagonistas.html El Catorce card */
.see-more {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(45, 63, 95, 0.05);
  border-left: 2px solid var(--indigo, #2d3f5f);
  font-family: 'Playfair Display', Georgia, serif;
}
.see-more a {
  color: var(--indigo, #2d3f5f);
  text-decoration: none;
}
.see-more a:hover {
  text-decoration: underline;
}

/* Note-box — inline callout used in martires.html El Catorce clarification */
.note-box {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: rgba(217, 177, 128, 0.12);
  border-left: 4px solid var(--ochre, #d9b180);
  border-radius: 2px;
}
.note-box h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0;
  color: var(--indigo-deep, #1f2a42);
}
.note-box p {
  margin: 0;
  font-family: 'EB Garamond', Georgia, serif;
  line-height: 1.7;
}

/* Corrido blockquote — used in el-catorce.html */
blockquote.corrido {
  margin: 2rem auto;
  max-width: 560px;
  padding: 1.5rem 2rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--indigo-deep, #1f2a42);
  background: rgba(217, 177, 128, 0.1);
  border-left: 3px solid var(--terracotta, #c47750);
  text-align: center;
}

/* Analysis section / "Mi lectura" paragraph */
.prose.analysis {
  background: rgba(45, 63, 95, 0.03);
  padding: 2rem 0;
}
.prose .interpretation {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: rgba(196, 119, 80, 0.07);
  border-left: 3px solid var(--terracotta, #c47750);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Saint blocks — martyr biography cards */
.saint {
  max-width: 720px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--terracotta, #c47750);
  background: rgba(255, 253, 248, 0.6);
}
.saint.note {
  border-left-color: var(--indigo, #2d3f5f);
  background: rgba(45, 63, 95, 0.04);
}
.saint.highlight {
  border-left-color: var(--ochre, #d9b180);
  border-left-width: 5px;
  background: rgba(217, 177, 128, 0.08);
  padding: 2rem;
}
.saint-meta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(42, 41, 38, 0.55);
  margin-bottom: 0.5rem;
}
.saint h3 {
  font-family: 'Abril Fatface', 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0.25rem 0 0.5rem 0;
  color: var(--indigo-deep, #1f2a42);
}
.saint-date {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  color: rgba(42, 41, 38, 0.7);
  margin: 0 0 0.75rem 0;
}
.saint p:not(.saint-date) {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink, #2a2926);
}

/* Causas list */
.causas-list {
  max-width: 720px;
  margin: 1.5rem auto;
  padding-left: 1.5rem;
}
.causas-list li {
  margin-bottom: 0.9rem;
  font-family: 'EB Garamond', Georgia, serif;
  line-height: 1.65;
}

/* Figure page body tweak — el-catorce.html and padre-pro.html */
body.figure-page main.chapter {
  padding-bottom: 3rem;
}

/* Pull-quote — used in martires.html hero */
blockquote.pull-quote {
  max-width: 640px;
  margin: 2.5rem auto;
  padding: 1.5rem 2rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--indigo-deep, #1f2a42);
  border-left: 4px solid var(--terracotta, #c47750);
  border-right: 1px solid rgba(196, 119, 80, 0.2);
  background: rgba(217, 177, 128, 0.08);
}
blockquote.pull-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-style: normal;
  color: rgba(42, 41, 38, 0.7);
}

/* Divider */
.divider {
  text-align: center;
  font-size: 1.2rem;
  color: var(--terracotta, #c47750);
  margin: 3rem 0;
  letter-spacing: 0.5em;
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .fuentes-citadas, .saint, blockquote.pull-quote, .note-box {
    margin-left: 1rem;
    margin-right: 1rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .saint h3 {
    font-size: 1.4rem;
  }
}


/* ============================================================
   WAVE 4B ADDITIONS · append to existing assets/style.css
   (after the WAVE 4 ADDITIONS block)
   ============================================================ */

/* Article grid — constitutional articles in antecedentes.html */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 2rem auto;
}
.article-card {
  padding: 1.5rem;
  background: rgba(45, 63, 95, 0.04);
  border-left: 3px solid var(--indigo, #2d3f5f);
  border-radius: 2px;
}
.article-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo, #2d3f5f);
  margin-bottom: 0.6rem;
}
.article-card p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
  color: var(--ink, #2a2926);
}

/* Organizational list — structured list with colored bullet hierarchy */
.org-list, .force-list, .peoples-list, .consequences-list, .penalty-list, .causas-list {
  max-width: 720px;
  margin: 1.5rem auto;
  padding-left: 1.75rem;
  list-style: none;
}
.org-list li, .force-list li, .peoples-list li, .consequences-list li, .penalty-list li {
  position: relative;
  margin-bottom: 0.85rem;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.65;
  padding-left: 0.5rem;
}
.org-list li::before, .force-list li::before, .peoples-list li::before,
.consequences-list li::before, .penalty-list li::before {
  content: "✦";
  position: absolute;
  left: -1.25rem;
  top: 0.1rem;
  color: var(--terracotta, #c47750);
  font-size: 0.85rem;
}

/* Battle cards — per-battle detailed narratives */
.battle {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0;
  background: rgba(255, 253, 248, 0.7);
  border-left: 4px solid var(--terracotta, #c47750);
  border-radius: 2px;
  overflow: hidden;
}
.battle.cristero { border-left-color: var(--terracotta, #c47750); }
.battle.federal { border-left-color: var(--indigo, #2d3f5f); }
.battle.mixed { border-left-color: var(--ochre, #d9b180); }

.battle-header {
  padding: 1.5rem 2rem 0.5rem;
  background: rgba(196, 119, 80, 0.04);
}
.battle.federal .battle-header { background: rgba(45, 63, 95, 0.04); }
.battle.mixed .battle-header { background: rgba(217, 177, 128, 0.08); }

.battle-number {
  display: inline-block;
  font-family: 'Abril Fatface', 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--terracotta, #c47750);
  margin-right: 1rem;
  vertical-align: middle;
  opacity: 0.4;
}
.battle.federal .battle-number { color: var(--indigo, #2d3f5f); }
.battle.mixed .battle-number { color: var(--ochre, #d9b180); }

.battle-outcome {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta, #c47750);
  padding: 0.25rem 0.65rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  vertical-align: middle;
}
.battle.federal .battle-outcome { color: var(--indigo, #2d3f5f); }
.battle.mixed .battle-outcome { color: var(--ochre-deep, #a68959); }

.battle h3 {
  font-family: 'Abril Fatface', 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0.5rem 0 0.25rem 0;
  color: var(--indigo-deep, #1f2a42);
}
.battle-date {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(42, 41, 38, 0.7);
  margin: 0 0 1rem 0;
}

.battle-forces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 2rem;
  border-bottom: 1px dotted rgba(42, 41, 38, 0.15);
}
.force {
  padding: 1rem;
  border-radius: 2px;
}
.force.cristero-force {
  background: rgba(196, 119, 80, 0.07);
  border-left: 2px solid var(--terracotta, #c47750);
}
.force.federal-force {
  background: rgba(45, 63, 95, 0.05);
  border-left: 2px solid var(--indigo, #2d3f5f);
}
.force h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  color: var(--indigo-deep, #1f2a42);
}
.force p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  color: var(--ink, #2a2926);
}
.force a {
  color: var(--terracotta, #c47750);
}

.battle-narrative {
  padding: 1rem 2rem 2rem;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.7;
}
.battle-narrative p {
  margin: 0.75rem 0;
}

/* Legend for battle outcomes */
.legend {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 720px;
  margin: 1rem auto 2rem;
  padding: 0;
}
.legend-tag {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.legend-tag.cristero { color: var(--terracotta, #c47750); }
.legend-tag.federal { color: var(--indigo, #2d3f5f); }
.legend-tag.mixed { color: var(--ochre-deep, #a68959); }

/* Responsive */
@media (max-width: 700px) {
  .article-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  .battle {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .battle-header, .battle-narrative {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .battle-forces {
    grid-template-columns: 1fr;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .battle h3 {
    font-size: 1.4rem;
  }
  .battle-number {
    font-size: 2rem;
  }
}


/* ============================================================
   WAVE 5A ADDITIONS · append to existing assets/style.css
   (after the WAVE 4B ADDITIONS block)
   ============================================================ */

/* ============ HOMEPAGE: centenary countdown block ============ */

.centenary-block {
  margin: 3rem 0;
  padding: 2.5rem 0;
  background: linear-gradient(
    to bottom,
    rgba(217, 177, 128, 0.06) 0%,
    rgba(196, 119, 80, 0.04) 100%
  );
  border-top: 1px solid rgba(196, 119, 80, 0.2);
  border-bottom: 1px solid rgba(196, 119, 80, 0.2);
}

.centenary-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.centenary-kicker {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta, #c47750);
  margin-bottom: 0.5rem;
}

.centenary-title {
  font-family: 'Abril Fatface', 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  margin: 0 0 2rem 0;
  color: var(--indigo-deep, #1f2a42);
  letter-spacing: 0.01em;
}

/* Countdown rotator */
.countdown-rotator {
  position: relative;
  min-height: 180px;
  margin: 0 auto 1rem;
  max-width: 600px;
}

.countdown-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity 800ms ease-in-out;
  pointer-events: none;
}

.countdown-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.countdown-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(42, 41, 38, 0.7);
  margin-bottom: 0.5rem;
}

.countdown-numbers {
  font-family: 'Abril Fatface', 'Playfair Display', Georgia, serif;
  color: var(--terracotta, #c47750);
  line-height: 1;
  margin: 0.5rem 0;
}

.countdown-days {
  font-size: clamp(3rem, 8vw, 5rem);
  display: inline-block;
  letter-spacing: -0.02em;
}

.countdown-unit {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--indigo-deep, #1f2a42);
  vertical-align: baseline;
}

.countdown-meta {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  color: rgba(42, 41, 38, 0.85);
  margin: 0.75rem 0;
}

.countdown-description {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(42, 41, 38, 0.6);
  max-width: 500px;
  margin: 0.5rem auto 0;
}

/* Dots */
.countdown-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0 2.5rem;
}

.countdown-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--terracotta, #c47750);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.countdown-dot.active {
  background: var(--terracotta, #c47750);
  transform: scale(1.2);
}

.countdown-dot:hover {
  background: rgba(196, 119, 80, 0.4);
}

/* ============ HOMEPAGE: upcoming events block ============ */

.upcoming-events {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dotted rgba(42, 41, 38, 0.15);
}

.upcoming-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--indigo-deep, #1f2a42);
  margin: 0 0 1.5rem 0;
}

.events-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.events-loading,
.events-empty,
.events-error {
  text-align: center;
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  color: rgba(42, 41, 38, 0.6);
  padding: 2rem 1rem;
}

.events-error {
  color: var(--terracotta, #c47750);
}

.event-card {
  padding: 1.25rem;
  background: rgba(255, 253, 248, 0.9);
  border-left: 3px solid var(--indigo, #2d3f5f);
  border-radius: 2px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.event-card.featured {
  border-left-color: var(--terracotta, #c47750);
  background: rgba(196, 119, 80, 0.05);
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.event-when {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta, #c47750);
  margin-bottom: 0.4rem;
}

.event-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--indigo-deep, #1f2a42);
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.event-meta {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.9rem;
  color: rgba(42, 41, 38, 0.65);
  margin-bottom: 0.6rem;
}

.event-desc {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink, #2a2926);
  margin: 0;
}

.events-footer {
  text-align: center;
  margin: 1.5rem 0 0;
}

.events-link {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--terracotta, #c47750);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  font-size: 1.05rem;
}

.events-link:hover {
  border-bottom-style: solid;
}

/* ============ CALENDARIO PAGE ============ */

.calendario-controls {
  max-width: 960px;
  margin: 2rem auto 1rem;
  padding: 1.5rem 2rem;
  background: rgba(45, 63, 95, 0.04);
  border-radius: 2px;
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-deep, #1f2a42);
  margin-right: 0.5rem;
}

.filter-btn {
  padding: 0.4rem 0.9rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  background: transparent;
  color: rgba(42, 41, 38, 0.7);
  border: 1px solid rgba(42, 41, 38, 0.2);
  border-radius: 2px;
  cursor: pointer;
  transition: all 150ms ease;
}

.filter-btn:hover {
  color: var(--terracotta, #c47750);
  border-color: var(--terracotta, #c47750);
}

.filter-btn.active {
  background: var(--terracotta, #c47750);
  color: #fff;
  border-color: var(--terracotta, #c47750);
}

/* Calendario list */
.calendario-list {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.year-header {
  font-family: 'Abril Fatface', 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--terracotta, #c47750);
  opacity: 0.5;
  margin: 3rem 0 1.5rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(196, 119, 80, 0.2);
  padding-bottom: 0.5rem;
}

.year-header:first-child {
  margin-top: 0;
}

.calendar-event {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 253, 248, 0.7);
  border-left: 3px solid var(--indigo, #2d3f5f);
  border-radius: 2px;
}

.calendar-event.featured {
  border-left-color: var(--terracotta, #c47750);
  border-left-width: 4px;
  background: rgba(196, 119, 80, 0.05);
}

.calendar-event.type-hito {
  border-left-color: var(--terracotta, #c47750);
}

.calendar-event.type-peregrinacion {
  border-left-color: var(--ochre, #d9b180);
}

.calendar-event.type-liturgico {
  border-left-color: var(--indigo, #2d3f5f);
}

.calendar-event.type-conmemoracion {
  border-left-color: var(--indigo-deep, #1f2a42);
}

.event-marker {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  padding: 0.5rem 0;
  border-right: 1px dotted rgba(42, 41, 38, 0.15);
}

.event-day {
  font-family: 'Abril Fatface', 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--terracotta, #c47750);
}

.event-month {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--indigo-deep, #1f2a42);
  margin-top: 0.25rem;
}

.event-body {
  flex: 1;
  min-width: 0;
}

.event-type-tag {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta, #c47750);
  padding: 0.2rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.calendar-event .event-title {
  font-size: 1.3rem;
  margin: 0 0 0.4rem 0;
}

.calendar-event .event-meta {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.calendar-event .event-desc {
  font-size: 1rem;
  line-height: 1.65;
}

.event-org {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
  color: rgba(42, 41, 38, 0.6);
  margin-top: 0.75rem;
}

.event-url {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  color: var(--terracotta, #c47750);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.event-url:hover {
  border-bottom-style: solid;
}

/* Responsive */
@media (max-width: 700px) {
  .centenary-inner {
    padding: 0 1rem;
  }
  .countdown-rotator {
    min-height: 220px;
  }
  .events-list {
    grid-template-columns: 1fr;
  }
  .calendario-controls {
    padding: 1rem;
  }
  .filter-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
  .calendar-event {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
  }
  .event-marker {
    width: auto;
    padding: 0;
    border-right: none;
    border-bottom: 1px dotted rgba(42, 41, 38, 0.15);
    padding-bottom: 0.5rem;
    text-align: left;
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
  }
  .event-day {
    font-size: 1.8rem;
  }
  .year-header {
    font-size: 2.2rem;
  }
}


/* ============================================================
   WAVE 4D ADDITIONS · chapter-page template coverage (v2 — clean)
   Pure append. Does NOT modify existing rules. Gives the new
   class names (chapter-nav, masthead wrapper, masthead-inner,
   logo/logo-art, chapter-hero, breadcrumbs, dek, lead,
   footer-brand/nav/bottom, etc.) the same visual voice as
   the old template.
   ============================================================ */

body.chapter-page { /* hook — no visual effect */ }

/* ---- chapter-nav: mirror of nav.primary ---- */
nav.chapter-nav {
  border-bottom: 1px solid var(--line);
  background: var(--bone);
  padding: 0.4rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
nav.chapter-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}
nav.chapter-nav a {
  display: block;
  padding: 0.55rem 0.95rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
}
nav.chapter-nav a:hover,
nav.chapter-nav a.current {
  color: var(--terracotta);
  background: rgba(177,77,42,0.07);
}
nav.chapter-nav li + li::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--line);
  vertical-align: middle;
  margin-right: -1px;
}

/* ---- <header class="masthead"> wrapper ---- */
header.masthead {
  border-bottom: 2px solid var(--ink);
  padding: 1rem 2rem 0.7rem;
  background: var(--bone);
  position: relative;
  z-index: 10;
}
.masthead-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}
header.masthead .logo {
  font-family: 'Abril Fatface', Georgia, serif;
  font-size: 1.7rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
header.masthead .logo-art { color: var(--terracotta); }

.masthead-meta {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

/* ---- breadcrumbs ---- */
.breadcrumbs {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.9rem 2rem 0;
}
.breadcrumbs a {
  color: var(--terracotta-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.breadcrumbs a:hover { border-bottom-color: var(--terracotta); }

/* ---- chapter-hero (lighter hero for interior pages) ---- */
.chapter-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 2.5rem;
  border-bottom: 1px solid var(--line);
}
.chapter-hero .kicker { color: var(--terracotta); margin-bottom: 0.8rem; }
.chapter-hero h1 {
  font-family: 'Abril Fatface', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

/* ---- lead + dek paragraphs (used in chapter-hero and elsewhere) ---- */
.dek {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 62ch;
}
.lead {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 2rem;
  max-width: 62ch;
}

/* ---- footer sections (chapter-template) ---- */
.footer-brand h3 {
  font-family: 'Abril Fatface', Georgia, serif;
  color: var(--bone);
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}
.footer-brand p {
  color: var(--bone-soft);
  max-width: 45ch;
}
.footer-brand .footer-note {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sand);
  margin-top: 1.3rem;
  line-height: 1.6;
}
.footer-nav h4 {
  font-family: 'Abril Fatface', Georgia, serif;
  color: var(--ochre);
  margin-bottom: 1rem;
  font-size: 1.35rem;
}
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.5rem; font-size: 0.94rem; }
.footer-bottom {
  max-width: 1400px;
  margin: 2.2rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(244,239,228,0.15);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  text-align: center;
}

/* ---- page-specific bits ---- */
.portrait {
  max-width: 360px;
  margin: 0 auto 2rem;
  border: 1px solid rgba(26,23,20,0.3);
  padding: 0.6rem;
  background: var(--bone);
  box-shadow: 0 3px 22px rgba(0,0,0,0.1);
}
.portrait img {
  width: 100%;
  display: block;
  filter: sepia(0.08) contrast(1.04);
}
.role {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--terracotta);
  margin-top: 0.3rem;
}
.video-embeds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.6rem;
  margin: 2rem 0;
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--ink);
  border: 1px solid var(--ink);
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 0.6rem 0.3rem 0;
  font-style: italic;
}

@media (max-width: 640px) {
  header.masthead { padding: 0.9rem 1.2rem 0.6rem; }
  nav.chapter-nav a { padding: 0.5rem 0.6rem; font-size: 0.68rem; letter-spacing: 0.1em; }
  .breadcrumbs { padding: 0.8rem 1.2rem 0; }
  .chapter-hero { padding: 2rem 1.2rem; }
}


/* ============ SITE SEARCH (appended 2026-04-19) ============ */
.search-trigger {
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.4rem 0.9rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.7rem;
}
.search-trigger:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.search-trigger svg { width: 14px; height: 14px; fill: currentColor; }
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(20,16,12,0.82);
  display: none; z-index: 200;
  padding: 10vh 1rem 2rem;
  overflow-y: auto;
}
.search-overlay.active { display: block; }
.search-box {
  max-width: 640px; margin: 0 auto;
  background: var(--bone);
  padding: 1.8rem 2rem 2.2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  position: relative;
}
.search-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: transparent; color: var(--bone);
  border: 1px solid rgba(245,240,230,0.3);
  padding: 0.4rem 0.9rem;
  font-family: inherit; font-size: 0.8rem;
  cursor: pointer; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.search-input {
  width: 100%; padding: 0.9rem 1.1rem;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.2rem;
  border: 0; border-bottom: 2px solid var(--ink);
  background: transparent; color: var(--ink);
  outline: none; box-sizing: border-box;
}
.search-hint {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-soft);
  margin-top: 0.8rem; text-align: right;
}
.search-results { margin-top: 1.5rem; max-height: 55vh; overflow-y: auto; }
.search-results-empty {
  padding: 2rem 1rem; text-align: center;
  color: var(--ink-soft); font-style: italic;
  font-family: 'EB Garamond', Georgia, serif;
}
.search-result {
  display: block; padding: 1rem 0.3rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: background 0.15s;
}
.search-result:hover {
  background: var(--bone-soft);
  padding-left: 0.8rem;
}
.search-result-title {
  font-family: 'Abril Fatface', Georgia, serif;
  font-weight: 400; font-size: 1.15rem;
  color: var(--ink); margin-bottom: 0.2rem;
}
.search-result-kicker {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--terracotta);
  font-weight: 700; margin-bottom: 0.35rem;
}
.search-result-snippet {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.95rem; color: var(--ink-soft);
  line-height: 1.45;
}
.search-result-snippet mark {
  background: var(--ochre); color: var(--ink);
  padding: 0 0.15em; font-weight: 600;
}
