/* ============================================================
   SOLUA — The Liturgical Year
   Extends styles.css (header, footer, buttons, .wrap, .reveal,
   .section scaffold, .closing). Anima design system: warm cream,
   soft charcoal, Plus Jakarta Sans, the six seasonal accents.
   ============================================================ */

/* season palette — local handles */
:root {
  --s-advent:    #6B7B9E;
  --s-christmas: #D4B785;
  --s-ordinary:  #7B9279;
  --s-lent:      #8E6F84;
  --s-easter:    #E1CE8E;
  --s-pentecost: #B86B5A;
}

/* ---------- hero ---------- */
.lit-hero {
  position: relative; overflow: hidden;
  background: var(--hero-ink); color: var(--color-cream);
  padding: 150px 0 100px;
}
.lit-hero .hero-glow { top: -10%; right: -6%;
  background: radial-gradient(circle, rgba(123,146,121,0.42) 0%, rgba(123,146,121,0.10) 44%, transparent 70%); }
.lit-hero .hero-glow.two { left: -14%; bottom: -28%; top: auto; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184,107,90,0.34) 0%, transparent 66%); }
.lit-hero .wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 52px; align-items: center;
}
.lit-hero .eyebrow {
  color: rgba(250,247,242,0.62); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.lit-hero .eyebrow::before { content: ""; width: 22px; height: 1px; background: rgba(250,247,242,0.4); }
.lit-hero h1 {
  font-weight: 300; font-size: clamp(42px, 5.4vw, 68px); line-height: 1.05;
  letter-spacing: -0.025em; margin: 0 0 24px; text-wrap: balance;
}
.lit-hero h1 b { font-weight: 700; }
.lit-hero h1 i { font-style: italic; font-weight: 300; }
.lit-hero .lit-sub {
  font-size: 20px; line-height: 1.55; color: rgba(250,247,242,0.74);
  max-width: 32em; margin: 0 0 36px;
}
.lit-hero .hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lit-hero .hero-note { margin: 30px 0 0; font-size: 14px; color: rgba(250,247,242,0.56); font-style: italic; }

/* ---------- the wheel ---------- */
.wheel-wrap { position: relative; display: flex; justify-content: center; align-items: center; }
.wheel { width: 100%; max-width: 460px; height: auto; overflow: visible; }
.wheel-seg {
  cursor: pointer; transform-origin: 210px 210px;
  stroke: var(--hero-ink); stroke-width: 2.5; stroke-linejoin: round;
  transition: opacity var(--duration-base) var(--ease-calm), transform var(--duration-base) var(--ease-calm);
}
.wheel.has-active .wheel-seg { opacity: 0.34; }
.wheel.has-active .wheel-seg.active { opacity: 1; transform: scale(1.035); }
.wheel-label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--color-cream); }
.wheel-label.dark { fill: #1F1D1B; }
.wheel-hub-ring { fill: none; stroke: rgba(250,247,242,0.16); stroke-width: 1; }
.wheel-hub-bg { fill: rgba(20,16,14,0.0); }
.hub-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; fill: rgba(250,247,242,0.5); }
.hub-season { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; fill: var(--color-cream); }
.hub-sub { font-size: 12px; font-weight: 500; fill: rgba(250,247,242,0.6); font-style: italic; }
.wheel-tick { fill: var(--hero-ink); }
.today-dot { fill: var(--color-cream); }
.today-ring { fill: none; stroke: var(--color-cream); stroke-width: 2;
  transform-origin: 346.86px 282.77px; animation: todayPulse 2.6s ease-out infinite; }
@keyframes todayPulse { 0% { opacity: .9; transform: scale(0.5);} 70% { opacity: 0; transform: scale(2.4);} 100% { opacity: 0; transform: scale(2.4);} }
@media (prefers-reduced-motion: reduce) { .today-ring { animation: none; opacity: .5; } }
.today-flag {
  position: absolute; z-index: 3; right: 4%; bottom: 16%;
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(20,16,14,0.62); backdrop-filter: blur(12px);
  border: 1px solid rgba(250,247,242,0.16);
  border-radius: var(--radius-pill); padding: 9px 15px 9px 12px; color: var(--color-cream);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.today-flag .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--s-ordinary); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(123,146,121,0.6); animation: pulse 2s infinite; }
.today-flag b { font-size: 13px; font-weight: 700; }
.today-flag small { display: block; font-size: 11px; color: rgba(250,247,242,0.62); font-weight: 500; }

/* ---------- seasons grid ---------- */
.seasons { background: var(--color-cream); }
.seasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.season {
  --accent: var(--s-ordinary);
  background: var(--color-surface-1); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--duration-base) var(--ease-calm), box-shadow var(--duration-base) var(--ease-calm);
}
.season:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.season { position: relative; }
.season-link { position: absolute; inset: 0; z-index: 4; border-radius: var(--radius-lg); }
.season.has-page .swatch::after {
  content: "Explore →"; position: absolute; bottom: 16px; right: 18px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--color-cream);
  background: rgba(20,16,14,0.28); border: 1px solid rgba(250,247,242,0.3);
  padding: 6px 12px; border-radius: var(--radius-pill); backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(4px); transition: opacity var(--duration-base) var(--ease-calm), transform var(--duration-base) var(--ease-calm);
}
.season.has-page.tint-light .swatch::after { color: #4A4128; background: rgba(255,255,255,0.4); border-color: rgba(74,65,40,0.25); }
.season.has-page:hover .swatch::after { opacity: 1; transform: none; }
.season .swatch {
  height: 116px; background: var(--accent); position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 16px 20px;
}
.season .swatch .num {
  position: absolute; top: 14px; right: 18px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.7);
}
.season .swatch .glyph { width: 34px; height: 34px; color: var(--color-cream); opacity: .95; }
.season.tint-light .swatch .glyph, .season.tint-light .swatch .num { color: #4A4128; }
.season.tint-light .swatch .num { color: rgba(74,65,40,0.7); }
.season .body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.season .when { font-size: 12px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.season h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 3px; }
.season .latin { font-size: 14px; font-style: italic; color: var(--color-text-secondary); margin: 0 0 14px; }
.season > .body > p { font-size: 14.5px; line-height: 1.55; color: var(--color-text-secondary); margin: 0 0 18px; text-wrap: pretty; }
.season .pray {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: 8px;
}
.season .pray .lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }
.season .pray ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.season .pray li {
  font-size: 12.5px; font-weight: 500; color: var(--color-text-primary);
  background: var(--color-cream); border: 1px solid var(--color-border);
  padding: 6px 12px; border-radius: var(--radius-pill);
}

/* ---------- how solua moves with the season ---------- */
.moves { background: var(--color-surface-1); }
.moves .wrap { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 72px; align-items: center; }
.moves-points { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 24px; }
.moves-points li { display: flex; gap: 16px; }
.moves-points .ico { width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--color-cream); color: var(--sage); border: 1px solid var(--color-border); }
.moves-points .ico svg { width: 22px; height: 22px; }
.moves-points h4 { margin: 3px 0 5px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.moves-points p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--color-text-secondary); text-wrap: pretty; }

/* season-shifting preview card */
.shift-card {
  background: var(--color-cream); border-radius: var(--radius-xl); padding: 26px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--color-border);
}
.shift-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.shift-head .kick { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }
.shift-tabs { display: flex; gap: 6px; }
.shift-tab { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; transition: transform var(--duration-fast) var(--ease-calm), border-color var(--duration-fast); }
.shift-tab[aria-pressed="true"] { transform: scale(1.12); border-color: rgba(31,29,27,0.22); }
.shift-stage {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; color: var(--color-cream);
  background: var(--accent, var(--s-ordinary));
  transition: background var(--duration-slow) var(--ease-calm);
}
.shift-stage::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 80% 0%, rgba(255,255,255,0.16), transparent 60%),
              linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.34)); }
.shift-stage > * { position: relative; z-index: 1; }
.shift-stage .glyph { width: 40px; height: 40px; margin-bottom: auto; opacity: .95; }
.shift-stage .season-name { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: .85; margin: 0 0 6px; }
.shift-stage h4 { font-size: 25px; font-weight: 300; line-height: 1.16; letter-spacing: -0.01em; margin: 0 0 6px; text-wrap: balance; }
.shift-stage h4 b { font-weight: 700; }
.shift-stage p { margin: 0; font-size: 13.5px; line-height: 1.5; opacity: .85; }
.shift-card.tint-light .shift-stage { color: #4A4128; }
.shift-card.tint-light .shift-stage::after { background: radial-gradient(120% 90% at 80% 0%, rgba(255,255,255,0.3), transparent 60%), linear-gradient(180deg, transparent 40%, rgba(74,65,40,0.16)); }
.shift-foot { margin-top: 18px; font-size: 13px; color: var(--color-text-secondary); line-height: 1.5; }
.shift-foot b { color: var(--color-text-primary); font-weight: 600; }

/* ---------- today band ---------- */
.today-band { background: var(--hero-ink); color: var(--color-cream); position: relative; overflow: hidden; }
.today-band .hero-glow { top: 50%; left: 50%; transform: translate(-50%,-50%); width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(123,146,121,0.34) 0%, transparent 62%); }
.today-band .wrap { position: relative; z-index: 2; text-align: center; max-width: 760px; }
.today-band .eyebrow { color: var(--s-ordinary); justify-content: center; display: flex; }
.today-band h2 { font-size: clamp(32px, 4vw, 50px); font-weight: 300; line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 20px; text-wrap: balance; }
.today-band h2 b { font-weight: 700; }
.today-band h2 i { font-style: italic; font-weight: 300; }
.today-band > .wrap > p { font-size: 19px; line-height: 1.6; color: rgba(250,247,242,0.74); margin: 0 auto 34px; max-width: 34em; text-wrap: pretty; }
.today-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.today-stat { background: rgba(250,247,242,0.06); border: 1px solid rgba(250,247,242,0.14); border-radius: var(--radius-lg);
  padding: 18px 26px; min-width: 150px; }
.today-stat .v { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.today-stat .k { font-size: 13px; color: rgba(250,247,242,0.6); margin-top: 4px; }

/* ---------- quote ---------- */
.lit-quote { background: var(--color-cream); text-align: center; }
.lit-quote .wrap { max-width: 900px; }
.lit-quote .mark {
  width: 56px; height: 56px; border-radius: 16px; background: var(--sage); 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;
}
.lit-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;
}
.lit-quote blockquote b { font-weight: 600; }
.lit-quote .who { display: inline-flex; align-items: center; gap: 13px; }
.lit-quote .who .av { width: 48px; height: 48px; border-radius: 50%; background: var(--color-surface-2); overflow: hidden; flex-shrink: 0; }
.lit-quote .who .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lit-quote .who .nm { text-align: left; }
.lit-quote .who h5 { margin: 0 0 2px; font-size: 16px; font-weight: 600; }
.lit-quote .who p { margin: 0; font-size: 14px; color: var(--color-text-secondary); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .lit-hero .wrap { grid-template-columns: 1fr; gap: 52px; }
  .lit-hero { padding: 128px 0 80px; }
  .wheel-wrap { order: -1; }
  .wheel { max-width: 400px; }
  .seasons-grid { grid-template-columns: repeat(2, 1fr); }
  .moves .wrap { grid-template-columns: 1fr; gap: 44px; }
  .shift-card { order: -1; max-width: 460px; }
}
@media (max-width: 560px) {
  .lit-hero { padding: 116px 0 64px; }
  .seasons-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .today-stat { min-width: 120px; padding: 16px 20px; }
}

/* Dynamic current-season color
   --current-season is set from JS at runtime based on today's liturgical season.
   Defaults to Ordinary Time so the page reads correctly before JS runs. */
:root { --current-season: var(--s-ordinary); }
.today-flag .dot { background: var(--current-season); }
.today-flag small { color: var(--current-season); opacity: 1; }
.today-band > .wrap > p.eyebrow { color: var(--current-season); }
.today-stat .v { color: var(--color-cream); }
.shift-stage { text-decoration: none; color: inherit; cursor: pointer; }
.shift-stage:hover { filter: brightness(1.04); }
