:root {
  color-scheme: light;
  --paper: #fbf7ef;
  --paper-2: #f4ede0;
  --card: #fffdf8;
  --ink: #233047;
  --ink-soft: #5a6679;
  --ink-faint: #8c95a3;
  --line: #e4dac8;
  --blue: #7d9fc2;
  --blue-soft: #c9d9ea;
  --blue-deep: #3e6390;
  --sky: #e5eef6;
  --sage: #a3b59d;
  --honey: #e2b25b;
  --sand: #e9d8bb;
  --fur: #c9a47c;
  --fur-in: #efdfc6;
  --danger: #a8483b;
  --radius: 18px;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .3 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue-deep); }
:focus-visible { outline: 2.5px solid var(--blue-deep); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- bunting ---------- */
.bunting {
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 56' width='240' height='56'%3E%3Cg stroke='%23233047' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M0 6Q120 34 240 6' fill='none'/%3E%3Cpath d='M10 10.5L38 12.6L22.5 42Z' fill='%237d9fc2'/%3E%3Cpath d='M58 16.3L86 18.8L71 48Z' fill='%23e9d8bb'/%3E%3Cpath d='M106 19.6L134 19.6L120 50Z' fill='%23a3b59d'/%3E%3Cpath d='M154 18.8L182 16.3L169 48Z' fill='%23fffdf8'/%3E%3Cpath d='M202 12.6L230 10.5L217.5 42Z' fill='%23e2b25b'/%3E%3C/g%3E%3Ccircle cx='71' cy='29' r='2' fill='%23fffdf8'/%3E%3Ccircle cx='169' cy='29' r='2' fill='%237d9fc2'/%3E%3C/svg%3E") repeat-x;
  background-position: center top;
}

/* ---------- hero ---------- */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 32px;
}
.eyebrow {
  font: 600 13px/1 var(--body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before, .eyebrow::after { content: ''; width: 28px; height: 1.5px; background: var(--blue); }
h1 {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  font-weight: 400;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0 0 20px;
  text-wrap: balance;
}
h1 em { font-style: italic; color: var(--blue-deep); font-weight: 350; }
h1.baby-name {
  font-size: clamp(72px, 12vw, 140px);
  font-style: italic;
  font-weight: 350;
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--blue-deep);
  margin-bottom: 14px;
}
.hosts {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'opsz' 48;
  font-size: clamp(24px, 3vw, 30px);
  margin: 0 0 16px;
}
.amp { font-style: italic; color: var(--honey); padding: 0 .1em; font-weight: 300; }
.lede { color: var(--ink-soft); max-width: 34em; margin: 0 0 6px; }
.signature {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-style: italic;
  font-size: 22px;
  margin: 0 0 22px;
}
.when-line {
  display: inline-block;
  font-weight: 600;
  margin: 0 0 26px;
  padding: 8px 16px;
  border: 1.5px dashed var(--blue);
  border-radius: 999px;
  background: var(--card);
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; }
.art { width: 100%; max-width: 460px; margin: 0 auto; display: block; overflow: visible; }
.art .halo { fill: var(--sky); }
.art .star { fill: var(--honey); }
.art .dot { fill: var(--blue); }
.art .env-cream { fill: var(--card); }
.art .env-blue { fill: var(--blue); }
.art .env-shine { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: .55; }
.art .seam path, .art .rope path, .art .weave path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.art .weave path { stroke-width: 1.1; opacity: .55; }
.art .outline { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.art .skirt { fill: var(--sand); stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.art .basket { fill: #d9b98c; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.art .rim { fill: #c49b67; stroke: var(--ink); stroke-width: 1.8; }
.art .fur { fill: var(--fur); stroke: var(--ink); stroke-width: 1.5; }
.art .fur-in { fill: var(--fur-in); }
.art .eye { fill: var(--ink); }
.art .cloud-front path, .art .cloud-back path { fill: #fff; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.art .cloud-back path { fill: var(--card); }

@media (prefers-reduced-motion: no-preference) {
  .art .balloon { animation: float 7s ease-in-out infinite; transform-origin: 200px 200px; }
  .art .cloud-back { animation: drift 11s ease-in-out infinite; }
  .art .star { animation: twinkle 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .art .star:nth-of-type(2) { animation-delay: -1.2s; }
  .art .star:nth-of-type(3) { animation-delay: -2.1s; }
  .art .star:nth-of-type(4) { animation-delay: -.6s; }
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1.2deg); } }
@keyframes drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-10px); } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- buttons ---------- */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.8px solid var(--ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--blue); }
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--blue); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--blue); }
.btn-ghost { background: var(--card); color: var(--ink); }
.btn-ghost:hover { background: var(--sky); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }

.text-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* ---------- sections ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
.section-title {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'opsz' 72;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  text-align: center;
  margin: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.section-title::before, .section-title::after {
  content: '';
  flex: 0 0 34px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 14'%3E%3Cpath d='M1 7Q5.25 1 9.5 7T18 7T26.5 7T33 7' fill='none' stroke='%237d9fc2' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- details ---------- */
.details { border-top: 1.5px dashed var(--line); }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.detail {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  text-align: center;
}
.detail-icon { width: 40px; height: 40px; margin: 0 auto 10px; fill: none; stroke: var(--blue-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.detail-icon .fill { fill: var(--honey); stroke: none; }
.detail h3 { font: 600 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 12px; }
.detail-main { font-family: var(--display); font-variation-settings: 'SOFT' 100; font-size: 22px; line-height: 1.25; margin: 0 0 6px; }
.detail-sub { color: var(--ink-soft); margin: 0 0 12px; font-size: 15.5px; white-space: pre-line; }
.detail-sub:empty { display: none; }
.countdown {
  display: inline-block;
  margin: 4px 0 0;
  padding: 4px 12px;
  background: var(--sky);
  border-radius: 999px;
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 14px;
}

.contact { margin-top: 28px; text-align: center; }
.contact-k { margin: 0 0 14px; color: var(--ink-soft); font-size: 15.5px; }
.contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
}
.person-name { font-family: var(--display); font-variation-settings: 'SOFT' 100; font-size: 19px; }
.person-tel { color: var(--ink); font-weight: 600; white-space: nowrap; text-decoration: none; font-variant-numeric: tabular-nums; }
.person-tel:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.person-wa {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.person-wa:hover { background: var(--blue-soft); }

/* ---------- rsvp ---------- */
.rsvp-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--card);
  border: 1.8px solid var(--ink);
  border-radius: 28px;
  padding: 40px 40px 36px;
  box-shadow: 6px 6px 0 var(--blue-soft);
  position: relative;
}
.rsvp-card .section-title { margin-bottom: 26px; }
.field { display: block; margin: 0 0 20px; }
.label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 8px; }
.opt { font-weight: 400; color: var(--ink-faint); }
input:not([type=radio]):not([type=checkbox]), textarea, select {
  width: 100%;
  padding: 12px 14px;
  min-height: 48px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
  transition: border-color .15s, background .15s;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue-deep); background: #fff; }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }

.choice { border: 0; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice legend { padding: 0; grid-column: 1 / -1; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-weight: 600;
  text-align: center;
  transition: all .15s;
}
.choice input:checked + span { background: var(--sky); border-color: var(--blue-deep); color: var(--blue-deep); box-shadow: inset 0 0 0 1px var(--blue-deep); }
.choice input:focus-visible + span { outline: 2.5px solid var(--blue-deep); outline-offset: 2px; }

.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 20px; }
.stepper-ctl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 4px;
}
.stepper-ctl button {
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 0;
  background: var(--card);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 1.5px var(--line);
}
.stepper-ctl button:hover { background: var(--sky); }
.stepper-ctl output { font-family: var(--display); font-size: 24px; min-width: 2ch; text-align: center; }

.form-error { color: var(--danger); font-weight: 600; font-size: 15px; margin: -6px 0 14px; }

.rsvp-done { text-align: center; padding: 6px 0 4px; }
.done-mark { width: 64px; height: 64px; margin: 0 auto 14px; fill: none; stroke: var(--blue-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done-mark circle { fill: var(--sky); stroke: var(--blue); }
.done-title { font-family: var(--display); font-variation-settings: 'SOFT' 100; font-size: 28px; line-height: 1.2; margin: 0 0 8px; }
.done-sub { color: var(--ink-soft); margin: 0 0 18px; }

/* ---------- gifts ---------- */
.gift-note { text-align: center; color: var(--ink-soft); max-width: 40em; margin: -12px auto 30px; white-space: pre-line; }
.how {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.how li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--paper-2);
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.35;
}
.how-n {
  flex: 0 0 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--card);
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 600;
}

/* For guests who can't come: mail a gift or send a gift card. */
.send {
  max-width: 880px;
  margin: 0 auto 30px;
  padding: 22px 24px 24px;
  border: 1.5px dashed var(--blue);
  border-radius: 18px;
  background: var(--card);
  scroll-margin-top: 16px;
}
.send-title { font-family: var(--display); font-variation-settings: 'SOFT' 100; font-weight: 400; font-size: 24px; margin: 0 0 4px; }
.send-lede { margin: 0 0 16px; color: var(--ink-soft); }
.send-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.send-opt { display: flex; flex-direction: column; padding: 16px 18px; border-radius: 14px; background: var(--paper); border: 1.5px solid var(--line); }
.send-icon { width: 34px; height: 34px; margin-bottom: 8px; fill: none; stroke: var(--blue-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.send-k { margin: 0 0 6px; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); }
.send-v { margin: 0 0 8px; white-space: pre-line; font-size: 17px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.send-tip { margin: 0 0 14px; font-size: 14px; color: var(--ink-soft); }
.send-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.done-sub a { font-weight: 600; }

.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 22px; }
.chips { display: flex; gap: 8px; min-width: 0; max-width: 100%; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .n { opacity: .6; font-weight: 500; margin-left: 4px; }
.chip-top { display: inline-flex; align-items: center; gap: 5px; border-color: var(--honey); background: #fbf1dc; }
.chip-top svg { width: 12px; height: 12px; fill: var(--honey); }
.chip-top[aria-pressed=true] svg { fill: var(--honey); }
.toggle { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; color: var(--ink-soft); }
.toggle input { width: 18px; height: 18px; accent-color: var(--blue-deep); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 20px; }
.gift {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.gift:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgba(35, 48, 71, .35); border-color: var(--blue-soft); }
.gift-media { position: relative; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1.5px solid var(--line); display: grid; place-items: center; }
.gift-media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.gift-media.ph { background: var(--sky); }
.gift-media.ph > svg { width: 40%; height: 40%; fill: none; stroke: var(--blue-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gift-media.ph > svg .acc { fill: var(--card); }
.badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--honey);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
}
.badge svg { width: 12px; height: 12px; fill: var(--ink); }
.gift-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.gift-store { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 6px; }
.gift-title { font-size: 16px; font-weight: 600; line-height: 1.35; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Parents' notes (sizes, colors) are easy to skim past, so they get their own box. */
.gift-note-i, .claim-note {
  margin: 2px 0 10px;
  padding: 8px 10px;
  background: #fbf1dc;
  border-left: 3px solid var(--honey);
  border-radius: 0 10px 10px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.note-k {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a6418;
}
.claim-note { margin: 0 0 16px; font-size: 15px; }
.gift-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: auto 0 12px; padding-top: 6px; }
.gift-price { font-family: var(--display); font-size: 21px; font-variation-settings: 'SOFT' 100; }
.gift-left { font-size: 13px; color: var(--ink-soft); text-align: right; }
.bar { height: 5px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin: -4px 0 12px; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.gift-actions { display: grid; gap: 8px; }
.gift-actions .btn { width: 100%; min-height: 42px; font-size: 15px; padding: 0 12px; }
.gift-actions .btn-primary { box-shadow: 2px 2px 0 var(--blue); }
.gift-mine { font-size: 14px; color: var(--blue-deep); font-weight: 600; text-align: center; margin: 0; }
.gift-mine button { margin-left: 4px; font-size: 14px; }

.gift.taken .gift-media img, .gift.taken .gift-media > svg { opacity: .35; filter: grayscale(.6); }
.gift.taken .gift-title, .gift.taken .gift-price { color: var(--ink-soft); }
.stamp {
  position: absolute;
  top: 50%; left: 50%;
  width: 124px; height: 124px;
  margin: -62px 0 0 -62px;
  border-radius: 50%;
  border: 2.5px solid var(--blue-deep);
  box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 5.5px var(--blue-deep);
  color: var(--blue-deep);
  background: rgba(255, 253, 248, .85);
  display: grid; place-items: center;
  text-align: center;
  transform: rotate(-12deg);
  font-family: var(--display);
  font-style: italic;
  font-size: 19px;
  line-height: 1;
}
.stamp small { display: block; font: 700 9.5px/1 var(--body); font-style: normal; letter-spacing: .2em; text-transform: uppercase; margin-top: 4px; }

.empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 20px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

/* ---------- footer ---------- */
.foot { text-align: center; padding: 30px 20px 60px; color: var(--ink-soft); }
.foot-balloon { width: 30px; height: 40px; margin: 0 auto 10px; fill: none; stroke: var(--blue-deep); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.foot p { margin: 0; }
.sig { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--ink); margin-left: 4px; }

/* ---------- modal ---------- */
.modal {
  width: min(480px, calc(100vw - 32px));
  padding: 0;
  border: 1.8px solid var(--ink);
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--blue-soft);
}
.modal::backdrop { background: rgba(35, 48, 71, .45); backdrop-filter: blur(2px); }
.modal-body { padding: 30px 28px 26px; position: relative; }
.modal-x { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.modal-x:hover { background: var(--paper-2); }
.modal-kicker { margin: 0 0 4px; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-deep); }
.modal-title { font-family: var(--display); font-variation-settings: 'SOFT' 100; font-weight: 400; font-size: 24px; line-height: 1.2; margin: 0 30px 10px 0; }
.modal-text { color: var(--ink-soft); font-size: 15px; margin: 0 0 16px; }
.store-link { display: inline-block; margin: 0 0 18px; font-weight: 600; font-size: 15px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 6px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
  z-index: 20;
  max-width: calc(100vw - 32px);
  text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 4px; gap: 0; }
  .hero-art { order: -1; max-width: 300px; margin: 0 auto; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .detail-grid { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; max-width: 420px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bunting { height: 44px; background-size: 190px 44px; }
  .hero, main { padding-left: 16px; padding-right: 16px; }
  .hero-art { max-width: 240px; }
  section { padding: 44px 0; }
  .rsvp-card { padding: 30px 20px 26px; border-radius: 22px; box-shadow: 4px 4px 0 var(--blue-soft); }
  .cta .btn { flex: 1 1 100%; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gift-body { padding: 12px 12px 14px; }
  .gift-title { font-size: 14.5px; }
  .gift-price { font-size: 18px; }
  .gift-media img { padding: 10px; }
  .gift-actions .btn { min-height: 40px; font-size: 14px; white-space: nowrap; }
  .gift-actions .wide { display: none; }
  .gift-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .gift-left { text-align: left; font-size: 12.5px; }
  .stamp { width: 96px; height: 96px; margin: -48px 0 0 -48px; font-size: 15px; }
  .stamp small { font-size: 8px; }
  .badge { top: 8px; left: 8px; font-size: 11px; }
  .filters { flex-direction: column; align-items: stretch; }
  .chips { margin: 0 -16px; padding: 2px 16px; max-width: none; width: calc(100% + 32px); }
  .ship { flex-direction: column; align-items: flex-start; }
  .modal-body { padding: 26px 20px 20px; }
  .section-title { gap: 10px; font-size: 30px; }
  .section-title::before, .section-title::after { flex-basis: 22px; }
  .contact-list { flex-direction: column; align-items: stretch; gap: 10px; }
  .person { justify-content: space-between; gap: 8px; padding-left: 16px; }
  .person-name { font-size: 17px; margin-right: auto; }
  .person-tel { font-size: 15px; }
  .person-wa { padding: 6px 12px; font-size: 13.5px; }
}

/* Very narrow phones (e.g. 320–360px): keep the contact rows inside the screen. */
@media (max-width: 380px) {
  .person { gap: 6px; padding-left: 12px; min-width: 0; }
  .person-name { font-size: 16px; }
  .person-tel { font-size: 14px; }
  .person-wa { padding: 5px 10px; font-size: 13px; }
}

/* ---------- multi-event additions ---------- */
h1.baby-name.long { font-size: clamp(46px, 7.4vw, 86px); line-height: 1; }
.signature { overflow-wrap: anywhere; }
/* Gifts without a photo get a shorter picture area, so a list of them is not a wall of icons. */
.gift.no-photo .gift-media { aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 55%, var(--card) 0 34%, var(--sky) 34.5%); }
.gift-media.ph > svg.pa { width: 46%; height: auto; max-width: 132px; stroke: var(--ink); stroke-width: 2; }
.gift-media.ph > svg.pa .f { fill: var(--blue); }
.gift-price:empty { display: none; }
.disclosure { max-width: 46em; margin: 28px auto 0; text-align: center; font-size: 13px; color: var(--ink-faint); }
.made { margin-top: 14px !important; font-size: 14px; }
.made a { color: var(--ink-soft); text-underline-offset: 3px; }
.made a:hover { color: var(--blue-deep); }

/* ---------- more hero designs (src/designs.mjs) ---------- */
.art .c-main, .art .c-soft, .art .c-card, .art .c-honey, .art .c-sage, .art .c-fur, .art .c-sky, .art .c-beak { stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.art .c-main { fill: var(--blue); }
.art .c-soft { fill: var(--blue-soft); }
.art .c-card { fill: var(--card); }
.art .c-honey { fill: var(--honey); }
.art .c-sage { fill: var(--sage); }
.art .c-fur { fill: var(--fur); }
.art .c-sky { fill: var(--sky); }
.art .c-beak { fill: #f2a65a; }
.art .ns { stroke: none; }
.art .ink { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art .blush { fill: #f0a9a0; opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .art .floaty { animation: float 7s ease-in-out infinite; transform-origin: 200px 200px; }
}

/* ---------- product drawings (src/art.mjs) ---------- */
.pa { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pa .f { fill: var(--blue); }
.pa .s { fill: var(--sky); }
.pa .w { fill: var(--card); }
.pa .h { fill: var(--honey); }
.pa .k { fill: var(--ink); stroke: none; }

/* ---------- design picker (sign-up and host panel) ---------- */
.design-pick { border: 0; padding: 0; margin: 4px 0 18px; }
.design-pick legend { padding: 0; margin-bottom: 8px; }
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.design-opt { position: relative; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px 7px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; }
.design-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.design-opt:has(input:checked) { border-color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--ink), 3px 3px 0 var(--blue); }
.design-opt:has(input:focus-visible) { outline: 2.5px solid var(--blue-deep); outline-offset: 2px; }
.design-thumb { width: 100%; }
.design-thumb .art { max-width: 84px; }
.design-thumb .art * { animation: none !important; }
.design-name { font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.2; }

