@font-face {
  font-family: Apercu;
  src: local("Apercu"), local("Apercu-Regular"), local("Aperçu Regular");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Apercu;
  src: local("Apercu Medium"), local("Apercu-Medium"), local("Aperçu Medium");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Apercu;
  src: local("Apercu Bold"), local("Apercu-Bold"), local("Aperçu Bold");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f1;
  --ink: #263b32;
  --green: #2c4b40;
  --brick: #a14c3d;
  --muted: #5c665d;
  --line: #dedfd3;
  --body-bg: var(--paper);
  --surface: #fffefa;
  --surface-hover: #efefe6;
  --subtle: #eff0e9;
  --pill: #e8ecdf;
  --badge: #fffdf3;
  --person-icon: #fbfaf2;
  --muted-border: #afb8a9;
  --focus: var(--green);
  --primary: var(--green);
  --primary-hover: #1f3c32;
  --on-primary: #fffefa;
  --ribbon: var(--green);
  --flurry: #537b80;
  --card-glow: #fff7;
  --symbol-bg: #ffffff25;
  --purchased-bg: #e7eee4;
  --purchased-ink: #36543d;
  --error: #a03326;
  --shade: #192d25aa;
  --sans: Apercu, "DM Sans", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1c18;
  --body-bg: radial-gradient(ellipse 85% 420px at 83% 150px, #25342a 0%, transparent 95%), var(--paper);
  --ink: #f6eddf;
  --muted: #bdc8bc;
  --line: #3b4d42;
  --brick: #efa196;
  --surface: #182923;
  --surface-hover: #273b32;
  --subtle: #15251f;
  --pill: #314538;
  --badge: #13231e;
  --person-icon: #192923;
  --muted-border: #53695a;
  --focus: #e5c98f;
  --primary: #e4c386;
  --primary-hover: #f2d8a5;
  --on-primary: #26271d;
  --ribbon: #582e32;
  --flurry: #d9f3f2;
  --card-glow: #e5c98f17;
  --symbol-bg: #00000014;
  --purchased-bg: #263f31;
  --purchased-ink: #cde9d4;
  --error: #ffaaa0;
  --shade: #080e0ccc;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--body-bg); font: 15px/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: 5px; left: 12px; z-index: 2; padding: 8px 12px; background: var(--surface); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.ribbon { display: flex; align-items: center; justify-content: center; gap: 20px; height: 36px; background: var(--ribbon); color: #f7f5eb; font-size: 11px; letter-spacing: .09em; }
.ribbon span { color: #ddc593; font-size: 17px; }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 100px; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 700 clamp(18px, 2vw, 24px)/1.2 var(--sans); }
.brand-mark { font: 30px/1 Georgia, serif; }
.masthead nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.masthead nav button, .footer button { border: 0; padding: 0; background: none; }
.masthead nav a:hover, .masthead nav button:hover, .footer a:hover, .footer button:hover, .all-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; border: 1px solid transparent; border-radius: 6px; padding: 8px 16px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.button span { font-size: 18px; line-height: 1; }
.quiet { background: var(--surface); border-color: var(--line); }
.quiet:hover { background: var(--surface-hover); border-color: var(--muted-border); }
.primary { background: var(--primary); color: var(--on-primary); }
.primary:hover { background: var(--primary-hover); }
.header-actions, .footer-actions { display: flex; align-items: center; gap: 8px; }
.footer-actions { flex-wrap: wrap; gap: 16px; }
.icon-button { width: 42px; padding: 0; }
.icon-button[aria-pressed="true"] { background: var(--pill); }
[data-theme="dark"] .icon-button[aria-pressed="true"] { color: var(--focus); }
.shipping-address { margin: 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--subtle); font-style: normal; line-height: 1.65; }
.copy-status { margin: 8px 0 0; color: var(--muted); }
.copy-status:empty { display: none; }

.snowfall {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  color: var(--flurry);
}
[data-snow="off"] .snowfall { display: none; }
.snowfall span {
  position: absolute;
  left: var(--start);
  top: -1.6rem;
  font: var(--size, .85rem)/1 system-ui, sans-serif;
  animation: snow-drift var(--speed) var(--delay) linear infinite;
}
.snowfall span:nth-child(1) { --start: 1vw; --size: 1.1rem; --speed: 8s; --delay: -2s; }
.snowfall span:nth-child(2) { --start: 6vw; --size: .7rem; --speed: 12s; --delay: -7s; }
.snowfall span:nth-child(3) { --start: 3vw; --size: .6rem; --speed: 10s; --delay: -3s; }
.snowfall span:nth-child(4) { --start: 14vw; --size: .9rem; --speed: 11s; --delay: -6s; }
.snowfall span:nth-child(5) { --start: 2vw; --size: .55rem; --speed: 9s; --delay: -5s; }
.snowfall span:nth-child(6) { --start: 11vw; --size: 1rem; --speed: 14s; --delay: -10s; }
.snowfall span:nth-child(7) { --start: 0vw; --size: .75rem; --speed: 13s; --delay: -1s; }
.snowfall span:nth-child(8) { --start: 7vw; --size: .65rem; --speed: 8.5s; --delay: -6s; }
.snowfall span:nth-child(9) { --start: 17vw; --size: .75rem; --speed: 10.5s; --delay: -2.5s; }
.snowfall span:nth-child(10) { --start: 4vw; --size: 1rem; --speed: 13s; --delay: -9s; }
@keyframes snow-drift {
  0% { transform: translate(0, 0) rotate(0turn); opacity: 0; }
  10% { opacity: .72; }
  36% { transform: translate(3vw, 38vh) rotate(.14turn); }
  70% { opacity: .48; transform: translate(7vw, 72vh) rotate(.26turn); }
  100% { transform: translate(11vw, 105vh) rotate(.45turn); opacity: 0; }
}

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; min-height: 430px; padding-block: 36px 40px; }
.hero h1 { margin: 24px 0 24px; font: 700 clamp(44px, 5vw, 76px)/1.04 var(--sans); letter-spacing: -.045em; }
.hero h1 em { color: var(--brick); }
.eyebrow { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.eyebrow span { color: var(--brick); font-size: 18px; margin-right: 5px; vertical-align: middle; }
.hero-copy > p:not(.eyebrow) { max-width: 445px; color: var(--muted); margin: 0 0 27px; line-height: 1.85; }
.hero .button { padding-inline: 20px; min-height: 49px; }
.hero-art { width: min(100%, 530px); height: auto; display: block; justify-self: end; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 63px; border-block: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 13px; }
.steps > * { align-self: center; padding: 8px; }
.steps button { border: 0; background: transparent; color: inherit; }
.steps button:hover { text-decoration: underline; text-underline-offset: 3px; }
.steps b { font-size: 17px; font-weight: 500; margin-right: 6px; color: var(--focus); }
.lists { padding-top: 48px; scroll-margin-top: 22px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 8px 0 24px; }
h2 { margin: 0; font: 700 clamp(25px, 3vw, 37px)/1.2 var(--sans); letter-spacing: -.027em; }
.all-link { color: var(--muted); font-size: 13px; white-space: nowrap; }
.people, .gift-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.rose { --tile: #f1e8df; --tone: #9b5446; }
.sage { --tile: #ebeee3; --tone: #4c6854; }
.blue { --tile: #e8edf0; --tone: #466675; }
.gold { --tile: #f0ecdb; --tone: #7b673b; }
[data-theme="dark"] .rose { --tile: #38282a; --tone: #f2b5a9; }
[data-theme="dark"] .sage { --tile: #22392f; --tone: #bdd9bd; }
[data-theme="dark"] .blue { --tile: #23343b; --tone: #bbdbe8; }
[data-theme="dark"] .gold { --tile: #393529; --tone: #ead096; }
.person { display: flex; align-items: center; gap: 14px; min-height: 103px; border: 1px solid var(--line); border-radius: 9px; padding: 16px; background: var(--tile); transition: border-color .16s, transform .16s; }
.person:hover { border-color: var(--tone); transform: translateY(-2px); }
.person[aria-current="page"] { outline: 2px solid var(--focus); outline-offset: 2px; }
.person-icon { display: grid; place-items: center; flex: 0 0 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--person-icon); color: var(--tone); font-size: 29px; line-height: 1; }
.person-icon.paw { font-size: 22px; filter: grayscale(1); }
.person strong { display: block; font: 700 25px/1.2 var(--sans); }
.person small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.arrow { margin-left: auto; color: var(--tone); font-size: 18px; }
.catalog { padding: 40px 0 72px; scroll-margin-top: 18px; }
.catalog h2 { font-size: clamp(23px, 2.4vw, 30px); }
.catalog-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.count { display: inline-grid; place-items: center; vertical-align: middle; margin-left: 8px; min-width: 25px; min-height: 25px; padding-inline: 4px; border-radius: 30px; background: var(--pill); font: 600 11px var(--sans); letter-spacing: 0; }
.filters { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 10px; margin-bottom: 24px; padding: 12px; background: var(--subtle); border: 1px solid var(--line); border-radius: 8px; }
.search { display: flex; align-items: center; gap: 8px; padding-inline: 6px; }
.search span { color: var(--muted); font-size: 23px; line-height: 1; }
.search input { border: 0; min-width: 0; width: 100%; padding: 6px 0; background: transparent; }
.search input::placeholder { color: var(--muted); }
.filters select { border: 1px solid var(--line); border-radius: 5px; padding: 7px 8px; background: var(--surface); font-size: 12px; }
.gift { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.gift-media { position: relative; display: grid; place-items: center; min-height: 165px; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(ellipse at center, var(--card-glow) 0%, transparent 70%), var(--tile); }
.gift-media img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; padding: 15px; }
.gift-media.has-image .gift-symbol { visibility: hidden; }
.gift-symbol { display: grid; place-items: center; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--tone) 32%, transparent); background: var(--symbol-bg); font-size: clamp(34px, 4.6vw, 65px); transform: rotate(-7deg); }
.gift-media::before, .gift-media::after { position: absolute; color: var(--tone); opacity: .65; content: "✧"; font-size: 24px; }
.gift-media::before { left: 24%; top: 25%; }
.gift-media::after { right: 20%; bottom: 22%; font-size: 16px; }
.gift-media.has-image::before, .gift-media.has-image::after { display: none; }
.for { position: absolute; z-index: 1; top: 12px; left: 12px; border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; background: var(--badge); color: var(--muted); font-size: 11px; }
.gift-content { display: flex; flex: 1; flex-direction: column; padding: 15px; }
.tag { margin: 0; color: var(--tone); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tag::before { content: "●"; margin-right: 6px; font-size: 8px; }
.gift h3 { margin: 7px 0 5px; font-size: 16px; line-height: 1.35; }
.note { flex: 1; margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.cost { margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.gift-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gift-actions .button { min-height: 36px; padding: 6px 9px; font-size: 11px; }
.bought { background: var(--purchased-bg); border-radius: 4px; color: var(--purchased-ink); font-size: 11px; padding: 5px 8px; }
#purchased-section { margin-top: 37px; }
#purchased-section h2 { margin-bottom: 17px; }
#status { margin: 0 0 16px; color: var(--muted); }
#status:empty { margin: 0; }
.footer { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 26px 36px; font-size: 13px; color: var(--muted); }
.footer > a { color: var(--ink); font: 700 16px var(--sans); }
dialog { color: var(--ink); max-width: min(510px, calc(100vw - 28px)); width: 100%; max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: 0 18px 55px #263b3235; }
dialog::backdrop { background: var(--shade); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.dialog-head h2 { font-size: 27px; }
.close { border: 0; background: none; font-size: 26px; line-height: 1; }
form label { display: grid; gap: 5px; margin: 11px 0; font-size: 13px; font-weight: 600; }
form input, form select, form textarea { width: 100%; min-height: 40px; padding: 7px 9px; border-radius: 5px; border: 1px solid var(--muted-border); background: var(--surface); }
form textarea { min-height: 65px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { min-height: 1em; color: var(--error); font-size: 13px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
body.individual .hero, body.individual .steps, body.individual #lists .section-heading, body.individual #lists > .eyebrow { display: none; }
body.individual .lists { padding-top: 25px; border-top: 1px solid var(--line); }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .person { gap: 10px; padding: 12px; }
  .person-icon { flex-basis: 44px; height: 44px; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .people, .gift-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .masthead nav { gap: 14px; }
  .masthead { gap: 12px; }
  .hero { min-height: 360px; gap: 18px; }
  .gift-media { min-height: 130px; }
}
@media (max-width: 570px) {
  .wrap { width: calc(100% - 30px); }
  .masthead { flex-wrap: wrap; gap: 10px; padding-block: 16px; min-height: auto; }
  .brand { order: 0; flex-basis: 100%; }
  .masthead nav { font-size: 13px; gap: 15px; }
  .icon-button { width: 36px; min-height: 36px; }
  .header-actions { gap: 5px; }
  .masthead .manage { min-height: 36px; padding: 5px 9px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; padding-block: 26px 20px; }
  .hero h1 { font-size: clamp(41px, 11vw, 56px); margin-block: 13px 18px; }
  .hero-copy > p:not(.eyebrow) { margin-bottom: 17px; }
  .hero-art { width: min(95%, 365px); justify-self: center; }
  .steps { font-size: 11px; }
  .steps b { display: block; margin: 0; }
  .lists { padding-top: 32px; }
  .people, .gift-grid { gap: 9px; }
  .person { min-height: 81px; padding: 8px; gap: 8px; }
  .person-icon { flex-basis: 32px; height: 32px; font-size: 20px; }
  .person-icon.paw { font-size: 15px; }
  .person strong { font-size: 20px; }
  .person small { font-size: 10px; }
  .arrow { font-size: 14px; }
  .all-link { font-size: 11px; }
  .catalog { padding-top: 30px; }
  .filters { grid-template-columns: repeat(3, minmax(0,1fr)); padding: 8px; gap: 6px; }
  .search { grid-column: 1 / -1; }
  .filters select { padding-inline: 3px; font-size: 11px; }
  .gift-content { padding: 10px; }
  .gift h3 { font-size: 14px; }
  .for { top: 7px; left: 7px; padding: 3px 5px; font-size: 10px; }
  .section-heading { margin-bottom: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .snowfall { display: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
