/* Divine 360: seasonal homepage colors and hero. Homepage only, loaded after theme.css.
   Nothing here applies unless the head script sets <html data-season="fall|winter|newyear">,
   so the rest of the year the homepage looks exactly as before.
   Roles (variables are R G B for Tailwind; see the :root block in index.html):
     page background --c-bg · section bands --c-band (surface) · cards, inputs, disabled buttons --c-card (surface 2)
     borders --c-border · gold --c-gold (buttons, prices, links) · gold hover --c-gold-dark
     accent --c-accent (badges, checkmarks, highlighted card) · accent 2 --c-rose
     body text --c-white, gray 100 and 200 · muted text gray 300 to 600 · text on gold buttons: the page background
   Small accent text (badge text, checkmarks) uses --c-accent-text, which is gold wherever the accent itself is
   under 4.5:1 against what it sits on (winter everywhere; fall on cards). */

html[data-season="fall"] {
  --c-bg: 26 16 11; --c-band: 36 22 15; --c-card: 47 29 20; --c-line: 231 184 80; --c-border: rgba(231,184,80,.22);
  --c-gold: 231 184 80; --c-gold-dark: 201 146 50; --c-accent: 210 105 44; --c-rose: 142 43 38;
  --c-white: 247 238 221; --c-g100: 247 238 221; --c-g200: 247 238 221;
  --c-g300: 217 199 174; --c-g400: 217 199 174; --c-g500: 217 199 174; --c-g600: 217 199 174;
  --c-g700: 47 29 20; --c-g800: 47 29 20; --c-g900: 47 29 20;
  --c-accent-text: 210 105 44; --c-accent-text-card: 231 184 80;
  --d360-bg: #1A100B; --d360-band: #24160F; --d360-card: #2F1D14; --d360-line: rgba(231,184,80,.22);
  --d360-ivory: #F7EEDD; --d360-ivory-2: #D9C7AE; --d360-muted: #D9C7AE;
  --d360-gold: #E7B850; --d360-gold-hover: #C99232; --d360-blush: #D2692C; --d360-rose: #8E2B26;
}
html[data-season="winter"] {
  --c-bg: 14 23 41; --c-band: 20 33 58; --c-card: 27 43 72; --c-line: 231 195 106; --c-border: rgba(231,195,106,.24);
  --c-gold: 232 198 110; --c-gold-dark: 201 160 74; --c-accent: 176 36 60; --c-rose: 47 107 79;
  --c-white: 244 247 251; --c-g100: 244 247 251; --c-g200: 244 247 251;
  --c-g300: 198 210 227; --c-g400: 198 210 227; --c-g500: 198 210 227; --c-g600: 198 210 227;
  --c-g700: 27 43 72; --c-g800: 27 43 72; --c-g900: 27 43 72;
  --c-accent-text: 232 198 110; --c-accent-text-card: 232 198 110;
  --d360-bg: #0E1729; --d360-band: #14213A; --d360-card: #1B2B48; --d360-line: rgba(231,195,106,.24);
  --d360-ivory: #F4F7FB; --d360-ivory-2: #C6D2E3; --d360-muted: #C6D2E3;
  /* theme.css uses blush for checkmark and badge text: gold in winter (the accent is for borders and fills) */
  --d360-gold: #E8C66E; --d360-gold-hover: #C9A04A; --d360-blush: #E8C66E; --d360-rose: #2F6B4F;
}
html[data-season="newyear"] {
  --c-bg: 20 12 34; --c-band: 29 18 48; --c-card: 39 24 63; --c-line: 240 199 94; --c-border: rgba(240,199,94,.26);
  --c-gold: 240 199 94; --c-gold-dark: 211 164 62; --c-accent: 255 79 163; --c-rose: 201 206 216;
  --c-white: 251 244 230; --c-g100: 251 244 230; --c-g200: 251 244 230;
  --c-g300: 217 207 228; --c-g400: 217 207 228; --c-g500: 217 207 228; --c-g600: 217 207 228;
  --c-g700: 39 24 63; --c-g800: 39 24 63; --c-g900: 39 24 63;
  --c-accent-text: 255 79 163; --c-accent-text-card: 255 79 163;
  --d360-bg: #140C22; --d360-band: #1D1230; --d360-card: #27183F; --d360-line: rgba(240,199,94,.26);
  --d360-ivory: #FBF4E6; --d360-ivory-2: #D9CFE4; --d360-muted: #D9CFE4;
  --d360-gold: #F0C75E; --d360-gold-hover: #D3A43E; --d360-blush: #FF4FA3; --d360-rose: #C9CED8;
}

/* Surfaces and borders */
html[data-season] .bg-background { background-color: rgb(var(--c-bg)); }
html[data-season] .bg-white\/5 { background-color: rgb(var(--c-card)); }
html[data-season] .border-white\/5, html[data-season] .border-white\/10, html[data-season] .border-white\/20 { border-color: var(--c-border); }
html[data-season] .bg-primary:hover, html[data-season] .hover\:bg-primary\/90:hover { background-color: rgb(var(--c-gold-dark)) !important; }

/* Small accent text: gold where the accent is too dim for it */
html[data-season] .text-accent { color: rgb(var(--c-accent-text)); }
html[data-season] .bg-white\/5 .text-accent, html[data-season] .bg-card .text-accent { color: rgb(var(--c-accent-text-card)); }
/* Winter: the headline's gradient text runs gold to gold dark instead of through the crimson accent */
html[data-season="winter"] .via-accent { --tw-gradient-stops: var(--tw-gradient-from), rgb(var(--c-gold-dark)) var(--tw-gradient-via-position), var(--tw-gradient-to); }

/* Glows that were written as fixed colors */
html[data-season] [class*="shadow-[0_0_15px_rgba(201,165,92,0.5)]"] { --tw-shadow: 0 0 15px rgb(var(--c-gold) / .5); box-shadow: 0 0 15px rgb(var(--c-gold) / .5); }
html[data-season] [class*="shadow-[0_0_20px_rgba(232,155,190,0.5)]"] { --tw-shadow: 0 0 20px rgb(var(--c-accent) / .5); box-shadow: 0 0 20px rgb(var(--c-accent) / .5); }

/* Sample overlay thumbnails and viewer (fixed colors in index.html) */
html[data-season] .ovl-thumb, html[data-season] .ovl-view .ovl-box { border-color: var(--c-border);
  background: radial-gradient(120% 90% at 50% 35%, rgb(var(--c-card)) 0%, rgb(var(--c-band)) 55%, rgb(var(--c-bg)) 100%); }
html[data-season] .ovl-thumb:hover, html[data-season] .ovl-thumb:focus-visible { border-color: rgb(var(--c-accent)); }
html[data-season] .ovl-view { background: rgb(var(--c-bg) / .92); }
html[data-season] .ovl-view p { color: rgb(var(--c-g400)); }
html[data-season] .ovl-close { border-color: rgb(var(--c-gold)); background: rgb(var(--c-bg)); color: rgb(var(--c-gold)); }

/* Hero */
.season-bg, .season-fx, .season-ball, .season-pill { display: none; }
html[data-season] #hero > div:first-child > img,
html[data-season] #hero > div:first-child > div:not(.season-bg) { display: none; }
html[data-season] .season-bg { display: block; position: absolute; inset: 0; background-color: rgb(var(--c-bg));
  background-repeat: no-repeat; background-size: cover; background-position: center; }
html[data-season] .season-fx { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Fall: the leaves draw on their own layer just after the hero (outside its clipping), in front of the hero text and
   160px past its bottom edge. seasonal-hero.js sets its top and height from the hero's measured box. */
.season-leaves { display: none; }
html[data-season="fall"] .season-fx { display: none; }
html[data-season="fall"] .season-leaves { display: block; position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 15; pointer-events: none; }
html[data-season="fall"] .season-bg { background-image: radial-gradient(ellipse 46% 50% at 50% 50%, rgba(8,5,4,.5), transparent 72%), url(images/seasonal/fall-wide.webp); }
html[data-season="winter"] .season-bg { background-image: radial-gradient(ellipse 46% 50% at 50% 50%, rgba(8,5,4,.5), transparent 72%), url(images/seasonal/winter-wide.webp); }
html[data-season="newyear"] .season-bg { background-image: radial-gradient(ellipse 46% 50% at 50% 50%, rgba(8,5,4,.5), transparent 72%), url(images/seasonal/newyear-wide.webp); }
@media (max-width: 860px) {
  html[data-season="fall"] .season-bg { background-image: radial-gradient(ellipse 46% 50% at 50% 50%, rgba(8,5,4,.5), transparent 72%), url(images/seasonal/fall-tall.webp); }
  html[data-season="newyear"] .season-bg { background-image: radial-gradient(ellipse 46% 50% at 50% 50%, rgba(8,5,4,.5), transparent 72%), url(images/seasonal/newyear-tall.webp); }
  html[data-season="winter"] .season-bg { background-position: center, 85% center; }
}

/* New Year: crystal ball on a thin gold pole, centered at the top, with the countdown pill under its track */
html[data-season="newyear"] #hero { --ball: 110px; --track: 130px; --pill: 44px; --top: 80px; padding-top: calc(var(--top) + var(--track) + var(--ball) + 12px + var(--pill) + 16px); }
@media (max-width: 767px) { html[data-season="newyear"] #hero { --ball: 80px; --track: 70px; --pill: 38px; } }
html[data-season="newyear"] .season-ball { display: block; position: absolute; z-index: 20; top: 0; left: 50%; width: var(--ball);
  height: calc(var(--top) + var(--track) + var(--ball)); transform: translateX(-50%); pointer-events: none; }
.season-pole { position: absolute; left: 50%; top: 0; bottom: calc(var(--ball) / 2); width: 2px; transform: translateX(-50%);
  background: linear-gradient(rgb(var(--c-gold) / .35), rgb(var(--c-gold))); }
.season-ball-img { position: absolute; left: 0; top: var(--top); width: var(--ball); height: var(--ball);
  transform: translateY(calc(var(--track) * var(--p, 0))); filter: drop-shadow(0 0 14px rgb(var(--c-gold) / .45)); }
html[data-season="newyear"] .season-pill { display: flex; align-items: center; justify-content: center; position: absolute; z-index: 20;
  top: calc(var(--top) + var(--track) + var(--ball) + 12px); left: 50%; transform: translateX(-50%); height: var(--pill);
  max-width: calc(100vw - 32px); padding: 0 18px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  background: rgb(var(--c-bg) / .78); border: 1px solid rgb(var(--c-gold) / .55); color: rgb(var(--c-white));
  font: 600 15px/1 Inter, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
html[data-season="newyear"] .season-pill.is-big { font: 700 30px/1 Inter, sans-serif; color: rgb(var(--c-gold)); min-width: calc(var(--pill) * 1.6); }
@media (max-width: 767px) {
  html[data-season="newyear"] .season-pill { font-size: 13px; padding: 0 14px; }
  html[data-season="newyear"] .season-pill.is-big { font-size: 26px; }
}

/* Readability over the season photos: a soft dark halo behind the hero text (no shapes, no layout change).
   The gradient headline gets the same halo as a drop shadow, since a text shadow would cover its gradient. */
html[data-season] #hero .container { text-shadow: 0 0 2px rgba(8,5,4,.9), 0 0 10px rgba(8,5,4,.85), 0 0 22px rgba(8,5,4,.75); }
/* plus a soft dark radial centered on the text block itself (the hero's own radial sits at the hero's center) */
html[data-season] #hero .container::before { content: ''; position: absolute; z-index: -1; inset: -110px -48px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(8,5,4,.74), rgba(8,5,4,.62) 66%, transparent 100%); }
html[data-season] #hero .container .bg-clip-text { text-shadow: none; filter: drop-shadow(0 0 10px rgba(8,5,4,.85)); }
html[data-season] #hero .container a.bg-primary { text-shadow: none; }
/* the small notice line runs wide, past the radial: a denser halo of its own */
html[data-season] #hero .container p.text-sm { text-shadow: 0 0 2px rgba(8,5,4,1), 0 0 6px rgba(8,5,4,.95), 0 0 12px rgba(8,5,4,.95), 0 0 20px rgba(8,5,4,.85); }
html[data-season] #hero .container p.text-sm { position: relative; }
html[data-season] #hero .container p.text-sm::before { content: ''; position: absolute; z-index: -1; inset: -18px -28px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(8,5,4,.78), rgba(8,5,4,.6) 70%, transparent 100%); }
/* Fall: the hero badge text is gold too (the orange accent is under 4.5:1 over the fall photo) */
html[data-season="fall"] #hero .text-accent { color: rgb(var(--c-gold)); }
/* Winter: badge text on the crimson accent fill reads in light text, not dark */
html[data-season="winter"] .bg-accent.text-background { color: rgb(var(--c-white)); }
