/* ==========================================================================
   Light the Way: A Wall of Lights (Advent, December 2026)
   Used by index.html (the "This Month" feature) and light-the-way.html.
   The wreath, the candle schedule, and the wall all fill in from advent.js.

   After Christmas season (January): delete the Advent section from index.html
   and remove this file's <link> there. light-the-way.html can stay up.
   See tools/advent/README.md.
   ========================================================================== */

.adv {
  --adv-night: #17140f;
  --adv-purple: #6a4592;
  --adv-pink: #c8678f;
  --adv-white: #f6f1e7;
  position: relative; overflow: hidden; color: #e9e4da;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(255,200,90,0.16), transparent 50%),
    radial-gradient(ellipse at 10% 100%, rgba(106,69,146,0.22), transparent 55%),
    var(--adv-night);
}
.adv .eyebrow { color: var(--gold); }
.adv h1, .adv h2 { color: #fff; font-family: 'Fraunces', serif; font-weight: 500; font-variation-settings: "opsz" 144; line-height: 1.02; }
.adv h1 em, .adv h2 em { color: var(--gold); font-style: italic; }
.adv p { color: rgba(255,255,255,0.86); line-height: 1.65; }
.adv a:not(.btn) { color: var(--gold); }

/* ---------- Homepage feature ---------- */
.adv-feature { padding: 104px 0; }
.adv-feature .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.adv-feature h2 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); margin: 12px 0 10px; }
.adv-dates { font: 600 0.78rem/1.5 'Inter', sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: #cfc6b5; margin-bottom: 22px; }
.adv-feature p { max-width: 34em; margin: 0 0 16px; }
.adv-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.adv .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.adv .btn-outline:hover { color: var(--ink); }
@media (max-width: 900px) {
  .adv-feature { padding: 72px 0; }
  .adv-feature .grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- The wreath ---------- */
.adv-wreath { width: 100%; max-width: 520px; margin: 0 auto; display: block; }
.adv-wreath svg { width: 100%; height: auto; display: block; overflow: visible; }
.adv-wreath .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: adv-flicker 2.6s ease-in-out infinite; }
.adv-wreath .flame.f2 { animation-delay: -0.7s; }
.adv-wreath .flame.f3 { animation-delay: -1.3s; }
.adv-wreath .flame.f4 { animation-delay: -1.9s; }
.adv-wreath .flame.f5 { animation-delay: -0.4s; animation-duration: 3.1s; }
.adv-wreath .glow { animation: adv-breathe 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes adv-flicker {
  0%, 100% { transform: scale(1, 1) rotate(0deg); }
  30% { transform: scale(0.94, 1.06) rotate(-2deg); }
  60% { transform: scale(1.04, 0.95) rotate(1.5deg); }
}
@keyframes adv-breathe { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .adv-wreath .flame, .adv-wreath .glow { animation: none; }
}

/* ---------- This week's candle ---------- */
.adv-week { border-left: 3px solid var(--gold); padding: 6px 0 6px 20px; margin: 26px 0 8px; max-width: 34em; }
.adv-week .k { font: 600 0.72rem/1.4 'Inter', sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.adv-week h3 { font: 500 1.6rem/1.2 'Fraunces', serif; color: #fff; margin: 6px 0 10px; }
.adv-week blockquote { margin: 0; font: italic 400 1.05rem/1.6 'Fraunces', serif; color: #e9e4da; }
.adv-week cite { display: block; margin-top: 8px; font: 600 0.72rem/1.4 'Inter', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #cfc6b5; font-style: normal; }

/* ---------- The five Sundays ---------- */
.adv-sched { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.adv-sched li { text-align: center; padding: 12px 4px 10px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.adv-sched i { display: block; width: 12px; height: 12px; border-radius: 50%; margin: 0 auto 8px; background: rgba(255,255,255,0.15); }
.adv-sched b { display: block; font: 600 0.82rem/1.2 'Inter', sans-serif; color: #fff; }
.adv-sched span { display: block; font: 500 0.7rem/1.3 'Inter', sans-serif; color: #b9b0a0; margin-top: 3px; }
.adv-sched li.lit i { background: radial-gradient(circle at 50% 40%, #fff3c9, var(--gold) 60%, #a87b17); box-shadow: 0 0 10px rgba(240,190,70,0.7); }
.adv-sched li.now { border-color: rgba(212,165,49,0.6); background: rgba(212,165,49,0.1); }
@media (max-width: 480px) { .adv-sched b { font-size: 0.72rem; } .adv-sched span { font-size: 0.62rem; } }

/* ---------- Light a candle form ---------- */
.adv-form { margin-top: 28px; padding: 22px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); max-width: 520px; }
.adv-form h3 { font: 500 1.35rem/1.2 'Fraunces', serif; color: #fff; margin: 0 0 4px; }
.adv-form .sub { font-size: 0.9rem; color: #cfc6b5; margin: 0 0 14px; }
.adv-kinds { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.adv-kinds label { cursor: pointer; }
.adv-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.adv-kinds span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); font: 600 0.85rem/1 'Inter', sans-serif; color: #e9e4da; }
.adv-kinds input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.adv-kinds input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.adv-row { display: flex; gap: 10px; }
.adv-row input[type="text"] { flex: 1; min-width: 0; padding: 13px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.25); background: rgba(0,0,0,0.25); color: #fff; font: 400 1rem/1.2 'Inter', sans-serif; }
.adv-row input[type="text"]::placeholder { color: #9d9484; }
.adv-row input[type="text"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.adv-row .btn { white-space: nowrap; }
.adv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.adv-msg { min-height: 1.4em; margin: 10px 0 0; font-size: 0.9rem; color: #cfc6b5; }
.adv-msg.ok { color: #ffd768; }
.adv-msg.err { color: #ffb4a8; }
.adv-fine { font-size: 0.78rem; color: #9d9484; margin: 6px 0 0; }
@media (max-width: 480px) { .adv-row { flex-direction: column; } }

/* ---------- The wall ---------- */
.adv-wall-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 30px 0 12px; }
.adv-count { font: 500 1.15rem/1.2 'Fraunces', serif; color: #fff; }
.adv-count b { color: var(--gold); font-weight: 600; }
.adv-legend { font-size: 0.8rem; color: #b9b0a0; display: flex; gap: 14px; }
.adv-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.adv-legend .p i, .adv-light.pray i { background: radial-gradient(circle at 50% 40%, #fff3c9, var(--gold) 55%, #a87b17); box-shadow: 0 0 8px rgba(240,190,70,0.65); }
.adv-legend .t i, .adv-light.thanks i { background: radial-gradient(circle at 50% 40%, #ffffff, #fbe7c0 55%, #d9b97a); box-shadow: 0 0 8px rgba(255,240,210,0.7); }
.adv-wall { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.adv-light { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); font: 500 0.88rem/1.2 'Inter', sans-serif; color: #f2ede3; }
.adv-light i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.adv-light.new { animation: adv-pop 1.4s ease-out; border-color: rgba(212,165,49,0.7); }
@keyframes adv-pop { 0% { transform: scale(0.6); opacity: 0; box-shadow: 0 0 0 0 rgba(255,215,104,0.8); } 40% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(255,215,104,0); } }
.adv-empty { color: #b9b0a0; font-size: 0.92rem; }
.adv-more { margin-top: 14px; font-size: 0.92rem; }

/* ---------- light-the-way.html ---------- */
.adv-hero { padding: 88px 0 72px; }
.adv-hero .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.adv-hero h1 { font-size: clamp(3rem, 6.4vw, 5.2rem); margin: 12px 0 12px; }
.adv-hero p { max-width: 32em; }
.adv-page-wall { padding: 72px 0 96px; border-top: 1px solid rgba(255,255,255,0.08); }
.adv-page-wall h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 10px 0 6px; }
.adv-page-wall .adv-wall { gap: 10px; }
@media (max-width: 900px) {
  .adv-hero { padding: 64px 0 48px; }
  .adv-hero .grid { grid-template-columns: 1fr; gap: 32px; }
  .adv-hero .adv-wreath { max-width: 420px; }
}

/* ---------- The "This month" line in the homepage welcome ---------- */
.hero-now.adv-now { align-items: center; max-width: 660px; padding: 16px 18px 16px 20px; background: rgba(20,16,11,0.62); border: 1px solid var(--gold); border-left: 4px solid var(--gold); box-shadow: 0 0 0 4px rgba(212,165,49,0.12), 0 10px 30px rgba(0,0,0,0.35); }
.hero-now.adv-now .msg { font-size: 1.05rem; color: #fff; }
.hero-now.adv-now .adv-now-btn { background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none; white-space: nowrap; }
.hero-now.adv-now .adv-now-btn:hover { background: #e2b440; color: var(--ink); }

/* ---------- Callout on prayer.html ---------- */
.adv-callout { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding: 26px 30px; border-radius: var(--radius-lg); }
.adv-callout h3 { font-family: 'Fraunces', serif; color: #fff; font-size: 1.6rem; margin: 6px 0 4px; }
.adv-callout h3 em { color: var(--gold); }
.adv-callout p { margin: 0; color: rgba(255,255,255,0.82); }
