/* ColorLull seasonal look: Christmas (user decision 2026-11-18). Loaded by base.html only when
   site.yaml has `season: christmas`; every class starts with xm- so nothing leaks when it is off.
   Same spirit as the rest of the site: paper, ink line work, a few deep holiday colors used
   sparingly. No inline style (strict CSP), no external resource, motion off under
   prefers-reduced-motion. Banner texts pass WCAG AA (cream on pine: 10.6:1, gold link: 7.4:1). */

[data-season="christmas"] {
  --xm-pine: #23473a;      /* banner, holly leaves */
  --xm-pine-2: #2f5b4a;
  --xm-berry: #a3324a;     /* baubles, holly berries (decorative) */
  --xm-gold: #c99a3c;      /* star, bauble (decorative) */
  --xm-gold-soft: #f1d79c; /* link on the pine banner */
  --xm-cream: #faf3e3;
  --xm-frost: #8fb0c0;     /* snowflakes (decorative) */
}

/* ------------------------------------------------------------------ banner */
.xm-banner { background: var(--xm-pine); color: var(--xm-cream); font-size: var(--text-sm); }
.xm-banner__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  column-gap: var(--s-4); row-gap: var(--s-1); padding-block: var(--s-2); text-align: center; }
.xm-banner__text { margin: 0; }
.xm-banner__text strong { font-family: var(--font-display); font-weight: 400; font-size: 1.05em; letter-spacing: .01em; }
.xm-banner__link { color: var(--xm-gold-soft); font-weight: 700; white-space: nowrap; display: inline-flex;
  align-items: center; min-height: 32px; text-underline-offset: .25em; }
.xm-banner__link::after { content: "→"; margin-left: .35em; transition: transform .25s ease; }
.xm-banner__link:hover { color: #fff; }
.xm-banner__link:hover::after { transform: translateX(3px); }
.xm-banner__link:focus-visible { outline-color: var(--xm-gold-soft); }
.xm-star { width: 1rem; height: 1rem; flex: none; fill: var(--xm-gold); }

/* ------------------------------------------------------------------ garland under the masthead */
[data-season] .masthead { position: relative; }
.xm-garland { position: absolute; left: 0; right: 0; top: 100%; height: 30px; z-index: 3; pointer-events: none;
  margin-top: -2px; }
.xm-garland svg { display: block; }
.xm-garland__string { fill: none; stroke: var(--ink); stroke-width: 1.1; opacity: .45; }
.xm-garland__leaves path { fill: none; stroke: var(--xm-pine-2); stroke-width: 1.6; stroke-linecap: round; }
.xm-garland__balls line { stroke: var(--ink); stroke-width: 1; opacity: .45; }
.xm-garland__balls circle { stroke: var(--ink); stroke-width: 1.1; }
.xm-b1 { fill: var(--xm-berry); }
.xm-b2 { fill: var(--xm-gold); }
.xm-b3 { fill: var(--xm-pine-2); }
.xm-b4 { fill: #f4efe4; }
@media (max-width: 34rem) { .xm-garland { height: 24px; } }

/* ------------------------------------------------------------------ snow behind the home hero */
.xm-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.xm-snow { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.xm-flake { position: absolute; top: -2rem; width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--xm-frost);
  stroke-width: 1.3; stroke-linecap: round; opacity: .7; }
.xm-flake:nth-child(2)  { left: 4%;  width: .9rem;  height: .9rem; }
.xm-flake:nth-child(3)  { left: 12%; width: 1.4rem; height: 1.4rem; }
.xm-flake:nth-child(4)  { left: 21%; width: .8rem;  height: .8rem; }
.xm-flake:nth-child(5)  { left: 29%; }
.xm-flake:nth-child(6)  { left: 37%; width: 1.6rem; height: 1.6rem; opacity: .5; }
.xm-flake:nth-child(7)  { left: 45%; width: .9rem;  height: .9rem; }
.xm-flake:nth-child(8)  { left: 53%; width: 1.2rem; height: 1.2rem; }
.xm-flake:nth-child(9)  { left: 61%; width: .8rem;  height: .8rem; }
.xm-flake:nth-child(10) { left: 69%; width: 1.5rem; height: 1.5rem; opacity: .55; }
.xm-flake:nth-child(11) { left: 77%; }
.xm-flake:nth-child(12) { left: 84%; width: .9rem;  height: .9rem; }
.xm-flake:nth-child(13) { left: 91%; width: 1.3rem; height: 1.3rem; }
.xm-flake:nth-child(14) { left: 97%; width: .8rem;  height: .8rem; }
.xm-flake:nth-child(15) { left: 49%; width: 1rem;   height: 1rem; }
/* without motion: flakes rest at scattered heights */
.xm-flake:nth-child(odd)  { top: 18%; }
.xm-flake:nth-child(3n)   { top: 58%; }
.xm-flake:nth-child(4n)   { top: 36%; }
.xm-flake:nth-child(5n)   { top: 80%; }
@media (prefers-reduced-motion: no-preference) {
  .xm-flake { top: -2rem; animation: xm-fall 22s linear infinite, xm-sway 6s ease-in-out infinite alternate; }
  .xm-flake:nth-child(odd)  { top: -2rem; animation-duration: 27s, 7s; }
  .xm-flake:nth-child(3n)   { top: -2rem; animation-duration: 19s, 5s; }
  .xm-flake:nth-child(4n)   { top: -2rem; animation-duration: 31s, 8s; }
  .xm-flake:nth-child(5n)   { top: -2rem; }
  .xm-flake:nth-child(2)  { animation-delay: -3s, 0s; }
  .xm-flake:nth-child(3)  { animation-delay: -11s, -2s; }
  .xm-flake:nth-child(4)  { animation-delay: -6s, -4s; }
  .xm-flake:nth-child(5)  { animation-delay: -16s, -1s; }
  .xm-flake:nth-child(6)  { animation-delay: -1s, -3s; }
  .xm-flake:nth-child(7)  { animation-delay: -20s, -5s; }
  .xm-flake:nth-child(8)  { animation-delay: -9s, -2s; }
  .xm-flake:nth-child(9)  { animation-delay: -14s, 0s; }
  .xm-flake:nth-child(10) { animation-delay: -4s, -6s; }
  .xm-flake:nth-child(11) { animation-delay: -18s, -3s; }
  .xm-flake:nth-child(12) { animation-delay: -7s, -1s; }
  .xm-flake:nth-child(13) { animation-delay: -12s, -4s; }
  .xm-flake:nth-child(14) { animation-delay: -24s, -2s; }
  .xm-flake:nth-child(15) { animation-delay: -2s, -5s; }
}
@keyframes xm-fall { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(46rem) rotate(200deg); } }
@keyframes xm-sway { from { margin-left: -14px; } to { margin-left: 14px; } }

/* Christmas washes behind the hero (home.js sets per-slide colors inline: overridden here) */
[data-season="christmas"] .hm-washes span:nth-child(1) { background: #e9b8a0 !important; }
[data-season="christmas"] .hm-washes span:nth-child(2) { background: #e8c98a !important; }
[data-season="christmas"] .hm-washes span:nth-child(3) { background: #9fc4ac !important; }

/* ------------------------------------------------------------------ home section */
.xm-home { padding-top: clamp(1rem, .5rem + 1.5vw, 2rem); }
.xm-card { position: relative; display: grid; gap: var(--s-6); align-items: center;
  background: linear-gradient(135deg, #f4efe4, #ece6d6); border: 1px solid var(--rule); border-radius: 10px;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); overflow: hidden; }
@media (min-width: 56rem) { .xm-card { grid-template-columns: 1fr 1.1fr; gap: var(--s-7); } }
.xm-card::before { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(35, 71, 58, .28);
  border-radius: 6px; pointer-events: none; }
.xm-card .kicker { color: var(--xm-berry); }
.xm-card .h2 { margin-bottom: var(--s-3); }
.xm-card .lede { margin-bottom: var(--s-5); }
.xm-card .btn { --accent: var(--xm-pine); }
.xm-card__copy { position: relative; }
.xm-holly { position: absolute; right: -.25rem; top: -.5rem; width: clamp(4.5rem, 3rem + 4vw, 7rem); height: auto;
  transform: rotate(14deg); }
.xm-holly__leaf { fill: var(--xm-pine-2); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.xm-holly__vein { fill: none; stroke: #cfe0d3; stroke-width: 1.1; stroke-linecap: round; }
.xm-holly__berry { fill: var(--xm-berry); stroke: var(--ink); stroke-width: 1.2; }

.xm-covers { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-5); list-style: none;
  margin: 0; padding: 0; }
.xm-covers > li { flex: 0 1 12.5rem; min-width: 8.5rem; }
.xm-covers a { display: block; color: var(--ink); text-decoration: none; }
.xm-covers img { width: 100%; aspect-ratio: 8.5 / 11; object-fit: cover; border-radius: 3px; background: var(--sheet);
  box-shadow: 0 2px 4px rgba(30, 28, 25, .1), 0 18px 34px -18px rgba(30, 28, 25, .55);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.xm-covers a:hover img, .xm-covers a:focus-visible img { transform: translateY(-5px) rotate(-1deg); }
.xm-covers__name { display: block; margin-top: var(--s-3); font-size: var(--text-sm); font-weight: 700; line-height: 1.3; }
.xm-covers__soon { display: flex; align-items: center; justify-content: center; aspect-ratio: 8.5 / 11;
  border: 1.5px dashed rgba(35, 71, 58, .45); border-radius: 3px; color: var(--xm-pine);
  font-family: var(--font-display); font-size: 1.05rem; text-align: center; padding: var(--s-3); }
