/* ============================================================
   40th Anniversary program (anniversary-program.html)
   A dark green + gold hero, then the program as a cream "booklet"
   with a gold timeline that fills as you read.
   ============================================================ */
:root{
  --night: #0B2E22;
  --night-2: #0F3D2E;
  --green: #1E6B45;
  --gold: #C6A24D;
  --gold-bright: #E7C873;
  --gold-deep: #9C7A28;
  --cream: #FAF3E4;
  --paper: #FFFDF8;
  --ink: #241C12;
  --ink-soft: #5B5043;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after{ box-sizing: border-box; }
[hidden]{ display: none !important; }
html{ scroll-behavior: smooth; scroll-padding-top: 64px; }
body{ margin: 0; font-family: var(--body); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }

/* reading progress */
.ap-progress{ position: fixed; inset: 0 0 auto; height: 3px; z-index: 50; background: transparent; }
.ap-progress span{ display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); }

/* ---------------- Hero ---------------- */
.ap-hero{
  position: relative; overflow: hidden; text-align: center; color: var(--cream);
  padding: 64px 20px 72px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(231,200,115,.22), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(30,107,69,.6), transparent 60%),
    linear-gradient(180deg, var(--night), var(--night-2));
}
.ap-hero::after{ content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 48px; background: var(--cream); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.ap-hero > *{ position: relative; z-index: 1; }
.ap-hero-glow{ position: absolute; inset: auto; top: -140px; left: 50%; width: 520px; height: 520px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(231,200,115,.25), transparent 65%); animation: apPulse 7s ease-in-out infinite alternate; }
@keyframes apPulse{ to{ transform: translateX(-50%) scale(1.15); opacity: .7; } }
.ap-church{ margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-bright); }
.ap-kicker{ margin: 0; font-family: var(--display); font-style: italic; font-size: 1.15rem; color: #D8E6DD; }
.ap-forty{ margin: 4px 0 2px; font-family: var(--display); font-weight: 700; font-size: clamp(6rem, 26vw, 11rem); line-height: .9; }
.ap-forty span{
  background: linear-gradient(110deg, #B8902F, #F6DE98 35%, var(--gold) 55%, #FFF1C4 75%, var(--gold-deep));
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: apShimmer 7s linear infinite; filter: drop-shadow(0 6px 24px rgba(231,200,115,.25));
}
@keyframes apShimmer{ from{ background-position: 120% 0; } to{ background-position: -130% 0; } }
.ap-theme{ margin: 6px auto 18px; max-width: 760px; font-family: var(--display); font-weight: 600; font-size: clamp(1.45rem, 4.6vw, 2.3rem); line-height: 1.2; }
.ap-theme span{ display: block; }
.ap-theme em{ color: var(--gold-bright); }
.ap-verse{ margin: 0 auto 14px; max-width: 560px; font-family: var(--display); font-style: italic; font-size: 1.1rem; line-height: 1.5; color: #E9F0EC; }
.ap-verse cite{ display: block; margin-top: 6px; font-family: var(--body); font-style: normal; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); }
.ap-tagline{ margin: 0 0 20px; font-weight: 600; color: var(--gold-bright); }
.ap-facts{ list-style: none; margin: 0 auto 18px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; }
.ap-facts li, .ap-facts a{ display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--cream);
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(231,200,115,.35); text-decoration: none; }
.ap-facts li:has(a){ padding: 0; background: none; box-shadow: none; }
.ap-facts a:hover{ background: rgba(231,200,115,.18); }
.ap-status{ display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 700;
  color: var(--night); background: var(--gold-bright); }
.ap-status:empty{ display: none; }
.ap-status.is-live{ background: #8FE3AE; }
.ap-dot{ width: 9px; height: 9px; border-radius: 50%; background: #0B6B35; animation: apBlip 1.6s ease-out infinite; }
@keyframes apBlip{ 0%{ box-shadow: 0 0 0 0 rgba(11,107,53,.6); } 100%{ box-shadow: 0 0 0 10px rgba(11,107,53,0); } }
.ap-cta{ display: block; width: max-content; margin: 0 auto; padding: 12px 22px; border-radius: 999px; font-weight: 800; color: var(--night); text-decoration: none;
  background: linear-gradient(180deg, #FFE9A6, var(--gold)); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* ---------------- Section bar ---------------- */
.ap-nav{
  position: sticky; top: 0; z-index: 40; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 14px; background: rgba(11,46,34,.96); backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.ap-nav::-webkit-scrollbar{ display: none; }
.ap-nav a{ flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap;
  color: #CFE0D6; text-decoration: none; transition: background .3s, color .3s; }
.ap-nav a span{ font-family: var(--display); color: var(--gold-bright); }
.ap-nav a:hover{ background: rgba(255,255,255,.08); }
.ap-nav a.on{ color: var(--night); background: var(--gold-bright); }
.ap-nav a.on span{ color: var(--night); }

/* ---------------- The program ---------------- */
.ap-main{ --fill: 0%; position: relative; max-width: 820px; margin: 0 auto; padding: 28px 18px 40px; }
.ap-main::before, .ap-main::after{ content: ""; position: absolute; left: 39px; top: 40px; width: 3px; border-radius: 3px; }
.ap-main::before{ bottom: 40px; background: rgba(198,162,77,.22); }
.ap-main::after{ height: calc((100% - 80px) * var(--fill) / 100%); max-height: calc(100% - 80px); background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep)); transition: height .2s linear; }
@supports not (height: calc(1px * 1%)){ .ap-main::after{ display: none; } }

.ap-part{ position: relative; margin-bottom: 34px; }
.ap-part-head{ position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.ap-num{
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--night);
  background: radial-gradient(circle at 35% 30%, #FFF1C4, var(--gold)); box-shadow: 0 0 0 5px var(--cream), 0 6px 16px rgba(156,122,40,.35);
}
.ap-part-head h2{ margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 4vw, 1.7rem); line-height: 1.15; color: var(--night); }
.ap-part-head p{ margin: 3px 0 0; font-size: .9rem; color: var(--ink-soft); }
.ap-time{ font-weight: 800; color: var(--gold-deep); }
.ap-part.is-now .ap-num{ animation: apNow 1.8s ease-in-out infinite; }
@keyframes apNow{ 50%{ box-shadow: 0 0 0 5px var(--cream), 0 0 0 12px rgba(143,227,174,.55); } }

.ap-items{ list-style: none; margin: 0; padding: 0 0 0 62px; display: grid; gap: 10px; }
.ap-item{
  position: relative; display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--paper);
  box-shadow: 0 1px 0 rgba(36,28,18,.06), 0 6px 18px rgba(36,28,18,.06);
}
.ap-item::before{ /* the little link from the timeline to the card */
  content: ""; position: absolute; left: -24px; top: 24px; width: 18px; height: 2px; background: rgba(198,162,77,.45);
}
.ap-item-big{ background: linear-gradient(135deg, var(--night), var(--night-2)); color: var(--cream); }
.ap-item-big h3, .ap-item-big .ap-by-line{ color: var(--gold-bright) !important; }
.ap-mark{ flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: .95rem; color: var(--gold-deep); background: rgba(198,162,77,.14); }
.ap-item-big .ap-mark{ color: var(--night); background: var(--gold-bright); }
.ap-item-body{ min-width: 0; flex: 1; }
.ap-item h3{ margin: 3px 0 4px; font-size: 1rem; font-weight: 800; color: var(--night); }
.ap-by-line{ margin: 0 0 4px; font-family: var(--display); font-style: italic; font-size: 1.02rem; color: var(--gold-deep); }
.ap-note{ margin: 4px 0; font-size: .88rem; color: var(--ink-soft); }
.ap-item-big .ap-note{ color: #CFE0D6; }
.ap-bullets, .ap-ordered{ margin: 6px 0 0; padding-left: 20px; font-size: .9rem; line-height: 1.55; color: var(--ink-soft); }
.ap-ordered li::marker{ font-weight: 800; color: var(--gold-deep); }
.ap-songs{ list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.ap-song{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ap-song-title{ font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.ap-by{ font-size: .85rem; color: var(--ink-soft); }
.ap-by::before{ content: "— "; }
.ap-chip{
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; border: none; cursor: pointer;
  font: 700 .76rem var(--body); letter-spacing: .02em; color: var(--night); background: rgba(198,162,77,.25); transition: background .2s, transform .2s;
}
.ap-chip:hover{ background: var(--gold-bright); transform: translateY(-1px); }
.ap-chip-big{ margin-top: 8px; padding: 8px 14px; font-size: .85rem; color: var(--cream); background: var(--night); }
.ap-chip-big:hover{ color: var(--night); }
.ap-quote{ margin: 8px 0 0; padding: 12px 14px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0;
  font-family: var(--display); font-style: italic; font-size: 1.02rem; line-height: 1.55; background: rgba(198,162,77,.08); }
.ap-link{ display: inline-block; margin-top: 8px; font-weight: 700; font-size: .88rem; color: var(--green); }

/* plaques */
.ap-plaques{ display: grid; gap: 10px; margin-top: 8px; }
.ap-plaque{ padding: 12px 14px; border-radius: 10px; background: linear-gradient(135deg, #3A2A12, #1E150A); color: var(--cream);
  box-shadow: inset 0 0 0 2px rgba(231,200,115,.5), inset 0 0 0 6px #2A1E0E, inset 0 0 0 7px rgba(231,200,115,.25); }
.ap-plaque p{ margin: 0 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright); }
.ap-plaque strong{ font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.45; }

/* expandable lists */
.ap-more{ margin-top: 8px; border-radius: 10px; background: rgba(198,162,77,.08); }
.ap-more > summary{ display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; font-weight: 700; font-size: .92rem; color: var(--night); }
.ap-more > summary::-webkit-details-marker{ display: none; }
.ap-more > summary::after{ content: "+"; margin-left: auto; font-size: 1.2rem; line-height: 1; color: var(--gold-deep); transition: transform .3s var(--ease); }
.ap-more[open] > summary::after{ transform: rotate(45deg); }
.ap-count{ padding: 1px 8px; border-radius: 999px; font-size: .74rem; color: var(--night); background: rgba(198,162,77,.3); }
.ap-more > .ap-note{ margin: 0 12px 6px; }
.ap-names{ list-style: none; margin: 0; padding: 0 12px 12px; display: flex; flex-wrap: wrap; gap: 6px; animation: apOpen .4s var(--ease); }
@keyframes apOpen{ from{ opacity: 0; transform: translateY(-4px); } }
.ap-name{ padding: 6px 11px; border-radius: 999px; font-size: .86rem; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(198,162,77,.35); transition: background .3s, box-shadow .3s; }
.ap-name strong{ font-weight: 600; }
.ap-name.has-detail{ flex-basis: 100%; border-radius: 10px; padding: 9px 12px; }
.ap-name.has-detail strong{ display: block; font-weight: 800; color: var(--night); }
.ap-name.has-detail span{ display: block; margin-top: 2px; font-size: .82rem; color: var(--ink-soft); }
.ap-numbered{ counter-reset: n; }
.ap-numbered .ap-name{ counter-increment: n; position: relative; padding-left: 40px; }
.ap-numbered .ap-name::before{ content: counter(n); position: absolute; left: 12px; top: 9px; font-family: var(--display); font-weight: 700; color: var(--gold-deep); }
.ap-name.is-found{ background: #FFF1C4; box-shadow: inset 0 0 0 2px var(--gold); animation: apFound .9s var(--ease); }
@keyframes apFound{ 30%{ transform: scale(1.06); } }

/* find your name */
.ap-find{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 6px; }
.ap-find label{ font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.ap-find input{ flex: 1 1 220px; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(36,28,18,.2); font: 500 16px var(--body); background: var(--paper); }
.ap-find input:focus{ outline: 2px solid var(--gold); outline-offset: 1px; }
.ap-find-count{ flex-basis: 100%; font-size: .82rem; font-weight: 700; color: var(--green); min-height: 1em; }
.ap-total{ margin-top: 10px; font-family: var(--display); font-style: italic; text-align: center; }

/* the declaration, read together */
.ap-declaration{ margin-top: 8px; padding: 18px; border-radius: 14px; text-align: center; background: linear-gradient(135deg, var(--night), var(--night-2)); }
.ap-decl-text{ margin: 0; font-family: var(--display); font-size: clamp(1.1rem, 3.6vw, 1.35rem); line-height: 1.6; color: rgba(250,243,228,.45); }
.ap-decl-text span{ transition: color .35s ease, text-shadow .35s ease; }
.ap-decl-text span.lit{ color: var(--gold-bright); text-shadow: 0 0 14px rgba(231,200,115,.45); }
.ap-declaration .ap-chip-big{ margin-top: 14px; color: var(--night); background: var(--gold-bright); }

/* reveals */
.ap-reveal{ opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.ap-reveal.in{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .ap-reveal{ opacity: 1; transform: none; transition: none; } }

/* ---------------- Reader (lyrics / scripture) ---------------- */
.ap-reader{ width: min(560px, calc(100vw - 24px)); max-height: min(82vh, 760px); padding: 0; border: none; border-radius: 18px; background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; }
.ap-reader[open]{ display: flex; flex-direction: column; animation: apPop .35s var(--ease); }
@keyframes apPop{ from{ opacity: 0; transform: translateY(14px) scale(.97); } }
.ap-reader::backdrop{ background: rgba(7,31,23,.7); backdrop-filter: blur(3px); }
.ap-reader header{ position: relative; padding: 18px 54px 14px 20px; color: var(--cream); background: linear-gradient(135deg, var(--night), var(--night-2)); }
.ap-reader-kicker{ margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright); }
.ap-reader h2{ margin: 4px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.ap-reader-close{ position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: none; border-radius: 50%; cursor: pointer; font-size: 1.4rem; line-height: 1;
  color: var(--cream); background: rgba(255,255,255,.12); }
.ap-reader-body{ overflow-y: auto; padding: 16px 22px 22px; }
.ap-stanza{ margin-bottom: 16px; }
.ap-stanza p{ margin: 0; font-family: var(--display); font-size: 1.08rem; line-height: 1.6; }
.ap-stanza .ap-stanza-label{ margin-bottom: 2px; font-family: var(--body); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.ap-stanza.is-chorus{ padding: 10px 14px; border-radius: 10px; background: rgba(198,162,77,.12); }
.ap-credit{ margin: 6px 0 0; font-size: .82rem; font-style: italic; color: var(--ink-soft); }
.ap-psalm{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ap-psalm li{ font-family: var(--display); font-size: 1.1rem; line-height: 1.6; }
.ap-psalm sup{ margin-right: 6px; font-family: var(--body); font-size: .7rem; font-weight: 800; color: var(--gold-deep); }
.ap-psalm .is-theme{ padding: 10px 12px; border-radius: 10px; background: #FFF1C4; box-shadow: inset 0 0 0 2px var(--gold); }

/* ---------------- Footer ---------------- */
.ap-foot{ padding: 40px 20px 60px; text-align: center; color: #CFE0D6; background: linear-gradient(180deg, var(--night-2), var(--night)); }
.ap-foot p{ margin: 0; font-size: .82rem; }
.ap-foot-glory{ margin-bottom: 8px !important; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.8rem !important; color: var(--gold-bright); }

@media (max-width: 520px){
  .ap-main::before, .ap-main::after{ left: 30px; }
  .ap-num{ width: 40px; height: 40px; font-size: .95rem; }
  .ap-items{ padding-left: 0; }
  .ap-item::before{ display: none; }
  .ap-part-head{ gap: 12px; }
}
