:root {
  --cream: #eeebe2;
  --red: #c9001e;
  --green: #076039;
  --gold: #f5cf68;
  --ink: #4a1723;
  --header-h: 66px;
  --section-red: #c20020;

  /* Decorative line art for the wide-screen hero gift doodles */
  --svg-gift: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 90'%3E%3Cg fill='none' stroke='%23eeebe2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='12' y='32' width='46' height='46' rx='2'/%3E%3Cpath d='M35 32v46M12 48h46M19 31h32'/%3E%3Cpath d='M35 31c-2-11-10-16-15-13-5 3-2 11 15 13ZM35 31c2-11 10-16 15-13 5 3 2 11-15 13Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--red); font-family: Arial, Helvetica, sans-serif; color: var(--cream); }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: min(1120px, 94%); margin: auto; }
.nowrap { white-space: nowrap; }

/* Keep anchored sections clear of the sticky header (the fairy lights are allowed to overlap) */
[id] { scroll-margin-top: calc(var(--header-h) + 1px); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Copy that depends on the input type (mouse vs touch) */
.on-touch { display: none; }
@media (hover: none) {
  .on-hover { display: none; }
  .on-touch { display: inline; }
}

/* ---------- Header ---------- */
header { background: var(--cream); color: var(--red); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #d9d3c7; }
nav { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-weight: 900; letter-spacing: 1px; font-size: 22px; white-space: nowrap; }
.logo small { font-weight: 600; letter-spacing: 0; margin-left: 10px; font-size: 15px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 13px 24px; border-radius: 50px; background: var(--gold); color: #5c1319; font-weight: 800; font-size: 13px; line-height: 1.2; text-align: center; border: 0; transition: transform .2s, filter .2s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.navbtn { background: var(--green); color: var(--cream); white-space: nowrap; }
.ghost { background: #dc2744; color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 0 46px;
  background: radial-gradient(ellipse at center 15%, #e40028 0%, #c9001e 72%, #ad001b 100%);
}
.hero > .wrap { position: relative; z-index: 2; }

/* Snow drift along the bottom edge, flowing into the cream art strip */
.hero::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 52px;
  pointer-events: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 52' preserveAspectRatio='none'><path d='M0 32C30 20 52 28 80 24S130 12 160 22S214 34 240 32V52H0Z' fill='%23f8f6f0'/><path d='M0 40C24 32 50 38 76 34S124 26 152 34S206 42 240 40V52H0Z' fill='%23eeebe2'/></svg>") repeat-x left bottom / 240px 52px;
}

/* String of fairy lights hanging from the sticky header, so it stays on screen while scrolling.
   Two glow layers twinkle out of phase. Clicks pass through to the page below. */
.garland {
  --garland-h: 46px;
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  right: 0;
  height: var(--garland-h);
  pointer-events: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 46'><path d='M0 6Q70 40 140 6' fill='none' stroke='%235e0b16' stroke-width='2'/><g fill='%23b8913c'><rect x='25.5' y='15' width='5' height='5' rx='1'/><rect x='67.5' y='21' width='5' height='5' rx='1'/><rect x='109.5' y='15' width='5' height='5' rx='1'/></g><ellipse cx='28' cy='26' rx='4.4' ry='6.2' fill='%23ffd75e'/><ellipse cx='70' cy='32' rx='4.4' ry='6.2' fill='%2336c47a'/><ellipse cx='112' cy='26' rx='4.4' ry='6.2' fill='%23fff4d6'/><g fill='%23fff' opacity='.7'><ellipse cx='26.6' cy='23.5' rx='1.2' ry='2'/><ellipse cx='68.6' cy='29.5' rx='1.2' ry='2'/><ellipse cx='110.6' cy='23.5' rx='1.2' ry='2'/></g></svg>") repeat-x center top / 140px 46px;
}
.garland::before, .garland::after {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-position: center top;
  background-size: 140px 46px;
  animation: twinkle 2.4s ease-in-out infinite;
}
.garland::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 46'><defs><radialGradient id='a'><stop offset='0' stop-color='%23ffe27a' stop-opacity='.95'/><stop offset='1' stop-color='%23ffe27a' stop-opacity='0'/></radialGradient><radialGradient id='b'><stop offset='0' stop-color='%23fffaf0' stop-opacity='.95'/><stop offset='1' stop-color='%23fffaf0' stop-opacity='0'/></radialGradient></defs><circle cx='28' cy='26' r='13' fill='url(%23a)'/><circle cx='112' cy='26' r='13' fill='url(%23b)'/></svg>"); }
.garland::after { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 46'><defs><radialGradient id='c'><stop offset='0' stop-color='%2370f0a8' stop-opacity='.95'/><stop offset='1' stop-color='%2370f0a8' stop-opacity='0'/></radialGradient></defs><circle cx='70' cy='32' r='13' fill='url(%23c)'/></svg>"); animation-delay: -1.2s; }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }

/* Falling snow: flakes are generated by js/main.js. Each flake is a full-height column
   whose dot rides from the top to the bottom of its section using transforms only. */
.snow { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.flake {
  position: absolute;
  top: 0;
  left: var(--x);
  height: 100%;
  width: var(--s);
  transform: translate3d(0, -100%, 0);
  animation: snowfall var(--d) linear var(--delay) infinite;
  will-change: transform;
}
.flake::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #fff;
  opacity: var(--o);
  filter: blur(var(--b));
  animation: sway var(--sway-d) ease-in-out var(--delay) infinite alternate;
}
@keyframes snowfall { to { transform: translate3d(0, 0, 0); } }
@keyframes sway { from { transform: translateX(calc(var(--drift) * -1)); } to { transform: translateX(var(--drift)); } }

/* Gift line-art doodles sit in the side margins; only shown when there is room beside the cards */
.hero-doodle { position: absolute; z-index: 1; display: none; background-repeat: no-repeat; background-size: contain; background-position: center; opacity: .95; pointer-events: none; }
.doodle-gift { background-image: var(--svg-gift); }
.doodle-left-gift { left: 3%; bottom: 40px; width: 70px; height: 90px; }
.doodle-right-gift { right: 3%; bottom: 40px; width: 70px; height: 90px; transform: scaleX(-1); }
@media (min-width: 1380px) { .doodle-gift { display: block; } }

.eyebrow { display: inline-block; border: 1px solid #ffffff55; border-radius: 30px; padding: 7px 15px; letter-spacing: 2px; font-size: 11px; position: relative; }
.hero h1 { position: relative; font-size: clamp(34px, 5.5vw, 66px); line-height: 1.04; max-width: 950px; margin: 20px auto 18px; letter-spacing: -2px; }
.hero p { position: relative; max-width: 750px; margin: 0 auto; line-height: 1.7; font-size: 16px; }
.actions { position: relative; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 25px 0; }
.hero-price { margin-top: 18px; font-size: 17px; }
.hero .actions { margin: 16px 0 12px; }
.hero-link { position: relative; display: inline-block; font-size: 14px; color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; position: relative; margin-top: 18px; }
.benefit { background: var(--cream); color: var(--ink); border-radius: 15px; padding: 22px 17px; min-height: 170px; box-shadow: 0 7px 16px #80001a22; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.benefit .emoji { font-size: 28px; }
.benefit h3 { color: var(--red); font-size: 17px; margin: 11px 0 8px; }
.benefit p { color: #5e3b3c; font-size: 13px; line-height: 1.6; margin: 0; }

/* ---------- Art strip ---------- */
/* The frise photo already has cream breathing room around the crafts, so the band padding stays small.
   Below 900px the two-row version is used (see <picture> in index.html). */
.artstrip { background: var(--cream); padding: 6px 0; text-align: center; }
.artstrip img { display: block; width: min(640px, 100%); height: auto; margin: auto; }
@media (min-width: 901px) {
  .artstrip img {
    width: min(1400px, 98%);
    /* Soften the photo's left/right edges (its floor shading is slightly darker than the band) */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  }
}

/* ---------- Tree ---------- */
/* Tree and offer sections share one flat red, so they read as a single snowy backdrop */
.tree-section, .offer { position: relative; overflow: hidden; background: var(--section-red); }
.tree-section > .wrap, .offer > .wrap { position: relative; z-index: 1; }
.tree-section { text-align: center; padding: 48px 0 20px; }
.tree-section h2, .offer h2 { font-size: clamp(28px, 3.3vw, 43px); margin: 0 0 12px; }
/* "How it works": text | star card | text. The bonus star card is frosted on the red,
   with the same gold hairline as the tree gifts. */
.intro { display: flex; flex-direction: column; margin: auto; gap: 16px; justify-content: center; align-content: center; align-items: center; }
.intro p { margin: 0; font-size: 20px; line-height: 1.5; }
.intro strong { color: var(--gold); }
.intro-card { display: flex; gap: 16px; align-items: center; background: #8F0017; border: 2px solid #F2C14E; border-radius: 16px; padding: 18px 20px; max-width: 520px }
.intro-card .emoji { font-size: 26px; margin-bottom: 6px; }

.tree-stage {
  /* gift size drives the whole tree */
  --g: clamp(65px, 10vw, 112px);
  --gift-ratio: 1.06;
  --row-gap: 11px;
  --tier-spread: calc(var(--g) * .9);
  position: relative;
  margin: 28px auto 0;
  padding: 22px 15px 30px;
}
.tree-stage::before { content: '✧     ·       ✦        ·       ✧       ·     ✦'; position: absolute; inset: 30px 0; opacity: .21; font-size: 32px; letter-spacing: 40px; pointer-events: none; }
.tree { position: relative; z-index: 1; display: flex; align-items: center; flex-direction: column; gap: 10px; }

/* Star topper: large, glowing, overlaps the tip of the tree */
.star { position: relative; z-index: 2; width: calc(var(--g) * 1.3); aspect-ratio: 1; margin-bottom: calc(var(--g) * -0.2); padding: 0; border: 0; background: none; border-radius: 50%; transition: transform .25s; }
.star svg { position: relative; display: block; width: 100%; height: 100%; filter: drop-shadow(0 5px 6px #6a001e80); }
.star::before { content: ''; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, #fff2b3cc 0%, #ffd34155 35%, transparent 68%); animation: star-glow 2.8s ease-in-out infinite; pointer-events: none; }
.star:hover { transform: scale(1.08) rotate(8deg); }
@keyframes star-glow { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.05); } }

/* Branch tiers drawn behind each row, so the gifts read as ornaments on a real tree */
.tree-body { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.treerow { --i: 1; position: relative; display: flex; justify-content: center; gap: var(--row-gap); }
#row2 { --i: 2; }
#row3 { --i: 3; }
#row4 { --i: 4; }
.treerow::before {
  --row-w: calc(var(--i) * var(--g) + (var(--i) - 1) * var(--row-gap));
  --tier-w: calc(var(--row-w) + var(--tier-spread));
  --top-w: calc((var(--i) - 1) * var(--g) * .75);
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  width: var(--tier-w);
  top: calc(var(--g) * -0.5);
  bottom: calc(var(--g) * -0.24);
  transform: translateX(-50%);
  /* trapezoid with a scalloped, branch-like lower edge */
  clip-path: polygon(calc(50% - var(--top-w) / 2) 0, calc(50% + var(--top-w) / 2) 0, 100% 84%, 93% 100%, 81% 90%, 66% 100%, 50% 91%, 34% 100%, 19% 90%, 7% 100%, 0 84%);
  background:
    radial-gradient(circle, #ffe9a0 0 1.6px, transparent 2.6px) 0 0 / 34px 26px,
    radial-gradient(circle, #ffffffb0 0 1.2px, transparent 2.2px) 17px 13px / 34px 26px,
    linear-gradient(100deg, #0d7a46 0%, #075233 45%, #03381f 100%);
  filter: drop-shadow(0 6px 6px #50001455);
}
#row1::before { top: calc(var(--g) * -0.75); }

.gift { width: var(--g); height: calc(var(--g) * var(--gift-ratio)); perspective: 800px; background: transparent; border: 0; padding: 0; text-align: left; color: var(--cream); -webkit-tap-highlight-color: transparent; }
.gift-inner { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .55s; }
.gift.flipped .gift-inner, .gift:focus-visible .gift-inner { transform: rotateY(180deg); }
/* Hover flip only on real pointers: on touch screens :hover sticks and fights the tap toggle */
@media (hover: hover) {
  .gift:hover .gift-inner { transform: rotateY(180deg); }
}
.face { position: absolute; inset: 0; border-radius: 13px; border: 1px solid #caaf59aa; display: flex; flex-direction: column; align-items: center; justify-content: center; -webkit-backface-visibility: hidden; backface-visibility: hidden; background: linear-gradient(140deg, #056239, #06482e); box-shadow: inset 0 0 16px #ffffff09, 0 6px 10px #62001c48; }
.front .date { position: absolute; top: 10px; left: 9px; font-size: 10px; color: #e5d69e; letter-spacing: .5px; }
.front .emoji { font-size: clamp(26px, 3vw, 34px); }
.back { transform: rotateY(180deg); background: var(--cream); color: var(--ink); padding: 7px; text-align: center; }
.back .date { font-size: 10px; color: var(--red); font-weight: 800; }
.back strong { font-size: clamp(11px, 1.2vw, 13px); line-height: 1.16; margin-top: 5px; overflow-wrap: anywhere; hyphens: auto; }
.back .tiny { font-size: 10px; margin-top: 4px; color: #745053; }

/* Trunk in a festive pot, tucked under the lowest branches */
.trunk { position: relative; z-index: -1; display: block; width: calc(var(--g) * 1.55); height: auto; margin-top: calc(var(--g) * -0.12); overflow: visible; }


/* ---------- Offer ---------- */
.offer { padding: 42px 0 26px; text-align: center; }
/* Receives focus after a workshop click (see js/main.js); no outline around the whole section */
.offer:focus { outline: none; }
.offergrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 25px; text-align: left; }
.offercard { border-radius: 17px; background: var(--cream); color: var(--ink); padding: 26px 28px; }
.offercard h3 { color: var(--red); margin: 0 0 0px; font-size: 23px; }
.pricing { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.price { font-weight: 900; font-size: clamp(42px, 5vw, 58px); color: var(--red); letter-spacing: -2px; }
.old { font-size: 22px; color: #756166; }
.offercard ol, .offercard ul { padding-left: 18px; margin: 14px 0 20px; font-size: 14px; line-height: 1.95; }
.offercard li::marker { color: var(--red); }
.note { font-size: 12px; line-height: 1.6; color: #80676b; margin-top: 16px; }
.note p { margin: 0 0 6px; }

.btn-outline { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn-green { background: var(--green); color: var(--cream); }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }
#bundle, #schedule { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Workshop dates: no bullets, green date and time before each workshop name */
.offercard .dates { list-style: none; padding-left: 0; }
.dates li { display: flex; gap: 14px; align-items: baseline; }
.workshop-date { color: var(--green); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dates .time { color: var(--green); }

.dates li.past { color: #9a8f8f; }
.dates li.past .ws-name,
.dates li.past .ws-price { text-decoration: line-through; }
.dates li.past .workshop-date,
.dates li.past .time,
.dates li.past .ws-price { color: #9a8f8f; }

/* schedule rows (replaces the existing .dates li rule) */
.dates li { display: flex; gap: 14px; align-items: center; }
.ws-name { flex: 1; }
.ws-price { font-size: 13px; color: #756166; white-space: nowrap; font-variant-numeric: tabular-nums; }
.book-link { margin-bottom: 4px; font-size: 12px; font-weight: 800; color: var(--cream); background: var(--green); border-radius: 50px; padding: 4px 12px; white-space: nowrap; }
.dates li.past { opacity: .45; }
.dates li.past .ws-name { text-decoration: line-through; }

@media (max-width: 760px) { .book-link { padding: 9px 14px; } } /* comfortable tap target */

/* Solid evergreen card with the same gold hairline as the tree gifts */
.cta { background: var(--green); border: 1px solid #caaf59aa; box-shadow: 0 8px 18px #50001440; border-radius: 16px; padding: 25px 30px; display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-top: 18px; text-align: left; }
.cta h3 { margin: 0; font-size: 24px; }
.cta .btn { flex-shrink: 0; }

.footer { text-align: center; font-size: 12px; background: var(--cream); color: #9b001a; padding: 22px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: #24000cba; display: flex; align-items: center; justify-content: center; padding: 20px; overscroll-behavior: contain; }
.modal[hidden] { display: none; }
.modal-content { max-width: 425px; width: 100%; max-height: 100%; overflow-y: auto; border-radius: 22px; background: var(--cream); color: var(--ink); padding: 35px 27px; text-align: center; box-shadow: 0 25px 80px #0006; position: relative; }
.modal-content h3 { color: var(--red); font-size: 26px; }
.close { position: absolute; right: 8px; top: 6px; width: 44px; height: 44px; font-size: 26px; background: none; border: 0; color: var(--red); }
.modal-content .date { color: var(--red); font-size: 14px; font-weight: 800; }
.modal-content .workicon { font-size: 48px; }
body.modal-open { overflow: hidden; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefit { min-height: 0; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  nav { gap: 12px; padding: 8px 0; }
  .logo { font-size: 19px; }
  .logo small { display: block; margin: 2px 0 0; font-size: 13px; }
  .navbtn { padding: 10px 14px; min-height: 40px; font-size: 12px; }

  .hero { padding: 56px 0 40px; }
  .garland { --garland-h: 36px; }
  .garland, .garland::before, .garland::after { background-size: 110px 36px; }
  .hero::after { height: 40px; background-size: 200px 40px; }
  .hero h1 { letter-spacing: -1px; }
  .hero p { font-size: 15px; line-height: 1.6; }
  .benefits { gap: 10px; }
  .benefit { padding: 16px 12px; }
  .benefit h3 { font-size: 15px; }

  .tree-stage { --g: clamp(64px, 20vw, 95px); --gift-ratio: 1.15; --row-gap: 6px; --tier-spread: calc(var(--g) * .55); padding: 16px 4px 40px; }
  .tree-stage::before { font-size: 22px; letter-spacing: 24px; }
  .front .date { top: 7px; left: 7px; }
  .back { padding: 5px 4px; }
  .intro { grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
  .intro-card { padding: 16px 14px; }

  .offergrid { grid-template-columns: 1fr; }
  .offercard { padding: 22px 20px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
}

/* Small phones: full-width buttons */
@media (max-width: 560px) {
  .actions .btn { flex: 1 1 220px; }
  .cta .btn { width: 100%; }
}
@media (max-width: 380px) {
  .logo { font-size: 16px; }
  .logo small { font-size: 12px; }
  .navbtn { padding: 9px 12px; }
  .benefit { padding: 14px 9px; }
  .benefit p { font-size: 12.5px; }
}
@media (max-width: 345px) {
  nav { gap: 8px; }
  .logo { font-size: 15px; letter-spacing: .5px; }
  .navbtn { padding: 8px 11px; font-size: 11px; }
}
@media (max-width: 330px) {
  .benefits { grid-template-columns: 1fr; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .star, .gift-inner { transition: none; }
  .star::before { animation: none; }
  /* Keep a still snowfall and steady lights instead of motion */
  .flake, .flake::before { animation-play-state: paused; }
  .garland::before, .garland::after { animation: none; opacity: .6; }
  .btn:hover, .star:hover { transform: none; }
}
