@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Nunito:wght@400;600;700;800&family=Caveat:wght@600;700&display=swap");

/* ---------- themes ---------- */
:root,
[data-theme="pine"] {
  --page: #10241a;
  --page-2: #0a1811;
  --on-page: #f6ead2;
  --on-page-soft: #cdbf9f;
  --paper: #f4e7cd;
  --paper-2: #ead6b1;
  --ink: #4a1518;
  --ink-soft: #7b5c49;
  --line: #d9c197;
  --tone-a: #2f5c3d;
  --tone-a-dark: #1b3a25;
  --tone-b: #8e2329;
  --tone-b-dark: #5c1317;
  --door-ink: #f7e8cb;
  --gold: #d9a646;
  --btn: #8e2329;
  --btn-dark: #5c1317;
}
[data-theme="frost"] {
  --page: #13243b;
  --page-2: #0a1526;
  --on-page: #eef3fa;
  --on-page-soft: #a9bcd3;
  --paper: #f2f5f9;
  --paper-2: #dfe7f0;
  --ink: #1b2f4b;
  --ink-soft: #5a6f88;
  --line: #c9d6e4;
  --tone-a: #3b6797;
  --tone-a-dark: #23466e;
  --tone-b: #9b3a4f;
  --tone-b-dark: #6a2133;
  --door-ink: #f4f8fd;
  --gold: #e3c27a;
  --btn: #3b6797;
  --btn-dark: #23466e;
}
[data-theme="cocoa"] {
  --page: #2b1810;
  --page-2: #1b0e08;
  --on-page: #fbecd6;
  --on-page-soft: #d7b994;
  --paper: #f7e8d1;
  --paper-2: #ecd3ae;
  --ink: #4a2414;
  --ink-soft: #81604a;
  --line: #dfc095;
  --tone-a: #8a5631;
  --tone-a-dark: #5d361b;
  --tone-b: #b2462d;
  --tone-b-dark: #7a2b19;
  --door-ink: #fdf0dc;
  --gold: #e8b45a;
  --btn: #a33f27;
  --btn-dark: #6f2816;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-page);
  background-color: var(--page);
  background-image:
    radial-gradient(600px 300px at 12% 8%, rgba(255, 196, 110, .10), transparent 70%),
    radial-gradient(500px 260px at 88% 30%, rgba(255, 196, 110, .07), transparent 70%),
    linear-gradient(180deg, var(--page), var(--page-2));
  background-attachment: fixed;
  min-height: 100vh;
}
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; line-height: 1.05; margin: 0 0 .45em; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.55rem; font-weight: 700; }
a { color: inherit; }
p { margin: 0 0 1em; }
.hand { font-family: "Caveat", cursive; }

.wrap { width: min(1140px, 100% - 36px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 36px); margin-inline: auto; }

.sprig { display: block; width: 210px; height: 36px; margin: 8px 0 18px; background: url(/img/sprig.svg) center / contain no-repeat; }
.center .sprig, .sprig.center { margin-inline: auto; }

/* ---------- header / footer ---------- */
.top-bar {
  position: relative; z-index: 3;
  background: color-mix(in srgb, var(--page-2) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  backdrop-filter: blur(6px);
}
.top { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 1.65rem; line-height: 1;
}
.brand-mark { width: 44px; height: 22px; background: url(/img/sprig.svg) center / 190% no-repeat; flex: none; }
.top nav { display: flex; align-items: center; gap: 24px; font-weight: 700; font-size: .95rem; }
.top nav a { text-decoration: none; opacity: .88; }
.top nav a:hover { opacity: 1; }
.top nav .btn { opacity: 1; }

.foot {
  padding: 36px 0 52px; color: var(--on-page-soft); font-size: .92rem;
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center;
  border-top: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
}
.foot a { color: var(--on-page-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; font-size: 1rem; letter-spacing: .01em;
  border: 0; border-radius: 999px; padding: 13px 24px; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--btn) 88%, #fff) 0%, var(--btn) 55%);
  color: #fff6e6;
  box-shadow: inset 0 -3px 0 var(--btn-dark), 0 8px 18px -10px rgba(0, 0, 0, .6);
  transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.block { width: 100%; margin-top: 18px; }
.btn.big { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; font-weight: 700; padding: 12px 26px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn.cream { background: var(--paper); color: var(--btn); box-shadow: inset 0 -2px 0 var(--paper-2); }
.linkbtn { background: none; border: 0; font: inherit; color: var(--ink-soft); text-decoration: underline; cursor: pointer; padding: 0; }

/* ---------- paper cards ---------- */
.paper {
  position: relative; color: var(--ink);
  background:
    radial-gradient(140% 90% at 50% 0%, rgba(255, 255, 255, .45), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(160, 110, 50, .08), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(160, 110, 50, .07), transparent 35%),
    var(--paper);
  border-radius: 18px; padding: 28px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent) inset, 0 30px 60px -28px rgba(0, 0, 0, .75);
}
.paper.deco::before, .paper.deco::after {
  content: ""; position: absolute; width: 46px; height: 46px; pointer-events: none;
  background: url(/img/corner.svg) center / contain no-repeat;
}
.paper.deco::before { top: 8px; left: 8px; }
.paper.deco::after { bottom: 8px; right: 8px; transform: rotate(180deg); }
.paper h2, .paper h3 { color: var(--ink); }
.muted { color: var(--ink-soft); }

label.field { display: block; font-weight: 700; font-size: .95rem; margin: 14px 0 6px; }
input[type="text"], textarea, select {
  width: 100%; font: inherit; color: var(--ink);
  background: color-mix(in srgb, var(--paper) 40%, #fff); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus, textarea:focus, select:focus { border-color: var(--btn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--btn) 18%, transparent); }
textarea { resize: vertical; min-height: 112px; font-family: "Caveat", cursive; font-size: 1.45rem; line-height: 1.25; }
.counter { text-align: right; font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .95rem; margin-top: 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--btn); }
.error { color: #b3261e; font-weight: 700; font-size: .92rem; margin-top: 10px; min-height: 1.2em; }

.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.style-opt { position: relative; }
.style-opt input { position: absolute; opacity: 0; }
.style-opt span {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 9px 6px 7px; border-radius: 14px; border: 1.5px solid var(--line);
  font-weight: 800; font-size: .9rem; cursor: pointer; background: color-mix(in srgb, var(--paper) 40%, #fff);
}
.style-opt i { display: flex; gap: 4px; }
.style-opt i b { width: 16px; height: 21px; border-radius: 8px 8px 2px 2px; display: block; }
.style-opt input:checked + span { border-color: var(--btn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--btn) 20%, transparent); }
.style-opt input:focus-visible + span { outline: 3px solid var(--gold); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, var(--page) 0%, color-mix(in srgb, var(--page) 85%, transparent) 32%, transparent 62%),
    linear-gradient(0deg, var(--page) 0%, transparent 22%),
    url(/img/hero.jpg) right center / cover no-repeat;
  min-height: 680px;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 640px) 1fr; padding: 70px 0 80px; }
.hero h1 { color: var(--on-page); text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero .lead { font-size: 1.18rem; color: var(--on-page); opacity: .9; max-width: 30em; }
.hero .paper { max-width: 470px; margin-top: 8px; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-weight: 700; font-size: .92rem; color: var(--on-page-soft); }
.trust span::before { content: "✦ "; color: var(--gold); }

.findcode { display: flex; gap: 8px; margin-top: 10px; }
.findcode input { text-transform: uppercase; letter-spacing: .15em; font-weight: 800; }
.divider-text { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: .88rem; font-weight: 700; margin: 20px 0 4px; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.mine-list { list-style: none; padding: 0; margin: 6px 0 0; }
.mine-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--paper-2) 55%, transparent);
  text-decoration: none; font-weight: 800; margin-top: 8px;
}
.mine-list code { letter-spacing: .12em; color: var(--ink-soft); }

/* ---------- the door board ---------- */
.board-card { padding: 26px 26px 22px; }
.board-card .sprig { margin: -6px auto 14px; }
.board {
  --cols: 6;
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 14px;
}
.door {
  --tone: var(--tone-a); --tone-dark: var(--tone-a-dark);
  position: relative; aspect-ratio: 4 / 5;
  border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer; background: none; color: var(--door-ink);
  border-radius: 50% 50% 8px 8px / 38% 38% 8px 8px;
  perspective: 600px;
}
.door.tone-b { --tone: var(--tone-b); --tone-dark: var(--tone-b-dark); }
.door:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

/* the recess behind the door */
.door .inside {
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 50% 35%, #fff8e6, var(--paper-2));
  box-shadow: inset 0 4px 10px rgba(60, 30, 10, .35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--tone-b);
}
.door .inside .ico { width: 42%; }
.door .inside .from { font-family: "Caveat", cursive; font-size: clamp(.9rem, 1.8vw, 1.15rem); color: var(--ink); line-height: 1; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the painted wooden leaf */
.door .leaf {
  position: absolute; inset: 0; border-radius: inherit;
  background:
    repeating-linear-gradient(92deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 9px, rgba(255, 255, 255, .04) 9px 10px, transparent 10px 17px),
    linear-gradient(180deg, color-mix(in srgb, var(--tone) 88%, #fff) 0%, var(--tone) 40%, var(--tone-dark) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, .18),
    inset 0 2px 0 rgba(255, 255, 255, .18),
    0 6px 10px -4px rgba(40, 15, 5, .55);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform-origin: left center;
  transition: transform .7s cubic-bezier(.3, 1.3, .5, 1), box-shadow .2s;
  backface-visibility: hidden;
}
/* hinges + knob */
.door .leaf::before, .door .leaf::after {
  content: ""; position: absolute; left: -2px; width: 6px; height: 12%;
  background: linear-gradient(90deg, #8a6420, var(--gold), #8a6420); border-radius: 2px;
}
.door .leaf::before { top: 30%; }
.door .leaf::after { bottom: 12%; }
.door .knob {
  position: absolute; right: 11%; top: 54%; width: 9%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff1c2, var(--gold) 45%, #7b5714);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
.door .leaf { justify-content: flex-start; padding-top: 22%; }
.door .num {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 2.15rem); line-height: 1; text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
  margin-top: 4%;
}
.door .leaf .ico { width: 30%; color: color-mix(in srgb, var(--gold) 80%, #fff); margin-top: 6%; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25)); }
.ico svg { display: block; width: 100%; height: auto; }

/* name tag on filled doors */
.door .tag {
  position: absolute; z-index: 2; bottom: 5%; left: 50%;
  transform: translateX(-50%) rotate(-5deg);
  background: #fbf3df; color: var(--ink); font-family: "Caveat", cursive; font-weight: 700;
  font-size: clamp(.85rem, 1.7vw, 1.1rem); line-height: 1; padding: 3px 8px 4px; border-radius: 3px;
  max-width: 88%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}
.door.mine .tag::before { content: "✎ "; }
.door .lock {
  position: absolute; z-index: 2; top: 7%; left: 50%; transform: translateX(-50%);
  width: 15%; aspect-ratio: 1; color: var(--door-ink); opacity: .65;
}

/* empty door: painted outline on the paper */
.door.empty {
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--paper-2) 45%, transparent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink-soft) 45%, transparent);
  border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.door.empty .num { text-shadow: none; margin: 0; }
.door.empty .plus { font-size: .74rem; font-weight: 800; letter-spacing: .04em; opacity: 0; transition: opacity .15s; }
.door.empty.pickable:hover { background: color-mix(in srgb, var(--paper-2) 90%, transparent); }
.door.empty.pickable:hover .plus, .door.empty.pickable:focus-visible .plus { opacity: 1; }

.door.filled:hover .leaf { transform: rotateY(-14deg); }
.door.ready .leaf { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .18), 0 0 0 3px var(--gold), 0 0 18px 2px color-mix(in srgb, var(--gold) 70%, transparent); animation: glow 2s ease-in-out infinite; }
.door.opened .leaf, .door.opened:hover .leaf { transform: rotateY(-108deg); }
.door.opened .tag { display: none; }
@keyframes glow { 50% { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .18), 0 0 0 3px var(--gold), 0 0 4px 0 transparent; } }

.door.today-mark::after {
  content: "today"; position: absolute; z-index: 3; top: -9px; left: 50%; transform: translateX(-50%);
  font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold); color: #3a2405; padding: 1px 7px; border-radius: 6px;
}

.board.demo .door { cursor: default; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; color: var(--ink-soft); justify-content: center; margin-top: 18px; font-weight: 700; }
.legend b { display: inline-block; width: 12px; height: 15px; border-radius: 6px 6px 2px 2px; vertical-align: -2px; margin-right: 5px; }

/* ---------- calendar page ---------- */
body.cal-page {
  background-image:
    linear-gradient(180deg, color-mix(in srgb, var(--page) 78%, transparent), var(--page) 70%),
    url(/img/hero.jpg);
  background-size: cover; background-position: center top; background-attachment: fixed;
}
.cal-head { text-align: center; padding: 28px 0 22px; }
.cal-head h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.cal-head p { color: var(--on-page-soft); max-width: 36em; margin-inline: auto; }
.progress {
  display: inline-flex; gap: 12px; align-items: center; font-weight: 800;
  background: var(--paper); color: var(--ink); border-radius: 999px; padding: 5px 18px 5px 6px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 70%, transparent);
}
.bar { width: 110px; height: 22px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.bar i { display: block; height: 100%; min-width: 6%; background: linear-gradient(180deg, color-mix(in srgb, var(--tone-a) 75%, #fff), var(--tone-a)); border-radius: 999px; }

.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-bottom: 40px; }
.side { display: grid; gap: 18px; }
.side .paper { padding: 22px; }
.side h3 { margin-bottom: .3em; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.linkbox {
  display: flex; gap: 6px; align-items: center; background: color-mix(in srgb, var(--paper) 40%, #fff);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; margin-top: 12px;
}
.linkbox span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; font-weight: 800; }
.codebig { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.1rem; font-weight: 700; letter-spacing: .2em; line-height: 1.1; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

/* ---------- modal ---------- */
dialog {
  border: 0; padding: 0; background: transparent; width: min(520px, 100% - 24px); max-width: none;
  color: var(--ink); max-height: calc(100dvh - 24px);
}
dialog::backdrop { background: rgba(8, 14, 10, .62); backdrop-filter: blur(4px); }
dialog .paper { padding: 30px 28px 26px; }
dialog[open] .paper { animation: rise .35s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes rise { from { transform: translateY(16px) scale(.97); opacity: 0; } }
.close {
  position: absolute; z-index: 2; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--paper-2); color: var(--ink); font-size: 1.3rem; cursor: pointer; line-height: 1;
}
.sticker-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.sticker-grid button {
  aspect-ratio: 1; padding: 22%; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: color-mix(in srgb, var(--paper) 40%, #fff); color: var(--tone-b);
}
.sticker-grid button[aria-pressed="true"] {
  background: var(--tone-b); color: color-mix(in srgb, var(--gold) 80%, #fff); border-color: var(--tone-b-dark);
}
.door-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.door-line select { width: auto; font-weight: 800; padding: 7px 10px; }

.note-card {
  position: relative; margin-top: 14px; padding: 22px 24px 18px;
  background:
    repeating-linear-gradient(180deg, transparent 0 33px, color-mix(in srgb, var(--line) 70%, transparent) 33px 34px),
    #fffaf0;
  background-position: 0 14px;
  border-radius: 6px; transform: rotate(-1deg);
  box-shadow: 0 10px 24px -12px rgba(60, 30, 10, .5);
  font-family: "Caveat", cursive; font-size: 1.75rem; line-height: 34px; color: var(--ink);
  white-space: pre-wrap; word-break: break-word;
}
.note-from { font-family: "Caveat", cursive; font-size: 1.5rem; text-align: right; margin-top: 10px; color: var(--tone-b); }
.big-sticker { width: 70px; height: 70px; margin: 0 auto; padding: 14px; border-radius: 50%; background: var(--tone-b); color: color-mix(in srgb, var(--gold) 80%, #fff); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--gold); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 40px); opacity: 0;
  background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: 14px; font-weight: 800;
  box-shadow: 0 0 0 2px var(--gold), 0 14px 30px -10px rgba(0, 0, 0, .6);
  max-width: calc(100% - 32px); transition: .25s; z-index: 50; pointer-events: none; text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- content sections ---------- */
.section { padding: 72px 0; position: relative; }
.section .lead-c { color: var(--on-page-soft); max-width: 36em; }
.center { text-align: center; }
.center .lead-c { margin-inline: auto; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 34px; counter-reset: s; }
.step { padding: 24px 22px; }
.step .n {
  display: grid; place-items: center; width: 46px; height: 56px; margin-bottom: 12px;
  border-radius: 50% 50% 6px 6px / 40% 40% 6px 6px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone-b) 85%, #fff), var(--tone-b-dark));
  color: var(--door-ink); font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 1.6rem;
}
.step:nth-child(even) .n { background: linear-gradient(180deg, color-mix(in srgb, var(--tone-a) 85%, #fff), var(--tone-a-dark)); }
.step p { margin: 0; font-size: .98rem; }
.step h3 { margin-bottom: .25em; }

.showcase { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 30px; margin-top: 30px; }
.features h3 { color: var(--on-page); font-size: 1.45rem; display: flex; gap: 10px; align-items: center; }
.features h3 .ico { width: 26px; color: var(--gold); flex: none; }
.features p { color: var(--on-page-soft); font-size: .98rem; margin: 0; }
.prose p, .prose li { color: var(--on-page-soft); }
.prose li { margin-bottom: .35em; }
.prose h2 { color: var(--on-page); }
.prose h3 { color: var(--on-page); margin-top: 1.4em; }
.prose strong { color: var(--on-page); }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 18px; padding: 0; list-style: none; }
.ideas li {
  background: #fffaf0; color: var(--ink); font-family: "Caveat", cursive; font-size: 1.4rem; line-height: 1.2;
  padding: 16px 18px; border-radius: 4px; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6); margin: 0;
}
.ideas li:nth-child(odd) { transform: rotate(-1.2deg); }
.ideas li:nth-child(even) { transform: rotate(1deg); }
.faq { padding: 10px 28px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details:last-child { border-bottom: 0; }
summary { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; cursor: pointer; font-size: 1.4rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--tone-b); font-family: "Nunito", sans-serif; font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-soft); margin: 8px 0 0; }
.final {
  text-align: center; padding: 90px 0;
  background:
    linear-gradient(180deg, var(--page) 0%, color-mix(in srgb, var(--page) 55%, transparent) 50%, var(--page) 100%),
    url(/img/hero.jpg) center 60% / cover no-repeat;
}
.final p { color: var(--on-page); opacity: .85; }

/* snow + fairy lights */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.snow i {
  position: absolute; top: -10px; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; animation: fall linear infinite; filter: blur(.3px);
}
@keyframes fall { to { transform: translate3d(40px, 105vh, 0); } }
main, header, footer { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .snow { display: none; }
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 980px) {
  .hero { background: linear-gradient(180deg, transparent 0, color-mix(in srgb, var(--page) 40%, transparent) 30%, var(--page) 52%), url(/img/hero-small.jpg) 70% top / auto 560px no-repeat, var(--page); min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 220px; }
  .cal-layout, .showcase { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .board { --cols: 4; gap: 11px; }
  .board-card { padding: 18px 14px 16px; }
  .steps, .features { grid-template-columns: 1fr; }
  .top nav .hide-sm { display: none; }
  .brand { font-size: 1.35rem; }
  .paper { padding: 22px 18px; }
  .hero-inner { padding-top: 170px; }
  .door .tag { font-size: .85rem; padding: 2px 5px 3px; }
}

/* ---------- motion extras ---------- */
.door.glowing .inside {
  background: radial-gradient(circle at 50% 45%, #fffbe8, #ffd98a 45%, var(--paper-2));
  box-shadow: inset 0 4px 10px rgba(60, 30, 10, .25), 0 0 26px 6px rgba(255, 205, 110, .75);
}
.door.opened .leaf { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), -6px 6px 12px -4px rgba(30, 10, 0, .5); filter: brightness(.82); }
.door .inside { transition: box-shadow .5s, background .5s; }
.btn { transition: transform .12s cubic-bezier(.3, 1.6, .5, 1), filter .15s; }
.btn:active { transform: scale(.96); }

/* fairy-light garland across the top of the board */
.lights {
  position: relative; height: 34px; margin: -8px -6px 10px;
  display: flex; justify-content: space-between; align-items: flex-start; padding: 0 4px;
}
.lights::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 34px;
  border-bottom: 1.5px solid #3b4a32; border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.lights i {
  position: relative; width: 9px; height: 13px; border-radius: 50% 50% 45% 45%;
  background: var(--c, #ffd36b); box-shadow: 0 0 10px 3px color-mix(in srgb, var(--c, #ffd36b) 70%, transparent);
  animation: twinkle 2.4s ease-in-out infinite; transform-origin: top center;
}
.lights i::before { content: ""; position: absolute; top: -4px; left: 2px; width: 5px; height: 5px; background: #3b4a32; border-radius: 1px; }
.lights i:nth-child(3n) { --c: #ff8a6b; animation-delay: -.8s; }
.lights i:nth-child(3n+1) { --c: #ffe08a; animation-delay: -1.6s; }
.lights i:nth-child(4n) { --c: #9fe0a8; animation-delay: -.3s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 45% { opacity: .45; box-shadow: none; } }

/* candlelight flicker over the hero image */
.hero::after, .final::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 360px at 78% 60%, rgba(255, 180, 90, .16), transparent 70%);
  animation: flicker 3.2s steps(1) infinite, flicker2 7s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes flicker { 0%, 100% { opacity: 1; } 12% { opacity: .82; } 14% { opacity: 1; } 47% { opacity: .9; } 49% { opacity: 1; } 78% { opacity: .78; } 80% { opacity: 1; } }
@keyframes flicker2 { 50% { transform: scale(1.04); } }

.sound-btn { background: none; border: 0; color: var(--on-page); font: inherit; font-weight: 700; cursor: pointer; opacity: .8; padding: 4px; }
.sound-btn:hover { opacity: 1; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* compact header on phones */
.brand { white-space: nowrap; }
@media (max-width: 600px) {
  .sound-btn .lbl { display: none; }
  .sound-btn { font-size: 1.2rem; }
}
