/* ============================================================
   SOLUA — Advent  (/advent/)
   Extends ../styles.css (header, footer, buttons, .wrap, .reveal,
   .section scaffold, .closing). Anima design system, themed to
   Advent — soft indigo, with a rose accent for Gaudete Sunday.
   ============================================================ */

:root {
  --advent:      #6B7B9E;   /* Advent indigo */
  --advent-soft: #8593AE;
  --advent-deep: #2A3142;   /* deep indigo ink for bands */
  --rose:        #C68B96;   /* Gaudete rose */
  --flame:       #F0CE84;   /* candle flame gold */
}

/* the closing CTA + section heads on this page lean indigo, not sage */
.adv-page .closing-badge { background: var(--advent); }
.adv-page .closing-points li::before { background: var(--advent); }
.adv-page .btn-primary { background: var(--advent); }
.adv-page .btn-primary:hover { background: #5A6A8C; }
.adv-page .site-header.scrolled .brand-mark { background: var(--advent); }

/* ---------- hero ---------- */
.adv-hero {
  position: relative; overflow: hidden;
  background: var(--hero-ink); color: var(--color-cream);
  padding: 150px 0 104px;
}
.adv-hero .hero-glow { top: -12%; right: -8%; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(107,123,158,0.50) 0%, rgba(107,123,158,0.12) 44%, transparent 70%); }
.adv-hero .hero-glow.two { left: -14%; bottom: -26%; top: auto; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(198,139,150,0.26) 0%, transparent 66%); }
.adv-hero .wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center;
}
.adv-hero .eyebrow {
  color: var(--advent-soft); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.adv-hero .eyebrow::before { content: ""; width: 22px; height: 1px; background: rgba(133,147,174,0.6); }
.adv-hero h1 {
  font-weight: 300; font-size: clamp(42px, 5.4vw, 70px); line-height: 1.04;
  letter-spacing: -0.025em; margin: 0 0 24px; text-wrap: balance;
}
.adv-hero h1 b { font-weight: 700; }
.adv-hero h1 i { font-style: italic; font-weight: 300; }
.adv-hero .adv-sub {
  font-size: 20px; line-height: 1.55; color: rgba(250,247,242,0.74);
  max-width: 31em; margin: 0 0 36px;
}
.adv-hero .hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.adv-hero .hero-note { margin: 30px 0 0; font-size: 14px; color: rgba(250,247,242,0.56); font-style: italic; }

/* ---------- hero illustration ---------- */
.adv-hero-visual { position: relative; }
.adv-hero-visual .frame {
  position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 5 / 5.2;
  box-shadow: 0 40px 80px rgba(0,0,0,0.46), 0 0 0 1px rgba(250,247,242,0.08);
}
.adv-hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; display: block; }

/* ---------- the advent wreath ---------- */
.wreath-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.wreath {
  position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 0.92;
  display: flex; align-items: flex-end; justify-content: center;
}
.wreath-glow {
  position: absolute; left: 50%; top: 18%; transform: translateX(-50%);
  width: 78%; height: 60%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(240,206,132,0.34) 0%, rgba(240,206,132,0.07) 45%, transparent 70%);
  opacity: 0; transition: opacity var(--duration-slow) var(--ease-calm);
}
.wreath.any-lit .wreath-glow { opacity: 1; }
.candles {
  position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center;
  gap: 30px; padding-bottom: 26px;
}
.candle { display: flex; flex-direction: column; align-items: center; }
.candle .flame {
  width: 16px; height: 26px; border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
  background: radial-gradient(ellipse at 50% 64%, #FFF4D6 0%, var(--flame) 38%, #D98A4A 78%, transparent 100%);
  margin-bottom: 5px; transform-origin: 50% 100%;
  opacity: 0; transform: scaleY(0.3); transition: opacity var(--duration-base) var(--ease-calm), transform var(--duration-base) var(--ease-calm);
  box-shadow: 0 0 18px 4px rgba(240,206,132,0.0);
}
.candle.lit .flame { opacity: 1; transform: none; box-shadow: 0 0 22px 5px rgba(240,206,132,0.45); animation: flicker 2.4s ease-in-out infinite; }
@keyframes flicker {
  0%,100% { transform: scaleY(1) translateX(0); box-shadow: 0 0 22px 5px rgba(240,206,132,0.45); }
  35% { transform: scaleY(1.08) translateX(-0.6px); box-shadow: 0 0 26px 6px rgba(240,206,132,0.55); }
  68% { transform: scaleY(0.95) translateX(0.6px); box-shadow: 0 0 20px 5px rgba(240,206,132,0.4); }
}
@media (prefers-reduced-motion: reduce) { .candle.lit .flame { animation: none; } }
.candle .wick { width: 2px; height: 7px; background: #2A2521; border-radius: 1px; }
.candle .stick {
  width: 30px; border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, var(--advent-soft) 0%, var(--advent) 42%, #4E5A77 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.18), inset -3px 0 6px rgba(0,0,0,0.22);
}
.candle.tall .stick { height: 184px; }
.candle.mid .stick { height: 156px; }
.candle.rose .stick {
  background: linear-gradient(180deg, #E0B3BC 0%, var(--rose) 44%, #A66A77 100%);
}
.wreath-base {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  width: 86%; height: 64px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 38%, #3C4A3A 0%, #2C3A2C 60%, #232E23 100%);
  box-shadow: 0 24px 50px rgba(0,0,0,0.5), inset 0 4px 10px rgba(255,255,255,0.05);
  z-index: 1;
}
.wreath-base::after {
  content: ""; position: absolute; inset: 14% 10%; border-radius: 50%;
  background: rgba(20,16,14,0.85); box-shadow: inset 0 4px 12px rgba(0,0,0,0.6);
}
/* light controls */
.wreath-ctrl { display: flex; align-items: center; gap: 8px; z-index: 3; }
.wreath-ctrl .lbl { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250,247,242,0.5); margin-right: 4px; }
.wk-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(250,247,242,0.22); color: rgba(250,247,242,0.78);
  font-size: 14px; font-weight: 600; display: grid; place-items: center;
  transition: all var(--duration-fast) var(--ease-calm);
}
.wk-btn:hover { border-color: rgba(250,247,242,0.5); color: var(--color-cream); }
.wk-btn[aria-pressed="true"] { background: var(--color-cream); color: var(--advent-deep); border-color: var(--color-cream); }
.wk-btn.is-rose[aria-pressed="true"] { background: var(--rose); color: #fff; border-color: var(--rose); }

/* ---------- the four weeks ---------- */
.weeks { background: var(--color-cream); }
.weeks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.week {
  --accent: var(--advent);
  position: relative; color: var(--color-cream);
  background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 88%, #fff) 0%, var(--accent) 42%, color-mix(in srgb, var(--accent) 80%, #000) 100%);
  border-radius: var(--radius-lg); padding: 30px 26px 30px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--duration-base) var(--ease-calm), box-shadow var(--duration-base) var(--ease-calm);
}
.week:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.week.rose { --accent: var(--rose); }
.week .wk-no { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250,247,242,0.78); margin: 0 0 7px; }
.week h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 4px; color: var(--color-cream); }
.week .scrip { font-size: 13.5px; font-style: italic; color: rgba(250,247,242,0.82); margin: 0 0 14px; }
.week > p { font-size: 14.5px; line-height: 1.55; color: rgba(250,247,242,0.84); margin: 0 0 18px; text-wrap: pretty; }
.week .tag {
  margin-top: auto; align-self: flex-start; font-size: 12px; font-weight: 600;
  color: var(--color-cream); background: rgba(250,247,242,0.16); border: 1px solid rgba(250,247,242,0.30);
  padding: 7px 13px; border-radius: var(--radius-pill);
}
.week.rose .gaudete {
  position: absolute; top: 20px; right: 20px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-cream); opacity: .9;
}

/* ---------- the O Antiphons (dark indigo band) ---------- */
.antiphons { background: var(--advent-deep); color: var(--color-cream); position: relative; overflow: hidden; }
.antiphons .hero-glow { top: -20%; right: -10%; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(133,147,174,0.30) 0%, transparent 64%); }
.antiphons .wrap { position: relative; z-index: 2; }
.antiphons .section-head { max-width: 660px; }
.antiphons .section-head .eyebrow { color: var(--advent-soft); }
.antiphons .section-head h2 { color: var(--color-cream); }
.antiphons .section-head h2 b { font-weight: 700; }
.antiphons .section-head p { color: rgba(250,247,242,0.72); }
.ant-list { list-style: none; margin: 8px 0 0; padding: 0; }
.ant {
  display: grid; grid-template-columns: 92px 1fr; gap: 24px; align-items: baseline;
  padding: 22px 0; border-top: 1px solid rgba(250,247,242,0.12);
  transition: background var(--duration-base);
}
.ant:last-child { border-bottom: 1px solid rgba(250,247,242,0.12); }
.ant .date { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--advent-soft); text-transform: uppercase; padding-top: 6px; }
.ant .ant-body { display: flex; flex-direction: column; gap: 4px; }
.ant .latin { font-size: clamp(22px, 2.6vw, 30px); font-weight: 300; font-style: italic; letter-spacing: -0.01em; margin: 0; line-height: 1.1; }
.ant .en { font-size: 15px; color: rgba(250,247,242,0.72); margin: 0; }
.ant .plea { font-size: 14px; color: rgba(250,247,242,0.5); margin: 2px 0 0; text-wrap: pretty; }
.ant:hover { background: rgba(250,247,242,0.03); }

/* ---------- how solua keeps advent ---------- */
.adv-keeps { background: var(--color-surface-1); }
.adv-keeps .wrap { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 72px; align-items: center; }
.adv-points { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 24px; }
.adv-points li { display: flex; gap: 16px; }
.adv-points .ico { width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--color-cream); color: var(--advent); border: 1px solid var(--color-border); }
.adv-points .ico svg { width: 22px; height: 22px; }
.adv-points h4 { margin: 3px 0 5px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.adv-points p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--color-text-secondary); text-wrap: pretty; }
.adv-visual .frame {
  position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 4.5;
  box-shadow: 0 40px 80px rgba(42,49,66,0.34), 0 0 0 1px var(--color-border);
}
.adv-visual image-slot { width: 100%; height: 100%; display: block; }

/* ---------- countdown band ---------- */
.adv-count { background: var(--color-cream); }
.adv-count .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--advent-deep); color: var(--color-cream); border-radius: var(--radius-xl);
  padding: 40px 48px; max-width: var(--site-max); flex-wrap: wrap; }
.adv-count .ac-text h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 300; letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.12; }
.adv-count .ac-text h3 b { font-weight: 700; }
.adv-count .ac-text p { margin: 0; font-size: 15px; color: rgba(250,247,242,0.66); }
.adv-count .ac-stats { display: flex; gap: 14px; }
.adv-count .ac-stat { background: rgba(250,247,242,0.07); border: 1px solid rgba(250,247,242,0.14);
  border-radius: var(--radius-lg); padding: 16px 22px; text-align: center; min-width: 96px; }
.adv-count .ac-stat .v { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.adv-count .ac-stat .k { font-size: 12px; color: rgba(250,247,242,0.6); margin-top: 3px; }

/* ---------- quote ---------- */
.adv-quote { background: var(--color-surface-1); text-align: center; }
.adv-quote .wrap { max-width: 900px; }
.adv-quote .mark { width: 56px; height: 56px; border-radius: 16px; background: var(--advent); color: var(--color-cream);
  display: inline-grid; place-items: center; margin: 0 auto 28px; font-size: 40px; font-weight: 700; line-height: 1; padding-top: 18px; }
.adv-quote blockquote { margin: 0 0 28px; font-size: clamp(25px, 3.2vw, 36px); font-weight: 300; line-height: 1.3;
  letter-spacing: -0.02em; color: var(--color-text-primary); text-wrap: balance; }
.adv-quote blockquote b { font-weight: 600; }
.adv-quote .who { display: inline-flex; align-items: center; gap: 13px; }
.adv-quote .who .av { width: 48px; height: 48px; border-radius: 50%; background: var(--color-surface-2); overflow: hidden; flex-shrink: 0; }
.adv-quote .who .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adv-quote .who .nm { text-align: left; }
.adv-quote .who h5 { margin: 0 0 2px; font-size: 16px; font-weight: 600; }
.adv-quote .who p { margin: 0; font-size: 14px; color: var(--color-text-secondary); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .adv-hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .adv-hero { padding: 128px 0 80px; }
  .adv-hero-visual { order: -1; }
  .weeks-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-keeps .wrap { grid-template-columns: 1fr; gap: 44px; }
  .adv-visual { max-width: 460px; }
  .ant { grid-template-columns: 76px 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .adv-hero { padding: 116px 0 64px; }
  .weeks-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .candles { gap: 20px; }
  .candle .stick { width: 26px; }
  .adv-count .wrap { padding: 30px 26px; }
  .adv-count .ac-stats { width: 100%; }
}
