@font-face {
  font-family: "Cormorant Garamond";
  src: url("/cormorant-garamond.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/source-sans-3.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #0b1230;
  --ground: #0f1838;
  --panel: #16224a;
  --royal: #1f2f74;
  --plum: #3b1d5e;
  --teal: #0f4d58;
  --emerald: #145a46;
  --paper: #f5efe3;
  --ink: #f6f1e6;
  --dark-ink: #141c3a;
  --muted: #d2cbe0;
  --gold: #dcb75f;
  --line: #665b68;
  --wing: 0 28px 0 28px;
  --wing-small: 0 12px 0 12px;
  --display: "Cormorant Garamond", Georgia, serif;
  font: 1rem/1.55 "Source Sans 3", system-ui, sans-serif;
  background: var(--ground);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 2 * clamp(1rem, 4vw, 3.5rem)); margin-inline: auto; }
.skip { position: absolute; left: 14px; top: -80px; background: var(--gold); color: var(--dark-ink); padding: 10px; z-index: 5; }
.skip:focus { top: 10px; }

.masthead { background: var(--night); border-bottom: 1px solid var(--line); }
.bar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.08; white-space: nowrap; }
.brand span { font: 700 1.8rem/1 var(--display); }
.brand small { color: var(--gold); font-size: .875rem; margin-top: 3px; }
nav, #demo-buttons { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
nav a { padding: 9px 5px; text-decoration: none; font-weight: 600; }
nav a:hover { color: var(--gold); }
.button, button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  border-radius: var(--wing-small); border: 1px solid transparent; padding: 10px 17px;
  font-weight: 700; text-decoration: none; line-height: 1.3; text-align: center;
}
.primary { background: var(--gold); color: var(--dark-ink); }
.primary:hover { background: var(--paper); }
.secondary { background: transparent; color: var(--ink); border-color: #aaa0b5; }
.secondary:hover { background: var(--paper); color: var(--dark-ink); border-color: var(--paper); }
.compact { padding: 6px 11px; font-size: .92rem; }
.text-button { background: transparent; color: var(--gold); padding: 5px 0; text-decoration: underline; text-underline-offset: 3px; }
#demo { background: linear-gradient(100deg, var(--plum), var(--royal)); }
.demo-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 57px; padding-block: 7px; }

.hero {
  background: linear-gradient(100deg, #0b1230fa 3%, #152451d6 52%, #3b1d5eb8 100%),
    url("/dragonfly-starlight.jpg") center 40% / cover no-repeat;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; min-height: 353px; gap: 32px; }
.hero-copy { padding-block: 48px; }
.eyebrow { color: var(--gold); font: 700 1.35rem/1.12 var(--display); margin: 0 0 8px; }
.hero h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.015em; line-height: 1.06; }
.hero h1 { font-size: clamp(3.25rem, 7vw, 6.2rem); }
.hero p:not(.eyebrow) { color: var(--ink); max-width: 510px; font-size: 1.19rem; margin: 15px 0 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.art { position: relative; width: 320px; height: 275px; justify-self: center; isolation: isolate; }
.halo { position: absolute; inset: 5px 20px; border-radius: 50%; border: 1px solid #dcb75f60; background: radial-gradient(circle,#38255fbd 0%,#1f2f7440 75%); z-index: -1; }
.spark { position: absolute; color: var(--gold); font-size: 38px; }
.spark.one { left: 30px; top: 42px; }
.spark.two { right: 25px; top: 38px; font-size: 50px; }
.spark.three { right: 20px; bottom: 36px; font-size: 27px; }
.gift-tag { position: absolute; left: 65px; top: 42px; width: 117px; height: 162px; border-radius: 42px 42px 15px 15px; background: var(--paper); transform: rotate(-25deg); box-shadow: 0 10px 26px #0b123066; padding: 16px; display: grid; justify-items: center; align-content: start; gap: 8px; color: var(--plum); }
.tag-hole { width: 13px; height: 13px; border-radius: 50%; background: #5d4b7a; }
.gift-tag span { font-size: 39px; line-height: 1.2; }
.gift-tag i { width: 47px; height: 3px; background: #776792; border-radius: 5px; }
.gift-tag i:last-child { width: 33px; }
.gift-box { position: absolute; left: 134px; top: 120px; width: 130px; height: 107px; background: var(--gold); border-radius: 4px 4px 12px 12px; transform: rotate(11deg); box-shadow: 0 14px 32px #0b1230b0; }
.lid { position: absolute; inset: 0 -7px auto; height: 31px; background: #efcd7c; border-radius: 6px; }
.stripe { position: absolute; left: 51px; width: 28px; height: 100%; background: #573475; }
.bow { position: absolute; top: -36px; height: 45px; width: 63px; border: 10px solid #805ca0; }
.bow.left { left: 5px; border-radius: 30px 22px 2px 22px; transform: rotate(16deg); }
.bow.right { right: 5px; border-radius: 22px 30px 22px 2px; transform: rotate(-16deg); }

.catalog { padding-block: 44px; }
.catalog-heading { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 20px; }
.catalog-heading p:last-child { margin: 0; color: var(--muted); }
.privacy-dot { display: inline-block; background: var(--gold); width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
h2 { font-size: clamp(2.35rem, 4vw, 3.55rem); }
h3 { font-size: 1.65rem; }
.filters { display: grid; grid-template-columns: 1.45fr repeat(4,1fr); gap: 12px; background: var(--panel); border: 1px solid var(--line); padding: 16px 20px; border-radius: var(--wing); }
label { display: grid; gap: 6px; font-weight: 600; min-width: 0; }
input, select, textarea { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #8b82a4; border-radius: 6px; background: var(--night); padding: 8px 10px; }
input::placeholder, textarea::placeholder { color: #bdb5d1; }
select {
  appearance: none; padding-right: 25px;
  background: linear-gradient(45deg,transparent 50%,var(--gold) 50%) calc(100% - 12px) 50%/5px 5px no-repeat,
    linear-gradient(135deg,var(--gold) 50%,transparent 50%) calc(100% - 7px) 50%/5px 5px no-repeat var(--night);
}
textarea { resize: vertical; }
.results { display: flex; justify-content: space-between; align-items: center; color: var(--muted); margin: 14px 0; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.card, .empty, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--wing); padding: 20px; overflow-wrap: anywhere; }
.card { display: flex; flex-direction: column; gap: 6px; }
.christmas-card { background: #57001f; border-color: #e296a0; }
.christmas-badge {
  display: inline-block; align-self: flex-start; margin-bottom: 4px; padding: 4px 10px;
  border: 1px solid #e296a0; border-radius: var(--wing-small); background: #800020; color: #fff1f4; font-size: .875rem; font-weight: 700;
}
.filters select.christmas-category { background-color: #800020; border-color: #e296a0; }
.wish-items { margin: 2px 0 10px; padding-inline-start: 22px; }
.wish-items li + li { margin-top: 3px; }
.card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 5px; }
.category { display: inline-block; padding: 4px 9px; border-radius: var(--wing-small); color: var(--ink); background: var(--teal); font-size: .875rem; font-weight: 700; }
.category[data-tone="School supplies"], .category[data-tone="Play & recreation"] { background: var(--royal); }
.category[data-tone="Personal care"] { background: var(--plum); }
.category[data-tone="Home essentials"] { background: var(--emerald); }
.code { font-size: .82rem; font-weight: 700; color: var(--muted); }
.meta { color: var(--muted); margin: 0; }
.card-foot { border-top: 1px solid var(--line); padding-top: 13px; margin-top: auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: center; }
.card-foot small { display: block; color: var(--muted); }
.empty { grid-column: 1/-1; color: var(--muted); }
.how { padding: 9px 0 54px; }
.how > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 24px; }
.how > .participation-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
.participation-options p { max-width: 55ch; }
.participation-options button { margin-top: 10px; }
.how article { border-top: 1px solid var(--gold); padding-top: 13px; }
.how p, .panel p { margin: 6px 0; color: var(--muted); }
.donations { padding: 8px 0 54px; }
.donation-options { display: grid; grid-template-columns: minmax(0,1fr); gap: 17px; margin-top: 20px; }
.donation-card { padding: clamp(19px,3vw,28px); }
.digital-downloads { border-color: var(--gold); }
.donation-card p { max-width: 56ch; margin: 6px 0 12px; color: var(--muted); }
.donation-card .button, .donation-card .hint { align-self: flex-start; margin-top: auto; }
.giving-actions { align-items: center; margin-top: auto; }
.donation-qr { margin: 12px 0 0; }
.donation-qr img { display: block; max-width: 100%; height: auto; margin-bottom: 8px; border-radius: 8px; }
.donation-qr figcaption { font-size: .94rem; color: var(--muted); }
.donation-qr strong { color: var(--ink); }
footer { border-top: 1px solid var(--line); background: var(--night); color: var(--ink); }
footer > .wrap { padding-block: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer .brand:hover span { color: var(--gold); }

.dashboard { padding-block: 41px 55px; min-height: 65vh; }
.dashboard h2 { margin-bottom: 18px; }
.dashboard .section-title { font-size: 2.15rem; margin: 29px 0 12px; }
.panel { margin-bottom: 12px; }
.panel h3 { margin-bottom: 5px; }
.notice { padding: 9px 0; border-top: 1px solid var(--line); }
.notice:first-of-type { border-top: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.delivery { border-left: 3px solid var(--gold); padding-left: 12px; margin-top: 8px; }
.gift-note { min-width: 0; margin: 10px 0 0; padding: 12px 14px; border: 1px solid #e296a0; border-radius: var(--wing-small); background: #57001f; }
.gift-note legend, .gift-note strong { color: #ffdae0; font-weight: 700; }
.gift-note legend { padding-inline: 5px; }
.gift-note p:not(.hint) { color: var(--ink); white-space: pre-wrap; }
.status { font-weight: 700; color: var(--gold); }
dialog { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--wing); padding: 23px; width: min(520px,100% - 28px); max-height: 90vh; }
dialog::backdrop { background: #060b20cf; }
.dialog-top { display: flex; gap: 12px; align-items: start; justify-content: space-between; margin-bottom: 17px; }
.dialog-top h2 { font-size: 2.4rem; }
.stack { display: grid; gap: 12px; }
.stack .primary { justify-self: start; }
.group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.recognition { display: grid; gap: 9px; min-width: 0; margin: 0; padding: 10px 13px 13px; border: 1px solid var(--line); border-radius: var(--wing-small); }
.recognition legend { padding-inline: 5px; font-weight: 700; }
.gift-entry { min-width: 0; margin: 0; padding: 10px 13px 13px; border: 1px solid var(--line); border-radius: var(--wing-small); }
.gift-entry legend { padding-inline: 5px; font-weight: 700; }
.gift-entry button, #add-gift { justify-self: start; }
.recognition label:has(input[type="radio"]) { display: flex; align-items: center; min-height: 34px; }
.recognition input[type="radio"] { width: 18px; height: 18px; min-height: 0; margin: 0 4px 0 0; accent-color: var(--gold); }
.checkbox { display: flex; align-items: center; gap: 9px; min-height: 44px; }
.checkbox input { flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--gold); }
.hint { color: var(--muted); margin: 0; }
.error { color: #ffbec7; margin: 0; }
.error:empty { display: none; }
.toast { position: fixed; bottom: 15px; right: 15px; max-width: min(380px,100% - 30px); margin: 0; padding: 12px 18px; border: 1px solid var(--gold); border-radius: var(--wing-small); background: var(--night); color: var(--ink); z-index: 3; box-shadow: 0 7px 22px #0008; }

@media (max-width: 1000px) {
  .filters { grid-template-columns: repeat(3,1fr); }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .bar, .demo-inner { padding-block: 10px; align-items: flex-start; flex-wrap: wrap; }
  .hero-inner { display: block; min-height: unset; }
  .hero-copy { padding-block: 38px; }
  .hero h1 { font-size: clamp(3rem,11vw,4.5rem); }
  .art { display: none; }
  .catalog { padding-block: 32px; }
  .catalog-heading { display: block; }
  .catalog-heading p:last-child { margin-top: 8px; }
  .filters { grid-template-columns: repeat(2,1fr); gap: 9px; padding: 15px; }
  .filters .search { grid-column: 1/-1; }
  .cards, .how > div, .how > .participation-options { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .order-dates { grid-template-columns: 1fr; }
}
