/* ==========================================================================
   thanksgiving.css · "Harvest" seasonal skin, Thanksgiving 2026
   Every rule is scoped to html.thanksgiving, which /seasonal.js only sets
   inside the skin's date window, so outside it this file does nothing.

   The site keeps its light paper look, warmed a shade: harvest-brown banner,
   rust brand mark, the background mesh in amber, and a few leaves drifting
   down behind the content. Everything the shopper clicks is untouched.
   ========================================================================== */

html.thanksgiving {
  --paper: #FAF4EA;
  --wash: #F3EADB;
  --sand: #EFE3CF;
  --line: #E6D9C3;
  --line-soft: #EFE5D4;
  --mark-bg: #7A3414;      /* brand mark goes rust */
  --mark-fg: #FBF5EA;
  --mesh-rgb: 154, 74, 6;  /* mesh lines in amber instead of ink */
  --mesh-max: 0.10;
}
html.thanksgiving body { background: var(--paper); }

/* ---------- banner + headline extra (hidden by the [hidden] attribute
   everywhere else, so they stay out of sight even if this file fails) ---- */
html.thanksgiving .tg-bar[hidden] { display: block; }
html.thanksgiving .tg-only[hidden] { display: inline; }
.tg-bar {
  background: #3A2416; color: #F7B25C;
  font-family: var(--mono); font-size: 11px; letter-spacing: var(--ls);
  text-transform: uppercase; text-align: center;
  padding: 9px 16px;
}
html.thanksgiving .tg-only { font-style: italic; color: #7A3414; }

/* ---------- falling leaves, behind the content (#site is z-index 5) ---------- */
html.thanksgiving .tg-leaves[hidden] { display: block; }
.tg-leaves {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1; pointer-events: none; overflow: hidden;
}
.tg-leaves i {
  position: absolute; top: -40px; left: var(--x);
  width: var(--s); height: var(--s);
  background: var(--c);
  border-radius: 0 72% 0 72%;   /* a simple leaf: two rounded corners */
  opacity: 0;
}
.tg-leaves i::after {          /* the vein */
  content: ''; position: absolute; left: 50%; top: 12%; bottom: 12%;
  width: 1px; background: rgba(58, 36, 22, 0.35);
  transform: rotate(45deg); transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  .tg-leaves i { animation: tg-fall var(--d) linear var(--w) infinite; }
}
@keyframes tg-fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.55; }
  50%  { transform: translate3d(40px, 52vh, 0) rotate(160deg); }
  92%  { opacity: 0.5; }
  100% { transform: translate3d(-20px, 108vh, 0) rotate(320deg); opacity: 0; }
}
/* phones: fewer leaves so the small screen never feels busy */
@media (max-width: 640px) {
  .tg-leaves i:nth-child(n+7) { display: none; }
}

/* ---------- maple leaves mixed into the fall (class m) ---------- */
.tg-leaves i.m {
  border-radius: 0;
  clip-path: polygon(50% 0, 58% 18%, 72% 10%, 68% 32%, 90% 26%, 82% 44%, 100% 50%, 80% 60%, 86% 74%,
    62% 70%, 56% 86%, 52% 86%, 52% 100%, 48% 100%, 48% 86%, 44% 86%, 38% 70%, 14% 74%, 20% 60%,
    0 50%, 18% 44%, 10% 26%, 32% 32%, 28% 10%, 42% 18%);
}
.tg-leaves i.m::after { display: none; }

/* ---------- leaf garland under the banner ---------- */
html.thanksgiving .tg-bar::after {
  content: ''; display: block; height: 12px; margin: 9px -16px -9px;
  background: #F3EADB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='12' viewBox='0 0 72 12'%3E%3Cpath d='M0 6 Q9 1 18 6 T36 6 T54 6 T72 6' fill='none' stroke='%237A3414' stroke-width='1' opacity='.55'/%3E%3Cpath d='M12 4.2 q3-4 7-2 q-3 4-7 2z' fill='%23C2621A'/%3E%3Cpath d='M30 7.6 q3 4 7 2 q-3-4-7-2z' fill='%23D99A2B'/%3E%3Cpath d='M48 4.2 q3-4 7-2 q-3 4-7 2z' fill='%238A3B12'/%3E%3Cpath d='M66 7.6 q3 4 7 2 q-3-4-7-2z' fill='%23A4500A'/%3E%3C/svg%3E") repeat-x center;
}

/* ---------- footer thank-you ---------- */
html.thanksgiving .tg-block[hidden] { display: block; }
.tg-block.eyebrow { color: var(--btc-deep); }

/* ---------- homepage "table talk": three questions family asks at dinner.
   Reuses the site's own sizes: section head, the lede's 23px floor, body. -- */
html.thanksgiving .tg-talk[hidden] { display: block; }
.tg-talk { padding-bottom: 96px; }
.tg-talk .sec-head { padding-top: 0; padding-bottom: 0; border-bottom: 0; }
.tg-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 36px; margin-top: 8px;
}
.tg-card { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 30px; min-width: 0; }
.tg-card .eyebrow { display: block; }
.tg-q + .eyebrow { margin-top: 22px; }
.tg-q {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 23px; line-height: 1.3; color: var(--ink); margin: 10px 0 0;
}
.tg-a { font-size: 15.5px; line-height: 1.7; color: var(--ink-dim); margin: 10px 0 0; max-width: 40ch; }
.tg-talk .more-row { margin: 44px 0 0; }
@media (max-width: 760px) {
  .tg-cards { grid-template-columns: 1fr; }
  .tg-talk { padding-bottom: 72px; }
}
