/* Long homepage only. Colours, radii and fonts come from theme.css. All art is CSS and inline SVG. */
.block { margin: 40px 0; scroll-margin-top: 12px; }
h3 { font-size: 18px; margin: 0 0 8px; }
ul { padding-left: 20px; margin: 0 0 12px; }
li { margin: 0 0 6px; }
/* the holly hugs the words, wherever the heading wraps */
.block > h2 { font-size: clamp(21px, 6.2vw, 26px); text-align: center; }
.sprigged::before, .sprigged::after { display: inline-block; vertical-align: middle; width: 26px; height: 13px; margin: 0 6px; background: var(--pine); }


/* hero: wine with falling snow; name field, button and demo door all fit a 390x700 screen */
.hero-band { margin: 0 -16px; padding: 0 16px 14px; color: var(--paper); text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, var(--flake) 0 2px, transparent 3px) 0 0 / 130px 120px,
    radial-gradient(circle at 68% 62%, var(--flake) 0 1.5px, transparent 2.5px) 0 0 / 90px 100px,
    radial-gradient(circle at 40% 85%, var(--flake) 0 1px, transparent 2px) 0 0 / 70px 90px,
    var(--wine); }
.hero-band .brand { margin: 0 -16px 12px; border: 0; background: transparent; }
h1.hero { color: var(--paper); font-size: 30px; margin: 0 0 10px; }
.plaque { display: inline-block; margin: 0 0 12px; padding: 3px 16px; border: 1px solid var(--gold); border-radius: var(--radius-small); background: var(--wine-deep); font: 700 14px/1.6 var(--font-head); }
.hero-band .check, .hero-band .small, .hero-band .small a, .hero-band .check a { color: var(--paper); }
.hero-band .check { justify-content: center; text-align: left; }
.hero-band .card { color: var(--ink); text-align: left; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#create { scroll-margin-top: 12px; }
#create .error { min-height: 0; margin: 0; color: var(--paper); }

/* snow globe holding the demo doors */
.globe { display: block; width: 100%; max-width: 340px; margin: 4px auto 0; padding: 0; cursor: pointer; font: inherit; color: var(--paper); background: transparent; border: 0; }
.dome { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 10px; height: 140px; padding: 0 20px 16px; overflow: hidden;
  background: var(--glass); border: 2px solid var(--glass-edge); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.dome::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -28px; height: 46px; background: var(--snow); border-radius: 50%; }
.village { position: absolute; left: 0; right: 0; bottom: 14px; width: 100%; height: 70px; fill: var(--wine-deep); opacity: 0.8; }
.village .lit { fill: var(--gold); }
.dome .door { position: relative; z-index: 1; width: 52px; flex: none; font-size: 22px; }
/* door 5 stands half open: warm light and a letter behind the swung leaf */
.dome .door.mid { width: 76px; overflow: visible; box-shadow: var(--glow); perspective: 240px;
  background: radial-gradient(circle at 65% 55%, var(--snow), var(--gold) 70%); }
.letter { position: absolute; right: 6px; top: 46%; width: 34px; height: 26px; transform: rotate(8deg); }
.letter .env { fill: var(--paper); stroke: var(--wine-ink); stroke-width: 1; }
.letter .fold { fill: none; stroke: var(--wine-ink); stroke-width: 1; }
.letter .seal { fill: var(--wine); }
.leaf { position: absolute; left: -2px; top: -2px; bottom: -2px; width: 56%; display: grid; place-items: center; color: var(--door-ink);
  background: repeating-linear-gradient(90deg, transparent 0 9px, var(--plank) 9px 11px), var(--pine);
  border: var(--sticker-border); border-radius: 999px 0 0 4px; transform-origin: left; transform: rotateY(-28deg); }
.base { display: block; position: relative; height: 26px; margin: 0 -10px; border: 2px solid var(--gold); border-radius: 6px 6px 16px 16px;
  background: repeating-linear-gradient(90deg, transparent 0 28px, var(--plank) 28px 30px), linear-gradient(var(--wood-light), var(--wood)); }
.base::before { content: ""; position: absolute; left: 12px; right: 12px; top: 10px; height: 3px; background: var(--gold); border-radius: 3px; }
.globe strong, .globe .small { display: block; }
.countdown { min-height: 2.8em; margin: 8px 0 0; font-weight: 700; font-size: 14px; }
.return { min-height: 130px; }
.return h2 { font-size: 20px; }

.steps { list-style: none; padding: 0; margin: 0; }
.mock { display: grid; gap: 8px; background: var(--wine); color: var(--paper); border-radius: var(--radius); padding: 12px; border-top: 4px solid var(--snow); pointer-events: none; }
.mock-title { font: 700 16px/1.3 var(--font-head); text-align: center; }
.mock-line { font-size: 13px; }
.mock-field { background: var(--surface); color: var(--ink); border: 1px solid var(--gold); border-radius: var(--radius-small); padding: 6px 12px; }
.mock-field.tall { min-height: 64px; }
.mock-btn { background: var(--surface); color: var(--wine-ink); border: 2px solid var(--gold); border-radius: var(--radius-pill); padding: 7px; text-align: center; font: 700 15px/1.3 var(--font-head); }
.mock-btn.primary { background: var(--primary); color: var(--primary-ink); }
.mock-doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock-doors b { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--door-2); color: var(--door-ink); border: var(--sticker-border); border-radius: var(--radius-door); }
.mock-doors b:nth-child(odd) { background: var(--door-1); }

/* full-width bands */
.band-pine, .band-wine { margin-left: -16px; margin-right: -16px; padding: 28px 16px; color: var(--paper); }
.band-pine { background: var(--pine-band); }
.band-wine { background: var(--wine); text-align: center; border-top: 4px solid var(--gold); }
.band-pine > h2, .band-wine > h2, .band-pine > p, .band-pine .small { color: var(--paper); }
.band-pine > .sprigged::before, .band-pine > .sprigged::after { background: var(--gold); }
.band-pine .card { color: var(--ink); }
.band-pine .card .small { color: var(--ink-soft); }
.band-pine .grid { border: 1px solid var(--card-line); padding: 8px; gap: 8px; }
#demo .door { cursor: pointer; }

.ideas { list-style: none; padding: 0; }
.ideas button { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--sticker-shadow); }
.bubble { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bubble svg { width: 54px; flex: none; }
.cup { fill: var(--gold); stroke: var(--wine-ink); stroke-width: 2; }
.cup-line { fill: none; stroke: var(--wine-ink); stroke-width: 3; stroke-linecap: round; }

details { background: var(--surface); border: 1px solid var(--card-line); border-radius: var(--radius-small); padding: 12px 14px; margin: 0 0 8px; }
summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 700 20px/1 var(--font-head); color: var(--wine); }
details[open] summary::after { content: "−"; }
details p { margin: 8px 0 0; }

.sticky { position: fixed; left: 0; right: 0; bottom: 0; max-width: 460px; margin: 0 auto; padding: 10px 16px calc(6px + env(safe-area-inset-bottom)); background: var(--cream); border-top: 2px solid var(--gold); }
footer { margin-bottom: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.center { text-align: center; }
.tap { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.band-pine .pill { color: var(--wine-ink); font-weight: 700; }
.duo { display: grid; gap: 14px; margin-bottom: 14px; }
.duo .card { margin: 0; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.chips button { min-height: 48px; font: 700 16px/1.2 var(--font-head); color: var(--pine); background: var(--surface); border: 2px solid var(--pine); border-radius: var(--radius-small); cursor: pointer; }
.icons { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.icons li { margin: 0; text-align: center; }
.icons svg { width: 34px; height: 34px; fill: none; stroke: var(--pine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icons h3 { font-size: 16px; }
.icons p { font-size: 13px; margin: 0; }

/* desktop: bands span the window, content up to 1080px, hero in two columns */
@media (min-width: 960px) {
  .page { max-width: 1080px; }
  .hero-band, .band-pine, .band-wine { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%); }
  .hero-band .brand { margin: 0 0 12px; }
  .hero-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-bottom: 32px; }
  h1.hero { font-size: 46px; }
  #create, .hero-copy > .card { max-width: 420px; margin-left: auto; margin-right: auto; }
  .globe { max-width: 440px; }
  .dome { height: 200px; }
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .duo { grid-template-columns: 1fr 1fr; }
  .icons { grid-template-columns: repeat(4, 1fr); }
  #example > *, #friend, #share, #faq { max-width: 680px; margin-left: auto; margin-right: auto; }
  .band-wine .btn { max-width: 420px; margin-left: auto; margin-right: auto; }
  .sticky { display: none; }
}

.band-pine > p { text-align: center; }
/* note ideas: two columns of small cards in three papers, not one long stack */
.ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ideas li { display: flex; }
.ideas button { font-size: 14px; border-radius: var(--radius-small); border-top: 5px solid var(--gold); }
.ideas li:nth-child(3n+1) button { background: var(--pine); color: var(--paper); transform: rotate(-1deg); }
.ideas li:nth-child(3n+2) button { background: var(--wine); color: var(--paper); transform: rotate(1deg); }
.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-cards .card { display: flex; align-items: center; justify-content: center; min-height: 56px; margin: 0; text-align: center; text-decoration: none; font-weight: 700; overflow-wrap: anywhere; }
#friend-notes { margin: 20px 0 0; }
@media (min-width: 960px) {
  #demo { grid-template-columns: repeat(6, 1fr); }
  #demo .door { aspect-ratio: auto; height: 110px; }
  .ideas { grid-template-columns: repeat(4, 1fr); }
  .mini-cards { grid-template-columns: repeat(4, 1fr); }
}

.themes { display: flex; justify-content: center; gap: 6px; border: 0; padding: 0; margin: 0 0 6px; }
.themes label { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 3px; min-height: 44px; margin: 0; font-size: 12px; cursor: pointer; }
.themes input { position: absolute; opacity: 0; }
.swatch { width: 28px; height: 28px; border-radius: var(--radius-pill); border: 2px solid var(--glass-edge); }
.swatch.snowglobe { background: var(--swatch-snowglobe); }
.swatch.frost { background: var(--swatch-frost); }
.swatch.gingerbread { background: var(--swatch-gingerbread); }
.themes input:checked + .swatch { box-shadow: var(--glow); }
.themes input:focus-visible + .swatch { outline: 3px solid var(--gold); outline-offset: 2px; }
