/* Fall / Thanksgiving 2026 theme for the homepage. Seasonal and reversible: every themed rule hangs off html.fall,
   which /fall.js adds only until 1 December 2026. After that (or with ?fall=off) the page is the normal homepage
   again. Art lives in /assets/fall/ (small SVGs, no photos). The vote card hides itself by date (home.js). */

/* ---- Costume Contest voting card ---- */
.vote-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 32px);
  margin-top: 18px; padding: clamp(20px, 4vw, 32px) clamp(18px, 4vw, 40px);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(240, 150, 60, .4);
  /* Always dark, so the copy stays light in both themes. */
  background:
    radial-gradient(420px 260px at 0% 100%, rgba(232, 120, 40, .32), transparent 70%),
    radial-gradient(500px 300px at 100% 0%, rgba(201, 69, 42, .28), transparent 70%),
    linear-gradient(135deg, #2a140a, #3a1d0e 60%, #22100a);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
  color: #fff6ea;
}
.vote-card[hidden] { display: none; }
.vote-card .vote-art { font-size: clamp(3rem, 9vw, 5.2rem); line-height: 1; filter: drop-shadow(0 10px 20px rgba(232, 120, 40, .45)); }
.vote-card .eyebrow { margin: 0 0 8px; color: #ffbf6b; }
.vote-card h2 { margin: 0; font-size: clamp(1.45rem, 3.8vw, 2.3rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 900; }
.vote-card .pitch { margin: 10px 0 0; max-width: 580px; color: #f1dcc6; }
.vote-card .vote-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.vote-card .btn.primary { background: linear-gradient(135deg, #ffbf4d, #e2702a); box-shadow: 0 10px 30px rgba(226, 112, 42, .4); color: #2a140a; }
.vote-card .vote-meta { margin: 14px 0 0; font-size: .95rem; color: #e6cdb2; }
.vote-card .vote-meta a { color: #ffcf8a; font-weight: 800; text-underline-offset: 3px; }
.vote-card .vote-meta a:hover { color: #fff; }
@media (max-width: 560px) {
  .vote-card { grid-template-columns: minmax(0, 1fr); }
  .vote-card .vote-art { position: absolute; top: 14px; right: 16px; font-size: 2.6rem; }
  .vote-card .eyebrow, .vote-card h2 { padding-right: 56px; }
  .vote-card .vote-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---- Palette: harvest browns, pumpkin and cranberry ---- */
html.fall:not([data-theme="light"]) {
  --bg: #140b06;
  --bg-2: #22130a;
  --card: rgba(42, 24, 13, .88);
  --text: #fff7ee;
  --muted: #e0c9b3;
  --line: rgba(255, 210, 160, .16);
  --gold: #ffbf4d;
  --pink: #e2702a;
  --blue: #f4c542;
  --green: #b5d16a;
  --dz-nav-bg: rgba(38, 21, 11, .84);
  --dz-nav-text: #fff7ee;
  --dz-nav-muted: #e0c9b3;
  --dz-nav-line: rgba(255, 210, 160, .2);
  --dz-nav-accent: #ffb45a;
}
/* Light mode: warm cream and wheat, same dark vote card. */
html.fall[data-theme="light"] {
  --bg: #fff8ef;
  --bg-2: #fbeedb;
  --card: rgba(255, 255, 255, .92);
  --line: rgba(110, 60, 20, .14);
  --dz-nav-accent: #b5521a;
}
html.fall body {
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(226, 112, 42, .2), transparent 60%),
    radial-gradient(800px 520px at 100% 0%, rgba(201, 69, 42, .16), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
html.fall .shell { position: relative; z-index: 1; }

/* ---- Drifting leaves and a strutting turkey behind the page (added by fall.js) ---- */
.fall-sky { display: none; }
html.fall .fall-sky { display: block; position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.fall-leaf {
  position: absolute; top: -60px; width: 34px; aspect-ratio: 1; opacity: .55;
  background: url("/assets/fall/leaf.svg") no-repeat center / contain;
  animation: fall-drift 16s linear infinite;
}
.fall-leaf.l2, .fall-leaf.l5, .fall-leaf.l8 { background-image: url("/assets/fall/leaf-2.svg"); }
.fall-leaf.l3, .fall-leaf.l6 { background-image: url("/assets/fall/leaf-3.svg"); }
.fall-leaf.l1 { left: 3%; animation-delay: 0s; }
.fall-leaf.l2 { left: 12%; width: 26px; animation-duration: 19s; animation-delay: -6s; }
.fall-leaf.l3 { left: 24%; width: 22px; animation-duration: 22s; animation-delay: -12s; opacity: .4; }
.fall-leaf.l4 { left: 47%; width: 24px; animation-duration: 21s; animation-delay: -3s; opacity: .35; }
.fall-leaf.l5 { left: 66%; animation-duration: 18s; animation-delay: -9s; }
.fall-leaf.l6 { left: 78%; width: 28px; animation-duration: 20s; animation-delay: -15s; }
.fall-leaf.l7 { left: 88%; width: 22px; animation-duration: 24s; animation-delay: -4s; opacity: .4; }
.fall-leaf.l8 { left: 96%; width: 30px; animation-duration: 17s; animation-delay: -11s; }
@keyframes fall-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(28px, 27vh) rotate(90deg); }
  50% { transform: translate(-18px, 54vh) rotate(200deg); }
  75% { transform: translate(24px, 81vh) rotate(290deg); }
  100% { transform: translate(-6px, 112vh) rotate(380deg); }
}
.fall-turkey {
  position: absolute; bottom: 18px; left: max(8px, calc(50% - 700px)); width: clamp(70px, 8vw, 110px); aspect-ratio: 140 / 130;
  background: url("/assets/fall/turkey.svg") no-repeat center / contain; opacity: .9;
  animation: fall-strut 2.4s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes fall-strut {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg) translateY(-3px); }
}
html.fall[data-theme="light"] .fall-leaf { opacity: .45; }
@media (max-width: 1240px) { .fall-turkey { display: none; } } /* only where there's free margin beside the page */
@media (max-width: 700px) { .fall-leaf.l3, .fall-leaf.l4, .fall-leaf.l7 { display: none; } }

/* ---- Touches on the existing sections ---- */
html.fall .hero h1 span,
html.fall[data-theme="light"] .hero h1 span { background-image: linear-gradient(90deg, #f4c542, #e2702a 55%, #c9452a); }
html.fall .hero .eyebrow::before { content: "🍂 "; }
html.fall .honk-meter {
  background: linear-gradient(120deg, rgba(226, 112, 42, .24), rgba(201, 69, 42, .14)), var(--card);
  border-color: color-mix(in srgb, #e2702a 40%, var(--line));
}
html.fall .honk-button,
html.fall .btn.primary { background: linear-gradient(135deg, #ffbf4d, #e2702a); color: #2a140a; }
html.fall .section-title::before { content: "🍁"; font-size: 1rem; letter-spacing: 0; }
html.fall .footer::before {
  content: "🍂 🦃 🥧 🦃 🍂"; flex-basis: 100%; text-align: center; letter-spacing: .4em; font-size: 1.1rem; opacity: .85;
}

/* ---- Global Turkey count in the HONK meter (homepage) ---- */
.turkey-count {
  display: flex; flex-direction: column; gap: 2px; padding: 0 18px; border-left: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.turkey-count[hidden] { display: none; }
.turkey-count h2 { margin: 0; font-size: .8rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; color: #ffbf6b; }
.turkey-count strong { font-size: clamp(1.5rem, 3.6vw, 2rem); font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; color: #ffc83d; }
.turkey-count small { color: var(--muted); font-size: .76rem; }
.turkey-count:hover strong { text-decoration: underline; }
.turkey-count:focus-visible { outline: 3px solid #ffbf4d; outline-offset: 4px; border-radius: 8px; }
:root[data-theme="light"] .turkey-count h2, :root[data-theme="light"] .turkey-count strong { color: #a8540a; }
@media (max-width: 700px) { .turkey-count { padding: 0; border-left: 0; } }

/* ---- Motion: gentle, and none at all for people who ask for less ---- */
@media (prefers-reduced-motion: reduce) {
  .fall-leaf { animation: none; top: 22%; }
  .fall-leaf.l2, .fall-leaf.l6 { top: 58%; }
  .fall-leaf.l3, .fall-leaf.l4, .fall-leaf.l7 { display: none; }
  .fall-turkey { animation: none; }
}
