/* ==========================================================================
   Elf Idea Generator — site stylesheet
   Concept: a handwritten Christmas note stuck on the fridge, on Christmas morning.
   v2: pine hero band with lights + snow, festive dividers, gift-box pack.
   Contents
     1. Tokens          5. Tool (chips, fields)     9. Letter page
     2. Base            6. Result + progress       10. Motion
     3. Layout shell    7. Elf note (signature)    11. Print
     4. Buttons         8. Content sections
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #fbf6ee;
  --card: #fffdf8;
  --text: #24301f;
  --muted: #66705e;
  --primary: #1f6b45;
  --primary-dark: #17543a;
  --primary-tint: #e8f1ea;
  --accent: #c8323c;
  --accent-tint: #fbeeed;
  --gold: #c9a24a;            /* tape, list dots, stitching */
  --gold-bright: #f3c95f;     /* on dark green only: bells, stars, lights */
  --pine: #124a33;            /* festive band behind header, hero, footer */
  --red-bright: #e5484d;      /* decoration on dark green only */
  --leaf: #2f8f5f;
  --line: #e7dece;
  --line-strong: #cfc3ad;

  --radius: 12px;             /* the only radius (paper pieces use none) */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .08);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Patrick Hand", "Comic Sans MS", "Chalkboard SE", cursive; /* elf note + letter only */

  /* spacing scale: 4 8 12 16 24 32 48 64 */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  /* type scale: 12 14 16 18 22 28 36 48 */
  --t12: 12px; --t14: 14px; --t16: 16px; --t18: 18px;
  --t22: 22px; --t28: 28px; --t36: 36px; --t48: 48px;

  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);

  /* paper grain, shared by page and paper pieces */
  /* gift bow, shared by the pack box and the sticky bar */
  --bow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 64'%3E%3Cpath d='M48 34C30 6 4 8 8 28s26 14 40 6z' fill='%23e5484d'/%3E%3Cpath d='M48 34C66 6 92 8 88 28s-26 14-40 6z' fill='%23e5484d'/%3E%3Cpath d='M48 34C36 18 18 16 18 27s18 10 30 7zM48 34c12-16 30-18 30-7s-18 10-30 7z' fill='%23a82831'/%3E%3Cpath d='M44 36L32 62l10-4 6 6 2-26zM52 36l12 26-10-4-6 6-2-26z' fill='%23c8323c'/%3E%3Crect x='40' y='26' width='16' height='16' rx='5' fill='%23f3c95f'/%3E%3C/svg%3E");
  /* faint snowflakes for the pine bands */
  --flakes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg stroke='%23fff' stroke-opacity='.1' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M30 22v16M23 26l14 8M37 26l-14 8M112 96v20M103.300 101l17.400 10M120.700 101l-17.400 10M62 128v10M57.700 130.500l8.600 5M66.300 130.500l-8.600 5'/%3E%3C/g%3E%3Cg fill='%23fff' fill-opacity='.14'%3E%3Ccircle cx='84' cy='40' r='1.5'/%3E%3Ccircle cx='140' cy='24' r='2'/%3E%3Ccircle cx='20' cy='92' r='2'/%3E%3Ccircle cx='140' cy='146' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--grain);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t16);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: var(--t28); }
h2 { font-size: var(--t28); }
h3 { font-size: var(--t22); }

p { margin: 0; max-width: 70ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
svg { display: block; flex: none; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* 3. Layout shell (header / footer live in the template layout) ------------ */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--s4);
}

.site-header { position: relative; background: var(--pine); color: #fff; }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--gold-bright); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;                           /* phones: brand row, then a row of nav pills */
  gap: var(--s2) var(--s3);
  padding-top: var(--s5);                    /* room for the string of lights */
  padding-bottom: var(--s2);
}

/* string of lights: two alternating layers of bulbs that trade brightness */
.lights { position: absolute; inset: 0 0 auto 0; height: 24px; pointer-events: none; }
.lights::before, .lights::after {
  content: "";
  position: absolute; inset: 0;
  background-repeat: repeat-x;
  background-size: 240px 24px;
  animation: twinkle 1.8s ease-in-out infinite alternate;
}
.lights::before {                            /* wire + red and gold bulbs */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='24'%3E%3Cpath d='M0 1Q30 13 60 1T120 1T180 1T240 1' fill='none' stroke='%23072a1c' stroke-width='1.5'/%3E%3Cg%3E%3Cellipse cx='30' cy='14' rx='7' ry='8' fill='%23e5484d' opacity='.25'/%3E%3Crect x='27.500' y='6' width='5' height='4' rx='1' fill='%23072a1c'/%3E%3Cellipse cx='30' cy='14.500' rx='4' ry='5.500' fill='%23ff6b6f'/%3E%3Cellipse cx='150' cy='14' rx='7' ry='8' fill='%23f3c95f' opacity='.25'/%3E%3Crect x='147.500' y='6' width='5' height='4' rx='1' fill='%23072a1c'/%3E%3Cellipse cx='150' cy='14.500' rx='4' ry='5.500' fill='%23f3c95f'/%3E%3C/g%3E%3C/svg%3E");
}
.lights::after {                             /* cream and mint bulbs, opposite phase */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='24'%3E%3Cellipse cx='90' cy='14' rx='7' ry='8' fill='%23fff6d8' opacity='.25'/%3E%3Crect x='87.500' y='6' width='5' height='4' rx='1' fill='%23072a1c'/%3E%3Cellipse cx='90' cy='14.500' rx='4' ry='5.500' fill='%23fff6d8'/%3E%3Cellipse cx='210' cy='14' rx='7' ry='8' fill='%238fe0b0' opacity='.25'/%3E%3Crect x='207.500' y='6' width='5' height='4' rx='1' fill='%23072a1c'/%3E%3Cellipse cx='210' cy='14.500' rx='4' ry='5.500' fill='%238fe0b0'/%3E%3C/svg%3E");
  animation-direction: alternate-reverse;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--t18);
  line-height: 1.1;
  flex: 0 0 100%;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand em { font-style: normal; color: var(--gold-bright); }
.brand__icon {
  display: block;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--s2);
  box-shadow: 0 0 0 1.5px rgba(255, 253, 248, .3);
  overflow: hidden;
  transition: transform .3s var(--ease-pop);
}
.brand:hover .brand__icon { transform: rotate(-8deg) scale(1.06); }
.brand__icon img, .brand__icon svg { width: 100%; height: 100%; }

.site-nav { display: flex; gap: var(--s2); }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 var(--s3);
  border: 1px solid rgba(255, 253, 248, .35);
  border-radius: var(--radius);
  color: #fff;
  font-size: var(--t14);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a::after { content: ""; position: absolute; inset: -8px -4px; }   /* 48px tap area around the 32px pill */
.site-nav a:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
.site-nav a[aria-current="page"] { color: var(--gold-bright); border-color: var(--gold-bright); }

.site-footer {
  background: var(--pine) var(--flakes);
  padding-block: var(--s6);
  color: rgba(255, 253, 248, .8);
  font-size: var(--t14);
}
.site-footer__inner { display: grid; gap: var(--s4); }
.site-footer__brand { display: flex; align-items: center; gap: var(--s3); color: #fff; font-weight: 600; }
.site-footer__brand .brand__icon { width: 40px; height: 40px; border-radius: var(--radius); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-weight: 600;
}
.site-footer a:hover { color: var(--gold-bright); }
.site-footer small { font-size: var(--t12); }

.section { padding-block: var(--s7); }
/* festive divider: a hairline with a sprig of holly in the middle */
.section + .section {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cellipse cx='13' cy='12' rx='11' ry='5' fill='%231f6b45' transform='rotate(-14 13 12)'/%3E%3Cellipse cx='35' cy='12' rx='11' ry='5' fill='%232f8f5f' transform='rotate(14 35 12)'/%3E%3Ccircle cx='21' cy='14' r='3.500' fill='%23c8323c'/%3E%3Ccircle cx='27' cy='14' r='3.500' fill='%23e5484d'/%3E%3Ccircle cx='24' cy='9' r='3.500' fill='%23c8323c'/%3E%3C/svg%3E"),
    linear-gradient(90deg, var(--line-strong) calc(50% - 48px), transparent calc(50% - 48px) calc(50% + 48px), var(--line-strong) calc(50% + 48px));
  background-repeat: no-repeat;
  background-position: center top, center 16px;
  background-size: 64px 32px, min(100% - 32px, 1072px) 1px;
}
.section--tint { background-color: var(--primary-tint); }
.section--tint + .section, .section + .section--tint { background-image: none; }
.section__head { display: grid; gap: var(--s2); margin-bottom: var(--s6); }
.section__head p { color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: var(--s4);
}

/* 4. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  width: 100%;                               /* full-width on phones */
  min-height: 48px;
  padding: var(--s2) var(--s4);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--primary);
  font: 700 var(--t16)/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--primary:focus-visible { outline-color: var(--primary-dark); }

.btn--secondary { border-color: var(--primary); }
.btn--secondary:hover { background: var(--primary-tint); color: var(--primary-dark); }

/* rescue buttons: cranberry + dashed, clearly "emergency", still secondary */
.btn--rescue {
  min-height: 44px;
  padding: var(--s2);
  border: 1.5px dashed var(--accent);
  color: var(--accent);
  font-size: var(--t14);
}
.btn--rescue:hover { background: var(--accent-tint); border-style: solid; }
.btn--rescue:focus-visible { outline-color: var(--accent); }

.btn--text {
  width: auto;
  min-height: 44px;
  padding: 0 var(--s2);
  font-size: var(--t14);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn--text:hover { color: var(--primary-dark); }

/* loading dots inside the generate button */
.btn .dots { display: inline-flex; gap: var(--s1); }
.btn .dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: dot-hop .6s ease-in-out infinite;
}
.btn .dots i:nth-child(2) { animation-delay: .12s; }
.btn .dots i:nth-child(3) { animation-delay: .24s; }
.btn[aria-busy="true"] { pointer-events: none; }

/* 5. Tool ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--s3) 0 112px;
  background: var(--pine) var(--flakes);
  color: #fff;
}
.hero::after {                               /* snowdrift along the bottom edge */
  content: "";
  position: absolute; inset: auto 0 -1px 0;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 32' preserveAspectRatio='none'%3E%3Cpath d='M0 32V18C150 2 260 4 400 14S640 30 800 14 1060 0 1200 16V32z' fill='%23fbf6ee'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: var(--s5); align-items: end; }
.hero__text { display: grid; gap: var(--s2); }
.hero__text p { font-size: var(--t14); line-height: 1.5; color: rgba(255, 253, 248, .88); max-width: 52ch; }
.hero h1 { color: #fff; }
.hero h1 .year { color: var(--gold-bright); white-space: nowrap; }
.hero__scene { display: none; }

/* falling snow (elements added by script.js, decoration only) */
.snow { position: absolute; inset: 0; pointer-events: none; }
.snow i {
  position: absolute;
  top: -8px; left: var(--x);
  width: var(--size); height: var(--size);
  border-radius: 50%;
  background: #fff;
  opacity: .5;
  animation: fall var(--d) linear var(--delay) infinite;
}

/* the tool sits on the snowdrift, overlapping the band */
.tool-wrap { position: relative; z-index: 1; margin-top: -88px; padding-bottom: var(--s7); }
.tool-layout { position: relative; }
.tool-layout::before {                       /* a hat peeking over the tool card */
  content: "";
  position: absolute;
  z-index: 0;
  top: -32px;
  left: calc(min(100%, 368px) - 80px);
  width: 56px; height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='6 6 52 52'%3E%3Cpath d='M14 47C16 29 27 14 41 13c6-.4 10 2.600 11 7-5-2-9-1-11 3 4 7 7 15 8 24z' fill='%23e5484d'/%3E%3Cpath d='M9 44h44v5l-5.500 6-5.500-6-5.500 6-5.500-6-5.500 6-5.500-6-5.500 6L9 49z' fill='%23fffdf8'/%3E%3Ccircle cx='52' cy='25' r='5.500' fill='%23f3c95f'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(8deg);
  animation: peek .7s var(--ease-pop) .5s both;
}
.tool-layout > * { position: relative; z-index: 1; }

.tool-layout { display: grid; gap: var(--s5); align-items: start; }
.tool-layout > * { min-width: 0; }

.tool {
  display: grid;
  gap: var(--s3);
  padding-top: var(--s5);
  /* candy-cane trim along the top edge */
  background: repeating-linear-gradient(-45deg, var(--accent) 0 8px, #fff 8px 16px) top / 100% 8px no-repeat, var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.field { display: grid; gap: var(--s2); min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label, .field legend {
  padding: 0;
  font-size: var(--t14);
  font-weight: 700;
  line-height: 1.4;
}
.field legend { margin-bottom: var(--s1); }
.field__hint { color: var(--muted); font-weight: 400; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips--even { display: grid; grid-template-columns: repeat(3, 1fr); }
/* one swipeable row on phones; bleeds to the card edge so the cut-off chip hints at more */
.chips--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: calc(var(--s1) * -1) calc(var(--s4) * -1);
  padding: var(--s1) var(--s4);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--s4);
  gap: var(--s1);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}
.chips--scroll::-webkit-scrollbar { display: none; }
.chips--scroll .chip { flex: none; scroll-snap-align: start; }

.chip { position: relative; display: block; cursor: pointer; }
.chip input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 40px;
  padding: var(--s1) var(--s3);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font-size: var(--t14);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover span { border-color: var(--primary); }
.chip input:checked + span {
  border-color: var(--primary);
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-weight: 700;
  animation: chip-pick .28s var(--ease-pop);
}
.chip input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }

/* multi-select chips carry a little tick so they read as "pick several" */
.chip--multi span::before {
  content: "";
  width: 16px; height: 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: #fff center / 10px no-repeat;
  transition: background-color .15s, border-color .15s, transform .2s var(--ease-pop);
}
.chip--multi input:checked + span::before {
  border-color: var(--primary);
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: scale(1.1);
}

.input, .select {
  width: 100%;
  min-height: 48px;
  padding: var(--s2) var(--s4);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background-color: #fff;
  color: var(--text);
  font: 600 var(--t16)/1.4 var(--font-body);   /* 16px: no iOS zoom */
  transition: border-color .15s;
}
.input::placeholder { color: var(--muted); font-weight: 400; opacity: 1; }
.input:hover, .select:hover { border-color: var(--primary); }
.input:focus-visible, .select:focus-visible { border-color: var(--primary); outline-offset: 1px; }
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--s7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%231f6b45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  cursor: pointer;
}

.tool__actions { display: grid; gap: var(--s2); }
.rescue { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }

/* 6. Result + progress ----------------------------------------------------- */
.result { box-shadow: var(--shadow-2); display: grid; gap: var(--s5); scroll-margin-top: var(--s4); overflow: hidden; overflow: clip; }  /* note animation must never cause sideways scroll */

.progress {
  display: grid;
  gap: var(--s2);
  padding-bottom: var(--s4);
  border-bottom: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: var(--t14);
  line-height: 1.4;
}
.progress strong { color: var(--text); }
.progress__dots { display: flex; flex-wrap: wrap; gap: var(--s1); }
.progress__dots i {
  width: 8px; height: 8px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
}
.progress__dots i.is-done { border-color: var(--primary); background: var(--primary); }
.progress__dots i.is-tonight { border-color: var(--accent); background: var(--accent); transform: scale(1.25); }

.result__main { display: grid; gap: var(--s6); }
.result__main > * { min-width: 0; }

.idea { display: grid; gap: var(--s4); align-content: start; }
.eyebrow {
  color: var(--accent);
  font-size: var(--t12);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.idea__head { display: grid; gap: var(--s2); }
.idea__title { font-size: var(--t28); }
.idea__lead { color: var(--text); }
.idea__meta {
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: var(--muted);
  font-size: var(--t14);
  font-weight: 600;
}

.badges { display: flex; flex-wrap: wrap; gap: var(--s2); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: var(--s1) var(--s3) var(--s1) var(--s2);
  border-radius: var(--radius);
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-size: var(--t12);
  font-weight: 700;
  line-height: 1.4;
}
.badge svg { width: 12px; height: 12px; }

.idea__label { font: 700 var(--t14)/1.4 var(--font-body); letter-spacing: 0; margin-bottom: var(--s2); }
.need { display: grid; gap: var(--s1); }
.need li { position: relative; padding-left: var(--s5); }
.need li::before {
  content: "";
  position: absolute; left: var(--s1); top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.steps { display: grid; gap: var(--s3); counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--s3);
  align-items: start;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  font: 700 var(--t16)/1 var(--font-head);
}
.steps li > span { padding-top: var(--s1); }

.note-col { display: grid; gap: var(--s5); align-content: start; }
.note-name { margin-bottom: var(--s2); }
.note-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.note-actions .btn--primary { grid-column: 1 / -1; }

.backups { display: grid; gap: var(--s3); padding-top: var(--s4); border-top: 1px dashed var(--line-strong); }
.backups h3 { font-size: var(--t18); }
.backups ul { display: grid; gap: var(--s2); }
.backup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s2) var(--s2) var(--s2) var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.backup strong { display: block; line-height: 1.4; }
.backup small { display: block; color: var(--muted); font-size: var(--t14); line-height: 1.4; }

/* 7. Elf note — the one signature element --------------------------------- */
.note {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  transform: rotate(-1.6deg);
  transform-origin: 50% 0;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .08)) drop-shadow(0 1px 2px rgba(0, 0, 0, .06));
}
.note__tape {
  position: absolute;
  z-index: 1;
  top: -12px; left: 50%;
  width: 96px; height: 24px;
  margin-left: -48px;
  background: rgba(201, 162, 74, .42);
  border-inline: 1px dashed rgba(255, 253, 248, .9);
  transform: rotate(2.5deg);
}
.note__paper {
  padding: var(--s6) var(--s5) var(--s7);
  background-color: var(--card);
  /* ruled lines every 32px, matched to the handwriting line-height */
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(31, 107, 69, .16) 31px 32px);
  background-position: 0 var(--s1);
  color: #1d2a3a;                              /* ink */
  font-family: var(--font-hand);
  font-size: var(--t22);
  line-height: 32px;
  /* torn bottom edge: a jagged tile repeated along the bottom + a solid block above it */
  --tear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='14' viewBox='0 0 160 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0V6l6 2.5 7-3 6 3.5 8-2.5 5 3 9-3.5 6 2 5-3 8 3.8 8-2.6 5 3.2 9-2.4 6 2 7-3.4 6 2.8 9-2.4 6 3.2 8-2.4 7 2.8 7-3.8 8 2.4 7-2.8 7 .6V0z'/%3E%3C/svg%3E");
  -webkit-mask: var(--tear) left bottom / 160px 14px repeat-x, linear-gradient(#000, #000) left top / 100% calc(100% - 13px) no-repeat;
          mask: var(--tear) left bottom / 160px 14px repeat-x, linear-gradient(#000, #000) left top / 100% calc(100% - 13px) no-repeat;
}
.note__paper p { max-width: none; }
.note__paper p + p { margin-top: 32px; }
.note__sign { display: flex; align-items: center; gap: var(--s2); }
.note__sign svg { width: 18px; height: 18px; color: var(--gold); }
.note__ps { color: var(--accent); }

/* 8. Content sections ------------------------------------------------------ */
.idea-groups { display: grid; gap: var(--s7); }
.idea-group { display: grid; gap: var(--s4); align-content: start; }
.idea-group > p { color: var(--muted); }

.idea-list { counter-reset: idea; border-top: 2px solid var(--primary); }
.idea-group--accent .idea-list { border-top-color: var(--accent); }
.idea-list li {
  counter-increment: idea;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s2);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
}
.idea-list li::before {
  content: counter(idea, decimal-leading-zero);
  color: var(--primary);
  font: 700 var(--t22)/1.2 var(--font-head);
}
.idea-group--accent .idea-list li::before { color: var(--accent); }
.idea-list strong { display: block; line-height: 1.4; }
.idea-list p { color: var(--text); }
.idea-list small { display: block; margin-top: var(--s1); color: var(--muted); font-size: var(--t14); }

/* three ornaments hanging from a line */
.how { display: grid; gap: var(--s6); counter-reset: how; }
.how li {
  counter-increment: how;
  position: relative;
  display: grid;
  gap: var(--s2);
  align-content: start;
  padding-top: 80px;
  border-top: 2px solid var(--gold);
}
.how li::before {                            /* the ball */
  content: counter(how);
  position: absolute; top: 16px; left: 0;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font: 700 var(--t22)/1 var(--font-head);
  box-shadow: var(--shadow-1);
}
.how li::after {                             /* string + cap */
  content: "";
  position: absolute; top: 0; left: 18px;
  width: 12px; height: 20px;
  background:
    linear-gradient(var(--gold), var(--gold)) center top / 2px 12px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center bottom / 12px 8px no-repeat;
}
.how li:nth-child(2)::before { background: var(--accent); }
.how li:nth-child(3)::before { background: var(--gold-bright); color: var(--text); }
.how h3 { font-size: var(--t18); }
.how p { color: var(--text); }

/* full pack: stitched card, calm */
.pack {
  position: relative;
  display: grid;
  gap: var(--s5);
  padding: var(--s6) var(--s5);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-1);
}
.pack::before {                                /* stitching */
  content: "";
  position: absolute; inset: var(--s2);
  border: 1.5px dashed rgba(31, 107, 69, .45);
  border-radius: var(--s2);
  pointer-events: none;
}
.pack > * { position: relative; min-width: 0; }
/* gift-box version: ribbon across the lid and a bow */
.pack--gift { margin-top: var(--s6); border-top: 16px solid var(--accent); box-shadow: var(--shadow-2); }
.pack--gift::before { inset: var(--s2); }
.pack--gift { scroll-margin-top: 96px; }
.pack--gift.pack--slim { margin-top: var(--s7); }
.pack--gift::after {
  content: "";
  position: absolute;
  top: -64px; right: var(--s6);
  width: 120px; height: 80px;
  background: var(--bow) center / contain no-repeat;
}
.pack__body { display: grid; gap: var(--s4); }
.pack__body h2 { font-size: var(--t22); }
.pack__list { display: grid; gap: var(--s2); }
.pack__list li { position: relative; padding-left: var(--s5); line-height: 1.4; }
.pack__list li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4l3.2 3.2L13 4.6' fill='none' stroke='%231f6b45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pack__buy { display: grid; gap: var(--s3); align-content: center; }
.pack__price { font: 700 var(--t36)/1 var(--font-head); color: var(--accent); }
.pack__price small { font: 600 var(--t14)/1.4 var(--font-body); color: var(--muted); margin-left: var(--s1); }
.pack__fine { color: var(--muted); font-size: var(--t14); }

.pack--slim { padding: var(--s5); gap: var(--s4); }
.pack--slim h2 { font-size: var(--t18); }

.faq { display: grid; max-width: 760px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 64px;
  padding-block: var(--s3);
  font-size: var(--t18);
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v12M2 8h12' fill='none' stroke='%231f6b45' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--s5); }

/* Buy entries (all carry data-buy; shown/hidden by packEntry() in script.js)
   phones  : .sticky-pack  slim bar on the bottom edge, visible from load
   desktop : .pack-pill    gold pill at the far right of the sticky header
   both    : .pack-bubble  short nudge after Print / Copy, pointing at the buy button */
.sticky-pack {
  position: fixed;
  z-index: 20;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 60px;
  padding: var(--s2) var(--s4) calc(var(--s2) + env(safe-area-inset-bottom, 0px));
  border-top: 4px solid var(--accent);          /* ribbon, same red as the gift box lid */
  background: var(--card);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
  transform: translateY(calc(100% + 8px));
  visibility: hidden;
  transition: transform .35s var(--ease-out), visibility 0s .35s;
}
.sticky-pack[hidden], .pack-bubble[hidden] { display: none; }
.sticky-pack.is-on { transform: none; visibility: visible; transition: transform .35s var(--ease-out), visibility 0s; }
.sticky-pack__text { font-size: var(--t14); font-weight: 700; line-height: 1.4; white-space: nowrap; }
.sticky-pack__text span { color: var(--accent); }
.sticky-pack__btn { flex: none; width: auto; min-height: 44px; padding-inline: var(--s3); font-size: var(--t14); white-space: nowrap; }
/* keeps the footer reachable while the bar is up */
body.has-sticky-pack { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }

.site-nav .pack-pill { display: none; }         /* desktop only, see the 1024px block */

.pack-bubble {
  position: fixed;
  z-index: 40;
  right: var(--s4);
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  max-width: 264px;
  padding: var(--s3) var(--s4);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-2);
  color: var(--text);
  font-size: var(--t14);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  transition: opacity .25s, transform .25s var(--ease-out), visibility 0s .25s;
}
.pack-bubble:hover { color: var(--text); }
.pack-bubble.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .25s var(--ease-out), visibility 0s; }
.pack-bubble strong { color: var(--primary); }
.pack-bubble::after {                           /* arrow, points down at the bar button */
  content: "";
  position: absolute;
  right: 48px; bottom: -7px;
  width: 12px; height: 12px;
  border: solid var(--gold);
  border-width: 0 1.5px 1.5px 0;
  background: var(--card);
  transform: rotate(45deg);
}

/* one switch for every buy entry: <html data-buy-off> hides them all (pack buttons, bar, pill, bubble) */
[data-buy-off] [data-buy] { display: none !important; }

/* 9. Letter page ----------------------------------------------------------- */
.letter-layout { display: grid; gap: var(--s5); align-items: start; }
.letter-layout > * { min-width: 0; }
.letter-form { display: grid; gap: var(--s4); }
.kid-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.kid-list .input { animation: pop-in .28s var(--ease-pop) both; }
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font: 700 var(--t14)/1.4 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--primary-dark); }
.link-btn--add { justify-self: start; min-height: 44px; }

.preview { display: grid; gap: var(--s5); }
.preview__label { color: var(--muted); font-size: var(--t14); font-weight: 600; }

/* stationery: airmail-striped edge, no torn edge (that stays unique to the note) */
.sheet {
  padding: var(--s2);
  background: repeating-linear-gradient(-45deg,
    var(--accent) 0 12px, var(--card) 12px 24px,
    var(--primary) 24px 36px, var(--card) 36px 48px);
  box-shadow: var(--shadow-2);
}
.sheet__paper {
  min-height: 420px;
  padding: var(--s5) var(--s4) var(--s6);
  background: var(--card);
  color: #1d2a3a;
  font-family: var(--font-hand);
  font-size: var(--t18);
  line-height: 1.6;
}
.sheet__paper p { max-width: none; white-space: pre-line; }
.sheet__paper p + p { margin-top: var(--s3); }
.sheet__hello { font-size: var(--t22); }
.sheet__sign { margin-top: var(--s5); }
.sheet__sign b { display: block; font-size: var(--t28); font-weight: 400; line-height: 1.2; }
.sheet__body.is-inking { animation: ink .35s var(--ease-out); }

.postmark {
  float: right;
  display: grid;
  place-content: center;
  width: 72px; height: 72px;
  margin: 0 0 var(--s2) var(--s3);
  border: 1.5px dashed var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font: 700 var(--t12)/1.2 var(--font-body);
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(9deg);
  opacity: .8;
}

.preview__actions { display: grid; gap: var(--s2); }

/* 10. Motion ---------------------------------------------------------------- */
@keyframes pop-in   { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes chip-pick { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: none; } }
@keyframes rise     { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes dot-hop  { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }
@keyframes ink      { from { opacity: .2; } to { opacity: 1; } }
@keyframes note-out {                         /* the note slides out and settles */
  0%   { opacity: 0; transform: translateY(-32px) rotate(-7deg) scale(.96); }
  60%  { opacity: 1; transform: translateY(4px) rotate(.6deg); }
  100% { opacity: 1; transform: rotate(-1.6deg); }
}
@keyframes twinkle  { from { opacity: 1; } to { opacity: .45; } }
@keyframes fall     { from { transform: translate(0, 0); } to { transform: translate(var(--drift), 460px); opacity: 0; } }
@keyframes peek     { from { transform: translateY(40px) rotate(0deg); } to { transform: rotate(8deg); } }
@keyframes tape-on  { from { opacity: 0; transform: rotate(2.5deg) scale(1.5); } to { opacity: 1; transform: rotate(2.5deg); } }

/* staggered pop-in; --i is set per element by script.js (0 without JS) */
.pop { animation: pop-in .32s var(--ease-pop) both; animation-delay: calc(var(--i, 0) * 28ms); }

.result.is-fresh .idea > *       { animation: rise .4s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
.result.is-fresh .note           { animation: note-out .7s var(--ease-out) .3s both; }
.result.is-fresh .note__tape     { animation: tape-on .22s var(--ease-out) .95s both; }
.result.is-fresh .note-actions,
.result.is-fresh .backups        { animation: rise .4s var(--ease-out) .6s both; }
.result.is-leaving .result__main,
.result.is-leaving .backups      { opacity: .35; transition: opacity .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .snow { display: none; }
  .lights::before, .lights::after { animation: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Breakpoints --------------------------------------------------------------- */
@media (min-width: 640px) {                  /* one-row header: brand left, plain text links right */
  .site-header__inner { flex-wrap: nowrap; min-height: 72px; padding-bottom: 0; }
  .brand { flex: none; }
  .brand__icon { width: 40px; height: 40px; border-radius: var(--radius); }
  .site-nav { gap: var(--s3); }
  .site-nav a { min-height: 44px; padding: 0 var(--s2); border: 0; }
  .site-nav a::after { content: none; }
  .site-nav a:hover { text-decoration: underline; }
  .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
}

@media (min-width: 720px) {
  .container { padding-inline: var(--s5); }
  h1 { font-size: var(--t36); }
  h2 { font-size: var(--t36); }
  .hero { padding-top: var(--s6); padding-bottom: 136px; }
  .hero__text { gap: var(--s3); }
  .chips--scroll { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; gap: var(--s2); -webkit-mask-image: none; mask-image: none; }
  .card.tool { padding-top: var(--s6); gap: var(--s4); }
  .hero__text p { font-size: var(--t18); line-height: 1.6; }
  .field legend { margin-bottom: var(--s2); }
  .tool__actions { gap: var(--s3); }
  .card { padding: var(--s5); }
  .btn { width: auto; }
  .tool__actions .btn, .note-actions .btn, .pack__buy .btn { width: 100%; }
  .section { padding-block: var(--s8); }
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .site-footer small { grid-column: 1 / -1; }

  .result__main { grid-template-columns: minmax(0, 1fr) 320px; }
  .backups ul { grid-template-columns: 1fr 1fr; }
  .idea-groups { grid-template-columns: 1fr 1fr; gap: var(--s7); }
  .how { grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
  .pack { grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s7); padding: var(--s7); }
  .pack h2 { font-size: var(--t28); }
  .pack__list { grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s5); }
  .pack--slim { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s6); padding: var(--s6); }
  .pack--slim h2 { font-size: var(--t22); }

  .sheet__paper { min-height: 640px; padding: var(--s7); font-size: var(--t22); }
  .sheet__hello { font-size: var(--t28); }
  .sheet__paper p + p { margin-top: var(--s4); }
  .postmark { width: 88px; height: 88px; }
  .preview__actions { grid-template-columns: auto auto 1fr; align-items: center; }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--t48); }
  .hero__inner { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s7); }
  .hero__text h1 { max-width: 14em; }
  .hero__scene { display: block; width: 360px; height: 160px; }
  .tool-layout { grid-template-columns: 368px minmax(0, 1fr); gap: var(--s6); }
  .letter-layout { grid-template-columns: 400px minmax(0, 1fr); gap: var(--s7); }
  .letter-form { position: sticky; top: var(--s5); }

  /* sticky header: the top 32px (the lights) scrolls away, the 56px row stays. No height change, so no layout jump. */
  .site-header { position: sticky; top: -32px; z-index: 30; transition: box-shadow .3s; }
  .site-header__inner { min-height: 88px; padding-top: var(--s6); }
  .site-header .lights { transition: opacity .3s; }
  .site-header.is-condensed { box-shadow: var(--shadow-2); }
  .site-header.is-condensed .lights { opacity: 0; }
  .site-nav { align-items: center; }
  [id] { scroll-margin-top: 80px; }
  .pack--gift { scroll-margin-top: 136px; }
  .letter-form { top: 80px; }

  .sticky-pack { display: none; }
  .site-nav .pack-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-left: var(--s2);
    padding: 0 var(--s4);
    border-radius: var(--radius);
    background: var(--gold-bright);
    box-shadow: inset 0 -3px 0 rgba(138, 100, 20, .35);
    color: var(--text);
    font-size: var(--t14);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .3s, visibility 0s, transform .2s var(--ease-pop), background-color .15s;
  }
  .site-nav .pack-pill:hover { background: #f8d77c; color: var(--text); text-decoration: none; transform: translateY(-1px); }
  .site-nav .pack-pill.is-away { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s .3s; }

  .pack-bubble { top: var(--bubble-top, 72px); right: var(--bubble-right, 24px); bottom: auto; transform: translateY(-8px); }
  .pack-bubble::after { top: -7px; bottom: auto; border-width: 1.5px 0 0 1.5px; }
  body.has-sticky-pack { padding-bottom: 0; }
}

/* 11. Print — only the note / letter (.printable) reaches the paper --------- */
@media print {
  @page { margin: .6in; }
  html, body { background: #fff !important; }
  .container, .tool-wrap, .tool-layout, .letter-layout, .result, .result__main, .note-col, .preview, .card {
    display: block !important;
    max-width: none; margin: 0; padding: 0;
    border: 0; box-shadow: none; background: none;
  }
  .site-header, .site-footer, .no-print, .card.no-print, .tool-layout::before { display: none !important; }   /* keep after the reset above */
  .printable { -webkit-print-color-adjust: exact; print-color-adjust: exact; animation: none !important; }

  .note { max-width: 4.25in; margin: 0 auto; transform: none; filter: none; }
  .note__tape { display: none; }
  .note__paper {
    -webkit-mask: none; mask: none;
    padding-bottom: var(--s6);
    border: 1.5px dashed #9a9a9a;              /* cut line */
  }

  .sheet { box-shadow: none; }
  .sheet__paper { min-height: 9in; padding: .6in; font-size: var(--t22); }
  .sheet__hello { font-size: var(--t28); }
}

/* ==========================================================================
   Arrival-letter stationery themes (generated by hand-built SVG, all inline; no external files)
   Usage: <div class="sheet printable" data-theme="simple | north-pole | elf-legs | reindeer | candy-cane">
   No extra markup: frame = .sheet background, art = .sheet__paper backgrounds, header line = .sheet__paper::before.
   Loads AFTER style.css. Contents: 1. theme art  2. shared theme rules  3. per-theme look
   4. theme picker  5. "edit the wording" styles  6. print
   ========================================================================== */

/* 1. Theme art (shared by the sheet and the picker thumbnails) -------------- */
[data-theme="north-pole"] {
  --head: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 208'%3E%3Crect width='800' height='208' fill='%23124a33'/%3E%3Cpath d='M40 21Q41.26 28.74 49 30Q41.26 31.26 40 39Q38.74 31.26 31 30Q38.74 28.74 40 21z' fill='%23f3c95f'/%3E%3Cpath d='M228 16Q228.84 21.16 234 22Q228.84 22.84 228 28Q227.16 22.84 222 22Q227.16 21.16 228 16z' fill='%23f3c95f'/%3E%3Cpath d='M560 18Q561.12 24.88 568 26Q561.12 27.12 560 34Q558.88 27.12 552 26Q558.88 24.88 560 18z' fill='%23f3c95f'/%3E%3Cpath d='M770 33Q770.98 39.02 777 40Q770.98 40.98 770 47Q769.02 40.98 763 40Q769.02 39.02 770 33z' fill='%23f3c95f'/%3E%3Cpath d='M480 91Q480.7 95.3 485 96Q480.7 96.7 480 101Q479.3 96.7 475 96Q479.3 95.3 480 91z' fill='%23f3c95f'/%3E%3Cpath d='M180 91Q180.7 95.3 185 96Q180.7 96.7 180 101Q179.3 96.7 175 96Q179.3 95.3 180 91z' fill='%23f3c95f'/%3E%3Ccircle cx='110' cy='20' r='2.500' fill='%23fff' opacity='.8'/%3E%3Ccircle cx='300' cy='60' r='2.500' fill='%23fff' opacity='.8'/%3E%3Ccircle cx='420' cy='18' r='2.500' fill='%23fff' opacity='.8'/%3E%3Ccircle cx='610' cy='60' r='2.500' fill='%23fff' opacity='.8'/%3E%3Ccircle cx='735' cy='96' r='2.500' fill='%23fff' opacity='.8'/%3E%3Ccircle cx='30' cy='110' r='2.500' fill='%23fff' opacity='.8'/%3E%3Ccircle cx='520' cy='60' r='2.500' fill='%23fff' opacity='.8'/%3E%3Ccircle cx='250' cy='120' r='2.500' fill='%23fff' opacity='.8'/%3E%3Cpath d='M0 208V152C90 130 170 138 250 160 330 182 420 176 520 152 640 124 730 134 800 146V208z' fill='%23bcd7e0'/%3E%3Crect x='65.2' y='160.6' width='9.5' height='11.4' fill='%237a5230'/%3E%3Cpolygon points='70.0,84.6 47.2,118.8 92.8,118.8' fill='%232f8f5f'/%3E%3Cpolygon points='70.0,103.6 39.6,141.6 100.4,141.6' fill='%232f8f5f'/%3E%3Cpolygon points='70.0,124.5 32.0,162.5 108.0,162.5' fill='%232f8f5f'/%3E%3Cpolygon points='70.0,84.6 60.5,99.8 67.2,97.0 72.8,101.7 79.5,99.8' fill='%23ffffff'/%3E%3Crect x='128.9' y='172.6' width='6.2' height='7.4' fill='%237a5230'/%3E%3Cpolygon points='132.0,123.0 117.1,145.3 146.9,145.3' fill='%231f6b45'/%3E%3Cpolygon points='132.0,135.4 112.2,160.2 151.8,160.2' fill='%231f6b45'/%3E%3Cpolygon points='132.0,149.0 107.2,173.8 156.8,173.8' fill='%231f6b45'/%3E%3Cpolygon points='132.0,123.0 125.8,132.9 130.1,131.0 133.9,134.1 138.2,132.9' fill='%23ffffff'/%3E%3Cg transform='translate(676 0)'%3E%3Crect x='-7' y='52' width='14' height='124' rx='3' fill='%23ffffff'/%3E%3Cpath d='M-7 68l14-8v8l-14 8z' fill='%23e5484d'/%3E%3Cpath d='M-7 86l14-8v8l-14 8z' fill='%23e5484d'/%3E%3Cpath d='M-7 104l14-8v8l-14 8z' fill='%23e5484d'/%3E%3Cpath d='M-7 122l14-8v8l-14 8z' fill='%23e5484d'/%3E%3Cpath d='M-7 140l14-8v8l-14 8z' fill='%23e5484d'/%3E%3Cpath d='M-7 158l14-8v8l-14 8z' fill='%23e5484d'/%3E%3Ccircle cx='0' cy='46' r='10' fill='%23f3c95f'/%3E%3Cg transform='rotate(-5 0 92)'%3E%3Crect x='-76' y='70' width='152' height='42' rx='7' fill='%23fffdf8' stroke='%23e5484d' stroke-width='5'/%3E%3Ctext x='0' y='99' text-anchor='middle' font-family='Arial, Helvetica, sans-serif' font-weight='700' font-size='21' letter-spacing='1' fill='%23c8323c'%3ENORTH POLE%3C/text%3E%3C/g%3E%3C/g%3E%3Cpath d='M0 208V176C120 150 220 158 330 172S560 194 660 170 760 160 800 166V208z' fill='%23fffdf8'/%3E%3C/svg%3E");
  --foot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 120'%3E%3Cpath d='M0 120V84C140 56 260 66 400 84S660 104 800 72V120z' fill='%23dcecf2'/%3E%3Cg transform='translate(118 0)'%3E%3Ccircle cx='0' cy='82' r='27' fill='%23fff' stroke='%23bcd7e0' stroke-width='3'/%3E%3Ccircle cx='0' cy='46' r='19' fill='%23fff' stroke='%23bcd7e0' stroke-width='3'/%3E%3Ccircle cx='0' cy='20' r='14' fill='%23fff' stroke='%23bcd7e0' stroke-width='3'/%3E%3Crect x='-16' y='30' width='32' height='8' rx='4' fill='%23e5484d'/%3E%3Crect x='8' y='32' width='8' height='20' rx='3' fill='%23e5484d'/%3E%3Ccircle cx='-5' cy='17' r='2' fill='%2324301f'/%3E%3Ccircle cx='5' cy='17' r='2' fill='%2324301f'/%3E%3Cpath d='M0 21l13 3-13 3z' fill='%23f08a3c'/%3E%3Ccircle cx='0' cy='48' r='2.500' fill='%2324301f'/%3E%3Ccircle cx='0' cy='58' r='2.500' fill='%2324301f'/%3E%3Crect x='-11' y='2' width='22' height='6' rx='2' fill='%2324301f'/%3E%3Crect x='-7' y='-10' width='14' height='14' rx='2' fill='%2324301f'/%3E%3C/g%3E%3Crect x='637.2' y='85.4' width='5.5' height='6.6' fill='%237a5230'/%3E%3Cpolygon points='640.0,41.4 626.8,61.2 653.2,61.2' fill='%232f8f5f'/%3E%3Cpolygon points='640.0,52.4 622.4,74.4 657.6,74.4' fill='%232f8f5f'/%3E%3Cpolygon points='640.0,64.5 618.0,86.5 662.0,86.5' fill='%232f8f5f'/%3E%3Crect x='696.0' y='88.4' width='8.0' height='9.6' fill='%237a5230'/%3E%3Cpolygon points='700.0,24.4 680.8,53.2 719.2,53.2' fill='%232f8f5f'/%3E%3Cpolygon points='700.0,40.4 674.4,72.4 725.6,72.4' fill='%232f8f5f'/%3E%3Cpolygon points='700.0,58.0 668.0,90.0 732.0,90.0' fill='%232f8f5f'/%3E%3Crect x='735' y='74' width='38' height='30' fill='%23c8323c'/%3E%3Crect x='731' y='64' width='46' height='12' rx='2' fill='%23c8323c'/%3E%3Crect x='731' y='75' width='46' height='3' fill='%23000' opacity='.12'/%3E%3Crect x='749.0' y='64' width='10' height='40' fill='%23f3c95f'/%3E%3Cpath d='M754.0 64c-10-16-24-4-8 0zM754.0 64c10-16 24-4 8 0z' fill='%23f3c95f'/%3E%3C/svg%3E");
  --head-h: 26.0%;
  --foot-h: 15.0%;
}
[data-theme="elf-legs"] {
  --head: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 250'%3E%3Cg transform='translate(588 40) rotate(9)'%3E%3Crect x='-15' y='0' width='30' height='118' fill='%23ffffff' stroke='%23ecd0d0' stroke-width='2'/%3E%3Crect x='-15' y='8' width='30' height='11' fill='%23e5484d'/%3E%3Crect x='-15' y='30' width='30' height='11' fill='%23e5484d'/%3E%3Crect x='-15' y='52' width='30' height='11' fill='%23e5484d'/%3E%3Crect x='-15' y='74' width='30' height='11' fill='%23e5484d'/%3E%3Crect x='-15' y='96' width='30' height='11' fill='%23e5484d'/%3E%3Cg transform='translate(0 116) scale(-1 1)'%3E%3Cpath d='M-17 0H17V8C40 8 54 4 60-12 63 6 56 27 34 29H-17z' fill='%231f6b45'/%3E%3Crect x='-18' y='-5' width='36' height='9' rx='3' fill='%23f3c95f'/%3E%3Ccircle cx='60' cy='-14' r='6' fill='%23f3c95f'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(654 40) rotate(-6)'%3E%3Crect x='-15' y='0' width='30' height='118' fill='%23ffffff' stroke='%23ecd0d0' stroke-width='2'/%3E%3Crect x='-15' y='8' width='30' height='11' fill='%23e5484d'/%3E%3Crect x='-15' y='30' width='30' height='11' fill='%23e5484d'/%3E%3Crect x='-15' y='52' width='30' height='11' fill='%23e5484d'/%3E%3Crect x='-15' y='74' width='30' height='11' fill='%23e5484d'/%3E%3Crect x='-15' y='96' width='30' height='11' fill='%23e5484d'/%3E%3Cg transform='translate(0 116) scale(1 1)'%3E%3Cpath d='M-17 0H17V8C40 8 54 4 60-12 63 6 56 27 34 29H-17z' fill='%231f6b45'/%3E%3Crect x='-18' y='-5' width='36' height='9' rx='3' fill='%23f3c95f'/%3E%3Ccircle cx='60' cy='-14' r='6' fill='%23f3c95f'/%3E%3C/g%3E%3C/g%3E%3Crect width='800' height='26' fill='%23a8743f'/%3E%3Crect y='26' width='800' height='8' fill='%237a5230'/%3E%3Cpath d='M40 9h120M230 16h90M400 8h150M720 15h60M30 20h50' stroke='%23c89a66' stroke-width='2' stroke-linecap='round' opacity='.7'/%3E%3Cpolygon points='548,0 696,0 696,40 684,52 672,40 660,52 648,40 636,52 624,40 612,52 600,40 588,52 576,40 564,52 552,40' fill='%231f6b45'/%3E%3Ccircle cx='684' cy='55' r='4' fill='%23f3c95f'/%3E%3Ccircle cx='660' cy='55' r='4' fill='%23f3c95f'/%3E%3Ccircle cx='636' cy='55' r='4' fill='%23f3c95f'/%3E%3Ccircle cx='612' cy='55' r='4' fill='%23f3c95f'/%3E%3Ccircle cx='588' cy='55' r='4' fill='%23f3c95f'/%3E%3Ccircle cx='564' cy='55' r='4' fill='%23f3c95f'/%3E%3Cpath d='M500 83Q501.82 94.18 513 96Q501.82 97.82 500 109Q498.18 97.82 487 96Q498.18 94.18 500 83z' fill='%23f3c95f'/%3E%3Cpath d='M748 140Q749.4 148.6 758 150Q749.4 151.4 748 160Q746.6 151.4 738 150Q746.6 148.6 748 140z' fill='%23f3c95f'/%3E%3Cpath d='M456 188Q457.12 194.88 464 196Q457.12 197.12 456 204Q454.88 197.12 448 196Q454.88 194.88 456 188z' fill='%23e5484d'/%3E%3Cpath d='M40 203Q40.98 209.02 47 210Q40.98 210.98 40 217Q39.02 210.98 33 210Q39.02 209.02 40 203z' fill='%23e5484d'/%3E%3C/svg%3E");
  --foot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 96'%3E%3Crect x='40' y='42' width='60' height='50' fill='%23c8323c'/%3E%3Crect x='36' y='32' width='68' height='12' rx='2' fill='%23c8323c'/%3E%3Crect x='36' y='43' width='68' height='3' fill='%23000' opacity='.12'/%3E%3Crect x='65.0' y='32' width='10' height='60' fill='%23f3c95f'/%3E%3Cpath d='M70.0 32c-10-16-24-4-8 0zM70.0 32c10-16 24-4 8 0z' fill='%23f3c95f'/%3E%3Crect x='116' y='56' width='44' height='36' fill='%232f8f5f'/%3E%3Crect x='112' y='46' width='52' height='12' rx='2' fill='%232f8f5f'/%3E%3Crect x='112' y='57' width='52' height='3' fill='%23000' opacity='.12'/%3E%3Crect x='133.0' y='46' width='10' height='46' fill='%23e5484d'/%3E%3Cpath d='M138.0 46c-10-16-24-4-8 0zM138.0 46c10-16 24-4 8 0z' fill='%23e5484d'/%3E%3Crect x='172' y='66' width='34' height='26' fill='%23f3c95f'/%3E%3Crect x='168' y='56' width='42' height='12' rx='2' fill='%23f3c95f'/%3E%3Crect x='168' y='67' width='42' height='3' fill='%23000' opacity='.12'/%3E%3Crect x='184.0' y='56' width='10' height='36' fill='%23e5484d'/%3E%3Cpath d='M189.0 56c-10-16-24-4-8 0zM189.0 56c10-16 24-4 8 0z' fill='%23e5484d'/%3E%3Cpath d='M716 92V40a12 12 0 0 1 23 0v9' fill='none' stroke='%23e7c3c3' stroke-width='12' stroke-linecap='round'/%3E%3Cpath d='M716 92V40a12 12 0 0 1 23 0v9' fill='none' stroke='%23ffffff' stroke-width='9' stroke-linecap='round'/%3E%3Cpath d='M716 92V40a12 12 0 0 1 23 0v9' fill='none' stroke='%23e5484d' stroke-width='9' stroke-dasharray='7 9'/%3E%3Cpath d='M640 51Q641.26 58.74 649 60Q641.26 61.26 640 69Q638.74 61.26 631 60Q638.74 58.74 640 51z' fill='%23f3c95f'/%3E%3Cpath d='M280 63Q280.98 69.02 287 70Q280.98 70.98 280 77Q279.02 70.98 273 70Q279.02 69.02 280 63z' fill='%23f3c95f'/%3E%3Cpath d='M590 79Q590.7 83.3 595 84Q590.7 84.7 590 89Q589.3 84.7 585 84Q589.3 83.3 590 79z' fill='%23e5484d'/%3E%3C/svg%3E");
  --head-h: 31.25%;
  --foot-h: 12.0%;
}
[data-theme="reindeer"] {
  --head: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 250'%3E%3Cpath d='M0 6Q100 44 200 10T400 10T600 10T800 6' fill='none' stroke='%23124a33' stroke-width='3'/%3E%3Crect x='46' y='18' width='8' height='7' rx='2' fill='%23124a33'/%3E%3Cellipse cx='50' cy='30' rx='7' ry='9.500' fill='%23e5484d'/%3E%3Crect x='146' y='24' width='8' height='7' rx='2' fill='%23124a33'/%3E%3Cellipse cx='150' cy='36' rx='7' ry='9.500' fill='%23f3c95f'/%3E%3Crect x='246' y='18' width='8' height='7' rx='2' fill='%23124a33'/%3E%3Cellipse cx='250' cy='30' rx='7' ry='9.500' fill='%232f8f5f'/%3E%3Crect x='346' y='18' width='8' height='7' rx='2' fill='%23124a33'/%3E%3Cellipse cx='350' cy='30' rx='7' ry='9.500' fill='%23e5484d'/%3E%3Crect x='446' y='24' width='8' height='7' rx='2' fill='%23124a33'/%3E%3Cellipse cx='450' cy='36' rx='7' ry='9.500' fill='%23f3c95f'/%3E%3Crect x='546' y='18' width='8' height='7' rx='2' fill='%23124a33'/%3E%3Cellipse cx='550' cy='30' rx='7' ry='9.500' fill='%232f8f5f'/%3E%3Crect x='646' y='18' width='8' height='7' rx='2' fill='%23124a33'/%3E%3Cellipse cx='650' cy='30' rx='7' ry='9.500' fill='%23e5484d'/%3E%3Crect x='746' y='24' width='8' height='7' rx='2' fill='%23124a33'/%3E%3Cellipse cx='750' cy='36' rx='7' ry='9.500' fill='%23f3c95f'/%3E%3Cg transform='translate(646 0)'%3E%3Cg fill='none' stroke='%23c89a66' stroke-width='11' stroke-linecap='round'%3E%3Cpath d='M-36 104C-46 82-56 64-70 50M-48 80C-60 80-72 74-82 66M-56 62C-52 52-50 44-52 36'/%3E%3Cpath d='M36 104C46 82 56 64 70 50M48 80C60 80 72 74 82 66M56 62C52 52 50 44 52 36'/%3E%3C/g%3E%3Cellipse cx='-62' cy='130' rx='24' ry='13' fill='%23a8743f' transform='rotate(-24 -62 130)'/%3E%3Cellipse cx='62' cy='130' rx='24' ry='13' fill='%23a8743f' transform='rotate(24 62 130)'/%3E%3Cellipse cx='-62' cy='131' rx='13' ry='6' fill='%23f2b8a8' transform='rotate(-24 -62 131)'/%3E%3Cellipse cx='62' cy='131' rx='13' ry='6' fill='%23f2b8a8' transform='rotate(24 62 131)'/%3E%3Crect x='-34' y='200' width='68' height='60' fill='%23a8743f'/%3E%3Cellipse cx='0' cy='162' rx='58' ry='62' fill='%23a8743f'/%3E%3Cellipse cx='0' cy='192' rx='37' ry='29' fill='%23ecd3ab'/%3E%3Cellipse cx='0' cy='178' rx='14' ry='10.500' fill='%235a3518'/%3E%3Cellipse cx='-4' cy='175' rx='4' ry='2.500' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='-23' cy='150' r='7.500' fill='%2324301f'/%3E%3Ccircle cx='23' cy='150' r='7.500' fill='%2324301f'/%3E%3Ccircle cx='-20.500' cy='147.500' r='2.600' fill='%23fff'/%3E%3Ccircle cx='25.500' cy='147.500' r='2.600' fill='%23fff'/%3E%3Ccircle cx='-40' cy='176' r='9' fill='%23f2a7a0' opacity='.7'/%3E%3Ccircle cx='40' cy='176' r='9' fill='%23f2a7a0' opacity='.7'/%3E%3Cpath d='M-11 198Q0 207 11 198' fill='none' stroke='%2324301f' stroke-width='3.500' stroke-linecap='round'/%3E%3Crect x='-50' y='222' width='100' height='24' rx='12' fill='%23e5484d'/%3E%3Crect x='-34' y='222' width='8' height='24' fill='%23fff' opacity='.85'/%3E%3Crect x='-12' y='222' width='8' height='24' fill='%23fff' opacity='.85'/%3E%3Crect x='10' y='222' width='8' height='24' fill='%23fff' opacity='.85'/%3E%3Crect x='32' y='222' width='8' height='24' fill='%23fff' opacity='.85'/%3E%3C/g%3E%3Cpath d='M520 109Q521.54 118.46 531 120Q521.54 121.54 520 131Q518.46 121.54 509 120Q518.46 118.46 520 109z' fill='%23f3c95f'/%3E%3Cpath d='M470 193Q470.98 199.02 477 200Q470.98 200.98 470 207Q469.02 200.98 463 200Q469.02 199.02 470 193z' fill='%23e5484d'/%3E%3Cpath d='M770 102Q771.12 108.88 778 110Q771.12 111.12 770 118Q768.88 111.12 762 110Q768.88 108.88 770 102z' fill='%23f3c95f'/%3E%3Cpath d='M36 219Q36.98 225.02 43 226Q36.98 226.98 36 233Q35.02 226.98 29 226Q35.02 225.02 36 219z' fill='%23f3c95f'/%3E%3C/svg%3E");
  --foot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 80'%3E%3Crect x='49.0' y='68.8' width='6.0' height='7.2' fill='%237a5230'/%3E%3Cpolygon points='52.0,20.8 37.6,42.4 66.4,42.4' fill='%232f8f5f'/%3E%3Cpolygon points='52.0,32.8 32.8,56.8 71.2,56.8' fill='%232f8f5f'/%3E%3Cpolygon points='52.0,46.0 28.0,70.0 76.0,70.0' fill='%232f8f5f'/%3E%3Crect x='97.9' y='73.0' width='4.2' height='5.0' fill='%237a5230'/%3E%3Cpolygon points='100.0,39.4 89.9,54.5 110.1,54.5' fill='%231f6b45'/%3E%3Cpolygon points='100.0,47.8 86.6,64.6 113.4,64.6' fill='%231f6b45'/%3E%3Cpolygon points='100.0,57.0 83.2,73.8 116.8,73.8' fill='%231f6b45'/%3E%3Crect x='745.0' y='68.8' width='6.0' height='7.2' fill='%237a5230'/%3E%3Cpolygon points='748.0,20.8 733.6,42.4 762.4,42.4' fill='%232f8f5f'/%3E%3Cpolygon points='748.0,32.8 728.8,56.8 767.2,56.8' fill='%232f8f5f'/%3E%3Cpolygon points='748.0,46.0 724.0,70.0 772.0,70.0' fill='%232f8f5f'/%3E%3Crect x='697.9' y='73.0' width='4.2' height='5.0' fill='%237a5230'/%3E%3Cpolygon points='700.0,39.4 689.9,54.5 710.1,54.5' fill='%231f6b45'/%3E%3Cpolygon points='700.0,47.8 686.6,64.6 713.4,64.6' fill='%231f6b45'/%3E%3Cpolygon points='700.0,57.0 683.2,73.8 716.8,73.8' fill='%231f6b45'/%3E%3Cellipse cx='245' cy='56' rx='4' ry='7' fill='%23c89a66' opacity='.6' transform='rotate(-10 245 56)'/%3E%3Cellipse cx='255' cy='56' rx='4' ry='7' fill='%23c89a66' opacity='.6' transform='rotate(10 255 56)'/%3E%3Cellipse cx='325' cy='42' rx='4' ry='7' fill='%23c89a66' opacity='.6' transform='rotate(-10 325 42)'/%3E%3Cellipse cx='335' cy='42' rx='4' ry='7' fill='%23c89a66' opacity='.6' transform='rotate(10 335 42)'/%3E%3Cellipse cx='405' cy='56' rx='4' ry='7' fill='%23c89a66' opacity='.6' transform='rotate(-10 405 56)'/%3E%3Cellipse cx='415' cy='56' rx='4' ry='7' fill='%23c89a66' opacity='.6' transform='rotate(10 415 56)'/%3E%3Cellipse cx='485' cy='42' rx='4' ry='7' fill='%23c89a66' opacity='.6' transform='rotate(-10 485 42)'/%3E%3Cellipse cx='495' cy='42' rx='4' ry='7' fill='%23c89a66' opacity='.6' transform='rotate(10 495 42)'/%3E%3Cellipse cx='565' cy='56' rx='4' ry='7' fill='%23c89a66' opacity='.6' transform='rotate(-10 565 56)'/%3E%3Cellipse cx='575' cy='56' rx='4' ry='7' fill='%23c89a66' opacity='.6' transform='rotate(10 575 56)'/%3E%3C/svg%3E");
  --head-h: 31.25%;
  --foot-h: 10.0%;
}
[data-theme="candy-cane"] {
  --head: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 210'%3E%3Cg transform='rotate(-14 120 120)'%3E%3Cpath d='M104 204V80a31 31 0 0 1 62 0v24' fill='none' stroke='%23e7c3c3' stroke-width='27' stroke-linecap='round'/%3E%3Cpath d='M104 204V80a31 31 0 0 1 62 0v24' fill='none' stroke='%23ffffff' stroke-width='24' stroke-linecap='round'/%3E%3Cpath d='M104 204V80a31 31 0 0 1 62 0v24' fill='none' stroke='%23e5484d' stroke-width='24' stroke-dasharray='19 24'/%3E%3C/g%3E%3Cg transform='translate(676 0)'%3E%3Cg stroke='%23b8763e' stroke-width='32' stroke-linecap='round' fill='none'%3E%3Cpath d='M-50 112H50M0 96V146M0 146L-26 186M0 146L26 186'/%3E%3C/g%3E%3Ccircle cx='0' cy='60' r='32' fill='%23b8763e'/%3E%3Cg stroke='%23fff' stroke-width='4' stroke-linecap='round' fill='none'%3E%3Cpath d='M-54 102q5 10 0 20M54 102q-5 10 0 20M-34 178q8 6 16 2M34 178q-8 6-16 2M-11 70Q0 80 11 70'/%3E%3C/g%3E%3Ccircle cx='-11' cy='54' r='4' fill='%23fff'/%3E%3Ccircle cx='11' cy='54' r='4' fill='%23fff'/%3E%3Ccircle cx='0' cy='106' r='5.500' fill='%23e5484d'/%3E%3Ccircle cx='0' cy='124' r='5.500' fill='%232f8f5f'/%3E%3Ccircle cx='0' cy='142' r='5.500' fill='%23e5484d'/%3E%3Cpath d='M-14 90l14 6 14-6-4 12H-10z' fill='%23e5484d'/%3E%3C/g%3E%3Ccircle cx='236' cy='176' r='15' fill='%23ffffff' stroke='%23e7c3c3' stroke-width='2'/%3E%3Ccircle cx='236' cy='176' r='7.5' fill='none' stroke='%23e5484d' stroke-width='15' stroke-dasharray='7.8 7.9'/%3E%3Ccircle cx='236' cy='176' r='3.3' fill='%23ffffff'/%3E%3Ccircle cx='560' cy='180' r='13' fill='%23ffffff' stroke='%23e7c3c3' stroke-width='2'/%3E%3Ccircle cx='560' cy='180' r='6.5' fill='none' stroke='%23e5484d' stroke-width='13' stroke-dasharray='6.8 6.9'/%3E%3Ccircle cx='560' cy='180' r='2.9' fill='%23ffffff'/%3E%3Ccircle cx='596' cy='34' r='11' fill='%23ffffff' stroke='%23e7c3c3' stroke-width='2'/%3E%3Ccircle cx='596' cy='34' r='5.5' fill='none' stroke='%23e5484d' stroke-width='11' stroke-dasharray='5.7 5.8'/%3E%3Ccircle cx='596' cy='34' r='2.4' fill='%23ffffff'/%3E%3Cpath d='M210 30Q211.4 38.6 220 40Q211.4 41.4 210 50Q208.6 41.4 200 40Q208.6 38.6 210 30z' fill='%23f3c95f'/%3E%3Cpath d='M770 182Q771.12 188.88 778 190Q771.12 191.12 770 198Q768.88 191.12 762 190Q768.88 188.88 770 182z' fill='%23f3c95f'/%3E%3C/svg%3E");
  --foot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 72'%3E%3Ccircle cx='300' cy='38' r='15' fill='%23ffffff' stroke='%23e7c3c3' stroke-width='2'/%3E%3Ccircle cx='300' cy='38' r='7.5' fill='none' stroke='%23e5484d' stroke-width='15' stroke-dasharray='7.8 7.9'/%3E%3Ccircle cx='300' cy='38' r='3.3' fill='%23ffffff'/%3E%3Ccircle cx='400' cy='38' r='18' fill='%23ffffff' stroke='%23e7c3c3' stroke-width='2'/%3E%3Ccircle cx='400' cy='38' r='9.0' fill='none' stroke='%23e5484d' stroke-width='18' stroke-dasharray='9.4 9.5'/%3E%3Ccircle cx='400' cy='38' r='4.0' fill='%23ffffff'/%3E%3Ccircle cx='500' cy='38' r='15' fill='%23ffffff' stroke='%23e7c3c3' stroke-width='2'/%3E%3Ccircle cx='500' cy='38' r='7.5' fill='none' stroke='%23e5484d' stroke-width='15' stroke-dasharray='7.8 7.9'/%3E%3Ccircle cx='500' cy='38' r='3.3' fill='%23ffffff'/%3E%3Cpath d='M350 34Q350.84 39.16 356 40Q350.84 40.84 350 46Q349.16 40.84 344 40Q349.16 39.16 350 34z' fill='%23f3c95f'/%3E%3Cpath d='M450 34Q450.84 39.16 456 40Q450.84 40.84 450 46Q449.16 40.84 444 40Q449.16 39.16 450 34z' fill='%23f3c95f'/%3E%3Cg transform='rotate(20 86 40)'%3E%3Cpath d='M70 64V30a10 10 0 0 1 21 0v8' fill='none' stroke='%23e7c3c3' stroke-width='11' stroke-linecap='round'/%3E%3Cpath d='M70 64V30a10 10 0 0 1 21 0v8' fill='none' stroke='%23ffffff' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M70 64V30a10 10 0 0 1 21 0v8' fill='none' stroke='%23e5484d' stroke-width='8' stroke-dasharray='6 8'/%3E%3C/g%3E%3Cg transform='rotate(-20 714 40)'%3E%3Cpath d='M704 64V30a10 10 0 0 1 21 0v8' fill='none' stroke='%23e7c3c3' stroke-width='11' stroke-linecap='round'/%3E%3Cpath d='M704 64V30a10 10 0 0 1 21 0v8' fill='none' stroke='%23ffffff' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M704 64V30a10 10 0 0 1 21 0v8' fill='none' stroke='%23e5484d' stroke-width='8' stroke-dasharray='6 8'/%3E%3C/g%3E%3C/svg%3E");
  --head-h: 26.25%;
  --foot-h: 9.0%;
}

/* 2. Shared theme rules ----------------------------------------------------- */
/* "simple" (default) is the plain airmail sheet from style.css: nothing to override. */
.sheet[data-theme]:not([data-theme="simple"]) {
  container-type: inline-size;                 /* lets the header line scale with the sheet (cqw) */
  padding: var(--s3);
}
.sheet[data-theme]:not([data-theme="simple"]) .sheet__paper {
  position: relative;
  /* art sits in the header band and the footer strip; the writing area stays plain */
  background-image: var(--head), var(--foot);
  background-repeat: no-repeat;
  background-position: center top, center bottom;
  background-size: 100% auto;
  padding-top: calc(var(--head-h) + var(--s4));       /* % padding follows the sheet width, like the art */
  padding-bottom: calc(var(--foot-h) + var(--s4));
}
.sheet[data-theme]:not([data-theme="simple"]) .postmark { display: none; }
.sheet[data-theme]:not([data-theme="simple"]) .sheet__paper::before {      /* the big playful header line */
  position: absolute;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
}

/* 3. Per-theme look ---------------------------------------------------------- */

/* North Pole: night sky, snowy hills, signpost, snowman */
.sheet[data-theme="north-pole"] {
  background: var(--pine) radial-gradient(#fff 1.5px, transparent 2px) 0 0 / 16px 16px;
}
.sheet[data-theme="north-pole"] .sheet__paper::before {
  content: "Hello from the North Pole!";
  top: 4.5cqw; left: 21cqw; width: 54cqw;
  color: #fffdf8;
  font-size: 22px; font-size: 6.4cqw;
  text-align: center;
}

/* Elf legs: striped stockings and pointy shoes dangling from a shelf */
.sheet[data-theme="elf-legs"] { background: var(--accent); }
.sheet[data-theme="elf-legs"] .sheet__paper { outline: 2px dashed rgba(255, 253, 248, .9); outline-offset: 3px; }
.sheet[data-theme="elf-legs"] .sheet__paper::before {
  content: "Greetings from your Elf!";
  top: 9cqw; left: 6cqw; width: 58cqw;
  color: var(--primary);
  font-size: 23px; font-size: 7cqw;
}

/* Reindeer: string of lights and a friendly reindeer */
.sheet[data-theme="reindeer"] {
  background:
    linear-gradient(90deg, rgba(255, 253, 248, .22) 50%, transparent 50%) 0 0 / 16px 16px,
    linear-gradient(rgba(255, 253, 248, .22) 50%, transparent 50%) 0 0 / 16px 16px,
    var(--primary);
}
.sheet[data-theme="reindeer"] .sheet__paper::before {
  content: "Special delivery!";
  top: 10cqw; left: 6cqw; width: 52cqw;
  color: var(--accent);
  font-size: 26px; font-size: 8cqw;
}

/* Candy cane: striped frame, big HELLO, gingerbread and peppermints */
.sheet[data-theme="candy-cane"] {
  background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, #fffdf8 12px 24px);
}
.sheet[data-theme="candy-cane"] .sheet__paper::before {
  content: "HELLO!";
  top: 5cqw; left: 0; right: 0;
  color: var(--accent);
  font-size: 44px; font-size: 13.5cqw;
  letter-spacing: .04em;
  text-align: center;
  text-shadow: .5cqw .5cqw 0 var(--gold-bright);
}

/* 4. Theme picker (picker.html) ---------------------------------------------- */
.theme-picker { display: grid; gap: var(--s2); min-width: 0; margin: 0; padding: 0; border: 0; }
.theme-picker legend { padding: 0; margin-bottom: var(--s2); font-size: var(--t14); font-weight: 700; line-height: 1.4; }
.theme-picker__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); }
.theme-swatch { position: relative; display: grid; gap: var(--s1); justify-items: center; cursor: pointer; }
.theme-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.theme-swatch__thumb {                         /* mini sheet: same frame + header art as the real one */
  display: block;
  width: 100%;
  max-width: 64px;
  aspect-ratio: 4 / 5;
  border: 4px solid var(--line-strong);
  border-radius: var(--s1);
  background: var(--head, none) center top / 100% auto no-repeat,
              linear-gradient(var(--line-strong), var(--line-strong)) center 58% / 60% 2px no-repeat,
              linear-gradient(var(--line-strong), var(--line-strong)) center 70% / 60% 2px no-repeat,
              linear-gradient(var(--line-strong), var(--line-strong)) center 82% / 60% 2px no-repeat,
              var(--card);
  box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease-pop), box-shadow .15s;
}
.theme-swatch__thumb[data-theme="simple"] { border-image: repeating-linear-gradient(-45deg, var(--accent) 0 4px, var(--card) 4px 8px, var(--primary) 8px 12px, var(--card) 12px 16px) 4; }
.theme-swatch__thumb[data-theme="north-pole"] { border-color: var(--pine); }
.theme-swatch__thumb[data-theme="elf-legs"] { border-color: var(--accent); }
.theme-swatch__thumb[data-theme="reindeer"] { border-color: var(--primary); }
.theme-swatch__thumb[data-theme="candy-cane"] { border-image: repeating-linear-gradient(-45deg, var(--accent) 0 4px, #fffdf8 4px 8px) 4; }
.theme-swatch__name { font-size: var(--t12); font-weight: 600; line-height: 1.2; text-align: center; color: var(--muted); }
.theme-swatch:hover .theme-swatch__thumb { transform: translateY(-2px); }
.theme-swatch input:checked ~ .theme-swatch__thumb { outline: 3px solid var(--primary); outline-offset: 2px; transform: scale(1.04); box-shadow: var(--shadow-2); }
.theme-swatch input:checked ~ .theme-swatch__name { color: var(--primary-dark); font-weight: 700; }
.theme-swatch input:focus-visible ~ .theme-swatch__thumb { outline: 3px solid var(--gold); outline-offset: 2px; }

/* 5. "Edit the wording" ------------------------------------------------------- */
.sheet__body[contenteditable="true"] {
  outline: 2px dashed rgba(31, 107, 69, .5);
  outline-offset: var(--s2);
  border-radius: var(--s1);
  background: rgba(232, 241, 234, .45);
  caret-color: var(--accent);
  cursor: text;
}
.sheet__body[contenteditable="true"]:focus-visible { outline-style: solid; }
.sheet__body[contenteditable="true"] p:hover { background: rgba(243, 201, 95, .25); }
.edit-toggle, .edit-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 44px;
  font: 700 var(--t14)/1.2 var(--font-body);
  cursor: pointer;
}
.edit-toggle {
  padding: 0 var(--s4);
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius);
  background: transparent;
  color: var(--primary);
  transition: background-color .15s, border-color .15s;
}
.edit-toggle:hover { background: var(--primary-tint); }
.edit-toggle[aria-pressed="true"] { border-style: solid; background: var(--primary-tint); color: var(--primary-dark); }
.edit-reset {
  padding: 0 var(--s2);
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.edit-reset:hover { color: var(--accent); }
.edit-reset[hidden] { display: none; }
/* room for the two extra buttons next to Print / Save PDF */
.preview__actions { grid-template-columns: 1fr 1fr; }
.preview__actions .btn--primary, .preview__actions .preview__label { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .preview__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
  .preview__actions .preview__label { flex-basis: 100%; }
}

/* 6. Print: one page of US Letter / A4, colors on ---------------------------- */
@media print {
  .sheet[data-theme], .sheet[data-theme] .sheet__paper { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet[data-theme]:not([data-theme="simple"]) .sheet__paper { min-height: 8.8in; }
  .sheet__body[contenteditable="true"] { outline: 0; background: none; }
  .theme-picker, .edit-toggle, .edit-reset { display: none !important; }
}

/* ==========================================================================
   Homepage elf-note themes (compact versions of the letter themes; all art inline)
   Usage: <div class="note printable" data-theme="simple | north-pole | elf-legs | reindeer | candy-cane">
   "simple" = the torn-edge ruled note from style.css, untouched. No extra markup needed.
   Self-contained: does not need themes.css. Loads AFTER style.css.
   ========================================================================== */

/* 1. Art (shared by the note and the picker thumbnails) ---------------------- */
.note[data-theme="north-pole"], .note-swatch__thumb[data-theme="north-pole"] {
  --note-head: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 190'%3E%3Crect width='800' height='190' fill='%23124a33'/%3E%3Cpath d='M44 20Q45.4 28.6 54 30Q45.4 31.4 44 40Q42.6 31.4 34 30Q42.6 28.6 44 20z' fill='%23f3c95f'/%3E%3Cpath d='M150 64Q150.84 69.16 156 70Q150.84 70.84 150 76Q149.16 70.84 144 70Q149.16 69.16 150 64z' fill='%23f3c95f'/%3E%3Cpath d='M640 21Q641.26 28.74 649 30Q641.26 31.26 640 39Q638.74 31.26 631 30Q638.74 28.74 640 21z' fill='%23f3c95f'/%3E%3Cpath d='M770 77Q770.98 83.02 777 84Q770.98 84.98 770 91Q769.02 84.98 763 84Q769.02 83.02 770 77z' fill='%23f3c95f'/%3E%3Cpath d='M590 115Q590.7 119.3 595 120Q590.7 120.7 590 125Q589.3 120.7 585 120Q589.3 119.3 590 115z' fill='%23f3c95f'/%3E%3Ccircle cx='110' cy='22' r='3' fill='%23fff' opacity='.8'/%3E%3Ccircle cx='300' cy='16' r='3' fill='%23fff' opacity='.8'/%3E%3Ccircle cx='480' cy='20' r='3' fill='%23fff' opacity='.8'/%3E%3Ccircle cx='700' cy='56' r='3' fill='%23fff' opacity='.8'/%3E%3Ccircle cx='30' cy='100' r='3' fill='%23fff' opacity='.8'/%3E%3Ccircle cx='250' cy='124' r='3' fill='%23fff' opacity='.8'/%3E%3Ccircle cx='540' cy='130' r='3' fill='%23fff' opacity='.8'/%3E%3Cpath d='M0 190V140C90 118 170 126 250 148 330 170 420 164 520 140 640 112 730 122 800 134V190z' fill='%23bcd7e0'/%3E%3Crect x='54.7' y='156.1' width='6.6' height='7.9' fill='%237a5230'/%3E%3Cpolygon points='58.0,103.3 42.2,127.0 73.8,127.0' fill='%232f8f5f'/%3E%3Cpolygon points='58.0,116.5 36.9,142.9 79.1,142.9' fill='%232f8f5f'/%3E%3Cpolygon points='58.0,131.0 31.6,157.4 84.4,157.4' fill='%232f8f5f'/%3E%3Cpolygon points='58.0,103.3 51.4,113.8 56.0,111.9 60.0,115.2 64.6,113.8' fill='%23ffffff'/%3E%3Crect x='105.8' y='164.7' width='4.4' height='5.3' fill='%237a5230'/%3E%3Cpolygon points='108.0,129.5 97.4,145.4 118.6,145.4' fill='%231f6b45'/%3E%3Cpolygon points='108.0,138.3 93.9,155.9 122.1,155.9' fill='%231f6b45'/%3E%3Cpolygon points='108.0,148.0 90.4,165.6 125.6,165.6' fill='%231f6b45'/%3E%3Cpolygon points='108.0,129.5 103.6,136.6 106.7,135.2 109.3,137.4 112.4,136.6' fill='%23ffffff'/%3E%3Cg transform='translate(724 0)'%3E%3Crect x='-8' y='62' width='16' height='110' rx='3' fill='%23ffffff'/%3E%3Cpath d='M-8 80l16-9v9l-16 9z' fill='%23e5484d'/%3E%3Cpath d='M-8 100l16-9v9l-16 9z' fill='%23e5484d'/%3E%3Cpath d='M-8 120l16-9v9l-16 9z' fill='%23e5484d'/%3E%3Cpath d='M-8 140l16-9v9l-16 9z' fill='%23e5484d'/%3E%3Cpath d='M-8 160l16-9v9l-16 9z' fill='%23e5484d'/%3E%3Ccircle cx='0' cy='54' r='12' fill='%23f3c95f'/%3E%3C/g%3E%3Cpath d='M0 190V162C120 138 220 146 330 158S560 178 660 156 760 148 800 152V190z' fill='%23fffdf8'/%3E%3C/svg%3E");
  --note-head-h: 23.75%;
}
.note[data-theme="elf-legs"], .note-swatch__thumb[data-theme="elf-legs"] {
  --note-head: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 196'%3E%3Cg transform='translate(584 40) rotate(9)'%3E%3Crect x='-17' y='0' width='34' height='78' fill='%23ffffff' stroke='%23ecd0d0' stroke-width='2'/%3E%3Crect x='-17' y='8' width='34' height='12' fill='%23e5484d'/%3E%3Crect x='-17' y='32' width='34' height='12' fill='%23e5484d'/%3E%3Crect x='-17' y='56' width='34' height='12' fill='%23e5484d'/%3E%3Cg transform='translate(0 76) scale(-1.15 1.150)'%3E%3Cpath d='M-17 0H17V8C40 8 54 4 60-12 63 6 56 27 34 29H-17z' fill='%231f6b45'/%3E%3Crect x='-18' y='-5' width='36' height='9' rx='3' fill='%23f3c95f'/%3E%3Ccircle cx='60' cy='-14' r='6' fill='%23f3c95f'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(660 40) rotate(-6)'%3E%3Crect x='-17' y='0' width='34' height='78' fill='%23ffffff' stroke='%23ecd0d0' stroke-width='2'/%3E%3Crect x='-17' y='8' width='34' height='12' fill='%23e5484d'/%3E%3Crect x='-17' y='32' width='34' height='12' fill='%23e5484d'/%3E%3Crect x='-17' y='56' width='34' height='12' fill='%23e5484d'/%3E%3Cg transform='translate(0 76) scale(1.15 1.150)'%3E%3Cpath d='M-17 0H17V8C40 8 54 4 60-12 63 6 56 27 34 29H-17z' fill='%231f6b45'/%3E%3Crect x='-18' y='-5' width='36' height='9' rx='3' fill='%23f3c95f'/%3E%3Ccircle cx='60' cy='-14' r='6' fill='%23f3c95f'/%3E%3C/g%3E%3C/g%3E%3Crect width='800' height='28' fill='%23a8743f'/%3E%3Crect y='28' width='800' height='9' fill='%237a5230'/%3E%3Cpath d='M40 10h120M230 18h90M400 9h110M730 16h50M30 22h50' stroke='%23c89a66' stroke-width='2.500' stroke-linecap='round' opacity='.7'/%3E%3Cpolygon points='540,0 704,0 704,42 690,56 676,42 662,56 648,42 634,56 620,42 606,56 592,42 578,56 564,42 550,56' fill='%231f6b45'/%3E%3Ccircle cx='690' cy='60' r='5' fill='%23f3c95f'/%3E%3Ccircle cx='662' cy='60' r='5' fill='%23f3c95f'/%3E%3Ccircle cx='634' cy='60' r='5' fill='%23f3c95f'/%3E%3Ccircle cx='606' cy='60' r='5' fill='%23f3c95f'/%3E%3Ccircle cx='578' cy='60' r='5' fill='%23f3c95f'/%3E%3Ccircle cx='550' cy='60' r='5' fill='%23f3c95f'/%3E%3Cpath d='M490 71Q491.82 82.18 503 84Q491.82 85.82 490 97Q488.18 85.82 477 84Q488.18 82.18 490 71z' fill='%23f3c95f'/%3E%3Cpath d='M766 100Q767.4 108.6 776 110Q767.4 111.4 766 120Q764.6 111.4 756 110Q764.6 108.6 766 100z' fill='%23f3c95f'/%3E%3Cpath d='M470 162Q471.12 168.88 478 170Q471.12 171.12 470 178Q468.88 171.12 462 170Q468.88 168.88 470 162z' fill='%23e5484d'/%3E%3C/svg%3E");
  --note-head-h: 24.50%;
}
.note[data-theme="reindeer"], .note-swatch__thumb[data-theme="reindeer"] {
  --note-head: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 200'%3E%3Cpath d='M0 6Q100 44 200 10T400 10T600 10T800 6' fill='none' stroke='%23124a33' stroke-width='3'/%3E%3Crect x='46' y='18' width='8' height='7' rx='2' fill='%23124a33'/%3E%3Cellipse cx='50' cy='30' rx='7' ry='9.500' fill='%23e5484d'/%3E%3Crect x='146' y='24' width='8' height='7' rx='2' fill='%23124a33'/%3E%3Cellipse cx='150' cy='36' rx='7' ry='9.500' fill='%23f3c95f'/%3E%3Crect x='246' y='18' width='8' height='7' rx='2' fill='%23124a33'/%3E%3Cellipse cx='250' cy='30' rx='7' ry='9.500' fill='%232f8f5f'/%3E%3Crect x='346' y='18' width='8' height='7' rx='2' fill='%23124a33'/%3E%3Cellipse cx='350' cy='30' rx='7' ry='9.500' fill='%23e5484d'/%3E%3Crect x='446' y='24' width='8' height='7' rx='2' fill='%23124a33'/%3E%3Cellipse cx='450' cy='36' rx='7' ry='9.500' fill='%23f3c95f'/%3E%3Crect x='546' y='18' width='8' height='7' rx='2' fill='%23124a33'/%3E%3Cellipse cx='550' cy='30' rx='7' ry='9.500' fill='%232f8f5f'/%3E%3Crect x='646' y='18' width='8' height='7' rx='2' fill='%23124a33'/%3E%3Cellipse cx='650' cy='30' rx='7' ry='9.500' fill='%23e5484d'/%3E%3Crect x='746' y='24' width='8' height='7' rx='2' fill='%23124a33'/%3E%3Cellipse cx='750' cy='36' rx='7' ry='9.500' fill='%23f3c95f'/%3E%3Cg transform='translate(150 0) scale(.8)'%3E%3Cg transform='translate(646 0)'%3E%3Cg fill='none' stroke='%23c89a66' stroke-width='11' stroke-linecap='round'%3E%3Cpath d='M-36 104C-46 82-56 64-70 50M-48 80C-60 80-72 74-82 66M-56 62C-52 52-50 44-52 36'/%3E%3Cpath d='M36 104C46 82 56 64 70 50M48 80C60 80 72 74 82 66M56 62C52 52 50 44 52 36'/%3E%3C/g%3E%3Cellipse cx='-62' cy='130' rx='24' ry='13' fill='%23a8743f' transform='rotate(-24 -62 130)'/%3E%3Cellipse cx='62' cy='130' rx='24' ry='13' fill='%23a8743f' transform='rotate(24 62 130)'/%3E%3Cellipse cx='-62' cy='131' rx='13' ry='6' fill='%23f2b8a8' transform='rotate(-24 -62 131)'/%3E%3Cellipse cx='62' cy='131' rx='13' ry='6' fill='%23f2b8a8' transform='rotate(24 62 131)'/%3E%3Crect x='-34' y='200' width='68' height='60' fill='%23a8743f'/%3E%3Cellipse cx='0' cy='162' rx='58' ry='62' fill='%23a8743f'/%3E%3Cellipse cx='0' cy='192' rx='37' ry='29' fill='%23ecd3ab'/%3E%3Cellipse cx='0' cy='178' rx='14' ry='10.500' fill='%235a3518'/%3E%3Cellipse cx='-4' cy='175' rx='4' ry='2.500' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='-23' cy='150' r='7.500' fill='%2324301f'/%3E%3Ccircle cx='23' cy='150' r='7.500' fill='%2324301f'/%3E%3Ccircle cx='-20.500' cy='147.500' r='2.600' fill='%23fff'/%3E%3Ccircle cx='25.500' cy='147.500' r='2.600' fill='%23fff'/%3E%3Ccircle cx='-40' cy='176' r='9' fill='%23f2a7a0' opacity='.7'/%3E%3Ccircle cx='40' cy='176' r='9' fill='%23f2a7a0' opacity='.7'/%3E%3Cpath d='M-11 198Q0 207 11 198' fill='none' stroke='%2324301f' stroke-width='3.500' stroke-linecap='round'/%3E%3Crect x='-50' y='222' width='100' height='24' rx='12' fill='%23e5484d'/%3E%3Crect x='-34' y='222' width='8' height='24' fill='%23fff' opacity='.85'/%3E%3Crect x='-12' y='222' width='8' height='24' fill='%23fff' opacity='.85'/%3E%3Crect x='10' y='222' width='8' height='24' fill='%23fff' opacity='.85'/%3E%3Crect x='32' y='222' width='8' height='24' fill='%23fff' opacity='.85'/%3E%3C/g%3E%3C/g%3E%3Cpath d='M540 99Q541.54 108.46 551 110Q541.54 111.54 540 121Q538.46 111.54 529 110Q538.46 108.46 540 99z' fill='%23f3c95f'/%3E%3Cpath d='M778 88Q779.12 94.88 786 96Q779.12 97.12 778 104Q776.88 97.12 770 96Q776.88 94.88 778 88z' fill='%23f3c95f'/%3E%3Cpath d='M500 169Q500.98 175.02 507 176Q500.98 176.98 500 183Q499.02 176.98 493 176Q499.02 175.02 500 169z' fill='%23e5484d'/%3E%3C/svg%3E");
  --note-head-h: 25.00%;
}
.note[data-theme="candy-cane"], .note-swatch__thumb[data-theme="candy-cane"] {
  --note-head: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 190'%3E%3Cg transform='rotate(-14 110 110)'%3E%3Cpath d='M96 186V76a29 29 0 0 1 57 0v22' fill='none' stroke='%23e7c3c3' stroke-width='25' stroke-linecap='round'/%3E%3Cpath d='M96 186V76a29 29 0 0 1 57 0v22' fill='none' stroke='%23ffffff' stroke-width='22' stroke-linecap='round'/%3E%3Cpath d='M96 186V76a29 29 0 0 1 57 0v22' fill='none' stroke='%23e5484d' stroke-width='22' stroke-dasharray='18 22'/%3E%3C/g%3E%3Cg transform='translate(110 10) scale(.86)'%3E%3Cg transform='translate(676 0)'%3E%3Cg stroke='%23b8763e' stroke-width='32' stroke-linecap='round' fill='none'%3E%3Cpath d='M-50 112H50M0 96V146M0 146L-26 186M0 146L26 186'/%3E%3C/g%3E%3Ccircle cx='0' cy='60' r='32' fill='%23b8763e'/%3E%3Cg stroke='%23fff' stroke-width='4' stroke-linecap='round' fill='none'%3E%3Cpath d='M-54 102q5 10 0 20M54 102q-5 10 0 20M-34 178q8 6 16 2M34 178q-8 6-16 2M-11 70Q0 80 11 70'/%3E%3C/g%3E%3Ccircle cx='-11' cy='54' r='4' fill='%23fff'/%3E%3Ccircle cx='11' cy='54' r='4' fill='%23fff'/%3E%3Ccircle cx='0' cy='106' r='5.500' fill='%23e5484d'/%3E%3Ccircle cx='0' cy='124' r='5.500' fill='%232f8f5f'/%3E%3Ccircle cx='0' cy='142' r='5.500' fill='%23e5484d'/%3E%3Cpath d='M-14 90l14 6 14-6-4 12H-10z' fill='%23e5484d'/%3E%3C/g%3E%3C/g%3E%3Ccircle cx='230' cy='160' r='15' fill='%23ffffff' stroke='%23e7c3c3' stroke-width='2'/%3E%3Ccircle cx='230' cy='160' r='7.5' fill='none' stroke='%23e5484d' stroke-width='15' stroke-dasharray='7.8 7.9'/%3E%3Ccircle cx='230' cy='160' r='3.3' fill='%23ffffff'/%3E%3Ccircle cx='576' cy='164' r='13' fill='%23ffffff' stroke='%23e7c3c3' stroke-width='2'/%3E%3Ccircle cx='576' cy='164' r='6.5' fill='none' stroke='%23e5484d' stroke-width='13' stroke-dasharray='6.8 6.9'/%3E%3Ccircle cx='576' cy='164' r='2.9' fill='%23ffffff'/%3E%3Ccircle cx='600' cy='30' r='11' fill='%23ffffff' stroke='%23e7c3c3' stroke-width='2'/%3E%3Ccircle cx='600' cy='30' r='5.5' fill='none' stroke='%23e5484d' stroke-width='11' stroke-dasharray='5.7 5.8'/%3E%3Ccircle cx='600' cy='30' r='2.4' fill='%23ffffff'/%3E%3Cpath d='M214 24Q215.4 32.6 224 34Q215.4 35.4 214 44Q212.6 35.4 204 34Q212.6 32.6 214 24z' fill='%23f3c95f'/%3E%3Cpath d='M774 162Q775.12 168.88 782 170Q775.12 171.12 774 178Q772.88 171.12 766 170Q772.88 168.88 774 162z' fill='%23f3c95f'/%3E%3C/svg%3E");
  --note-head-h: 23.75%;
}

/* 2. Shared rules for the illustrated notes ---------------------------------- */
.note[data-theme]:not([data-theme="simple"]) { container-type: inline-size; }
.note[data-theme]:not([data-theme="simple"]) .note__paper {
  position: relative;
  -webkit-mask: none; mask: none;              /* a framed card instead of the torn edge */
  border: 8px solid var(--note-frame, var(--primary));
  /* art only in the header band; the writing area is plain (no ruled lines) */
  background: var(--note-head) center top / 100% auto no-repeat, var(--card);
  padding: calc(var(--note-head-h) + var(--s3)) var(--s4) var(--s5);
}
.note[data-theme]:not([data-theme="simple"]) .note__paper::before {       /* short playful header line */
  position: absolute;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.note[data-theme]:not([data-theme="simple"]) .note__paper p + p { margin-top: var(--s4); }

/* 3. Per-theme look ------------------------------------------------------------ */
.note[data-theme="north-pole"] { --note-frame: var(--pine); }
.note[data-theme="north-pole"] .note__paper::before {
  content: "North Pole Mail";
  top: 5cqw; left: 12cqw; width: 66cqw;
  color: #fffdf8;
  font-size: 22px; font-size: 7.4cqw;
  text-align: center;
}

.note[data-theme="elf-legs"] { --note-frame: var(--accent); }
.note[data-theme="elf-legs"] .note__paper::before {
  content: "Hi from your Elf!";
  top: 7cqw; left: 5cqw; width: 54cqw;
  color: var(--primary);
  font-size: 22px; font-size: 7.6cqw;
}

.note[data-theme="reindeer"] { --note-frame: var(--primary); }
.note[data-theme="reindeer"] .note__paper { outline: 1.5px dashed rgba(255, 253, 248, .8); outline-offset: -5px; }
.note[data-theme="reindeer"] .note__paper::before {
  content: "Special delivery!";
  top: 8cqw; left: 5cqw; width: 50cqw;
  color: var(--accent);
  font-size: 24px; font-size: 8cqw;
}

.note[data-theme="candy-cane"]:not([data-theme="simple"]) .note__paper { border-image: repeating-linear-gradient(-45deg, var(--accent) 0 8px, #fffdf8 8px 16px) 8; }
.note[data-theme="candy-cane"] .note__paper::before {
  content: "HELLO!";
  top: 3.5cqw; left: 0; right: 0;
  color: var(--accent);
  font-size: 40px; font-size: 13cqw;
  letter-spacing: .04em;
  text-align: center;
  text-shadow: .5cqw .5cqw 0 var(--gold-bright);
}

/* 4. Picker (note-picker.html): sits above the note, under the kid's-name field */
.note-picker { display: grid; gap: var(--s1); min-width: 0; margin: 0; padding: 0; border: 0; }
.note-picker legend { padding: 0; margin-bottom: var(--s2); font-size: var(--t14); font-weight: 700; line-height: 1.4; }
.note-picker__row { display: flex; gap: var(--s2); }
.note-swatch { position: relative; flex: 1 1 0; min-width: 0; display: grid; gap: var(--s1); justify-items: center; cursor: pointer; }
.note-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.note-swatch__thumb {
  display: block;
  width: 100%;
  max-width: 56px;
  height: 44px;
  border: 3px solid var(--note-frame, var(--line-strong));
  border-radius: var(--s1);
  background: var(--note-head, none) center top / 100% auto no-repeat,
              linear-gradient(var(--line-strong), var(--line-strong)) center 62% / 60% 2px no-repeat,
              linear-gradient(var(--line-strong), var(--line-strong)) center 80% / 60% 2px no-repeat,
              var(--card);
  box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease-pop), box-shadow .15s;
}
.note-swatch__thumb[data-theme="simple"] {     /* ruled paper + tape */
  background: linear-gradient(rgba(201, 162, 74, .5), rgba(201, 162, 74, .5)) center top / 40% 6px no-repeat,
              repeating-linear-gradient(transparent 0 9px, rgba(31, 107, 69, .25) 9px 10px), var(--card);
}
.note-swatch__thumb[data-theme="north-pole"] { --note-frame: var(--pine); }
.note-swatch__thumb[data-theme="elf-legs"] { --note-frame: var(--accent); }
.note-swatch__thumb[data-theme="reindeer"] { --note-frame: var(--primary); }
.note-swatch__thumb[data-theme="candy-cane"] { border-image: repeating-linear-gradient(-45deg, var(--accent) 0 4px, #fffdf8 4px 8px) 3; }
.note-swatch__name { font-size: var(--t12); font-weight: 600; line-height: 1.2; text-align: center; color: var(--muted); }
.note-swatch:hover .note-swatch__thumb { transform: translateY(-2px); }
.note-swatch input:checked ~ .note-swatch__thumb { outline: 3px solid var(--primary); outline-offset: 2px; box-shadow: var(--shadow-2); }
.note-swatch input:checked ~ .note-swatch__name { color: var(--primary-dark); font-weight: 700; }
.note-swatch input:focus-visible ~ .note-swatch__thumb { outline: 3px solid var(--gold); outline-offset: 2px; }

/* 5. Print: note-size (about 4.25in wide), colors on, frame kept instead of the grey cut line */
@media print {
  .note-picker { display: none !important; }
  .note[data-theme], .note[data-theme] .note__paper { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .note[data-theme]:not([data-theme="simple"]) .note__paper { padding-bottom: var(--s5); }
}

/* ===== Production additions (inner sections + legal pages), same tokens as above ===== */
.hero--slim { padding-bottom: var(--s7); }
.hero--slim .hero__inner { grid-template-columns: 1fr; }
.prose { max-width: 70ch; margin: 0 auto; }
.prose h2 { font-size: var(--t22); margin: var(--s6) 0 var(--s3); }
.prose p, .prose ul { margin-bottom: var(--s4); }
.prose ul { padding-left: var(--s5); }
.prose li { margin-bottom: var(--s2); }
.prose a { color: var(--primary); }
.section__head p + p { margin-top: var(--s2); }
.section__more { margin-top: var(--s4); font-weight: 600; }
.section__more a, .idea__more a { color: var(--primary); }
.idea__more { margin-top: var(--s2); font-weight: 600; }
.idea-list--plain { max-width: 760px; }
.how-steps { max-width: 70ch; padding-left: var(--s5); display: grid; gap: var(--s3); }
.samples { display: grid; gap: var(--s6); }
.sample figcaption { font-weight: 700; margin-bottom: var(--s3); color: var(--muted); }
.sample .sheet__paper { min-height: 0; }
.name-groups { display: grid; gap: var(--s5); }
.name-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); }
.name-group h3 { font-size: var(--t18); margin-bottom: var(--s3); }
.name-group ul { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; padding: 0; }
.name-group li { padding: var(--s1) var(--s3); border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--t14); }
.tool .btn--rescue { text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
[data-f][hidden] { display: none !important; }
@media (min-width: 720px) {
  .samples { grid-template-columns: 1fr 1fr; }
  .name-groups { grid-template-columns: repeat(3, 1fr); }
}
/* 下载页能用之前（<html data-buy-off>）整块礼盒也不显示，免得只有价格没有按钮 */
[data-buy-off] .section--pack, [data-buy-off] .pack { display: none !important; }
/* FAQ：结论 → 现成说法 → 范文（ChatGPT 摘录结构） */
.faq__list { padding-left: var(--s5); margin: 0 0 var(--s4); display: grid; gap: var(--s2); }
.faq__sample { margin: 0 0 var(--s4); padding: var(--s4) var(--s5); background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); font-family: var(--font-hand); font-size: var(--t18); line-height: 1.5; }
.faq__sample figcaption { font-family: var(--font-body); font-size: var(--t12); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s1); }
.faq__fix { font-weight: 600; padding-bottom: var(--s5); }
/* ===== 打印包下载页 ===== */
.pack-layout { display: grid; gap: var(--s6); }
.pack-help { color: var(--muted); font-size: var(--t14); margin-top: var(--s3); }
.pack-pages { display: grid; gap: var(--s6); }
.pack-page { max-width: 720px; margin: 0 auto; width: 100%; }
.pack-night { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s6); box-shadow: var(--shadow-1); }
.pack-night__head h2 { font-size: var(--t28); margin: var(--s2) 0; }
.pack-night__meta { color: var(--muted); margin-bottom: var(--s3); }
.pack-night__head ol { padding-left: var(--s5); display: grid; gap: var(--s2); }
.pack-night__cut { margin: var(--s6) 0 var(--s4); border-top: 2px dashed var(--line-strong); padding-top: var(--s2); font-size: var(--t12); color: var(--muted); text-align: center; }
.pack-night .note { max-width: 460px; margin: 0 auto; transform: none; }
.pack-cert__frame { background: var(--card); border: 10px double var(--primary); border-radius: var(--radius); padding: var(--s8) var(--s6); text-align: center; }
.pack-cert__frame h2 { font-size: var(--t36); color: var(--accent); margin: var(--s3) 0 var(--s5); }
.pack-cert__line { font-family: var(--font-hand); font-size: var(--t28); line-height: 1.4; max-width: 30ch; margin: 0 auto var(--s7); }
.pack-cert__sign { display: flex; justify-content: space-around; gap: var(--s5); font-family: var(--font-hand); font-size: var(--t22); }
.pack-cert__sign span { border-top: 1.5px solid var(--text); padding-top: var(--s2); min-width: 160px; }
.pack-cert__sign small { display: block; font-family: var(--font-body); font-size: var(--t12); color: var(--muted); }
@media (min-width: 1024px) { .pack-layout { grid-template-columns: 360px minmax(0, 1fr); align-items: start; } .pack-layout #pack-form { position: sticky; top: 88px; } }
@media print {
  .pack-layout, .pack-pages { display: block !important; }
  .pack-page { break-after: page; page-break-after: always; max-width: none; }
  .pack-page:last-child { break-after: auto; page-break-after: auto; }
  .pack-night, .pack-cert__frame { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pack-night { border: 0; padding: 0; }
  .pack-cert__frame { min-height: 8.5in; display: flex; flex-direction: column; justify-content: center; }
}
/* 清单两栏对齐：标题 / 介绍 / 分隔线和第 1 条左右齐平 */
@media (min-width: 720px) {
  @supports (grid-template-rows: subgrid) {
    .idea-groups { grid-auto-rows: auto; }
    .idea-group { grid-row: span 4; grid-template-rows: subgrid; gap: var(--s4); }
  }
}
/* 下载页标题区：给下面上移的表单留出位置 */
.hero--tool { padding-bottom: 136px; }
/* 打印包第 7 项：12 月总览 + 购物清单（一页） */
.pack-plan__frame { background: var(--card); border: 1px solid var(--line); border-top: 8px solid var(--accent); border-radius: var(--radius); padding: var(--s6); }
.pack-plan__frame h2 { font-size: var(--t28); margin: var(--s1) 0 var(--s4); }
.pack-plan__frame h3 { font-size: var(--t18); margin: var(--s5) 0 var(--s2); }
.pack-plan__grid { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.pack-plan__grid li { display: grid; grid-template-columns: 56px 1fr 52px 18px; gap: var(--s2); align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: var(--t14); }
.pack-plan__date { font-weight: 700; color: var(--primary); }
.pack-plan__min { color: var(--muted); font-size: var(--t12); text-align: right; }
.pack-plan__box { width: 14px; height: 14px; border: 1.5px solid var(--line-strong); border-radius: 3px; }
.pack-plan__supplies { columns: 2; column-gap: var(--s5); padding-left: var(--s4); font-size: var(--t14); }
@media (min-width: 720px) { .pack-plan__grid { grid-template-columns: 1fr 1fr; column-gap: var(--s5); } }
@media print {
  .pack-plan__frame { border-radius: 0; padding: 0; border-left: 0; border-right: 0; border-bottom: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pack-plan__grid { grid-template-columns: 1fr 1fr; column-gap: .3in; }
  .pack-plan__grid li { font-size: 11pt; padding: 3px 0; }
  .pack-plan__supplies { columns: 3; font-size: 10pt; }
}
/* 到家信页示例：用插画信纸、缩成整页缩略图 */
.sample .sheet__paper { font-size: var(--t14) !important; padding-left: var(--s5) !important; padding-right: var(--s5) !important; min-height: 0 !important; }
.sample .sheet__hello { font-size: var(--t18) !important; }

/* 示例：每页右上角一个小「Sample」角标，不打印 */
.pack-pages[data-demo] .pack-page { position: relative; }
.pack-pages[data-demo] .pack-page::before { content: "Sample"; position: absolute; top: var(--s3); right: var(--s3); z-index: 3; background: var(--accent); color: #fff; font: 700 var(--t12)/1 var(--font-body); letter-spacing: .04em; padding: 6px 10px; border-radius: 999px; box-shadow: var(--shadow-1); }
@media print { .pack-pages[data-demo] .pack-page::before { display: none; } }
.pack--slim .pack__list { margin-top: var(--s3); }
/* 下载页手机横向溢出：网格列不许被 30 页示例撑宽 */
.pack-layout { grid-template-columns: minmax(0, 1fr); }
.pack-layout > *, .pack-pages, .pack-page { min-width: 0; }
.pack-page .sheet, .pack-page .note { max-width: 100%; }
.letter-form .theme-picker__row { overflow-x: auto; }

/* H2 降级后保持原来的样子 */
p.idea__title { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
.pack__title { font-family: var(--font-head); font-weight: 700; font-size: var(--t22); line-height: 1.2; color: var(--text); }
@media (min-width: 720px) { .pack__title { font-size: var(--t28); } }
.pack--slim .pack__title { font-size: var(--t22); }
/* 打印：插画信纸在 US Letter 上不超一页（elf-legs + 长信曾打成 2 页） */
@media print {
  .sheet[data-theme]:not([data-theme="simple"]) .sheet__paper { min-height: 8.3in; font-size: 19px; }
  .sheet[data-theme]:not([data-theme="simple"]) .sheet__body p { margin-bottom: .5em; }
  .sheet { break-inside: avoid; page-break-inside: avoid; }
}

/* 即将开放（Waffo 审核中）：礼盒和价格照常显示，按钮不能点；底部购买条 / 页头礼盒按钮 / 气泡先不出现。?paid=1 时恢复 */
[data-buy-soon] [data-sticky-pack], [data-buy-soon] [data-pack-pill], [data-buy-soon] [data-pack-bubble] { display: none !important; }
.btn.is-soon { opacity: .6; cursor: not-allowed; pointer-events: none; }

p.idea__label { font-weight: 700; }
.backups__title { font-family: var(--font-head); font-size: var(--t18); margin-bottom: var(--s3); }

/* 带出处的引用（AITDK Citations & Quotations） */
.section--quote { padding-top: var(--s6); padding-bottom: 0; }
.quote { max-width: 760px; margin: 0; padding: var(--s5) var(--s6); background: var(--card); border-left: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--font-head); font-size: var(--t22); line-height: 1.35; }
.quote figcaption { margin-top: var(--s3); font-size: var(--t14); color: var(--muted); }
.quote cite a { color: var(--primary); font-style: normal; }
.quote__after { max-width: 70ch; margin-top: var(--s4); }
@media (max-width: 639px) { .quote { padding: var(--s4) var(--s5); } .quote blockquote p { font-size: var(--t18); } }

/* 首页救急区块（ChatGPT 读页：救急内容要常开、能整段引用） */
.rescue-help { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .rescue-help { grid-template-columns: 1fr 1fr; } }
.rescue__card { display: grid; gap: var(--s3); align-content: start; padding: var(--s5); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.rescue__card h3 { font-family: var(--font-head); font-size: var(--t22); }
.rescue__card .faq__list, .rescue__card .how-steps, .rescue__card .faq__sample { margin: 0; }
.rescue__card .btn { justify-self: start; }
.rescue__calm { max-width: 70ch; margin-top: var(--s5); font-weight: 600; }
@media (max-width: 639px) { .rescue__card { padding: var(--s4); } .rescue__card .btn { justify-self: stretch; text-align: center; } }

/* 到家信页功能清单 */
.feature-line { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: var(--s5) 0 0; padding: 0; list-style: none; font-size: var(--t14); color: var(--muted); }
.feature-line li { display: flex; align-items: center; gap: var(--s2); }
.feature-line li::before { content: "✓"; color: var(--primary); font-weight: 700; }

/* 第二轮（Fable 走查）：到家信页窄版礼盒——按钮放到清单下面，清单不被挤成一列 */
.pack--slim { grid-template-columns: minmax(0, 1fr) !important; }
.pack--slim .pack__buy { justify-items: start; }
.pack--slim .pack__buy .btn { white-space: normal; text-align: center; }
/* 手机导航链接本身 44px 高（原来 32px + 伪元素扩大点击区） */
@media (max-width: 639.98px) {
  .site-header .site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ==========================================================================
   Phone header + first screen, OPTION B3 (replaces B2). CSS for phones only.
   Needs ONE markup change in the layout: a third nav link "Elf Ideas" -> "/"
   placed first (see mobile-nav-B3.html). Desktop keeps its existing link style.
   Loads AFTER style.css. Do not load together with mobile-nav-A / B / B2.
   ========================================================================== */
@media (max-width: 639.98px) {

  /* 1. Header: brand on row one, nav on its own row below it */
  .site-header__inner {
    flex-wrap: wrap;
    gap: var(--s1) var(--s3);
    min-height: 0;
    padding-top: var(--s4);                           /* the smaller string of lights needs less room */
    padding-bottom: 0;
  }
  .brand { flex: 0 0 100%; }

  .site-nav {                                         /* three plain text links spread across the full width */
    flex: 0 0 100%;
    justify-content: space-between;
    gap: var(--s2);
  }
  .site-nav a {
    min-height: 32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: rgba(255, 253, 248, .8);
    font-size: var(--t16);
    font-weight: 600;
  }
  .site-nav a::after { content: ""; position: absolute; inset: -6px -8px; }      /* 44px tap area */
  .site-nav a:hover { color: #fff; border-color: transparent; }
  .site-nav a[aria-current="page"] {                  /* you are here: white text + gold underline */
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--gold-bright);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }

  /* 2. Lights: kept, smaller and softer on phones */
  .lights { height: 16px; opacity: .8; }
  .lights::before, .lights::after { background-size: 160px 16px; }

  /* 3. Hero: plain pine behind the H1, fewer and fainter falling flakes */
  .hero { background-image: none; }
  .snow i { opacity: .3; }
  .snow i:nth-child(odd) { display: none; }

  /* 4. Tool card: no candy-stripe trim on phones; the peeking hat stays, slightly smaller */
  .tool { background: var(--card); padding-top: var(--s4); }
  .tool-layout::before { width: 48px; height: 48px; top: -28px; }
}
