@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('assets/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-display: swap; src: url('assets/fonts/barlow-semi-condensed-latin-700-normal.woff2') format('woff2'); }

/* The style of Quiet Leeuwarden's own print work: white and lilac, plum brush strokes,
   pink circles. Only the tree keeps a dark stage, because its light is additive.
   Orchid, mauve and rose are Quiet's palette; plum is a darker orchid for small text
   and for white text on a stroke, where the palette itself is too light to read. */
:root {
  --orchid: #AA6CA2;
  --mauve: #B27BAB;
  --rose: #C76E9E;
  --plum: #94478A;
  --plum-deep: #6E2F66;
  --plum-soft: var(--mauve);
  --lilac: #E9D3E6;
  --lilac-soft: #F7EEF5;
  --pink: #F3B6CB;
  --ink: #1F1A1E;
  --muted: #5E5560;
  --line: #DCC6D8;
  --white: #FFFFFF;
  --stage: #2B1330;
  --gold: #D6B36A;
  --gold-text: #8A6514;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* Headings in a condensed bold, as in Quiet's brand kit; body text in Inter. */
  --display: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --header: 76px;
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 40' preserveAspectRatio='none'%3E%3Cpath fill='%2394478A' d='M5 6Q60 2 120 5T240 3Q280 2 296 6L293 13L298 20L294 27L297 34Q250 38 180 35T60 37Q20 38 3 34L6 27L1 20L5 13Z'/%3E%3Cpath fill='%2394478A' fill-opacity='.5' d='M14 3Q110 0 210 2L208 4Q110 3 16 5ZM30 37Q130 40 250 37L248 39Q130 41 32 39Z'/%3E%3C/svg%3E");
  --waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23AA6CA2' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M8 40A28 28 0 0 1 40 8'/%3E%3Cpath d='M20 44A16 16 0 0 1 44 20'/%3E%3C/g%3E%3C/svg%3E");
  --ticks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg stroke='%23AA6CA2' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M4 26l9 3M10 10l7 9M26 4l-2 11'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 16px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  overflow-x: hidden;
}

/* The header belongs to the night around the tree, so the first screen is one scene. */
header {
  position: relative;
  z-index: 2;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  background: var(--stage);
}

header :focus-visible { outline-color: var(--pink); }

.brand { display: block; border-radius: 6px; }

/* Quiet's own logo, with the wordmark in white for the night around the tree. */
.brand-logo { display: block; width: auto; height: 60px; }

header nav { display: flex; gap: 8px; }

header nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  transition: background-color .2s;
}

header nav a:hover { background: rgba(255, 255, 255, .08); }

main { position: relative; }

/* The tree stands in the middle of the first screen, in a plum night that fades softly
   into the page below. The warm glow sits in the page, not in the tree, so it is never
   mistaken for decoration that someone sponsored. */
.hero {
  --fade: 120px;
  /* Eased rather than linear, through lilac: a straight blend of plum and white turns grey. */
  --dusk: linear-gradient(to bottom,
    rgba(247, 238, 245, 0) calc(100% - var(--fade)),
    rgba(247, 238, 245, .12) calc(100% - var(--fade) * .75),
    rgba(247, 238, 245, .4) calc(100% - var(--fade) * .5),
    rgba(247, 238, 245, .78) calc(100% - var(--fade) * .25),
    var(--white));
  position: relative;
  /* The tree's glow (.halo) reaches past the stage; on a phone that would be past the
     page and make it scroll sideways. Clip, not hidden: no scroll container, and the
     glow above and below stays as it is. On desktop the glow lies well inside. */
  overflow-x: clip;
  height: calc(100svh - var(--header));
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro stage ." "more stage .";
  column-gap: clamp(16px, 2vw, 32px);
  padding: 0 var(--gutter) var(--fade);
  color: var(--white);
  background:
    var(--dusk),
    radial-gradient(ellipse 36% 52% at 50% 46%, #4A2147, rgba(74, 33, 71, 0) 100%),
    var(--stage);
}

.hero :focus-visible { outline-color: var(--pink); }

.intro {
  grid-area: intro;
  align-self: end;
  padding-bottom: 8px;
  position: relative;
  z-index: 1;
}

.intro-more {
  grid-area: more;
  align-self: start;
  position: relative;
  z-index: 1;
}

/* A label on a painted plum stroke. */
.brush-label {
  display: inline-block;
  padding: 8px 22px 9px;
  background: var(--brush) center / 100% 100% no-repeat;
  color: var(--white);
  font: 700 18px/1.25 var(--display);
  letter-spacing: .02em;
  transform: rotate(-2deg);
}

.eyebrow {
  display: block;
  margin-top: 14px;
  color: var(--plum);
  font: 700 15px/1.4 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.intro .eyebrow { color: var(--pink); }

/* The campaign line in ordinary sentence case; labels and section headings keep the
   capitals of the house style. */
h1 {
  font: 700 clamp(32px, 3.1vw, 54px)/1.08 var(--display);
  letter-spacing: .005em;
  margin: 14px 0 0;
  color: var(--white);
  overflow-wrap: break-word;
}

.sentence { display: block; }
.sentence + .sentence { color: var(--plum); }
h1 .sentence + .sentence { color: var(--pink); }

.intro-more > p {
  max-width: 40ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.intro-more > .blob-text {
  margin-top: 16px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, .88);
  background: rgba(243, 182, 203, .09);
  border: 1px solid rgba(243, 182, 203, .2);
  border-radius: 16px 22px 18px 24px;
}

.intro-more > .phase-note {
  margin-top: 16px;
  padding: 10px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, .06);
  border-radius: 0 14px 14px 0;
}

/* A quiet countdown to the next edition: a number of days and a date, nothing to open. */
.countdown {
  margin-top: 18px;
  padding-left: 14px;
  display: grid;
  gap: 2px;
  border-left: 3px solid var(--gold);
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
}

.countdown-label { font: 700 14px/1.4 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }

.countdown strong {
  font: 700 34px/1.15 var(--display);
  color: var(--gold);
}

.countdown-date { font-size: 14px; }

.intro-more > .hint {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button, a { -webkit-tap-highlight-color: rgba(148, 71, 138, .18); }

:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
}

.cta, .route h3 a {
  display: inline-block;
  padding: 14px 28px 15px;
  background: var(--brush) center / 100% 100% no-repeat;
  color: var(--white);
  font: 700 19px/1.25 var(--display);
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .2s;
}

.cta { margin-top: 20px; border: 0; }
.cta:hover, .route h3 a[href]:hover { transform: rotate(-1.5deg) scale(1.03); }

/* The tree's glow is additive, so it stands in the dark of the hero, without a frame. */
.tree-stage {
  grid-area: stage;
  min-height: 0;
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  color: var(--white);
}

/* Mood light, part of the page: a warm haze behind the crown and a pool of candlelight
   on the floor. Sponsored lights are the small twinkles in the tree itself. */
.halo {
  position: absolute;
  inset: -4% -12% 0;
  background:
    radial-gradient(ellipse 34% 11% at 50% 92%, rgba(232, 176, 110, .26), rgba(232, 176, 110, 0) 100%),
    radial-gradient(ellipse 40% 44% at 50% 50%, rgba(214, 179, 106, .13), rgba(243, 182, 203, .05) 55%, rgba(243, 182, 203, 0) 100%);
  pointer-events: none;
}

.canvas-wrap {
  position: relative;
  min-height: 0;
  min-width: 0;
}

/* Absolute so the drawing buffer's size can never feed back into the grid track. */
#tree {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  /* Sideways drags turn the tree; up and down still scroll the page past it. No pinch. */
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#tree.can-place { cursor: pointer; }
#tree.is-dragging { cursor: grabbing; }
#tree:focus-visible { outline: 3px solid var(--pink); outline-offset: -6px; }

/* Floats at the far edge of the stage, where the tree's silhouette leaves room. Quiet
   until it is needed: dim outlines that light up on hover and focus. */
.stage-bar {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.control-group { display: flex; flex-direction: column; gap: 4px; }

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  opacity: .72;
  transition: border-color .2s, background-color .2s, opacity .2s;
}

.icon-button:hover, .icon-button:focus-visible { opacity: 1; border-color: var(--pink); background: rgba(243, 182, 203, .12); }
.icon-button:focus-visible { outline-color: var(--pink); }

/* Fingers need the full 44 pixels. */
@media (pointer: coarse) {
  .icon-button { width: 44px; height: 44px; }
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Reserved height: a changing message must not resize the canvas and re-frame the tree. */
.tree-status {
  margin: 0;
  min-height: 40px;
  padding: 4px 24px 10px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, .7);
}

.no-webgl .canvas-wrap, .no-webgl .stage-bar { display: none; }

.band {
  position: relative;
  padding: clamp(56px, 9vh, 96px) var(--gutter);
}

/* Doe mee fades in with room of its own, so no empty strip is needed above it. */
#wensen { padding-bottom: clamp(16px, 3vh, 32px); }

.band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}

h2 {
  font: 700 clamp(32px, 4vw, 56px)/1.04 var(--display);
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--plum);
  margin: 16px 0;
  overflow-wrap: break-word;
}

h2::after {
  content: '';
  display: inline-block;
  width: .7em;
  height: .7em;
  margin-left: .2em;
  vertical-align: top;
  background: var(--ticks) center / contain no-repeat;
}

/* The tilted round sticker from the flyers. */
.badge {
  margin: 0 0 12px;
  padding: 22px 26px;
  max-width: 220px;
  background: var(--lilac);
  border-radius: 48% 52% 46% 54% / 52% 44% 56% 48%;
  color: var(--plum-deep);
  font: 700 23px/1.15 var(--display);
  text-align: center;
  transform: rotate(-8deg);
}

.band-lead { max-width: 62ch; margin: 0 0 28px; font-size: 16px; line-height: 1.7; color: var(--muted); }

.muted { color: var(--muted); font-size: 15px; }
.small { font-size: 14px; line-height: 1.6; }

label { display: block; margin: 18px 0 8px; font-size: 15px; font-weight: 600; }

input:not([type="radio"]), textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  transition: border-color .2s;
}

input:not([type="radio"]):focus, textarea:focus { border-color: var(--plum); }

textarea { resize: vertical; }

.wish-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.wish-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 112px;
  padding: 22px 22px 22px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(110, 47, 102, .06);
  transition: border-color .2s, box-shadow .2s;
}

/* A small bauble in a pink circle, like the icons on the flyers. */
.wish-card::before {
  content: '';
  position: absolute;
  left: 18px;
  top: calc(50% - 16px);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, var(--white) 0 3px, transparent 4px), var(--pink);
}

.wish-card:hover { border-color: var(--plum-soft); box-shadow: 0 8px 22px rgba(110, 47, 102, .12); }
.wish-card.is-attention { background: var(--lilac-soft); }

.wish-card small { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--plum); }
.wish-card strong { font-size: 18px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }

/* No wishes yet: a warm word in the middle instead of an empty field. */
.wish-empty {
  max-width: 520px;
  margin: 12px auto 0;
  padding: 36px 28px 32px;
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, #FBF5E6, var(--lilac-soft) 70%);
  border-radius: 32px 40px 32px 40px;
}

.wish-empty svg {
  width: 44px;
  height: 52px;
  fill: none;
  stroke: var(--gold-text);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wish-empty h3 { margin: 12px 0 6px; font: 700 25px/1.2 var(--display); color: var(--plum-deep); }
.wish-empty p { margin: 0 auto; max-width: 38ch; color: var(--muted); line-height: 1.7; }

/* Doe mee: the night of the tree once more, fading in from the page and out again, so
   the three ways to give read as one thing that belongs to the tree. */
.contribute {
  --fade: 96px;
  padding-top: calc(var(--fade) + 8px);
  padding-bottom: calc(var(--fade) + 16px);
  color: var(--white);
  background:
    linear-gradient(to bottom,
      var(--white),
      rgba(247, 238, 245, .78) calc(var(--fade) * .25),
      rgba(247, 238, 245, .4) calc(var(--fade) * .5),
      rgba(247, 238, 245, .12) calc(var(--fade) * .75),
      rgba(247, 238, 245, 0) var(--fade),
      rgba(247, 238, 245, 0) calc(100% - var(--fade)),
      rgba(247, 238, 245, .12) calc(100% - var(--fade) * .75),
      rgba(247, 238, 245, .4) calc(100% - var(--fade) * .5),
      rgba(247, 238, 245, .78) calc(100% - var(--fade) * .25),
      var(--white)),
    radial-gradient(ellipse 46% 36% at 50% 34%, rgba(214, 179, 106, .12), rgba(214, 179, 106, 0) 100%),
    radial-gradient(ellipse 70% 60% at 50% 45%, #4A2147, rgba(74, 33, 71, 0) 100%),
    var(--stage);
}

.contribute :focus-visible { outline-color: var(--pink); }
.contribute-head { max-width: 720px; margin: 0 auto; text-align: center; }
.contribute h2 { color: var(--white); }
.contribute .band-lead { margin: 0 auto; color: rgba(255, 255, 255, .78); }

.routes {
  position: relative;
  max-width: 1080px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* A thin gold garland strings the three previews together. */
.routes::before {
  content: '';
  position: absolute;
  left: 17%;
  right: 17%;
  top: 64px;
  border-top: 2px dashed rgba(214, 179, 106, .4);
}

.route {
  position: relative;
  padding: 0 clamp(8px, 1.6vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* The tree in miniature, with only what this contribution adds in gold. */
.route-preview {
  width: 128px;
  height: 128px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #4A2147, var(--stage) 72%);
  box-shadow: 0 0 0 1px rgba(214, 179, 106, .35), 0 0 32px rgba(214, 179, 106, .16);
}

/* The heading itself is the link to Quiet's donation page. */
.route h3 {
  position: relative;
  margin: -18px 0 12px;
  font: 700 22px/1.2 var(--display);
}

.route h3 a { padding: 8px 24px 9px; font: inherit; letter-spacing: .02em; }

.route p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.route .route-adds { margin: 0; font-size: 14px; color: var(--gold); }

/* The joint counter, across the full width under the three, with Quiet's iDEAL code beside it. */
.together {
  max-width: 880px;
  margin: 48px auto 0;
  padding: 28px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px 56px;
  text-align: center;
  border-top: 1px solid rgba(214, 179, 106, .28);
}

.together h3 { margin: 0 0 16px; font: 700 clamp(24px, 2.6vw, 32px)/1.2 var(--display); letter-spacing: .01em; color: var(--white); }

/* On a white card: a scanner needs the light margin around the code. */
.ideal {
  width: 210px;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
}

.ideal a {
  display: block;
  padding: 10px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(214, 179, 106, .35), 0 0 32px rgba(214, 179, 106, .16);
}

.ideal img { display: block; width: 156px; height: 156px; }
.ideal strong { display: block; margin-bottom: 2px; font: 700 18px/1.3 var(--display); letter-spacing: .02em; color: var(--white); }

progress {
  width: 100%;
  height: 12px;
  display: block;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}

progress::-webkit-progress-bar { background: rgba(255, 255, 255, .12); }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--orchid), var(--rose), var(--gold)); border-radius: 999px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--orchid), var(--rose), var(--gold)); border-radius: 999px; }

.together .peak-text { margin: 12px 0 4px; font-size: 18px; font-weight: 600; color: var(--gold); }
.together-note { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .72); }

/* Short answers about paying, kept out of the way until someone asks. */
.faq { max-width: 760px; margin: 40px auto 0; }

.faq h3 {
  margin: 0 0 8px;
  font: 700 15px/1.4 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--pink);
}

.faq details { border-top: 1px solid rgba(255, 255, 255, .14); }
.faq details:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }

.faq summary {
  position: relative;
  padding: 14px 36px 14px 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 22px;
  font-weight: 400;
}

.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .8); }

/* The thought behind the tree, in warm candlelight rather than on a card of its own. */
.story {
  padding: clamp(40px, 7vh, 72px) var(--gutter);
  background: radial-gradient(ellipse 55% 75% at 50% 50%, #FBF3E2, rgba(251, 243, 226, 0) 100%);
  text-align: center;
}

.story h2, .story p { max-width: 720px; margin-left: auto; margin-right: auto; }
.story h2 { font-size: clamp(28px, 3vw, 42px); }
.story h2::after { display: none; }
.story .sentence + .sentence { color: var(--gold-text); }
.story p { font-size: 17px; line-height: 1.8; }

.story-icon {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--gold-text);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.farewell {
  margin: 0;
  padding: 0 var(--gutter) 32px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

.farewell a { color: var(--plum); font-weight: 600; text-underline-offset: 4px; }

footer {
  position: relative;
  padding: 32px var(--gutter) 40px;
  background: linear-gradient(to bottom, var(--white), var(--lilac-soft));
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
  color: var(--muted);
}

footer p { margin: 0 0 6px; }
footer a { color: var(--plum); font-weight: 600; text-underline-offset: 4px; }

.footer-logo { display: block; width: auto; height: 112px; margin: 0 auto 20px; }

/* Quiet's four pillars, equal in size and weight. */
.pillars {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  color: var(--plum);
  font: 700 22px/1.5 var(--display);
  letter-spacing: .03em;
}

.pillars li + li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 .8em;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}

.wish-dialog {
  width: min(calc(100% - 32px), 560px);
  max-height: calc(100svh - 32px);
  padding: 40px 36px 32px;
  background: var(--white);
  color: var(--ink);
  border: 0;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(43, 19, 48, .35);
  overflow: auto;
}

.wish-dialog::backdrop { background: rgba(43, 19, 48, .7); }

.wish-dialog .eyebrow { margin-top: 0; }
.wish-dialog h2 { font-size: clamp(28px, 7vw, 38px); line-height: 1.1; text-transform: none; color: var(--ink); }
.wish-dialog h2::after { display: none; }
.wish-dialog h2:focus { outline: none; }
.wish-dialog p { line-height: 1.7; font-size: 16px; overflow-wrap: anywhere; }
.wish-dialog .small { font-size: 14px; }
/* The privacy text has a paragraph per form; keep the blank line between them. */
#offerPrivacy { white-space: pre-line; }

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  background: var(--lilac-soft);
  border: 0;
  border-radius: 50%;
  color: var(--plum-deep);
  font-size: 26px;
  line-height: 1;
}

.primary {
  display: block;
  margin: 24px 0 16px;
  min-height: 52px;
  padding: 12px 28px;
  background: var(--plum);
  color: var(--white);
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color .2s;
}

.primary:hover { background: var(--plum-deep); }
.primary:disabled { opacity: .6; cursor: progress; }

.attention-note {
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 600;
  background: var(--lilac-soft);
  color: var(--plum-deep);
}

fieldset { margin: 18px 0 0; padding: 0; border: 0; }
legend { padding: 0; font-size: 15px; font-weight: 600; }
.choice { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font-size: 15px; font-weight: 400; }
.choice input { width: 20px; height: 20px; accent-color: var(--plum); }

.error {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #FCE8EE;
  color: #8A1F3D;
  font-size: 15px;
}

/* Out of sight rather than display:none, which simple form bots skip. */
.website-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

/* Too narrow for text on both sides of the tree: the introduction keeps the left. */
@media (max-width: 1100px) and (min-width: 801px) {
  .hero {
    grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
    grid-template-areas: "intro stage" "more stage";
  }
}

/* Phones and narrow tablets: title, then the tree, then the rest. The tree's canvas
   captures one-finger gestures, so the text and the bar below it stay free for
   scrolling on to the rest of the page. */
@media (max-width: 800px) {
  :root { --header: 64px; }
  .brand-logo { height: 48px; }
  header nav { gap: 0; }
  header nav a { padding: 10px; font-size: 13px; }
  header nav a[href="#verhaal"] { display: none; }

  .hero {
    --fade: 80px;
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: "intro" "stage" "more";
    background:
      var(--dusk),
      radial-gradient(ellipse 70% 34% at 50% 44%, #4A2147, rgba(74, 33, 71, 0) 100%),
      var(--stage);
  }

  .intro { padding: 10px 0 4px; text-align: center; }
  .brush-label { font-size: 16px; }
  .eyebrow { font-size: 13px; margin-top: 8px; }
  h1 { font-size: clamp(27px, 7.6vw, 36px); margin-top: 6px; }
  .intro-more { padding-bottom: 8px; text-align: center; }
  .intro-more > p { margin-left: auto; margin-right: auto; font-size: 14px; line-height: 1.6; }
  .intro-more > .phase-note { text-align: left; }
  .countdown { margin-top: 10px; padding: 0; border: 0; justify-items: center; }
  .countdown strong { font-size: 28px; }

  .tree-stage { height: 64svh; min-height: 400px; grid-template-rows: minmax(0, 1fr) auto auto; }
  .stage-bar {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: space-between;
    padding: 4px 16px;
  }
  .control-group { flex-direction: row; gap: 4px; }

  .wish-card { min-height: 84px; padding: 18px 18px 18px 60px; }
  .badge { font-size: 19px; padding: 16px 20px; max-width: 170px; }
  .contribute { --fade: 64px; }
  .routes { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 32px; }
  .routes::before { display: none; }
  .route-preview { width: 104px; height: 104px; }
  .together { margin-top: 40px; grid-template-columns: minmax(0, 1fr); }
  .ideal { justify-self: center; }
  .footer-logo { height: 96px; }
  .pillars { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 2px 28px; font-size: 20px; }
  .pillars li + li::before { display: none; }
  .wish-dialog { padding: 36px 20px 24px; border-radius: 24px; }
}

/* Phones held sideways: too shallow to stack, so the controls move beside the tree. */
@media (max-height: 520px) and (min-width: 560px) {
  :root { --header: 52px; }
  .brand-logo { height: 36px; }
  .hero {
    --fade: 24px;
    height: calc(100svh - var(--header));
    min-height: 300px;
    grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "intro stage" "more stage";
  }
  .intro { padding: 4px 0; text-align: left; }
  .intro .eyebrow { display: none; }
  .intro-more { text-align: left; }
  .intro-more > .blob-text, .intro-more > .hint { display: none; }
  .cta { margin-top: 12px; padding: 10px 22px 11px; }
  h1 { font-size: 26px; margin: 6px 0; }
  .countdown strong { font-size: 26px; }
  .tree-stage { height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); }
  .stage-bar { position: static; transform: none; flex-direction: column; justify-content: center; gap: 12px; padding: 4px 8px; }
  .control-group { flex-direction: column; gap: 4px; }
  .icon-button { width: 40px; height: 40px; }
  .tree-status { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
