/* wil-dit.nl. Colours come from the theme tokens (--bg, --surface, --text,
   --muted, --accent, --on-accent), set per page in a nonce'd <style>. The
   apex theme also sets --line, --line-strong, --highlight (mustard),
   --on-highlight, --petrol and --tint; list themes get fallbacks derived from
   their own tokens. Look (after the Lovable design of 2026-11-15): warm paper,
   Fraunces headings, Inter text, thin lines and soft offset shadows. */

:root {
  --ln: var(--line, color-mix(in oklab, var(--text) 16%, var(--bg)));
  --ln-strong: var(--line-strong, color-mix(in oklab, var(--text) 26%, var(--bg)));
  --hl: var(--highlight, color-mix(in oklab, var(--accent) 40%, var(--bg)));
  --on-hl: var(--on-highlight, var(--text));
  --tn: var(--tint, color-mix(in oklab, var(--accent) 8%, var(--bg)));
  --shadow: 2px 3px 0 var(--ln);
  --shadow-sm: 1px 2px 0 var(--ln);
  --radius: 6px;
}

@font-face {
  font-family: "Fraunces";
  src: url(/static/fonts/Fraunces-Latin.woff2) format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(/static/fonts/Inter-Latin.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
/* Atkinson Hyperlegible and Quicksand: used by the prefab cover SVGs. */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url(/static/fonts/AtkinsonHyperlegible-Regular.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url(/static/fonts/AtkinsonHyperlegible-Bold.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url(/static/fonts/Quicksand-Bold.ttf) format("truetype");
  font-weight: 700;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg) radial-gradient(color-mix(in oklab, var(--text) 5%, transparent) .5px, transparent .5px) 0 0 / 5px 5px;
  color: var(--text);
  font: 1rem/1.6 Inter, system-ui, sans-serif;
}
h1, h2, h3, .logo { font-family: Fraunces, Georgia, serif; font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin: .4em 0; }
h2 { font-size: 1.4rem; margin: 0 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.5em 0 .5em; }
a { color: inherit; text-decoration-thickness: .06em; text-underline-offset: .18em; }
img { max-width: 100%; }
code { font-size: .92em; }
[hidden] { display: none !important; }

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem 2rem; }
.narrow { max-width: 36rem; }
.lead { font-size: 1.1rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.row { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; }
.row.between { justify-content: space-between; align-items: baseline; }
.grow { flex: 1 1 12rem; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: .8rem; align-items: stretch; }
.stack > button { align-self: flex-start; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: 46rem; margin: 0 auto; padding: 1.25rem 1.5rem; flex-wrap: wrap; }
.topbar nav { display: flex; gap: 1.25rem; align-items: center; font-size: .95rem; }
.logo { text-decoration: none; font-size: 1.75rem; color: var(--text); }
.logo span { color: var(--accent); }
.eyebrow { margin: 0 0 .75rem; color: var(--accent); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .13em; }

.card { background: var(--surface); border: 1px solid var(--ln); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 1.25rem 0; box-shadow: var(--shadow); }
.card.danger, form.danger { border-top: 1px solid var(--ln); padding-top: 1rem; }

label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .95rem; }
label .muted { font-weight: 400; }
label.check { flex-direction: row; align-items: baseline; gap: .5rem; font-weight: 400; }
input, textarea, select {
  font: inherit; font-weight: 400; color: var(--text); background: var(--surface);
  border: 1px solid var(--ln-strong); border-radius: var(--radius); padding: .6rem .75rem; width: 100%;
}
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
input[type=range] { padding: 0; border: 0; accent-color: var(--accent); }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
legend { font-weight: 600; margin-bottom: .3rem; }

button, .button {
  font: inherit; font-size: .9rem; font-weight: 500; line-height: 1.4; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  text-decoration: none; text-align: center; white-space: nowrap;
  background: var(--bg); color: var(--text); border: 1px solid var(--ln-strong); border-radius: var(--radius); padding: .5rem 1rem;
  box-shadow: var(--shadow-sm); transition: background-color .15s, opacity .15s;
}
button:hover:not(:disabled), .button:hover { background: var(--tn); }
button.primary, .button.primary, button[type=submit] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button.primary:hover:not(:disabled), .button.primary:hover, button[type=submit]:hover:not(:disabled) { background: var(--accent); opacity: .9; }
button.danger, button[type=submit].danger { background: var(--bg); border-color: var(--ln-strong); color: var(--text); }
button.danger:hover:not(:disabled) { background: var(--tn); opacity: 1; }
button.icon { padding: .2rem .6rem; background: var(--surface); color: var(--text); box-shadow: none; }
button:disabled { opacity: .45; cursor: default; }
.button svg, button svg { width: 1rem; height: 1rem; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.error, .note { border-radius: var(--radius); padding: .7rem .9rem; }
.error { background: color-mix(in oklab, #d62828 12%, var(--surface)); border: 1px solid #d62828; }
.note { background: color-mix(in oklab, var(--accent) 10%, var(--surface)); }
.tips { padding-left: 1.2rem; }

.linkbox { display: flex; gap: .5rem; }
.linkbox input { font-family: ui-monospace, monospace; font-size: .9rem; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.device-lists { list-style: none; padding: 0; margin: 0; }
.device-lists li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .75rem; padding: .7rem 0; border-bottom: 1px solid var(--ln); }
.device-lists li:last-child { border-bottom: 0; }
.device-lists .muted { flex: 1 1 12rem; }
.tag { font-size: .8rem; border: 1px solid var(--muted); border-radius: 999px; padding: 0 .5rem; color: var(--muted); white-space: nowrap; }

.items { list-style: none; padding: 0; margin: 0; }
.item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--ln); }
.item:last-child { border-bottom: 0; }
.item img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: var(--radius); flex: none; }
.owner-items .item img { width: 72px; height: 72px; }
.item h2 { font-size: 1.15rem; margin: 0 0 .2rem; }
.item p { margin: .2rem 0; }
.price { font-weight: 700; }
.item-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.item-actions form { margin: 0; }
.reserved { color: var(--accent); font-weight: 700; }
.note-text { white-space: pre-line; }
details.reserve summary { display: inline-block; cursor: pointer; font-size: .9rem; font-weight: 500; background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: .5rem 1rem; margin-top: .4rem; list-style: none; }
details.reserve summary::-webkit-details-marker { display: none; }
details.reserve[open] summary { background: var(--bg); color: var(--text); border-color: var(--ln-strong); }
details.reserve form { margin-top: .7rem; }
summary { cursor: pointer; font-weight: 600; }
details.prefab { margin: .6rem 0; }
details.prefab form { margin-top: .7rem; }

.stamp {
  display: inline-block; margin-top: .4rem; padding: .15rem .7rem; border: 3px solid var(--accent); border-radius: 8px;
  color: var(--accent); font-family: Fraunces, Georgia, serif; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  transform: rotate(-6deg); animation: stamp .45s ease-out both;
}
@keyframes stamp { from { transform: rotate(-6deg) scale(1.25); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
.is-reserved h2 { color: var(--muted); }
.is-reserved img { opacity: .6; }

.variants { display: flex; flex-wrap: wrap; gap: .75rem; }
.variant { flex-direction: row; align-items: center; gap: .4rem; font-weight: 400; }
.cover-thumb, .cover-thumb svg { display: block; width: 100%; max-width: 24rem; height: auto; border-radius: 12px; }
.prefab-preview svg { display: block; width: 100%; max-width: 24rem; height: auto; border-radius: 12px; }

.footer { color: var(--muted); font-size: .9rem; padding-top: 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose pre { overflow-x: auto; padding: .75rem 1rem; background: var(--tn); border-radius: var(--radius); }

/* Homepage. */
.section-wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: 1.5rem; }
.home .topbar { max-width: none; width: min(1120px, 100%); padding: 1.25rem 1.5rem; }
.home h2 { font-size: 2rem; line-height: 1.2; margin: 0; }
.home .card h2 { font-size: 1.6rem; }
.home section { scroll-margin-top: 1rem; }
.gift-hero { position: relative; height: 560px; color: #fffcf7; overflow: hidden; }
.gift-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gift-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgb(34 32 30 / .78), rgb(34 32 30 / .2)); }
.gift-hero .section-wrap { position: relative; z-index: 2; display: flex; align-items: center; height: 100%; }
.gift-hero .copy { max-width: 36rem; padding: 3rem 0; }
.gift-hero .kicker-caps { margin: 0 0 1.25rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; }
.gift-hero h1 { font-size: clamp(2.75rem, 7vw, 3.75rem); line-height: 1.1; margin: 0; }
.gift-hero .lead { max-width: 28rem; margin: 1.5rem 0 0; font-size: 1rem; line-height: 1.65; }
.gift-hero .actions { margin: 2rem 0 0; gap: .75rem; }
.gift-hero .button { padding: .65rem 2rem; font-size: .95rem; }
.gift-hero .button.light { background: var(--tn); color: var(--text); border-color: var(--tn); }
.gift-hero .fineprint { margin: 1.5rem 0 0; font-size: .75rem; }
.home-section { padding-block: 3.5rem; }
.home-section.tinted { background: color-mix(in oklab, var(--tn) 40%, transparent); border-block: 1px solid var(--ln); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; }
.section-head .muted { font-size: .875rem; }
.step-grid { display: grid; gap: 2rem; margin-top: 2.25rem; }
.step-grid img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.step { display: flex; gap: .75rem; margin-top: .75rem; }
.step-number { padding-top: .3rem; color: var(--accent); font-size: .75rem; font-weight: 600; }
.step h3, .feature h3 { font-size: 1.25rem; margin: 0; }
.step p, .feature p { margin: .5rem 0 0; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.occasions { display: grid; gap: 1.25rem; margin-top: 2rem; }
.occasion-card { display: block; overflow: hidden; border: 1px solid var(--ln); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: transform .2s; }
.occasion-card:hover { transform: translateY(-3px); }
.occasion-card img { display: block; width: 100%; height: 14rem; object-fit: cover; }
.occasion-card .body { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem; }
.occasion-card h3 { font-size: 1.5rem; margin: 0; }
.occasion-card p { margin: .25rem 0 0; color: var(--muted); font-size: .875rem; }
.occasion-card svg, .feature svg { flex: none; width: 1.5rem; height: 1.5rem; }
.feature-grid { display: grid; gap: 1.75rem 2rem; margin-top: 2.25rem; }
.feature { border-top: 1px solid var(--ln); padding-top: 1.25rem; }
.feature svg { display: block; margin-bottom: 1rem; color: var(--petrol, var(--accent)); stroke-width: 1.5; }
.home-lists, .home-start { max-width: 46rem; margin: 2.5rem auto 0; padding: 1.75rem; }
.home-start .eyebrow { margin-bottom: .5rem; }
.home-start h2, .home-lists h2 { margin-bottom: 1rem; }
.home-start .fields { display: grid; gap: 1rem 1.25rem; margin: .5rem 0 .25rem; }
.home-start .actions button { padding: .65rem 2rem; font-size: .95rem; }
.cta-band { background: var(--petrol, var(--accent)); color: #fffcf7; }
.cta-band .section-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 3rem; }
.cta-band h2 { font-size: 1.9rem; margin: 0; }
.cta-band p { margin: .75rem 0 0; font-size: .875rem; }
.cta-band .button { background: var(--tn); color: var(--text); border-color: var(--tn); padding: .65rem 2rem; font-size: .95rem; }
.home-footer { padding-block: 2.5rem; }
.home-footer .top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1.25rem; }
.home-footer .top p { margin: 0; color: var(--muted); font-size: .875rem; }
.home-footer .bottom { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--ln); color: var(--muted); font-size: .75rem; line-height: 1.7; }
.home-footer .bottom p { margin: 0; }
@media (max-width: 47.99rem) {
  .gift-hero { height: 500px; }
  .gift-hero::before { background: rgb(34 32 30 / .6); }
  .home h2 { font-size: 1.75rem; }
}
@media (min-width: 40rem) {
  .occasions { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .home-start .fields { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 48rem) {
  .step-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 64rem) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Public list page and its four theme variants. */
.hero { position: relative; }
.hero-img { display: block; width: 100%; height: min(60vw, 26rem); object-fit: cover; }
.hero-svg svg { display: block; width: 100%; height: auto; max-height: 26rem; }
.hero-title { max-width: 46rem; margin: 0 auto; padding: 1rem 1rem .5rem; }
.hero-title h1 { margin: .1em 0; }
.kicker { margin: 0; font-weight: 700; color: var(--muted); }
.due { margin: 0; color: var(--muted); }
.description { white-space: pre-line; font-size: 1.1rem; }
.page-bg { display: none; }

/* Zacht: the image fades into the page background. */
.theme-zacht .hero-img, .theme-zacht .hero-svg { mask-image: linear-gradient(to bottom, #000 55%, transparent); }
/* Fel: a solid band of the dominant colour behind the title. */
.theme-fel .hero-title { max-width: none; background: var(--accent); color: var(--on-accent); padding-left: max(1rem, calc(50% - 22rem)); padding-right: max(1rem, calc(50% - 22rem)); }
.theme-fel .hero-title .kicker, .theme-fel .hero-title .due { color: var(--on-accent); }
/* Donker: a dark gradient under the title, over the image. */
.theme-donker.cover-foto .hero-title, .theme-donker.cover-sjabloon .hero-title {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: none; color: var(--text);
  background: linear-gradient(to bottom, transparent, var(--bg) 70%); padding: 3rem max(1rem, calc(50% - 22rem)) .75rem;
}
/* Vol: a blurred, dimmed copy of the image behind everything; frosted cards. */
.theme-vol .page-bg { display: block; position: fixed; inset: -40px; z-index: -1; background-size: cover; background-position: center; filter: blur(24px) brightness(.75); }
.theme-vol .hero-img { display: none; }
.theme-vol .hero-title, .theme-vol main.wrap, .theme-vol .footer { background: var(--surface); border-radius: 18px; }
.theme-vol .hero-title { margin: 1rem auto 0; max-width: 44rem; }
.theme-vol main.wrap { margin: 1rem auto; max-width: 44rem; padding: 1rem; }
.theme-vol .footer { max-width: 44rem; margin: 0 auto 2rem; padding: 1rem; }

@supports (animation-timeline: scroll()) {
  .hero-img, .hero-svg { animation: hero-fade linear both; animation-timeline: scroll(); animation-range: 0 24rem; }
  @keyframes hero-fade { to { opacity: .35; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Wish priority (1–3 hearts) and the givers' filter bar on the public page.
   The hearts are inline SVGs; the words next to them ("heel graag") are the
   text alternative. */
.hearts { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-weight: 400; }
.heart-icons { display: inline-flex; gap: .1rem; }
.heart { width: 1rem; height: 1rem; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.heart.on { fill: var(--accent); }
.priority-pick { gap: .5rem 1.25rem; }
.priority-pick legend { width: 100%; }
.priority-pick label.check { align-items: center; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem 1rem; margin: 1rem 0; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--ln); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.filters label { font-size: .875rem; }
.filters input[name=tot] { width: 6rem; }
.filters select { width: auto; }
.filters label.check { align-self: center; padding-bottom: .1rem; }

/* Example list (/voorbeeld): a band above the real public page. Fixed
   mustard and ink, so it reads the same on every list theme. */
.example-banner { margin: 0; padding: .7rem 1.5rem; background: #e8b23a; color: #22201e; text-align: center; font-size: .9rem; }
.example-banner a { font-weight: 600; white-space: nowrap; }

/* FAQ (/vragen). */
.faq { max-width: 46rem; padding-block: 1.5rem 3rem; }
.faq h1 { font-size: clamp(2.25rem, 6vw, 3rem); margin: 0 0 .75rem; }
.faq > h2 { font-size: 1.5rem; margin: 2.75rem 0 .5rem; }
.faq-list details { border-bottom: 1px solid var(--ln); }
.faq-list details:first-child { border-top: 1px solid var(--ln); }
.faq-list summary { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; list-style: none; font-family: Fraunces, Georgia, serif; font-size: 1.15rem; line-height: 1.3; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; color: var(--accent); font: 400 1.5rem/1 Inter, system-ui, sans-serif; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin: 0 0 1rem; max-width: 40rem; }
.faq-cta { margin-top: 3rem; padding: 1.75rem; }
.faq-cta h2 { font-size: 1.6rem; }
.faq-cta .actions { margin-bottom: 0; }

/* The wish form: one box up front, the rest under "Meer details". */
.item-form .hint { margin: -.4rem 0 0; }
details.more { border-top: 1px solid var(--ln); padding-top: .6rem; }
details.more > summary { display: inline-block; font-size: .95rem; color: var(--accent); }
details.more > .stack { margin-top: .8rem; }
