/* =========================================================================
   FillTogether — Editorial design system
   Zero external requests. System serif for warmth, no generic SaaS look.
   ========================================================================= */
:root {
  color-scheme: light;
  --paper:      #faf7f1;
  --paper-2:    #fffdf8;
  --ink:        #26211c;
  --ink-soft:   #6c6258;
  --ink-faint:  #9a8f82;
  --rule:       #ded5c7;
  --rule-soft:  #ece5d9;
  --gold:       #a9813f;
  --gold-deep:  #7a5b23;
  --gold-wash:  #f3e9d4;
  --rose:       #a0525e;
  --rose-wash:  #f7e9e9;
  --pine:       #2f5747;
  --shadow:     0 1px 2px rgba(50,40,25,.04), 0 16px 44px rgba(50,40,25,.09);
  --shadow-sm:  0 1px 2px rgba(50,40,25,.05), 0 4px 14px rgba(50,40,25,.06);
  --radius:     3px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: var(--serif);
  --body: var(--sans);
  --scale: 1;
  --nav-bg: rgba(250,247,241,.92);
}

/* Winter night: deep blue with a warm gold, not flat navy ---------------- */
html[data-scene="advent"] {
  color-scheme: dark;
  --paper:      #0b1a2e;
  --paper-2:    #142944;
  --ink:        #f7f0e2;
  --ink-soft:   #c0cbd9;
  --ink-faint:  #8c9aaf;
  --rule:       #2c4666;
  --rule-soft:  #203757;
  --gold:       #e8c46a;
  --gold-deep:  #f5da94;
  --gold-wash:  #1d3554;
  --rose:       #e59a92;
  --rose-wash:  #2b3b57;
  --pine:       #7fb79b;
  --shadow:     0 1px 2px rgba(0,0,0,.2), 0 18px 50px rgba(0,0,0,.36);
  --shadow-sm:  0 1px 2px rgba(0,0,0,.2), 0 6px 18px rgba(0,0,0,.24);
  --nav-bg: rgba(11,26,46,.9);
}
/* Gingerbread theme ------------------------------------------------------ */
html[data-theme="gingerbread"] {
  --paper: #2b1913; --paper-2: #3d261b;
  --ink: #fbf0df; --ink-soft: #d9c1a5; --ink-faint: #a98d70;
  --rule: #63432f; --rule-soft: #4a3122;
  --gold: #e3a965; --gold-deep: #f6cf9a; --gold-wash: #4a2f1f;
  --nav-bg: rgba(43,25,19,.92);
}
/* Candy cane theme ------------------------------------------------------- */
html[data-theme="candy-cane"] {
  --paper: #40151f; --paper-2: #571e2a;
  --ink: #fff2f0; --ink-soft: #e6c3c2; --ink-faint: #bb9295;
  --rule: #7b3442; --rule-soft: #632632;
  --gold: #f0c7a0; --gold-deep: #ffe0bd; --gold-wash: #5a2430;
  --nav-bg: rgba(64,21,31,.92);
}
/* Wedding blush ---------------------------------------------------------- */
html[data-theme="blush"], html[data-scene="wedding"][data-theme="blush"] {
  --paper: #fbf0ef; --paper-2: #fffaf9;
  --ink: #3d2b2e; --ink-soft: #7e6467; --ink-faint: #aa9294;
  --rule: #e6cfcd; --rule-soft: #f1e0de;
  --gold: #a75f6b; --gold-deep: #8a4753; --gold-wash: #f3dedd;
  --nav-bg: rgba(251,240,239,.92);
}
html[data-theme="garden"], html[data-scene="wedding"][data-theme="garden"] {
  --paper: #f2f6ee; --paper-2: #fbfdf9;
  --ink: #27352b; --ink-soft: #617261; --ink-faint: #93a191;
  --rule: #d3e0ce; --rule-soft: #e4ede0;
  --gold: #5e8257; --gold-deep: #436342; --gold-wash: #e4ecdf;
  --nav-bg: rgba(242,246,238,.92);
}

/* Accessibility ---------------------------------------------------------- */
html[data-high-contrast="true"] {
  --paper: #fff; --paper-2: #fff; --ink: #000; --ink-soft: #111;
  --ink-faint: #333; --rule: #000; --rule-soft: #444;
  --gold: #0033aa; --gold-deep: #001d66; --gold-wash: #eef2ff;
  --nav-bg: #fff;
}
html[data-scale="large"] { --scale: 1.14; }
html[data-scale="xlarge"] { --scale: 1.3; }

* { box-sizing: border-box; }
html { font-size: calc(16px * var(--scale)); scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); background: var(--paper); color: var(--ink);
  line-height: 1.7; -webkit-font-smoothing: antialiased; font-size: 1rem;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.14; }
a { color: var(--gold-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
html[data-scene="advent"] a { color: var(--gold); }
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

.wrap { width: min(1080px, calc(100% - 44px)); margin: 0 auto; }
.wrap-narrow { width: min(700px, calc(100% - 44px)); margin: 0 auto; }
.measure { max-width: 68ch; }

/* ------------------------------------------------------------------------
   Atmosphere: snow, string lights, trees — CSS only, no images
   ------------------------------------------------------------------------ */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
html[data-scene="advent"] .sky::before,
html[data-scene="advent"] .sky::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(2px 2px at 140px 90px, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(3px 3px at 90px 180px, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 190px 220px, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(2px 2px at 250px 40px, rgba(255,255,255,.45) 50%, transparent 51%);
  background-size: 300px 260px;
  animation: drift 26s linear infinite;
}
html[data-scene="advent"] .sky::after { opacity: .45; animation-duration: 41s; background-size: 410px 340px; transform: scaleX(-1); }
@keyframes drift { from { transform: translateY(-40px); } to { transform: translateY(300px); } }

.string-lights { position: absolute; top: 0; left: 0; right: 0; height: 54px; pointer-events: none; z-index: 1; overflow: hidden; }
.string-lights::before {
  content: ""; position: absolute; top: 12px; left: -2%; right: -2%; height: 34px;
  border-bottom: 2px solid rgba(255,255,255,.18);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.string-lights i {
  position: absolute; top: 20px; width: 7px; height: 10px; border-radius: 50% 50% 45% 45%;
  background: var(--gold); box-shadow: 0 0 10px 3px color-mix(in srgb, var(--gold) 45%, transparent);
  animation: twinkle 3.4s ease-in-out infinite;
}
.string-lights i:nth-child(3n) { background: #e8897c; box-shadow: 0 0 10px 3px rgba(232,137,124,.4); animation-delay: .7s; }
.string-lights i:nth-child(3n+1) { background: #9ecfb6; box-shadow: 0 0 10px 3px rgba(158,207,182,.4); animation-delay: 1.5s; }
@keyframes twinkle { 0%,100% { opacity: .85; } 50% { opacity: .35; } }

.hills { position: absolute; bottom: 0; left: 0; right: 0; height: 150px; opacity: .5; pointer-events: none; z-index: 0; }
.hills::before, .hills::after {
  content: ""; position: absolute; bottom: -40px; width: 120%; height: 160px;
  background: color-mix(in srgb, var(--gold) 8%, var(--paper-2));
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hills::before { left: -30%; }
.hills::after { right: -35%; height: 120px; opacity: .7; }

/* Header — understated, not a floating white pill ------------------------ */
.site-header {
  border-bottom: 1px solid var(--rule-soft);
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  position: relative; z-index: 20;
}
html[data-scene="advent"] .site-header { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.brand {
  display: inline-flex; align-items: baseline; gap: 9px; color: var(--ink);
  text-decoration: none; font-family: var(--display); font-size: 1.28rem; letter-spacing: -.03em;
}
.brand-mark {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-deep); font-family: var(--serif);
  font-size: .82rem; font-weight: 600; letter-spacing: 0;
}
.nav { display: none; gap: 24px; align-items: center; font-size: .86rem; letter-spacing: .01em; }
@media (min-width: 840px) { .nav { display: flex; } }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--gold-deep); }
/* A11y controls tucked away, not a toolbar across the top ---------------- */
.a11y-bar { display: flex; gap: 5px; justify-content: flex-end; padding-top: 7px; }
.a11y-bar button {
  border: 0; background: none; color: var(--ink-faint); cursor: pointer;
  font-size: .72rem; padding: 3px 7px; letter-spacing: .03em; border-radius: 2px;
}
.a11y-bar button:hover, .a11y-bar button:focus-visible { color: var(--ink); background: var(--rule-soft); }
html[data-reduce-motion="true"] *, html[data-reduce-motion="true"] *::before, html[data-reduce-motion="true"] *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

/* Hero — editorial, asymmetric, not a two-column SaaS split -------------- */
.hero { position: relative; padding: 72px 0 60px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; gap: 44px; align-items: start; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.02fr .88fr; gap: 76px; } }
.eyebrow {
  display: block; font-family: var(--body); font-size: .7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 20px;
  max-width: 34ch; line-height: 1.5;
}
html[data-scene="advent"] .eyebrow, html[data-theme="gingerbread"] .eyebrow, html[data-theme="candy-cane"] .eyebrow { color: var(--gold); }
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.1rem); margin: 0 0 22px; line-height: 1.06; letter-spacing: -.035em;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--gold-deep); }
html[data-scene="advent"] h1 em, html[data-theme="gingerbread"] h1 em, html[data-theme="candy-cane"] h1 em { color: var(--gold); }
.lede {
  font-family: var(--serif); font-size: clamp(1.12rem, 1.9vw, 1.35rem); color: var(--ink-soft);
  max-width: 46ch; margin: 0 0 24px; line-height: 1.55;
}
.understated { font-size: .85rem; color: var(--ink-faint); margin-top: 18px; }
.understated::before { content: "— "; }

/* Form — looks like a letter, not a dashboard card ----------------------- */
.form-letter {
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 30px 30px 28px; box-shadow: var(--shadow); position: relative;
}
html[data-scene="advent"] .form-letter { background: color-mix(in srgb, var(--paper-2) 92%, transparent); border-color: var(--rule); }
.form-letter::before {
  content: ""; position: absolute; top: -1px; left: 30px; right: 30px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 22px, transparent 22px 30px);
  opacity: .5;
}
.form-letter h2 {
  font-size: 1.6rem; margin: 0 0 4px;
}
.form-letter .sub { font-size: .84rem; color: var(--ink-faint); margin-bottom: 22px; }
label { display: block; font-weight: 600; font-size: .79rem; margin: 16px 0 7px; letter-spacing: .02em; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--rule); border-radius: 2px;
  background: var(--paper); color: var(--ink); transition: border-color .15s, box-shadow .15s;
  font-size: .94rem;
}
html[data-scene="advent"] input, html[data-scene="advent"] textarea, html[data-scene="advent"] select { background: rgba(0,0,0,.14); }
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 16%, transparent); outline: none; }
.hint { font-size: .76rem; color: var(--ink-faint); margin-top: 5px; }
.row { display: grid; gap: 12px; }
@media (min-width: 560px) { .row.two { grid-template-columns: 1fr 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 2px; padding: 12px 24px;
  font-weight: 600; cursor: pointer; text-decoration: none; font-size: .9rem;
  letter-spacing: .015em; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--gold); color: var(--paper); border-color: var(--gold); }
html[data-scene="advent"] .btn-primary, html[data-theme="gingerbread"] .btn-primary, html[data-theme="candy-cane"] .btn-primary { color: #1a2333; }
.btn-primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #1a2333; }
.btn-ghost { background: transparent; border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-sm { padding: 8px 14px; font-size: .8rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

.choice-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.choice {
  border: 1px solid var(--rule); background: transparent; color: var(--ink-soft);
  padding: 7px 13px; border-radius: 2px; cursor: pointer; font-size: .8rem; font-weight: 500;
  transition: all .15s;
}
.choice:hover { border-color: var(--gold); color: var(--ink); }
.choice[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-wash); color: var(--gold-deep); }

/* Sections — ruled, editorial, not card grids ---------------------------- */
section { padding: 70px 0; position: relative; }
section.alt { background: var(--paper-2); border-block: 1px solid var(--rule-soft); }
html[data-scene="advent"] section.alt { background: rgba(0,0,0,.09); }
section h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0 0 12px; letter-spacing: -.025em; }
.section-lede { font-family: var(--serif); font-size: 1.1rem; color: var(--ink-soft); max-width: 58ch; margin: 0 0 34px; }
.rule { width: 46px; height: 2px; background: var(--gold); margin-bottom: 20px; }

.steps { display: grid; gap: 26px; counter-reset: step; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 30px; } }
.step { border-top: 1px solid var(--rule); padding-top: 16px; position: relative; }
.step .num {
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold-deep);
  position: absolute; top: -1px; right: 0; transform: translateY(-50%);
  background: var(--paper); padding-left: 8px;
}
section.alt .step .num { background: var(--paper-2); }
.step h3 { font-size: 1.16rem; margin: 10px 0 8px; }
.step p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.65; }

.prose { font-family: var(--serif); font-size: 1.08rem; line-height: 1.78; color: var(--ink); }
.prose p { margin: 0 0 1.2em; }
.prose h2 { margin-top: 2em; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .55em; }
.prose a { text-decoration-thickness: 1px; }

/* FAQ — collapsible with hairline rules ---------------------------------- */
.faq details { border-bottom: 1px solid var(--rule); padding: 15px 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.08rem; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold-deep); font-family: var(--body); font-size: 1.2rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .answer, .faq p { color: var(--ink-soft); margin: 12px 0 2px; font-size: .94rem; line-height: 1.7; max-width: 68ch; }

/* Pricing — three columns with a clear recommendation -------------------- */
.price-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { border: 1px solid var(--rule); padding: 26px 24px; background: var(--paper-2); border-radius: var(--radius); display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.price-card .price { font-family: var(--serif); font-size: 2.5rem; letter-spacing: -.03em; margin-bottom: 6px; }
.price-card strong { font-family: var(--serif); font-size: 1.18rem; }
.price-card ul { padding-left: 1.1em; color: var(--ink-soft); font-size: .88rem; margin: 14px 0 22px; }
.price-card li { margin-bottom: 6px; }
.price-card .btn { margin-top: auto; }

/* ------------------------------------------------------------------------
   The calendar — actual wrapped gifts, not numbered squares
   ------------------------------------------------------------------------ */
.door-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.progress { flex: 1; min-width: 180px; }
.progress-bar { height: 3px; background: var(--rule); margin-top: 7px; }
.progress-bar > i { display: block; height: 100%; background: var(--gold); transition: width .4s; }
.door-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; min-width: 0; }
@media (min-width: 560px) { .door-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 960px) { .door-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 15px; } }

.door {
  --gift-paper: var(--paper-2);
  --ribbon: var(--gold);
  aspect-ratio: 3 / 4; position: relative; isolation: isolate;
  border: 1px solid var(--rule); border-radius: 5px; cursor: pointer; padding: 0; overflow: hidden;
  display: grid; place-items: center; color: var(--ink);
  background: linear-gradient(155deg, rgba(255,255,255,.12), transparent 45%), var(--gift-paper);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -8px 16px rgba(0,0,0,.1),
              0 4px 0 color-mix(in srgb, var(--ribbon) 38%, #000), 0 8px 16px rgba(0,0,0,.14);
  transition: transform .18s, box-shadow .18s;
}
.door:hover { transform: translateY(-4px) rotate(-.6deg); z-index: 2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 0 color-mix(in srgb, var(--ribbon) 38%, #000), 0 14px 24px rgba(0,0,0,.2); }
/* satin ribbon cross */
.door::before, .door::after { content: ""; position: absolute; z-index: 1; pointer-events: none; }
.door::before {
  left: 39%; top: 0; width: 22%; height: 100%;
  background: linear-gradient(90deg, color-mix(in srgb,var(--ribbon) 62%,#000), var(--ribbon) 30%, color-mix(in srgb,var(--ribbon) 78%,#fff) 52%, var(--ribbon) 74%, color-mix(in srgb,var(--ribbon) 62%,#000));
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}
.door::after {
  top: 41%; left: 0; width: 100%; height: 18%;
  background: linear-gradient(180deg, color-mix(in srgb,var(--ribbon) 62%,#000), var(--ribbon) 30%, color-mix(in srgb,var(--ribbon) 78%,#fff) 52%, var(--ribbon) 74%, color-mix(in srgb,var(--ribbon) 62%,#000));
  box-shadow: 0 1px 0 rgba(0,0,0,.18);
}
/* bow */
.door .gift {
  position: absolute; top: -2%; left: 50%; width: 46%; height: 17%; z-index: 4;
  transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(ellipse at 27% 58%, var(--ribbon) 0 42%, transparent 43%),
    radial-gradient(ellipse at 73% 58%, var(--ribbon) 0 42%, transparent 43%);
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.25));
}
.door .gift::after {
  content: ""; position: absolute; left: 41%; top: 58%; width: 18%; height: 34%; border-radius: 3px;
  background: color-mix(in srgb, var(--ribbon) 80%, #fff);
}
.door .day-no {
  position: relative; z-index: 5; min-width: 2.1em; padding: .16em .34em; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--rule);
  font-family: var(--serif); font-size: .96rem; font-variant-numeric: lining-nums tabular-nums;
}
.door .sticker { position: absolute; bottom: 7px; right: 8px; font-size: .92rem; z-index: 5; filter: saturate(.85); }
.door .who {
  position: absolute; bottom: 6px; left: 8px; right: 8px; z-index: 5;
  font-size: .6rem; color: var(--ink-soft); text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.door.empty { --gift-paper: color-mix(in srgb, var(--paper) 90%, var(--ink)); --ribbon: color-mix(in srgb, var(--gold) 45%, var(--paper)); }
.door.empty::before, .door.empty::after { opacity: .45; }
.door.empty .gift { opacity: .4; }
.door.filled { --gift-paper: color-mix(in srgb, var(--gold) 13%, var(--paper-2)); }
.door.filled.locked { box-shadow: inset 0 0 0 1px var(--gold), 0 4px 0 color-mix(in srgb,var(--ribbon) 38%,#000), 0 8px 16px rgba(0,0,0,.16); }
.door.golden { --gift-paper: linear-gradient(145deg,#f5df9f,#d7ad4e); --ribbon: #b8892f; }
.door.golden .day-no, .door.golden .who { color: #3a2b0c; }
.door.open-today { animation: giftGlow 2.8s ease-in-out infinite; }
@keyframes giftGlow { 50% { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 2px var(--gold), 0 0 24px color-mix(in srgb,var(--gold) 45%,transparent); } }
.door.unwrapping .gift { animation: bowPop .45s cubic-bezier(.2,1.4,.4,1) forwards; }
.door.unwrapping::after { animation: ribbonOff .4s ease-out forwards; }
@keyframes bowPop { to { transform: translateX(-50%) translateY(-60px) rotate(35deg); opacity: 0; } }
@keyframes ribbonOff { to { transform: translateY(140%); opacity: 0; } }
/* candy cane stripes */
html[data-theme="candy-cane"] .door::after {
  background: repeating-linear-gradient(135deg, var(--gold) 0 8px, color-mix(in srgb,var(--gold) 35%,#fff) 8px 16px);
}
html[data-theme="gingerbread"] .door { --gift-paper: #8a4e35; --ribbon: #a85243; }
html[data-theme="gingerbread"] .door .day-no { color: #fbf0df; background: #5a3223; border-color: #a85243; }
html[data-theme="gingerbread"] .door .who { color: #f0d9c0; }
/* golden calendar frame */
.calendar-frame {
  padding: 16px; border: 1px solid transparent;
  background: linear-gradient(var(--paper),var(--paper)) padding-box,
              linear-gradient(135deg, var(--gold), color-mix(in srgb,var(--gold) 30%,var(--paper)), var(--gold)) border-box;
  border-radius: 6px;
}
/* pine silhouettes */
.pines { position: absolute; bottom: 0; left: 0; right: 0; height: 120px; pointer-events: none; z-index: 0; opacity: .28; overflow: hidden; }
.pines i {
  position: absolute; bottom: 0; width: 120px; height: var(--h, 110px);
  background: color-mix(in srgb, var(--pine) 70%, var(--paper));
  clip-path: polygon(50% 0,62% 26%,57% 26%,72% 52%,65% 52%,84% 82%,100% 82%,50% 100%,0 82%,16% 82%,35% 52%,28% 52%,43% 26%,38% 26%);
}

/* Notes — handwritten letters with ruled lines -------------------------- */
.notes { display: grid; gap: 18px; }
@media (min-width: 720px) { .notes { grid-template-columns: repeat(2, 1fr); } }
.note {
  position: relative; padding: 24px 24px 26px; background: var(--paper-2);
  border: 1px solid var(--rule); border-radius: var(--radius);
  background-image: repeating-linear-gradient(transparent, transparent 30px, var(--rule-soft) 31px);
  background-position: 0 62px; box-shadow: var(--shadow-sm);
}
.note .from { font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--gold-deep); }
.note .body { white-space: pre-wrap; margin-top: 10px; font-family: var(--serif); font-size: 1.05rem; line-height: 1.85; }
.note.locked .body { color: var(--ink-faint); letter-spacing: .18em; font-family: var(--body); font-size: .8rem; }
.note time { display: block; margin-top: 16px; font-size: .72rem; color: var(--ink-faint); }
.note-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; }
.note-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.note-actions .badge { margin-left: 2px; }
.note-media { display: block; width: 100%; max-height: 260px; object-fit: contain; margin-top: 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }

/* Media message composer ------------------------------------------------- */
.media-box { margin: 10px 0 16px; padding: 13px; border: 1px dashed var(--rule); border-radius: var(--radius); background: var(--paper-2); }
.media-box label { display: block; margin-bottom: 6px; }
.media-box .hint { margin: 7px 0 0; }
.media-box input[type="file"] { max-width: 100%; font-size: .82rem; }
.upload-thumb { display: block; width: 96px; height: 96px; object-fit: cover; margin-top: 10px; border: 1px solid var(--rule); border-radius: 8px; }
.upload-file { display: inline-block; margin-top: 10px; padding: 6px 10px; border-radius: 999px; background: var(--paper); color: var(--ink-soft); font-size: .78rem; }

/* Unwrapped note card ---------------------------------------------------- */
.unwrapped-card {
  position: relative; margin: 10px 0 4px; padding: 26px 22px 20px;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: radial-gradient(circle at 92% 4%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 42%), var(--paper-2);
  box-shadow: var(--shadow-sm); animation: unwrappedIn .32s cubic-bezier(.2,.9,.3,1) both;
}
.unwrapped-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 14px, color-mix(in srgb, var(--gold) 45%, var(--paper)) 14px 28px);
  border-radius: var(--radius) var(--radius) 0 0;
}
.unwrapped-top { display: flex; align-items: center; gap: 10px; }
.unwrapped-seal {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border: 1px solid var(--gold); border-radius: 50%; background: var(--paper); font-size: 1.1rem;
}
.unwrapped-message { margin: 16px 0 4px; white-space: pre-wrap; font-family: var(--serif); font-size: 1.1rem; line-height: 1.75; }
.unwrapped-media { margin-top: 14px; }
.unwrapped-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--rule); color: var(--ink-faint); font-size: .78rem; }
.unwrapped-foot strong { color: var(--ink); }
@keyframes unwrappedIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .unwrapped-card { animation: none; } }
html[data-reduce-motion="true"] .unwrapped-card { animation: none; }

/* Modal & toast ---------------------------------------------------------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10,14,22,.7); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule);
  border-radius: var(--radius); max-width: 520px; width: 100%; max-height: 92vh;
  overflow: auto; padding: 30px; box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.modal h2 { font-size: 1.7rem; margin: 0 0 6px; }
.modal .close { float: right; border: 0; background: none; color: var(--ink-faint); font-size: 1.5rem; cursor: pointer; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90;
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 2px;
  font-size: .85rem; box-shadow: var(--shadow); max-width: 90vw; }
.toast[hidden] { display: none; }

/* Share ------------------------------------------------------------------ */
.share-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.code-chip { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em;
  font-size: 1.02rem; font-weight: 600; padding: 9px 14px; border: 1px dashed var(--gold); display: inline-block; }
.card-preview { width: min(260px, 100%); border: 1px solid var(--rule); }

/* Tables & utility ------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; font-family: var(--serif); font-size: 1rem; }
.badge { display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid var(--gold); color: var(--gold-deep); }
.demo-banner { background: var(--gold-wash); color: var(--ink); border: 1px solid var(--gold); padding: 9px 14px; font-size: .8rem; margin-bottom: 18px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .82rem; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 18px; } .mt-6 { margin-top: 34px; }
.mb-0 { margin-bottom: 0; } .mb-4 { margin-bottom: 18px; }
.hidden { display: none !important; }

.site-footer { border-top: 1px solid var(--rule); padding: 32px 0 40px; font-size: .8rem; color: var(--ink-faint); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--gold-deep); }

/* Compatibility aliases used by generated pages -------------------------- */
.card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 3px; }
.card-sub { font-size: .84rem; color: var(--ink-faint); margin-bottom: 18px; }
.feature { border-top: 1px solid var(--rule); padding: 18px 0 4px; }
.feature .num { font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: .95rem; }
.feature h3 { margin: 8px 0 6px; font-size: 1.14rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.proof { display: flex; flex-wrap: wrap; gap: 7px 20px; margin-top: 20px; font-size: .82rem; color: var(--ink-faint); }
.proof span::before { content: "— "; color: var(--gold-deep); }
html[data-scene="advent"] .proof span::before { color: var(--gold); }
@media print {
  .site-header, .a11y-bar, .share-actions, .btn, .sky, .string-lights { display: none !important; }
  body { background: #fff; color: #000; }
}
