/* ========================================================================== 
   Thanks to Jesus — core stylesheet
   A warm, reverent design system. Edit the tokens below to reskin the site.
   ========================================================================== */

/* Local copies of the Google Fonts typefaces used by the original design.
   Both families are distributed under the SIL Open Font License; the license
   files are stored beside the fonts in assets/fonts. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-latin-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-normal.woff2") format("woff2");
}

:root {
  /* Palette — parchment, deep scripture navy, and candle gold */
  --color-bg: #fbf7ef;          /* parchment */
  --color-surface: #ffffff;
  --color-ink: #2b2620;         /* near-black warm ink */
  --color-muted: #6b6459;
  --color-navy: #1f2a44;        /* deep reverent navy */
  --color-navy-soft: #33415f;
  --color-gold: #b8892b;        /* candle / gilt */
  --color-gold-soft: #d9b866;
  --color-burgundy: #7a2e2e;    /* accent for calls to action */
  --color-line: #ece2cf;        /* hairline on parchment */

  /* Sunrise / radiance — the "sun shining on you" palette */
  --sun-core: #fff6df;          /* the bright center of the light */
  --sun-glow: #ffe6ad;          /* warm amber halo */
  --sun-ray: #ffcf7a;           /* golden ray tint */
  --dawn-top: #fffdf8;          /* near-white warm sky at the very top */
  --dawn-mid: #fdf3e0;          /* soft golden cream */
  --dawn-low: #f7ead2;          /* warm horizon */

  /* Type */
  --font-serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --maxw: 1080px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(120, 90, 30, 0.09);
  --shadow-lg: 0 24px 60px rgba(120, 82, 24, 0.16);
  --glow-gold: 0 0 40px rgba(216, 168, 90, 0.45);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* A soft sunlit wash that stays with you as you scroll */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(255, 214, 150, 0.30), transparent 60%),
    radial-gradient(900px 700px at 88% 4%, rgba(255, 229, 178, 0.20), transparent 55%);
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--color-burgundy);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}
a:hover { text-decoration-thickness: 0.13em; }
.brand, .nav-links a, .subnav a, .btn, .jump a, .skip-link {
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-navy);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.4rem; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: 5rem 0; }
.section--tight { padding: 3rem 0; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}
.lead { font-size: 1.2rem; color: var(--color-muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  position: relative;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.82rem 1.9rem;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
/* A second gold rule floating just outside the plate — the same double-rule
   idea as the museum frames around the artwork, so a button reads as an
   illuminated panel rather than a web control. */
.btn::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(184, 137, 43, 0.55);
  border-radius: 5px;
  pointer-events: none;
  transition: border-color 0.2s ease, opacity 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
/* The frame occupies the focus ring's offset; hide it so the indicator is unambiguous. */
.btn:focus-visible::after { opacity: 0; }
.btn--primary { background: var(--color-burgundy); color: #fdf3e0; border-color: #5e2020; }
.btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--color-navy);
  border-color: var(--color-gold);
  box-shadow: inset 0 0 0 1px rgba(184, 137, 43, 0.28);
}
.btn--ghost::after { border-color: rgba(184, 137, 43, 0.45); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.82); border-color: var(--color-gold-deep); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, 0.9);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--color-navy); }
.brand:hover { text-decoration: none; }
.brand .mark { color: var(--color-gold); font-size: 1.5rem; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--color-ink); font-weight: 500; font-size: 0.98rem; }
.nav-links a:hover { color: var(--color-gold); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--color-navy); }

/* ---------- Hero — sunrise that blooms on load ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 7rem 0 5.5rem;
  background: linear-gradient(180deg, var(--dawn-top) 0%, var(--dawn-mid) 55%, var(--dawn-low) 100%);
  overflow: hidden;
  isolation: isolate;
}
/* Rotating god-rays, masked to a soft circle so the edges melt away */
.hero::before {
  content: "";
  position: absolute;
  top: -55%; left: 50%;
  width: 150vw; height: 150vw;
  max-width: 1500px; max-height: 1500px;
  transform: translateX(-50%);
  z-index: -2;
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    rgba(255, 207, 122, 0.00) 0deg,
    rgba(255, 207, 122, 0.16) 3deg,
    rgba(255, 207, 122, 0.00) 8deg
  );
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,0.6) 30%, transparent 60%);
          mask: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,0.6) 30%, transparent 60%);
  opacity: 0;
  animation: rays-in 2.4s ease-out 0.2s forwards, rays-spin 140s linear infinite;
}
/* The sun bloom itself */
.hero::after {
  content: "";
  position: absolute;
  top: -14%; left: 50%;
  width: 900px; height: 900px;
  max-width: 120vw;
  transform: translateX(-50%) scale(0.7);
  z-index: -1;
  background: radial-gradient(circle at 50% 50%,
    var(--sun-core) 0%,
    var(--sun-glow) 22%,
    rgba(255, 214, 150, 0.35) 42%,
    transparent 68%);
  opacity: 0;
  animation: sunrise 2.6s cubic-bezier(.2,.7,.2,1) 0.1s forwards;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { max-width: 17ch; margin-inline: auto; }
.hero .lead { max-width: 46ch; margin: 1.2rem auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
/* Gentle staggered rise for the hero copy */
.hero .eyebrow { animation: rise-in 0.9s ease-out 0.35s both; }
.hero h1 { animation: rise-in 1s ease-out 0.5s both; }
.hero .lead { animation: rise-in 1s ease-out 0.7s both; }
.hero-actions { animation: rise-in 1s ease-out 0.9s both; }

@keyframes sunrise {
  0%   { opacity: 0; transform: translateX(-50%) scale(0.7); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}
@keyframes rays-in  { to { opacity: 1; } }
@keyframes rays-spin { to { transform: translateX(-50%) rotate(360deg); } }
@keyframes rise-in {
  0%   { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- Verse of the day card ---------- */
.verse-card {
  background: var(--color-navy);
  color: #f4eedd;
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.verse-card .quote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.3;
  margin: 0 auto 1rem;
  max-width: 30ch;
}
.verse-card .ref { color: var(--color-gold-soft); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; font-weight: 600; }
.verse-card .verse-context { max-width: 62ch; margin: 1rem auto 0; color: #c8cfdd; font-size: 0.92rem; line-height: 1.65; }
.small { color: var(--color-muted); font-size: 0.92rem; line-height: 1.65; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--color-muted); margin: 0 0 1rem; }

/* ---------- Scripture block ---------- */
.scripture {
  border-left: 3px solid var(--color-gold);
  padding: 0.4rem 0 0.4rem 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--color-navy-soft);
  margin: 2rem 0;
}
.scripture cite { display: block; font-style: normal; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-gold); margin-top: 0.6rem; }

/* ---------- Prose ---------- */
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.3rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: #cfd6e4;
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}
.site-footer a { color: var(--color-gold-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h4, .site-footer .footer-heading { color: #fff; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; font-size: 0.85rem; color: #9aa4ba; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--color-bg); border-bottom: 1px solid var(--color-line);
    padding: 1rem 1.25rem; gap: 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* (Reduced-motion support is consolidated at the end of this file.) */

/* ==========================================================================
   Content components (Phase 1) — timeline, "in plain words", names, etc.
   ========================================================================== */

/* Alternating section background for rhythm on long pages */
.section--alt { background: linear-gradient(180deg, #f6efe0 0%, #f3ead7 100%); }
.section--navy { background: var(--color-navy); color: #e9e3d4; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: var(--color-gold-soft); }
.section--navy .lead { color: #c8cfdd; }

/* Page header (lighter than the home hero) */
.page-head { text-align: center; padding: 4.5rem 0 2.5rem;
  background: radial-gradient(1000px 420px at 50% -20%, rgba(217,184,102,0.22), transparent 70%); }
.page-head h1 { max-width: 20ch; margin-inline: auto; }
.page-head .lead { max-width: 52ch; margin: 1rem auto 0; }

/* Breadcrumb / back link */
.crumb { font-size: 0.85rem; color: var(--color-muted); letter-spacing: 0.04em; }
.crumb a { color: var(--color-muted); }
.crumb a:hover { color: var(--color-gold); text-decoration: none; }

/* --- Signature component: "In plain words" --- */
.teaching {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 1.5rem 0;
}
.teaching__verse {
  padding: 1.6rem 1.8rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--color-navy);
  border-left: 4px solid var(--color-gold);
  background: linear-gradient(180deg, #fffdf8, #fbf7ef);
}
.teaching__verse .ref {
  display: block; margin-top: 0.6rem; font-style: normal;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-gold);
}
.teaching__plain { padding: 1.4rem 1.8rem; }
.teaching__plain .label {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-burgundy);
  margin-bottom: 0.5rem;
}
.teaching__plain p { margin: 0; color: var(--color-ink); font-size: 1.05rem; }
.teaching__title { font-family: var(--font-serif); color: var(--color-navy); font-size: 1.3rem; margin: 0 0 0.2rem; padding: 1.2rem 1.8rem 0; }

/* --- Timeline (His Life) --- */
.timeline { position: relative; max-width: 760px; margin: 2rem auto 0; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--color-gold-soft), var(--color-line)); }
.tl-item { position: relative; padding: 0 0 2rem 1.8rem; }
.tl-item::before { content: "✦"; position: absolute; left: -1.55rem; top: 0; color: var(--color-gold); font-size: 0.9rem; background: var(--color-bg); line-height: 1; }
.tl-item h3 { margin-bottom: 0.25rem; }
.tl-item .when { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-gold); }
.tl-item p { color: var(--color-muted); margin: 0.3rem 0 0; }
.tl-item .ref-tag { font-size: 0.8rem; color: var(--color-navy-soft); }

/* --- Names of Jesus grid --- */
.names-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.name-card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); }
.name-card h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.name-card .ref { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-gold); }
.name-card p { color: var(--color-muted); margin: 0.5rem 0 0; font-size: 0.98rem; }

/* --- Callout --- */
.callout { background: #fff; border: 1px solid var(--color-line); border-top: 3px solid var(--color-gold); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow); margin: 2rem 0; }
.callout h3 { margin-bottom: 0.4rem; }
.callout p:last-child { margin-bottom: 0; }

/* --- On this page (jump nav) --- */
.jump { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.5rem; }
.jump a { font-size: 0.9rem; padding: 0.4rem 1rem; border: 1px solid var(--color-line); border-radius: 999px; color: var(--color-navy); background: #fff; }
.jump a:hover { border-color: var(--color-gold); color: var(--color-gold); text-decoration: none; }

/* Dropdown nav (for the growing menu) */
.has-sub { position: relative; }
.has-sub > a::after { content: " ▾"; font-size: 0.7em; color: var(--color-gold); }
.subnav { position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; border: 1px solid var(--color-line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 0.5rem; list-style: none; margin: 0.4rem 0 0; display: none; }
.subnav li { display: block; }
.subnav a { display: block; padding: 0.5rem 0.8rem; border-radius: 7px; font-size: 0.95rem; }
.subnav a:hover { background: var(--color-bg); color: var(--color-gold); text-decoration: none; }
.has-sub:hover .subnav, .has-sub:focus-within .subnav { display: block; }

@media (max-width: 800px) {
  .subnav { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 1rem; margin: 0; }
  .has-sub > a::after { content: ""; }
  .names-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reference components (Phase 2) — tables, translation spectrum, book grid
   ========================================================================== */

/* Responsive data table */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--color-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.table-wrap:focus-visible { outline-offset: 4px; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.98rem; }
.data-table th, .data-table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.data-table thead th { background: var(--color-navy); color: #fff; font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: #fbf7ef; }
.data-table .abbr { font-weight: 700; color: var(--color-navy); white-space: nowrap; }
.data-table .pd { color: var(--color-burgundy); font-weight: 600; font-size: 0.85rem; }

/* Reference tables on narrow phones: let the label column wrap and tighten
   cells so rows read as text, not blank space (the scroll region remains). */
@media (max-width: 640px) {
  .data-table { font-size: 0.9rem; }
  .data-table th, .data-table td { padding: 0.55rem 0.65rem; }
  .data-table .abbr, .data-table thead th { white-space: normal; }
}

/* Translation spectrum */
.spectrum { margin: 2rem 0; }
.spectrum__bar { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #1f2a44 0%, #b8892b 50%, #7a2e2e 100%); }
.spectrum__labels { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--color-muted); }
.spectrum__row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.spectrum__row span { font-size: 0.85rem; padding: 0.3rem 0.8rem; background: #fff; border: 1px solid var(--color-line); border-radius: 999px; }

/* Book / media grid */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.media-card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.media-card .kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-gold); }
.media-card h3 { font-size: 1.25rem; margin: 0.35rem 0 0.1rem; }
.media-card .by { font-size: 0.9rem; color: var(--color-navy-soft); margin-bottom: 0.6rem; }
.media-card p { color: var(--color-muted); margin: 0; font-size: 0.96rem; }
.media-card .tag { margin-top: 0.9rem; font-size: 0.78rem; color: var(--color-muted); }

/* Book structure columns */
.book-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.book-col { background: #fff; border: 1px solid var(--color-line); border-top: 3px solid var(--color-gold); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); }
.book-col h4 { font-family: var(--font-serif); color: var(--color-navy); font-size: 1.1rem; margin: 0 0 0.4rem; text-transform: none; letter-spacing: 0; }
.book-col ul { margin: 0; padding-left: 1.1rem; color: var(--color-muted); font-size: 0.92rem; line-height: 1.6; }

/* ==========================================================================
   Radiance & polish (Phase 3) — sunlit warmth, glow, and gentle motion
   ========================================================================== */

/* --- Header: warm glass that lifts on scroll --- */
.site-header {
  background: rgba(255, 251, 242, 0.82);
  border-bottom: 1px solid rgba(236, 226, 207, 0.7);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255, 251, 242, 0.94);
  box-shadow: 0 6px 24px rgba(120, 90, 30, 0.10);
}
.brand .mark { text-shadow: 0 0 18px rgba(216, 168, 90, 0.5); }

/* --- Buttons: gilded and glowing --- */
.btn--primary {
  background: linear-gradient(135deg, #8f3838 0%, #7a2e2e 100%);
  box-shadow: inset 0 0 0 1px rgba(217, 184, 102, 0.55), 0 6px 18px rgba(122, 46, 46, 0.26);
}
.btn--primary::after { border-color: rgba(184, 137, 43, 0.7); }
.btn--primary:hover {
  background: linear-gradient(135deg, #9c3f3f 0%, #853333 100%);
  box-shadow: inset 0 0 0 1px rgba(217, 184, 102, 0.85), 0 10px 26px rgba(122, 46, 46, 0.34);
}
.btn--primary:hover::after { border-color: var(--color-gold); }

/* On the navy "the Church speaks" grounds the ghost plate inverts. */
.section--navy .btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #f4eedd;
  border-color: var(--color-gold-soft);
  box-shadow: inset 0 0 0 1px rgba(217, 184, 102, 0.25);
}
.section--navy .btn--ghost::after { border-color: rgba(217, 184, 102, 0.5); }
.section--navy .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #e8cf94; }
.btn--gold {
  background: linear-gradient(135deg, var(--sun-ray) 0%, var(--color-gold) 100%);
  color: #4a3410; box-shadow: 0 8px 24px rgba(184, 137, 43, 0.35);
}
.btn--gold:hover { filter: brightness(1.05); box-shadow: 0 12px 32px rgba(184, 137, 43, 0.45); }

/* --- Hero buttons get a touch more presence --- */
.hero .btn { padding: 0.92rem 2.1rem; font-size: 1.08rem; }

/* --- Verse card: gilded frame with a soft inner light --- */
.verse-card {
  background:
    radial-gradient(600px 240px at 50% -20%, rgba(217,184,102,0.28), transparent 70%),
    linear-gradient(160deg, #26324f 0%, var(--color-navy) 60%, #1a2338 100%);
  border: 1px solid rgba(217, 184, 102, 0.35);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.06);
}
.verse-card::after {
  content: "✦";
  position: absolute; top: 1rem; right: 1.2rem;
  color: var(--color-gold-soft); opacity: 0.5; font-size: 1rem;
}

/* --- Cards: warmer, with a golden edge that ignites on hover --- */
.card, .name-card, .media-card, .book-col, .teaching, .callout {
  transition: transform 0.22s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover, .media-card:hover, .name-card:hover {
  border-color: rgba(216, 168, 90, 0.55);
  box-shadow: 0 20px 46px rgba(120, 82, 24, 0.16);
}
.card .icon { text-shadow: 0 4px 16px rgba(184,137,43,0.28); }

/* --- Section headings get a subtle sun accent above centered titles --- */
.section .center .eyebrow::before {
  content: "";
  display: block; width: 46px; height: 3px; margin: 0 auto 0.9rem;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* --- Scripture blockquotes: a warm gilded ground --- */
.scripture {
  background: linear-gradient(180deg, rgba(255,246,223,0.5), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.section--navy .scripture { background: linear-gradient(180deg, rgba(217,184,102,0.10), transparent); }

/* --- Scroll reveal: content rises gently into the light --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* A shuffle action requires JavaScript; do not expose an inert control. */
html:not(.js) [data-verse-shuffle] { display: none; }

/* --- Footer: a warm horizon line above it --- */
.site-footer {
  background: linear-gradient(180deg, #26324f 0%, var(--color-navy) 100%);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--color-gold), transparent) 1;
}

/* (Reduced-motion support is consolidated at the end of this file.) */

/* ==========================================================================
   Sacred imagery (Phase 4) — emblem, symbol icons, dove ornament, watermarks
   ========================================================================== */

/* Hidden SVG sprite host */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Hero emblem — descending dove over a cross */
.hero-emblem {
  width: 84px; height: auto; display: block; margin: 0 auto 0.85rem;
  filter: drop-shadow(0 0 24px rgba(216, 168, 90, 0.5));
  animation: rise-in 0.9s ease-out 0.2s both, emblem-glow 5s ease-in-out 1.1s infinite;
}
@keyframes emblem-glow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(216,168,90,0.38)); }
  50%      { filter: drop-shadow(0 0 40px rgba(230,185,110,0.72)); }
}

/* Card symbol icons */
.icon .sym { width: 46px; height: 46px; color: var(--color-gold);
  filter: drop-shadow(0 5px 14px rgba(184, 137, 43, 0.30)); }

/* Dove ornament divider */
.ornament { display: flex; align-items: center; justify-content: center; gap: 1.1rem;
  max-width: 440px; margin: 0.5rem auto 0; }
.ornament::before, .ornament::after { content: ""; height: 1px; flex: 1; }
.ornament::before { background: linear-gradient(90deg, transparent, rgba(184,137,43,0.6)); }
.ornament::after  { background: linear-gradient(90deg, rgba(184,137,43,0.6), transparent); }
.ornament .dove-mark { width: 40px; height: 34px; color: var(--color-gold);
  filter: drop-shadow(0 3px 10px rgba(184,137,43,0.25)); }
.section--navy .ornament .dove-mark { color: var(--color-gold-soft); }
.section--navy .ornament::before { background: linear-gradient(90deg, transparent, rgba(217,184,102,0.5)); }
.section--navy .ornament::after  { background: linear-gradient(90deg, rgba(217,184,102,0.5), transparent); }

/* Footer dove beside the brand */
.footer-dove { width: 26px; height: 22px; color: var(--color-gold-soft);
  vertical-align: middle; margin-left: 0.4rem; opacity: 0.85; }

/* Faint sacred watermark behind interior page headers */
.page-head { position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  width: 260px; height: 260px; opacity: 0.05; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 2h2v6h6v2h-6v12h-2V10H5V8h6z' fill='%23b8892b'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Faint watermark in navy sections */
.section--navy { position: relative; overflow: hidden; }
.section--navy::after {
  content: ""; position: absolute; left: -40px; bottom: -40px;
  width: 300px; height: 300px; opacity: 0.06; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 2h2v6h6v2h-6v12h-2V10H5V8h6z' fill='%23d9b866'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section--navy > .container { position: relative; z-index: 1; }

@media (max-width: 800px) { .page-head::after { display: none; } }

/* ==========================================================================
   Classical art & typography (Phase 5) — museum frames, drop caps, font pop
   ========================================================================== */

/* --- Typography pop --- */
::selection { background: rgba(217, 184, 102, 0.45); }
h1 { font-weight: 700; letter-spacing: -0.012em; }
h2 { font-weight: 700; letter-spacing: -0.008em; }
.brand { font-weight: 700; }
.eyebrow { letter-spacing: 0.2em; }
.page-head .lead, .hero .lead { font-size: 1.28rem; }
.page-head h1::after {
  content: ""; display: block; width: 84px; height: 3px;
  margin: 0.4em auto 0; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}
.teaching__verse { font-size: 1.42rem; }
.name-card h3 { font-size: 1.3rem; }

/* Illuminated drop cap — for the opening paragraph of a page */
.dropcap::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 3.6em;
  line-height: 0.82;
  padding: 0.06em 0.14em 0 0;
  color: var(--color-gold);
  text-shadow: 0 2px 14px rgba(184, 137, 43, 0.3);
}

/* --- Museum-framed artwork --- */
.art-figure { margin: 2.2rem auto; max-width: 560px; }
.art-figure--slim { max-width: 390px; }
.art-figure--wide { max-width: 640px; }
.art-frame {
  position: relative;
  background: linear-gradient(180deg, #fffdf8, #fbf4e4);
  padding: clamp(10px, 1.8vw, 16px);
  border: 1px solid #e3d4b2;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.art-frame::after {
  content: ""; position: absolute; inset: 7px;
  border: 1px solid rgba(184, 137, 43, 0.4);
  border-radius: 4px; pointer-events: none;
}
.art-frame picture { display: block; }
.art-frame img { width: 100%; display: block; border-radius: 3px; filter: sepia(0.04) saturate(0.97); }
.art-figure figcaption {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--color-muted);
  margin-top: 0.9rem;
  line-height: 1.55;
}
.art-figure figcaption .artist { font-style: normal; font-weight: 700; color: var(--color-navy); }
.art-figure figcaption .note { display: block; font-size: 0.92rem; margin-top: 0.35rem; }

/* Homepage art feature — painting beside its story */
.art-feature { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); gap: 3rem; align-items: center; }
.art-feature .art-figure { margin: 0; }
@media (max-width: 800px) {
  .art-feature { grid-template-columns: 1fr; gap: 2rem; }
  .dropcap::first-letter { font-size: 3em; }
}

/* ==========================================================================
   Audit fixes (Phase 6) — anchor offset, contrast, cosmetics, reduced motion
   ========================================================================== */

/* Jump targets land below the sticky header instead of underneath it */
[id] { scroll-margin-top: 96px; }

/* Deeper gold for small text — meets WCAG AA contrast on parchment */
:root { --color-gold-deep: #7d5b18; }
.eyebrow, .tl-item .when, .name-card .ref, .media-card .kicker,
.teaching__verse .ref, .scripture cite { color: var(--color-gold-deep); }
.section--navy .eyebrow { color: var(--color-gold-soft); }

/* Timeline star markers on the alt (gradient) background */
.section--alt .tl-item::before { background: #f5edda; }

/* Consolidated reduced-motion support: everything present, nothing animates */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero::before { opacity: 1 !important; transform: translateX(-50%) !important; }
  .hero::after { opacity: 1 !important; transform: translateX(-50%) scale(1) !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Fullness & crimson accents (Phase 7) — texture, two-tone rules, richness
   ========================================================================== */

/* Whisper-quiet cross-lattice textures (inline SVG, ~5% opacity) */
:root {
  --pattern-parchment: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14 10v8M10 14h8' stroke='%23b8892b' stroke-opacity='.055' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='2' cy='2' r='.9' fill='%23b8892b' fill-opacity='.045'/%3E%3Ccircle cx='26' cy='26' r='.9' fill='%23b8892b' fill-opacity='.045'/%3E%3C/svg%3E");
  --pattern-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M15 11v8M11 15h8' stroke='%23d9b866' stroke-opacity='.06' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='2' cy='2' r='.9' fill='%23d9b866' fill-opacity='.05'/%3E%3C/svg%3E");
}
body { background-image: var(--pattern-parchment); background-size: 28px 28px; }
.section--alt {
  background-image: var(--pattern-parchment), linear-gradient(180deg, #f6efe0 0%, #f3ead7 100%);
  background-size: 28px 28px, auto;
}
.page-head {
  background-image: radial-gradient(1000px 420px at 50% -20%, rgba(217,184,102,0.22), transparent 70%), var(--pattern-parchment);
  background-size: auto, 28px 28px;
}
.section--navy { background-image: var(--pattern-navy); background-size: 30px 30px; }
.site-footer {
  background-image: var(--pattern-navy), linear-gradient(180deg, #26324f 0%, #1f2a44 100%);
  background-size: 30px 30px, auto;
}

/* A gold-and-crimson horizon line beneath the hero */
.hero {
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, transparent 8%, var(--color-gold-soft) 32%, var(--color-burgundy) 50%, var(--color-gold-soft) 68%, transparent 92%) 1;
}

/* Two-tone sacred rules: gold descending into crimson */
.scripture { border-image: linear-gradient(180deg, var(--color-gold), var(--color-burgundy)) 1; }
.teaching__verse { border-image: linear-gradient(180deg, var(--color-gold), var(--color-burgundy)) 1; }
.timeline::before { background: linear-gradient(180deg, var(--color-gold-soft), var(--color-line) 55%, rgba(122, 46, 46, 0.45)); }
.section .center .eyebrow::before,
.page-head h1::after { background: linear-gradient(90deg, transparent, var(--color-gold) 35%, var(--color-burgundy) 50%, var(--color-gold) 65%, transparent); }
.site-footer { border-image: linear-gradient(90deg, transparent, var(--color-gold) 40%, var(--color-burgundy) 50%, var(--color-gold) 60%, transparent) 1; }
.ornament::before { background: linear-gradient(90deg, transparent, rgba(184, 137, 43, 0.55) 70%, rgba(122, 46, 46, 0.6)); }
.ornament::after  { background: linear-gradient(90deg, rgba(122, 46, 46, 0.6), rgba(184, 137, 43, 0.55) 30%, transparent); }

/* Cards: gilded ribbon crests and a faint cross watermark */
.name-card, .media-card { position: relative; }
.name-card::before, .media-card::before {
  content: ""; position: absolute; top: -1px; left: 1.1rem; right: 1.1rem; height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-burgundy));
  opacity: 0.75;
}
.card { position: relative; overflow: hidden; }
.card::after {
  content: "✝"; position: absolute; right: 0.5rem; bottom: -0.4rem;
  font-size: 3.4rem; line-height: 1; color: var(--color-gold);
  opacity: 0.06; pointer-events: none;
}

/* Red details in the small places */
.data-table thead th { border-bottom: 2px solid var(--color-burgundy); }
.jump a:hover { border-color: var(--color-burgundy); color: var(--color-burgundy); }

/* ==========================================================================
   Launch readiness (Phase 8) — accessible navigation, forms, and fallbacks
   ========================================================================== */

/* Utility and keyboard access */
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: #fff;
  color: var(--color-navy);
  box-shadow: 0 4px 18px rgba(31, 42, 68, 0.25);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--color-burgundy);
}
.btn, .nav-toggle, .subnav-toggle, .verse-card .refresh, .jump a {
  min-height: 44px;
}
.jump a { display: inline-flex; align-items: center; }

/* Text accents use the accessible, deeper gold. */
.nav-links a:hover, .subnav-toggle:hover, .crumb a:hover,
.btn--ghost:hover, .subnav a:hover { color: var(--color-gold-deep); }
.dropcap::first-letter { color: var(--color-gold-deep); }

/* Progressive-enhancement navigation. */
.nav-toggle {
  min-width: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.nav-toggle:hover { background: rgba(31, 42, 68, 0.07); }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav-links a[aria-current="page"] {
  color: var(--color-burgundy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.subnav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
}
.has-sub > a::after, .subnav-toggle::after {
  content: " ▾";
  font-size: 0.7em;
  color: var(--color-gold-deep);
}
.subnav-toggle[aria-expanded="true"]::after { content: " ▴"; }
.has-sub.has-current > .subnav-toggle { color: var(--color-burgundy); }
.subnav {
  top: 100%;
  right: 0;
  left: auto;
  width: max-content;
  max-width: calc(100vw - 1rem);
  max-height: calc(100vh - 5rem);
  margin-top: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.js .has-sub:not(.subnav-open) > .subnav { display: none; }
.js .has-sub.subnav-open > .subnav { display: block; }

/* Form and notice components. */
.form-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--color-ink);
  font-weight: 600;
}
.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #786f62;
  border-radius: 8px;
  background: #fff;
  color: var(--color-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
}
.form-control:hover { border-color: var(--color-navy-soft); }
.form-control:focus-visible {
  border-color: var(--color-burgundy);
  outline: 3px solid rgba(122, 46, 46, 0.28);
  outline-offset: 2px;
}
.status-message {
  margin: 1rem 0 0;
  color: var(--color-gold-deep);
  font-weight: 600;
}
.private-prayer .status-message { color: var(--color-gold-deep); }
.policy-list { padding-left: 1.25rem; }
.policy-list li { margin-bottom: 0.65rem; }
.notice {
  border-left: 4px solid var(--color-gold-deep);
  background: #fffdf8;
}
.notice--urgent { border-left-color: var(--color-burgundy); }
.notice--urgent h3 { color: var(--color-burgundy); }
.private-prayer:hover { transform: none; }

/* Keep important hero text visible from the first paint. */
@keyframes rise-in {
  0%   { opacity: 1; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero .eyebrow { animation-delay: 0s; }
.hero h1 { animation-delay: 0.04s; }
.hero .lead { animation-delay: 0.08s; }
.hero-actions { animation-delay: 0.12s; }

/* Prevent the narrow media-card grid from widening fold-phone layouts. */
.media-grid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }

@media (hover: none) {
  .card:hover, .media-card:hover, .name-card:hover {
    transform: none;
  }
}

@media (max-width: 800px) {
  .nav { flex-wrap: wrap; }

  /* No-JS fallback: show every destination in normal flow and let it scroll. */
  html:not(.js) .site-header { position: static; }
  .nav-toggle { display: none; }
  .nav-links {
    position: static;
    display: flex;
    flex: 1 0 100%;
    width: 100%;
    max-height: none;
    margin-top: 0.75rem;
    overflow: visible;
  }

  /* Enhanced menu: compact disclosure with its own short-viewport scroll. */
  .js .nav-toggle { display: inline-flex; }
  .js .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    margin-top: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 14px 28px rgba(31, 42, 68, 0.15);
  }
  .js .nav-links.open { display: flex; }
  .nav-links li, .has-sub { width: 100%; }
  .nav-links a, .subnav-toggle {
    width: 100%;
    min-height: 44px;
    padding: 0.45rem 0;
  }
  .subnav {
    position: static;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0 0 0 1rem;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }
  html:not(.js) .subnav { display: block; }
  .js .has-sub:not(.subnav-open) > .subnav { display: none; }
  .js .has-sub.subnav-open > .subnav { display: block; }
}

@media (forced-colors: active) {
  .btn, .nav-toggle, .subnav-toggle, .form-control, .callout {
    border: 1px solid ButtonText;
  }
  /* The decorative outer rule would double the system border. */
  .btn::after { display: none; }
}

@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Fine touches (Phase 10) — crimson keylines, corner flourishes, richer type
   ========================================================================== */

/* Crimson keyline floating around cards — the "stroke" */
.card, .name-card, .media-card, .book-col {
  outline: 1px solid rgba(122, 46, 46, 0.18);
  outline-offset: 4px;
}
.card:hover, .name-card:hover, .media-card:hover {
  outline-color: rgba(122, 46, 46, 0.4);
}
.verse-card { outline: 1px solid rgba(217, 184, 102, 0.28); outline-offset: 5px; }

/* Gold corner brackets on every framed artwork — museum fittings */
.art-frame::before {
  content: ""; position: absolute; inset: -9px; pointer-events: none;
  background:
    linear-gradient(var(--color-gold), var(--color-gold)) left 0 top 0 / 18px 2px no-repeat,
    linear-gradient(var(--color-gold), var(--color-gold)) left 0 top 0 / 2px 18px no-repeat,
    linear-gradient(var(--color-gold), var(--color-gold)) right 0 top 0 / 18px 2px no-repeat,
    linear-gradient(var(--color-gold), var(--color-gold)) right 0 top 0 / 2px 18px no-repeat,
    linear-gradient(var(--color-burgundy), var(--color-burgundy)) left 0 bottom 0 / 18px 2px no-repeat,
    linear-gradient(var(--color-burgundy), var(--color-burgundy)) left 0 bottom 0 / 2px 18px no-repeat,
    linear-gradient(var(--color-burgundy), var(--color-burgundy)) right 0 bottom 0 / 18px 2px no-repeat,
    linear-gradient(var(--color-burgundy), var(--color-burgundy)) right 0 bottom 0 / 2px 18px no-repeat;
  opacity: 0.65;
}

/* Crimson diamond studs on callout shoulders */
.callout { position: relative; }
.callout::before, .callout::after {
  content: ""; position: absolute; top: -4px; width: 7px; height: 7px;
  background: var(--color-burgundy); transform: rotate(45deg); opacity: 0.75;
}
.callout::before { left: 14px; }
.callout::after { right: 14px; }

/* A faint illuminated quotation mark behind teaching verses */
.teaching__verse { position: relative; }
.teaching__verse::before {
  content: "\201C"; position: absolute; top: -0.15em; left: 0.35rem;
  font-family: var(--font-serif); font-size: 4.6rem; line-height: 1;
  color: var(--color-gold); opacity: 0.16; pointer-events: none;
}

/* Richer voice: hero and page leads speak in the serif's italic */
.hero .lead, .page-head .lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.5;
}

/* Gilded thread under the brand mark */
.brand .mark { text-shadow: 0 0 14px rgba(216, 168, 90, 0.55); }

/* ========================================================================== 
   Illumination wave — decorative placement and responsive sizing
   ========================================================================== */

.page-head > .container { position: relative; z-index: 2; }
.ill-corner {
  position: absolute;
  top: 0;
  z-index: 1;
  width: clamp(64px, 9vw, 118px);
  pointer-events: none;
  opacity: 0.9;
}
.ill-corner--left { left: 0; }
.ill-corner--right { right: 0; transform: scaleX(-1); }

.ill-divider {
  width: min(100%, 520px);
  margin: 0.7rem auto 0;
  pointer-events: none;
}
.ill-divider--footer { margin: 0 auto 2rem; opacity: 0.72; }

.ill-title-angels {
  display: grid;
  grid-template-columns: clamp(48px, 7vw, 78px) minmax(0, auto) clamp(48px, 7vw, 78px);
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 2vw, 1.2rem);
}
.ill-title-angels h1 { margin-bottom: 0; }
.ill-angel { pointer-events: none; }
.ill-angel--title { width: 100%; }
.ill-angel--mirrored { transform: scaleX(-1); }
.ill-heading-with-angel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
.ill-heading-with-angel h2 { margin-bottom: 0; }
.ill-angel--home { width: clamp(52px, 8vw, 76px); flex: 0 0 auto; }

.ill-initial-panel {
  width: min(100% - 2.5rem, 940px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(132px, 18vw, 176px);
  gap: clamp(1.8rem, 5vw, 3.5rem);
  align-items: center;
}
.ill-initial-frame { width: 100%; }
.ill-initial-frame img { width: 100%; }

.ill-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(116px, 18vw, 168px);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
}
.ill-khachkar { width: 100%; pointer-events: none; }
.ill-frieze { width: min(100%, 640px); margin: 0 auto 1.35rem; pointer-events: none; }
.site-footer { position: relative; overflow: hidden; }
.site-footer > .container { position: relative; z-index: 1; }
.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  bottom: -18px;
  width: clamp(90px, 12vw, 150px);
  aspect-ratio: 1;
  background: url("../assets/img/art/640/ill-corner.png") center / contain no-repeat;
  opacity: 0.26;
  pointer-events: none;
}
.site-footer::before { left: -10px; transform: scaleY(-1); }
.site-footer::after { right: -10px; transform: scale(-1, -1); }

@media (max-width: 640px) {
  .ill-corner { width: 62px; opacity: 0.72; }
  .ill-title-angels { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 0.35rem; }
  .ill-initial-panel, .ill-identity { grid-template-columns: 1fr; }
  .ill-initial-frame { width: min(46vw, 166px); margin-inline: auto; }
  .ill-khachkar { width: min(46vw, 158px); margin-inline: auto; }
}

@media (forced-colors: active) {
  .ill-corner, .ill-divider, .ill-angel, .ill-initial-frame, .ill-khachkar,
  .ill-frieze, .site-footer::before, .site-footer::after { display: none !important; }
  .ill-title-angels, .ill-initial-panel, .ill-identity { display: block; }
}

/* ==========================================================================
   Illumination richness (Phase 12) — grand corners, corners everywhere,
   khachkar underlays behind titles
   ========================================================================== */

/* Corners grow into real presence */
.ill-corner { width: clamp(96px, 15vw, 235px); opacity: 0.92; }

/* (The Phase 12 hero-corner background block was superseded by the Phase 14
   Sanctuary stack below, which re-declares every hero background layer.) */

/* The khachkar rises faintly behind every page title (replaces the plain
   cross watermark) */
.page-head::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(430px, 62vw);
  height: 92%;
  background: url("../assets/img/art/640/ill-khachkar.png") center / contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
@media (max-width: 800px) {
  .page-head::after { display: block; opacity: 0.05; width: 74vw; }
}

/* Subpage heroes get the same quiet underlay; the homepage hero keeps its
   emblem unobstructed */
.hero > .container::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(400px, 60vw);
  height: 110%;
  background: url("../assets/img/art/640/ill-khachkar.png") center / contain no-repeat;
  opacity: 0.055;
  pointer-events: none;
  z-index: -1;
}
.hero:has(.hero-emblem) > .container::before { display: none; }

/* A touch more presence for the page-head gold glow so the space feels lit */
.page-head {
  background-image:
    radial-gradient(1000px 460px at 50% -14%, rgba(217, 184, 102, 0.3), transparent 72%),
    var(--pattern-parchment);
  background-size: auto, 28px 28px;
}

/* (The Phase 13 single-angel murals were superseded by the Phase 14 host
   columns; their background blocks and assets have been retired — see
   internal-records/ASSET-PROVENANCE-ADDENDUM.md.) */

/* ==========================================================================
   The Sanctuary (Phase 14) — heavenly host columns + church interior underlay
   Supersedes the Phase 13 single-angel murals.
   ========================================================================== */

.hero {
  background-image:
    url("../assets/img/art/640/ill-corner.webp"),
    url("../assets/img/art/640/ill-corner-flipped.webp"),
    url("../assets/img/art/640/ill-host-mural.webp"),
    url("../assets/img/art/640/ill-host-mural-flipped.webp"),
    url("../assets/img/art/640/ill-sanctuary-mural.webp"),
    linear-gradient(180deg, var(--dawn-top) 0%, var(--dawn-mid) 55%, var(--dawn-low) 100%);
  background-position:
    top left,
    top right,
    left 1.5% center,
    right 1.5% center,
    center bottom,
    center;
  background-repeat: no-repeat;
  background-size:
    clamp(80px, 13vw, 215px) auto,
    clamp(80px, 13vw, 215px) auto,
    clamp(210px, 23vw, 440px) auto,
    clamp(210px, 23vw, 440px) auto,
    cover,
    auto;
}

/* Narrow screens: the host columns step aside; the sanctuary remains */
@media (max-width: 900px) {
  .hero {
    background-image:
      url("../assets/img/art/640/ill-corner.webp"),
      url("../assets/img/art/640/ill-corner-flipped.webp"),
      url("../assets/img/art/640/ill-sanctuary-mural-900.webp"),
      linear-gradient(180deg, var(--dawn-top) 0%, var(--dawn-mid) 55%, var(--dawn-low) 100%);
    background-position: top left, top right, center bottom, center;
    background-repeat: no-repeat;
    background-size: clamp(80px, 13vw, 215px) auto, clamp(80px, 13vw, 215px) auto, cover, auto;
  }
}

/* Short subpage heroes (no emblem): size the host columns by height so the
   angels are never sliced mid-figure. Browsers without :has() keep the
   default width-based sizing — a cosmetic-only divergence. */
@media (min-width: 901px) {
  .hero:not(:has(.hero-emblem)) {
    background-size:
      clamp(80px, 13vw, 215px) auto,
      clamp(80px, 13vw, 215px) auto,
      auto clamp(240px, 58vh, 430px),
      auto clamp(240px, 58vh, 430px),
      cover,
      auto;
  }
}

/* ==========================================================================
   The Cathedral Program — the fine touches (2026-09-01)
   Free accents from the visual audit; ornament the site already owns.
   ========================================================================== */
/* A3 — the verse card as a page from a psalter: an inset gold rule and a gilt cross */
.verse-card { position: relative; }
.verse-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(217, 184, 102, 0.42); border-radius: calc(var(--radius) - 6px); pointer-events: none; }
.verse-card .eyebrow::before { content: "✝"; display: block; font-size: 1.15rem; letter-spacing: 0; margin-bottom: 0.35rem; color: var(--color-gold-soft); }
/* A4 — gilded table headers; row labels in the display face */
.data-table thead th { border-bottom: 2px solid var(--color-gold); }
.data-table .abbr { font-family: var(--font-serif); font-size: 1.08rem; letter-spacing: 0.01em; }
/* A6 — the prayer box, framed like the buttons and the artwork */
.private-prayer { position: relative; border: 1px solid var(--color-gold); box-shadow: inset 0 0 0 1px rgba(184, 137, 43, 0.28), var(--shadow); }
.private-prayer::after { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(184, 137, 43, 0.5); border-radius: calc(var(--radius) + 4px); pointer-events: none; }
/* A8 — timeline markers in deep gold */
.tl-item::before { font-size: 1.05rem; color: var(--color-gold-deep); }
/* A5 — every footer ends as a colophon */
.colophon { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--color-gold-soft); margin: 0 0 0.5rem; }
.ill-divider--colophon { display: block; width: min(300px, 70%); height: auto; margin: 0 auto 1rem; opacity: 0.85; }
/* A2 — an interlace rule between the major sections of long pages */
.ill-divider--section { display: block; width: min(360px, 60%); height: auto; margin: 0 auto; opacity: 0.9; }
.ill-divider--section { margin: -1.4rem auto; position: relative; z-index: 1; }

/* P1 / P2 / P14 — the medallion series: illuminated roundels on white cards */
.card .medallion { width: 96px; height: 96px; margin: 0 0 0.75rem; display: block; }
.name-card .medallion--name { width: 72px; height: 72px; margin: 0 0 0.6rem; display: block; }
.evangelists { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 1.2rem; margin: 1.6rem 0 1.8rem; text-align: center; }
.evangelists figure { margin: 0; }
.evangelists img { width: min(100%, 150px); height: auto; margin: 0 auto; }
.evangelists figcaption { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--color-navy); margin-top: 0.35rem; }
.evangelists__note { grid-column: 1 / -1; font-size: 0.82rem; font-style: italic; color: var(--color-muted); margin: 0.2rem 0 0; }
@media (max-width: 520px) { .evangelists { grid-template-columns: repeat(2, 1fr); } }

/* P8 — an art figure inside a navy section keeps its parchment mat; only the caption changes colour */
.section--navy .art-figure figcaption { color: #c8cfdd; }
.section--navy .art-figure figcaption .artist { color: var(--color-gold-soft); }

/* ---------- The nave at wide screens (2026-09-01, after the Cathedral Program) ---------- */
/* The verse card's control joins the plates; it had kept its own pill. */
.verse-card .btn { margin-top: 1.5rem; }
.verse-card .btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #f4eedd;
  border-color: var(--color-gold-soft);
  box-shadow: inset 0 0 0 1px rgba(217, 184, 102, 0.25);
}
.verse-card .btn--ghost::after { border-color: rgba(217, 184, 102, 0.5); }
.verse-card .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #e8cf94; }

/* 1. The apse continues: the sanctuary mural the hero already loaded glows on behind
   the verse card, fading back to parchment at both ends. No new bytes at any width. */
@media (min-width: 901px) {
  #verse {
    background-image:
      linear-gradient(180deg, var(--color-bg) 0%, rgba(251, 247, 239, 0.18) 24%, rgba(251, 247, 239, 0.18) 64%, var(--color-bg) 100%),
      url("../assets/img/art/640/ill-sanctuary-mural.webp"),
      var(--pattern-parchment);
    background-position: center, center 42%, 0 0;
    background-size: auto, cover, 28px 28px;
    background-repeat: no-repeat, no-repeat, repeat;
  }
}

/* 2. The illuminated margins, second pass: the vine runs unbroken. It is painted by
   body::before/::after above the section tints (z-index 1) and beneath the opaque bands
   (hero, page head, navy sections, footer: z-index 2), so a tinted section no longer
   dims it. The page head fades out over its last fifth, so the vine begins beneath the
   corner ornaments. */
@media (min-width: 1500px) {
  body { position: relative; }
  body::before, body::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none;
    background: url("../assets/img/art/640/ill-margin-vine.webp") left top / 120px auto repeat-y;
  }
  body::before { left: 28px; }
  body::after { right: 28px; }
  .hero, .page-head, .section--navy, .site-footer { position: relative; z-index: 2; }
  .page-head {
    background-color: var(--color-bg);
    background-image:
      radial-gradient(1000px 420px at 50% -20%, rgba(217, 184, 102, 0.22), transparent 70%),
      var(--pattern-parchment),
      linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg) 78%, rgba(251, 247, 239, 0) 100%);
    background-size: auto, 28px 28px, auto;
  }

  /* 3. A wider leaf: the column and the type grow with the screen, so a wide window is
     not a narrow page floating in parchment. Prose keeps a reading measure (74ch). */
  :root { --maxw: 1280px; }
  body { font-size: 19px; }
  .prose { max-width: 74ch; }
  .timeline { max-width: 860px; }
  .verse-card { max-width: 1120px; margin-inline: auto; }
}
@media (min-width: 1800px) {
  :root { --maxw: 1360px; }
  body { font-size: 20px; }
}

/* ---------- Marginalia, second pass (2026-09-01): bearers ---------- */
/* Each figured block is wrapped in .mg-frame and held by a pair of figures, one each
   side, vertically centred on the block, hands overlapping its edge by 18px so the
   panel reads as carried. Right-hand figures are the same file mirrored. Birds flank
   without touching. Decorative: alt="", aria-hidden. Width tiers keep figures clear of
   the vine: prose blocks from 1500px, the timelines (mg--w2) from 1560px, full-width
   blocks (mg--w3) from 1800px at the smaller size. */
.mg { display: none; }
@media (min-width: 1500px) {
  .mg-frame { position: relative; }
  .mg { display: block; position: absolute; top: 50%; height: 300px; width: auto; transform: translateY(-50%); pointer-events: none; user-select: none; z-index: 2; }
  .mg--left { right: calc(100% - 18px); }
  .mg--right { left: calc(100% - 18px); transform: translateY(-50%) scaleX(-1); }
  .mg--dove { height: 190px; }
  .mg--peacock { height: 160px; }
  .mg--dove.mg--left, .mg--peacock.mg--left, .timeline .mg--left { right: calc(100% + 10px); }
  .mg--dove.mg--right, .mg--peacock.mg--right, .timeline .mg--right { left: calc(100% + 10px); }
  .mg--w2, .mg--w3 { display: none; }
}
@media (min-width: 1560px) { .mg--w2 { display: block; } }
@media (min-width: 1800px) {
  .mg--w3 { display: block; }
  .mg { height: 420px; }
  .mg--dove { height: 250px; }
  .mg--peacock { height: 220px; }
  .mg--w3 { height: 300px; }
  .mg--w3.mg--dove { height: 190px; }
  .mg--w3.mg--peacock { height: 160px; }
}
@media (forced-colors: active), print { .mg { display: none !important; } }
