/* ==========================================================
   Desert Road Catholic — "Pillar of Fire" design system
   One accent (gold light), night-first, carved serif headings.
   ========================================================== */

/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Marcellus"; src: url("/assets/fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/assets/fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/assets/fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("/assets/fonts/alegreya-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* Palette — sampled from the hero photography */
  --night-950: #07090f;   /* deepest sky, page base */
  --night-900: #0d1120;   /* sky behind the stars */
  --night-800: #161b2e;   /* raised surfaces */
  --sand-100:  #efe6d4;   /* primary text, parchment */
  --sand-300:  #c9bca3;   /* secondary text */
  --sand-500:  #8f8471;   /* muted text, rules */
  --mesa-600:  #8a4b2e;   /* terracotta rock, used rarely */
  --gold-400:  #f2b65a;   /* the pillar — the only bright colour */
  --gold-300:  #f8cf86;   /* glow, hover */
  --gold-600:  #b97a26;   /* pressed */

  --glass:        rgba(13, 17, 32, 0.58);
  --glass-edge:   rgba(242, 182, 90, 0.22);
  --glass-strong: rgba(13, 17, 32, 0.78);

  /* Type */
  --font-display: "Marcellus", "Trajan Pro", Georgia, serif;
  --font-body:    "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --font-scripture: "Alegreya", Georgia, serif;

  /* Modular scale, ratio 1.333 (perfect fourth) from 18px */
  --step--1: 0.84rem;
  --step-0:  1.125rem;
  --step-1:  1.5rem;
  --step-2:  2rem;
  --step-3:  clamp(2.2rem, 1.6rem + 2.4vw, 2.67rem);
  --step-4:  clamp(2.6rem, 1.6rem + 4vw, 3.55rem);
  --step-5:  clamp(3rem, 1.4rem + 6.4vw, 4.74rem);

  /* Space */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --measure: 34em;

  --radius-sm: 6px;
  --radius-lg: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night-950);
  color: var(--sand-100);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, picture { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-1); line-height: 1.25; }

p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }

a { color: var(--gold-300); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--gold-400); }

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--gold-400); color: var(--night-950);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm); z-index: 100;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }

/* ---------- Mark & wordmark ---------- */
.mark { width: 22px; height: 34px; flex: none; }

.wordmark {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--sand-100); text-decoration: none;
  font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.02em;
}
.wordmark:hover { color: var(--sand-100); }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  padding-block: 1.25rem;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav a { color: var(--sand-300); text-decoration: none; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sand-100); }
.nav a.btn-light, .nav a.btn-light:hover { color: var(--night-950); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--glass-edge);
  color: var(--sand-100); border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem; font: inherit; font-size: 1rem; cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 100%; left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--glass-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-edge); border-radius: var(--radius-lg); padding: 0.5rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.8rem 1rem; }
  .nav .btn { margin-top: 0.25rem; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1.05rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), box-shadow .3s var(--ease), color .2s;
}
.btn-light {
  background: var(--gold-400); color: var(--night-950);
  box-shadow: 0 0 0 0 rgba(242,182,90,0), 0 0 28px rgba(242,182,90,.35);
}
.btn-light:hover { background: var(--gold-300); color: var(--night-950); box-shadow: 0 0 40px rgba(242,182,90,.55); }
.btn-light:active { background: var(--gold-600); }
.btn-quiet {
  background: transparent; color: var(--sand-100);
  border-color: rgba(239,230,212,.35);
}
.btn-quiet:hover { color: var(--sand-100); border-color: var(--sand-100); background: rgba(239,230,212,.06); }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.98rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  overflow: hidden; isolation: isolate;
}
.hero-media, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 70% 50%; z-index: -2;
}
.hero::before { /* keeps the headline legible on any sky */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,9,15,.62) 0%, rgba(7,9,15,.3) 42%, rgba(7,9,15,0) 70%),
    linear-gradient(180deg, rgba(7,9,15,.5) 0%, rgba(7,9,15,0) 16%);
}
.hero-content { padding-block: 9rem clamp(4rem, 10vh, 7rem); }
.hero h1 { max-width: 12ch; }
.hero-lede { font-size: var(--step-1); line-height: 1.45; color: var(--sand-300); max-width: 28em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.countdown {
  margin-top: 2.5rem; display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap;
  color: var(--sand-300); font-size: 1rem;
}
.countdown strong {
  font-family: var(--font-display); font-weight: 400; font-size: var(--step-3);
  color: var(--gold-400); line-height: 1;
}

@media (max-width: 700px) {
  .hero-media img { object-position: 50% 30%; }
  .hero::before {
    background: linear-gradient(0deg, rgba(7,9,15,.72) 0%, rgba(7,9,15,.5) 45%, rgba(7,9,15,0) 72%);
  }
  .hero-content { padding-block: 16rem 3rem; }
  .hero h1 { max-width: none; font-size: 2.35rem; }
  .hero-lede { font-size: 1.15rem; }
  .hero-actions { margin-top: 1.5rem; }
  .countdown { margin-top: 1.75rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { color: var(--sand-300); font-size: var(--step-1); line-height: 1.45; }

/* ---------- What you get (asymmetric, not a card grid) ---------- */
.offer {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(6, 1fr);
}
.offer-item {
  grid-column: span 2; padding: 1.75rem;
  background: var(--glass); border: 1px solid var(--glass-edge);
  border-radius: var(--radius-sm);
}
.offer-item:nth-child(4), .offer-item:nth-child(5) { grid-column: span 3; }
.offer-item h3 { color: var(--sand-100); }
.offer-item p { color: var(--sand-300); margin: 0; }
.offer-item.feature {
  grid-column: span 4; grid-row: span 2; padding: clamp(1.75rem, 3vw, 3rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(242,182,90,.16), transparent 60%),
    var(--night-800);
  box-shadow: inset 0 1px 0 rgba(242,182,90,.25), 0 0 60px -20px rgba(242,182,90,.25);
}
.offer-item.feature h3 { font-size: var(--step-3); margin-bottom: 0.6em; }
.offer-item.feature p { font-size: var(--step-0); max-width: 30em; }
.day-anatomy {
  list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0;
  counter-reset: part; border-top: 1px solid rgba(239,230,212,.12);
}
.day-anatomy li {
  counter-increment: part; display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.5rem;
  padding: 0.9rem 0; border-bottom: 1px solid rgba(239,230,212,.12); color: var(--sand-100);
}
.day-anatomy li::before {
  content: counter(part); font-family: var(--font-display); color: var(--gold-400); font-size: 1.15rem;
}
.day-anatomy span { color: var(--sand-300); display: block; font-size: 0.98rem; }

@media (max-width: 980px) {
  .offer { grid-template-columns: repeat(2, 1fr); }
  .offer-item, .offer-item.feature,
  .offer-item:nth-child(4), .offer-item:nth-child(5) { grid-column: span 1; grid-row: auto; }
  .offer-item.feature { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .offer { grid-template-columns: 1fr; }
}

/* ---------- The road: scroll-linked sky ---------- */
.sky-run { position: relative; isolation: isolate; overflow-x: clip; }
.road { position: relative; isolation: isolate; }
/* The sky fills the whole section; an inner layer pins to the viewport while the
   section scrolls, then scrolls away with it, so it never spills into the next section. */
.road-sky { position: absolute; inset: 0; z-index: -1; overflow: clip; }
.road-sky-pin { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.road-sky picture, .road-sky img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%;
}
.road-sky picture { opacity: 0; transition: opacity .25s linear; }
.road-sky picture:first-child { opacity: 1; }
.road-sky-pin::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,9,15,.58) 0%, rgba(7,9,15,.28) 45%, rgba(7,9,15,0) 100%),
    linear-gradient(180deg, rgba(7,9,15,0) 85%, rgba(7,9,15,.55) 100%);
}
@media (max-width: 700px) {
  .road-sky img { object-position: 50% 50%; }
  .road-sky-pin::after {
    background:
      linear-gradient(180deg, rgba(7,9,15,.38) 0%, rgba(7,9,15,.38) 85%, rgba(7,9,15,.6) 100%);
  }
}

.road-intro { padding-top: var(--section); }
.phases { list-style: none; margin: 0; padding: 0 0 var(--section); }
.phase {
  min-height: 72svh; display: grid; align-content: center;
  padding-block: 3rem; max-width: 36rem;
}
.phase-days {
  font-family: var(--font-display); color: var(--gold-400); font-size: 1.05rem;
  letter-spacing: 0.04em; margin-bottom: 0.75rem;
}
.phase h3 { font-size: var(--step-3); margin-bottom: 0.4em; }
.phase p { color: var(--sand-300); }
.phase-prayer {
  margin-top: 0.75rem; padding-left: 1rem; border-left: 1px solid var(--gold-400);
  font-family: var(--font-scripture); font-style: italic; color: var(--sand-100);
}
.phase-prayer small {
  display: block; font-family: var(--font-body); font-style: normal; color: var(--sand-500);
  font-size: var(--step--1); margin-bottom: 0.2rem;
}

/* ---------- Register ---------- */
.register {
  position: relative; text-align: left;
  background:
    radial-gradient(60% 120% at 85% 50%, rgba(242,182,90,.14), transparent 70%),
    var(--night-900);
  border-block: 1px solid rgba(239,230,212,.08);
}
.register-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.unlocks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; }
.unlocks li { display: flex; gap: 0.75rem; color: var(--sand-300); }
.unlocks li::before { content: ""; flex: none; width: 1px; height: 1.3em; margin-top: 0.15em; background: var(--gold-400); box-shadow: 0 0 8px var(--gold-400); }

.form {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.1rem;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 1rem; color: var(--sand-100); }
.field input, .field select {
  font: inherit; color: var(--sand-100); background: rgba(7,9,15,.6);
  border: 1px solid rgba(239,230,212,.22); border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem; width: 100%;
}
.field input::placeholder { color: var(--sand-500); }
.field input:focus { border-color: var(--gold-400); outline: none; box-shadow: 0 0 0 3px rgba(242,182,90,.25); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.98rem; color: var(--sand-300); }
.check input { margin-top: 0.3rem; accent-color: var(--gold-400); width: 1.05rem; height: 1.05rem; }
.form-note { font-size: var(--step--1); color: var(--sand-500); margin: 0; }
.form-status { margin: 0; font-size: 1rem; }
.form-status[data-state="ok"] { color: var(--gold-300); }
.form-status[data-state="error"] { color: #f0a08a; }

@media (max-width: 860px) { .register-grid { grid-template-columns: 1fr; } }

/* ---------- Leader & free ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.split > div { border-top: 1px solid var(--gold-400); padding-top: 1.5rem; }
.split h2 { font-size: var(--step-3); }
.split p { color: var(--sand-300); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---------- Scripture ---------- */
.verse {
  padding-block: var(--section); text-align: center;
}
.verse blockquote { margin: 0 auto; max-width: 40rem; }
.verse p {
  font-family: var(--font-scripture); font-style: italic; font-size: var(--step-2); line-height: 1.4;
  max-width: none; color: var(--sand-100);
}
.verse cite { font-style: normal; color: var(--gold-400); font-family: var(--font-display); letter-spacing: 0.04em; }
.verse .mark { margin: 0 auto 2rem; width: 18px; height: 56px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(239,230,212,.1); padding-block: 3.5rem 2.5rem;
  color: var(--sand-500); font-size: 0.98rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--sand-300); margin-bottom: 0.75rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-grid a { color: var(--sand-300); text-decoration: none; }
.footer-grid a:hover { color: var(--sand-100); text-decoration: underline; }
.disclaimer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(239,230,212,.08); font-size: var(--step--1); max-width: 60em; }
.coffee { color: var(--sand-300); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================
   Inner pages
   ========================================================== */
.page-hero {
  position: relative; min-height: clamp(24rem, 58vh, 36rem); display: grid; align-items: end;
  overflow: hidden; isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,9,15,.85) 0%, rgba(7,9,15,.5) 45%, rgba(7,9,15,.05) 75%),
    linear-gradient(0deg, var(--night-950) 0%, rgba(7,9,15,0) 45%),
    linear-gradient(180deg, rgba(7,9,15,.6) 0%, rgba(7,9,15,0) 22%);
}
.page-hero .hero-media img { object-position: 72% 62%; }
.page-hero-content { padding-block: 8rem 3rem; }
.page-hero h1 { font-size: var(--step-4); max-width: 16ch; }
.page-hero p { font-size: var(--step-1); line-height: 1.45; color: var(--sand-300); max-width: 30em; margin: 0; }
@media (max-width: 700px) {
  .page-hero::before { background: linear-gradient(0deg, var(--night-950) 5%, rgba(7,9,15,.7) 50%, rgba(7,9,15,.35) 100%); }
  .page-hero h1 { font-size: 2.3rem; }
  .page-hero p { font-size: 1.15rem; }
}

.breadcrumb { font-size: var(--step--1); color: var(--sand-500); margin-bottom: 1rem; }
.breadcrumb a { color: var(--sand-300); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Long-form text */
.prose { max-width: 42rem; }
.prose h2 { font-size: var(--step-3); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; color: var(--sand-100); }
.prose p, .prose li { color: var(--sand-300); }
.prose strong { color: var(--sand-100); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--gold-400); }
.lead { font-size: var(--step-1); line-height: 1.45; color: var(--sand-100) !important; }

.note {
  border-left: 1px solid var(--gold-400); padding: 0.25rem 0 0.25rem 1.25rem; margin: 2rem 0;
  color: var(--sand-300);
}
.note p:last-child { margin-bottom: 0; }

.cta-band {
  margin-top: var(--section); padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--glass-edge); border-radius: var(--radius-lg);
  background: radial-gradient(70% 140% at 100% 0%, rgba(242,182,90,.14), transparent 65%), var(--night-900);
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
}
.cta-band h2 { font-size: var(--step-2); margin: 0 0 0.3em; }
.cta-band p { margin: 0; color: var(--sand-300); }

/* ---------- The 90 days ---------- */
.stage { border-top: 1px solid rgba(239,230,212,.12); }
.stage:last-of-type { border-bottom: 1px solid rgba(239,230,212,.12); }
.stage summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 4.5rem 1fr auto;
  align-items: center; gap: 1rem; padding: 1.4rem 0;
}
.stage summary::-webkit-details-marker { display: none; }
.stage-sky { width: 4.5rem; height: 3rem; border-radius: var(--radius-sm); border: 1px solid rgba(239,230,212,.15); }
.stage-title { display: grid; gap: 0.15rem; }
.stage-title strong { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); color: var(--sand-100); }
.stage-title span { color: var(--sand-300); font-size: 1rem; }
.stage-toggle { color: var(--gold-400); font-size: 1.6rem; line-height: 1; transition: transform .25s var(--ease); }
.stage[open] .stage-toggle { transform: rotate(45deg); }
.stage-body { padding: 0 0 2rem; }
.stage-body > p { color: var(--sand-300); max-width: 38rem; }
.stage-prayer { font-family: var(--font-scripture); font-style: italic; color: var(--sand-100); }

.day-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 0.6rem; }
.day {
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 0.2rem 0.75rem; align-items: baseline;
  padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  background: rgba(13,17,32,.6); border: 1px solid rgba(239,230,212,.08);
}
.day-num { font-family: var(--font-display); color: var(--gold-400); font-size: 1.25rem; grid-row: span 2; }
.day-ref { color: var(--sand-100); }
.day-date { color: var(--sand-500); font-size: var(--step--1); }
@media (max-width: 560px) {
  .day-list { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .day { grid-template-columns: 1fr; padding: 0.7rem 0.8rem; gap: 0.1rem; }
  .day-num { grid-row: auto; font-size: 1.05rem; }
  .day-ref { font-size: 1rem; }
}

/* ---------- Armory ---------- */
/* Today's Rosary: a featured card on the rosary photo. Phones: the portrait crop fills the top of
   the card and fades into the dark, with the words below the hands. Wider: the hands keep the right
   half and a strong dark wash on the left holds the words over the pale sky. */
.rosary-feature {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end;
  min-height: 35rem; margin: 0 0 2.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--glass-edge); background: var(--night-800);
  box-shadow: inset 0 1px 0 rgba(242,182,90,.25), 0 0 60px -24px rgba(242,182,90,.4);
}
.rosary-feature-photo img {
  position: absolute; left: 0; top: 0; width: 100%; height: 72%; object-fit: cover; object-position: 50% 35%; z-index: -2;
}
.rosary-feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, var(--night-800) 0%, var(--night-800) 30%, rgba(22,27,46,.75) 44%, rgba(7,9,15,0) 66%);
}
.rosary-feature-body { padding: clamp(1.4rem, 4vw, 2.75rem); max-width: 34rem; }
.rosary-feature-label {
  font-family: var(--font-display); color: var(--gold-400); letter-spacing: 0.04em;
  font-size: 1rem; margin: 0 0 0.5rem;
}
.rosary-feature h2 { font-size: var(--step-3); margin-bottom: 0.3em; }
.rosary-feature-body > p:not(.rosary-feature-label) { color: var(--sand-100); font-size: var(--step-0); margin: 0; }
.rosary-feature-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.rosary-feature .btn-quiet { background: rgba(7,9,15,.35); }
@media (min-width: 760px) {
  .rosary-feature { min-height: 22rem; align-items: center; }
  .rosary-feature-photo img { height: 100%; object-position: 70% 45%; }
  .rosary-feature::before {
    background: linear-gradient(90deg, rgba(7,9,15,.95) 0%, rgba(7,9,15,.86) 32%, rgba(7,9,15,.45) 50%, rgba(7,9,15,0) 64%);
  }
}
@media print { .rosary-feature { display: none; } }
.prayer-index { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 3rem; padding: 0; list-style: none; }
.prayer-index a {
  display: inline-block; padding: 0.45rem 0.9rem; border-radius: 999px; text-decoration: none;
  border: 1px solid rgba(239,230,212,.2); color: var(--sand-300); font-size: 0.98rem;
}
.prayer-index a:hover { border-color: var(--gold-400); color: var(--sand-100); }
.prayer {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0; border-top: 1px solid rgba(239,230,212,.12);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(1.5rem, 4vw, 4rem);
  scroll-margin-top: 2rem;
}
.prayer h2 { font-size: var(--step-2); margin-bottom: 0.4em; }
.prayer-when { color: var(--sand-300); font-size: 1rem; margin: 0 0 0.75rem; }
.prayer-tag { display: inline-block; font-size: var(--step--1); color: var(--gold-300); border: 1px solid var(--glass-edge); border-radius: 999px; padding: 0.15rem 0.65rem; }
.prayer-text { font-family: var(--font-scripture); font-style: italic; font-size: 1.2rem; line-height: 1.65; color: var(--sand-100); }
.prayer-text p { max-width: 36em; }
.prayer-media { margin-top: 1rem; font-size: var(--step--1); color: var(--sand-500); }
.mysteries { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; font-family: var(--font-body); font-style: normal; font-size: 1rem; }
.mysteries h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.mysteries p { color: var(--sand-500); font-size: var(--step--1); margin: 0 0 0.4rem; }
.mysteries ol { margin: 0; padding-left: 1.2rem; color: var(--sand-300); }
@media (max-width: 760px) { .prayer { grid-template-columns: 1fr; gap: 0.5rem; } }

/* ---------- Disciplines triad ---------- */
.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2rem 0 0; }
.triad > div { padding: 1.5rem; border-top: 1px solid var(--gold-400); background: rgba(13,17,32,.5); }
.triad h3 { font-size: var(--step-1); margin-bottom: 0.4em; }
.triad p { color: var(--sand-300); margin: 0; font-size: 1rem; }
@media (max-width: 860px) { .triad { grid-template-columns: 1fr; } }

/* ---------- Readiness check ---------- */
.quiz { display: grid; gap: 1.25rem; max-width: 46rem; }
.q { border: 1px solid rgba(239,230,212,.12); border-radius: var(--radius-sm); padding: 1.25rem 1.25rem 1.1rem; margin: 0; background: rgba(13,17,32,.5); }
.q legend { float: left; width: 100%; padding: 0; font-size: 1.1rem; line-height: 1.35; color: var(--sand-100); }
.q legend + * { clear: both; }
.q .hint { color: var(--sand-500); font-size: var(--step--1); margin: 0.2rem 0 0.9rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choices span {
  display: inline-block; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid rgba(239,230,212,.25);
  color: var(--sand-300); font-size: 1rem; transition: background-color .15s, color .15s, border-color .15s;
}
.choices input:checked + span { background: var(--gold-400); border-color: var(--gold-400); color: var(--night-950); font-weight: 700; }
.choices input:focus-visible + span { outline: 2px solid var(--gold-400); outline-offset: 3px; }
.quiz-result {
  margin-top: 2rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius-lg);
  border: 1px solid var(--glass-edge); background: radial-gradient(70% 140% at 100% 0%, rgba(242,182,90,.14), transparent 65%), var(--night-900);
}
.quiz-result h2 { font-size: var(--step-3); }
.quiz-result p, .quiz-result li { color: var(--sand-300); }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; }

/* ---------- Answer blocks (AEO) ---------- */
.answer {
  margin: 0 0 2.5rem; padding: 1.4rem 1.6rem; border-radius: var(--radius-sm);
  background: rgba(242,182,90,.07); border: 1px solid var(--glass-edge); border-left: 3px solid var(--gold-400);
}
.answer p { color: var(--sand-100) !important; margin: 0; font-size: 1.15rem; }
.answer .answer-label { font-family: var(--font-display); color: var(--gold-400) !important; font-size: 1rem; margin-bottom: 0.4rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: var(--section); max-width: 46rem; }
.faq h2 { font-size: var(--step-3); }
.faq-item { border-top: 1px solid rgba(239,230,212,.12); }
.faq-item:last-child { border-bottom: 1px solid rgba(239,230,212,.12); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-size: 1.15rem; color: var(--sand-100);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 0.95rem; color: var(--gold-400); font-size: 1.5rem; line-height: 1;
  transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer p { color: var(--sand-300); margin: 0 0 1.2rem; }

/* ---------- Dates table ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 2rem; max-width: 46rem; }
.dates { width: 100%; border-collapse: collapse; font-size: 1rem; }
.dates th, .dates td { text-align: left; padding: 0.75rem 0.9rem 0.75rem 0; border-bottom: 1px solid rgba(239,230,212,.1); vertical-align: top; }
.dates thead th { color: var(--sand-500); font-weight: 400; font-size: var(--step--1); }
.dates tbody th { font-family: var(--font-display); font-weight: 400; color: var(--gold-400); white-space: nowrap; }
.dates td { color: var(--sand-300); }
.dates td:nth-child(2) { color: var(--sand-100); white-space: nowrap; }
@media (max-width: 560px) { .dates td:nth-child(2) { white-space: normal; } }

/* ---------- Armory extras ---------- */
.prayer-text .cite { display: block; font-family: var(--font-body); font-style: normal; font-size: var(--step--1); color: var(--sand-500); margin-top: 0.3rem; }
.examen { font-family: var(--font-body); font-style: normal; font-size: 1.05rem; padding-left: 1.2rem; color: var(--sand-300); }
.examen li { margin-bottom: 0.7rem; }
.examen strong { color: var(--sand-100); }

/* ---------- Footer heads (not headings) ---------- */
.footer-head { font-weight: 700; color: var(--sand-300); margin: 0 0 0.75rem; font-size: 1rem; }
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Registration honeypot: hidden from people, visible to bots */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Leader notes ---------- */
.week { margin: 2.5rem 0; padding-top: 2rem; border-top: 1px solid rgba(239,230,212,.1); }
.week h3 { margin-top: 0; font-size: var(--step-2); }
.week-meta { font-size: var(--step--1); color: var(--sand-500) !important; }
.week-meta a { color: var(--gold-400); }
.week-lead { border-left: 1px solid var(--gold-400); padding-left: 1rem; }
.print-only { display: none; }

/* ---------- Print ---------- */
@media print {
  @page { margin: 0.6in; }
  :root { color-scheme: light; }
  html, body { background: #fff !important; color: #111 !important; }
  .site-header, .site-footer, .hero-media, .page-hero picture, .cta-band, .no-print, .skip-link, .faq { display: none !important; }
  .print-only { display: block; }
  .page-hero { min-height: 0 !important; padding: 0 !important; background: none !important; }
  .page-hero::before, .page-hero::after { display: none !important; }
  .page-hero-content { padding: 0 !important; }
  .breadcrumb { display: none; }
  h1, h2, h3, .lead, .prose p, .prose li, .prose strong, .dates td, .dates th, .week-meta, .answer p { color: #111 !important; }
  .phase-days, .dates tbody th, .answer-label { color: #7a4f12 !important; }
  a { color: #111 !important; text-decoration: none; }
  .section { padding-block: 0.5rem !important; }
  .week { break-inside: avoid; border-color: #ccc; }
  .answer, .note, .week-lead { border-color: #b97a26 !important; background: none !important; }
  .dates th, .dates td { border-color: #ccc !important; padding-block: 0.3rem !important; }
  body { font-size: 10.5pt; line-height: 1.45; }
  .page-hero h1 { font-size: 24pt; max-width: none; }
  .page-hero p { color: #444 !important; font-size: 11pt; }
  .prose { max-width: none; }
  .prose h2 { font-size: 17pt; margin-top: 1.4em; }
  .prose h3, .week h3 { font-size: 13pt; }
  .prose li { margin-bottom: 0.2rem; }
  .lead { font-size: 12pt; }
  .week { margin: 1rem 0; padding-top: 0.8rem; }
  .answer { padding: 0.8rem 1rem !important; }
  .table-wrap { max-width: none; margin-bottom: 1rem; }
}

/* Support (Buy Me a Coffee) */
.nav a.support-link { color: var(--gold-300); }
.nav a.support-link:hover { color: var(--gold-400); }
.leaders-block { max-width: 40rem; }
.support { padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; border-top: 1px solid rgba(242,182,90,.25); border-bottom: 1px solid rgba(242,182,90,.25); background: rgba(242,182,90,.04); }
.support .wrap { max-width: 44rem; }
.support p { color: var(--sand-300); font-size: var(--step-1); line-height: 1.5; }
.support .btn { margin-top: 0.75rem; border-color: var(--gold-400); color: var(--gold-300); }
.support .btn:hover { color: var(--gold-300); border-color: var(--gold-300); background: rgba(242,182,90,.1); }
.support-note { display: block; margin-top: 0.5rem; color: var(--sand-300); font-size: 0.98rem; }
@media print { .support, .support-link { display: none !important; } }

/* ---------- Six-stage sky: reduced motion keeps the first sky still ---------- */
@media (prefers-reduced-motion: reduce) {
  .road-sky picture { transition: none; }
  .road-sky picture:not(:first-child) { display: none; }
}

/* ---------- Progress: the beam of light ---------- */
.beam-section {
  --tint: .04;
  margin: 0 0 3rem; padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--glass-edge); border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 50% 0%, rgba(242,182,90,var(--tint)), transparent 70%), var(--night-900);
}
html[data-phase="2"] .beam-section { --tint: .06; }
html[data-phase="3"] .beam-section { --tint: .08; }
html[data-phase="4"] .beam-section { --tint: .11; }
html[data-phase="5"] .beam-section { --tint: .14; }
html[data-phase="6"] .beam-section { --tint: .18; }
.beam-title { font-size: var(--step-2); margin: 0 0 0.3em; }
.beam-note { color: var(--sand-300); margin: 0 0 1.5rem; max-width: 38rem; }
.beam { margin: 1.5rem 0; }
.beam-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 0.7rem; }
.beam-head p { margin: 0; }
.beam-count { font-family: var(--font-display); color: var(--gold-300); font-size: 1.15rem; }
.beam-today { color: var(--sand-300); font-size: 1rem; }
.beam-track {
  display: grid; grid-template-columns: repeat(90, 1fr); height: 14px;
  border-radius: 999px; background: rgba(239,230,212,.07);
  box-shadow: inset 0 0 0 1px rgba(239,230,212,.08);
}
.beam-cell { position: relative; }
.beam-cell:first-child { border-radius: 999px 0 0 999px; }
.beam-cell:last-child { border-radius: 0 999px 999px 0; }
.beam-cell.is-done {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-400) 55%, var(--gold-600));
  margin-inline: -0.5px; /* close sub-pixel seams so walked days read as one beam */
}
.beam-track:has(.is-done) { filter: drop-shadow(0 0 6px rgba(242,182,90,.5)); }
.beam-cell.is-today::after {
  content: ""; position: absolute; inset: -5px -2px; border-radius: 4px;
  border: 1px solid rgba(248,207,134,.75); box-shadow: 0 0 12px rgba(242,182,90,.35);
}
.beam-scale { display: flex; justify-content: space-between; color: var(--sand-500); font-size: var(--step--1); margin-top: 0.45rem; }
.beam-cert { margin: 0; font-size: 1rem; }
.cert-band { margin: 0 0 3rem; }
.cert-band[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .beam-cell { transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
}

/* Day cards on the map: mark a day walked */
.day { position: relative; }
.day a { text-decoration: none; }
.day a.day-ref { color: var(--sand-100); padding-right: 2rem; }
.day a.day-ref:hover { color: var(--gold-300); }
.day-check {
  position: absolute; top: 0.7rem; right: 0.7rem; width: 1.6rem; height: 1.6rem; padding: 0;
  border-radius: 50%; border: 1px solid rgba(239,230,212,.3); background: transparent; cursor: pointer;
}
.day-check:hover { border-color: var(--gold-400); }
.day-check[aria-pressed="true"] {
  border-color: var(--gold-400);
  background: radial-gradient(circle, var(--gold-300) 0 35%, var(--gold-400) 36% 60%, transparent 62%);
  box-shadow: 0 0 12px rgba(242,182,90,.5);
}
.day.is-done { border-color: rgba(242,182,90,.45); }

/* Day pages */
.day-mark { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin: 2.5rem 0 0; }
.day-mark p { margin: 0; color: var(--sand-500); font-size: 1rem; }
.day-mark .btn[aria-pressed="true"] { background: transparent; color: var(--sand-100); border: 1px solid var(--gold-400); box-shadow: 0 0 24px rgba(242,182,90,.3); }
.day-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2.5rem 0; }

/* ---------- Day 90 certificate (dark on light, prints on one letter page) ---------- */
.cert-form { max-width: 46rem; margin-bottom: 2.5rem; }
.cert-form p { color: var(--sand-300); }
.cert-fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; margin: 1rem 0 1.5rem; }
.cert-fields label { display: grid; gap: 0.35rem; color: var(--sand-300); font-size: 1rem; }
.cert-fields input {
  font: inherit; color: var(--sand-100); background: var(--night-800); color-scheme: dark;
  border: 1px solid rgba(239,230,212,.2); border-radius: var(--radius-sm); padding: 0.6rem 0.75rem; min-width: 0;
}
@media (max-width: 700px) { .cert-fields { grid-template-columns: 1fr 1fr; } .cert-fields label:first-child { grid-column: 1 / -1; } }
.cert {
  --ink: #1d1a14; --gilt: #a8701f;
  max-width: 8.5in; margin: 0 auto; padding: 0.35in; color: var(--ink);
  background: #fbf7ee; border-radius: 4px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
}
.cert-inner {
  border: 3px double var(--gilt); padding: clamp(1.5rem, 5vw, 0.6in) clamp(1rem, 4vw, 0.6in);
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.cert-mark { width: 26px; height: 40px; }
.cert-kicker { font-family: var(--font-display); letter-spacing: .18em; text-transform: uppercase; font-size: 0.85rem; color: var(--gilt); margin: 0.6rem 0 0; }
.cert-title { font-family: var(--font-display); color: var(--ink); font-size: clamp(1.7rem, 1rem + 3vw, 2.6rem); margin: 0.4em 0 0.7em; line-height: 1.15; }
.cert-line { font-family: var(--font-scripture); font-size: 1.15rem; max-width: 30em; margin: 0; color: var(--ink); }
.cert-name {
  font-family: var(--font-display); font-size: clamp(1.6rem, 1rem + 2.5vw, 2.3rem); color: var(--ink);
  min-width: min(100%, 22rem); min-height: 1.5em; margin: 0.4em 0 0.5em; padding-bottom: 0.1em;
  border-bottom: 1px solid var(--gilt);
}
.cert-dates { font-family: var(--font-scripture); font-size: 1.15rem; margin: 0.6em 0 0; color: var(--ink); }
.cert-verse { margin: 1.6rem auto 0; max-width: 28em; font-family: var(--font-scripture); font-style: italic; color: #4a4234; }
.cert-verse p { margin: 0; font-size: 1.02rem; }
.cert-verse cite { display: block; font-style: normal; font-size: 0.85rem; color: var(--gilt); margin-top: 0.3rem; letter-spacing: .06em; }
.cert-signs { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; width: 100%; margin-top: 2.5rem; }
.cert-signs p { margin: 0; font-size: 0.85rem; color: #6b6150; }
.cert-signs span { display: block; height: 2.2rem; border-bottom: 1px solid #8a7d66; margin-bottom: 0.35rem; }
.cert-note { margin: 2rem 0 0; font-size: 0.72rem; color: #7a705e; max-width: 40em; }

@media print {
  .beam-section, .beam, .day-mark, .day-nav, .day-check, .cert-form { display: none !important; }
  body:has(.cert) .page-hero, body:has(.cert) .breadcrumb { display: none !important; }
  body:has(.cert) .section { padding: 0 !important; }
  body:has(.cert) .wrap { max-width: none; padding: 0; }
  .cert {
    max-width: none; height: 9.75in; padding: 0; box-shadow: none; border-radius: 0; background: #fff;
    break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .cert-inner { height: 100%; box-sizing: border-box; justify-content: center; padding: 0.5in; }
  .cert h2.cert-title, .cert-line, .cert-dates, .cert-name { color: #1d1a14 !important; }
}
@media print { @page { size: letter; } }

/* ---------- One sky from the hero to the road: text scrims instead of a dark veil ---------- */
.sky-run .section-head h2, .sky-run .section-head p, .hero h1, .hero-lede, .countdown,
.phase h3, .phase p, .phase-days {
  text-shadow: 0 1px 2px rgba(7,9,15,.55), 0 0 22px rgba(7,9,15,.85);
}
.phase { position: relative; }
.phase::before, .road-intro::before, .sky-run .section-head::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(7,9,15,.6), rgba(7,9,15,0));
}
.phase::before { inset: 15% -4rem; }
.road-intro, .sky-run .section-head { position: relative; }
.road-intro::before, .sky-run .section-head::before { inset: -1.5rem -4rem; }

/* ---------- Milestones: day-page card and beam notches ---------- */
.milestone { max-width: 46rem; margin: 0 0 2.75rem; }
.milestone h2 { font-size: var(--step-3); margin: 0 0 0.5em; color: var(--sand-100); }
.milestone p { color: var(--sand-300); font-size: var(--step-0); margin: 0; }
.milestone .milestone-label {
  font-family: var(--font-display); color: var(--gold-400); font-size: 0.95rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6rem;
}
.milestone .btn { margin-top: 1.5rem; }
.beam-rail { position: relative; }
.beam-notch {
  position: absolute; top: -7px; bottom: -7px; width: 2px; transform: translateX(-50%);
  background: var(--gold-400); border-radius: 1px; box-shadow: 0 0 6px rgba(242,182,90,.6);
}

/* ---------- Armory audio ---------- */
.prayer-audio {
  margin: 1.1rem 0 0; padding: 0.55rem 0.6rem 0.6rem; max-width: 22rem;
  border: 1px solid var(--glass-edge); border-radius: var(--radius-sm);
  background: var(--glass);
}
.prayer-audio figcaption {
  font-family: var(--font-display); color: var(--gold-400); font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 0.4rem 0.25rem;
}
.prayer-audio audio { display: block; width: 100%; height: 40px; color-scheme: dark; border-radius: 999px; }
@media (max-width: 760px) { .prayer-audio { max-width: none; } }
@media print { .prayer-audio { display: none !important; } }

/* Header support link: the full label wraps the desktop row between the
   mobile breakpoint and ~930px, so use the short label only there */
.support-short { display: none; }
@media (min-width: 861px) and (max-width: 939px) {
  .support-long { display: none; }
  .support-short { display: inline; }
}

/* Analytics notice: a quiet bar at the bottom of the page */
.notice-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.6rem 1rem; background: var(--night-800); border-top: 1px solid rgba(239,230,212,.15);
  color: var(--sand-300); font-size: 0.95rem; line-height: 1.4;
}
.notice-bar p { margin: 0; }
.notice-close {
  font: inherit; color: var(--sand-100); background: transparent; cursor: pointer;
  border: 1px solid var(--sand-500); border-radius: var(--radius-sm); padding: 0.2rem 0.8rem;
}
.notice-close:hover { border-color: var(--sand-100); background: rgba(239,230,212,.06); }
@media print { .notice-bar { display: none !important; } }
