/* =========================================================
   Woodland Baby Shower — shared styles for invitation, registry & RSVP
   ========================================================= */

:root {
  --cream: #fbf7ef;
  --paper: #fffdf8;
  --sage: #5f8f7b;
  --sage-dark: #46705f;
  --sage-light: #d6e7df;
  --sage-mist: #edf4f0;
  --pink: #f3bfc8;
  --pink-soft: #fbe6ea;
  --peach: #f8d2bd;
  --peach-soft: #fdeee4;
  --butter: #fbdc8c;
  --butter-soft: #fdf3d6;
  --sky: #c4e2e6;
  --sky-soft: #e9f4f6;
  --lilac: #d6cdeb;
  --lilac-soft: #efeaf8;
  --ink: #2f3b4c;
  --ink-soft: #5f6978;
  --line: #e8dfd0;
  --danger: #c85a5a;
  --danger-soft: #fbe9e9;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --shadow: 0 24px 60px -36px rgba(47, 59, 76, .35);
  --shadow-sm: 0 10px 24px -18px rgba(47, 59, 76, .35);
  --font-body: 'Quicksand', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-script: 'Caveat', 'Bradley Hand', 'Segoe Script', cursive;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: var(--sage-dark); }
img { max-width: 100%; display: block; }
svg { display: inline-block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(95, 143, 123, .5); outline-offset: 3px; border-radius: 6px; }

/* ---------- soft decorative backdrop ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(circle 480px at 6% 10%, rgba(214, 231, 223, .85) 0%, rgba(214, 231, 223, 0) 100%),
    radial-gradient(circle 440px at 94% 16%, rgba(251, 230, 234, .85) 0%, rgba(251, 230, 234, 0) 100%),
    radial-gradient(circle 520px at 88% 88%, rgba(233, 244, 246, .9) 0%, rgba(233, 244, 246, 0) 100%),
    radial-gradient(circle 460px at 10% 90%, rgba(253, 243, 214, .85) 0%, rgba(253, 243, 214, 0) 100%);
}
.backdrop svg { position: absolute; opacity: .75; }
.bg-cloud { width: 150px; height: 90px; }
.bg-cloud-1 { top: 4%; left: -30px; }
.bg-cloud-2 { top: 14%; right: -40px; width: 120px; height: 72px; }
.bg-star { width: 28px; height: 28px; opacity: .85; }
.bg-star-1 { top: 26%; left: 10%; }
.bg-star-2 { top: 60%; right: 8%; width: 20px; height: 20px; }
.bg-leaf { width: 70px; height: 70px; opacity: .5; }
.bg-leaf-1 { bottom: 12%; left: 4%; transform: rotate(-30deg); }
.bg-leaf-2 { bottom: 30%; right: 3%; transform: rotate(140deg); }
@media (max-width: 720px) { .bg-leaf, .bg-star-1 { display: none; } .bg-cloud-2 { top: 8%; } }

.site-header, .page, .site-footer { position: relative; z-index: 1; }

/* ---------- header & nav ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: var(--max); width: 100%; margin: 0 auto; padding-block: 1rem;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px)); padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 46px; height: 46px; margin: -6px 0; }
.brand-text { font-family: var(--font-script); font-size: 1.7rem; font-weight: 700; color: var(--sage-dark); line-height: 1; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: .95rem;
  padding: .5rem .95rem; border-radius: var(--radius-pill); transition: background .2s, color .2s;
}
.site-nav a:hover { background: var(--sage-mist); color: var(--sage-dark); }
.site-nav a[aria-current="page"] { background: var(--sage-light); color: var(--sage-dark); }
.nav-heart svg { width: 10px; height: 10px; color: var(--pink); vertical-align: middle; }
@media (max-width: 520px) {
  .site-header { justify-content: center; padding-top: .75rem; }
  .brand { order: 1; width: 100%; justify-content: center; }
  .site-nav { order: 2; }
  .site-nav a { padding: .45rem .8rem; font-size: .9rem; }
}

/* ---------- page container ---------- */
.page { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding-block: .5rem 3rem; padding-left: max(1.25rem, env(safe-area-inset-left, 0px)); padding-right: max(1.25rem, env(safe-area-inset-right, 0px)); }
@media (max-width: 520px) { .page { padding-block: .25rem 2.5rem; padding-left: max(1rem, env(safe-area-inset-left, 0px)); padding-right: max(1rem, env(safe-area-inset-right, 0px)); } }

.loading { text-align: center; padding: 5rem 1rem; color: var(--ink-soft); }
.loading-mark { width: 44px; height: 44px; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.error-box {
  margin: 2rem auto; max-width: 560px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 1.5rem; text-align: center; color: var(--ink-soft);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: var(--radius-pill); border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .2s, border-color .2s;
  line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--sage); color: #fff; box-shadow: 0 10px 20px -12px rgba(70, 112, 95, .7); }
.btn-primary:hover { background: var(--sage-dark); }
.btn-secondary { background: var(--paper); color: var(--sage-dark); border-color: var(--sage); }
.btn-secondary:hover { background: var(--sage-mist); }
.btn-soft { background: var(--pink-soft); color: #9b4a5a; }
.btn-soft:hover { background: var(--pink); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- framed card (invitation + rsvp) ---------- */
.card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.card-framed { padding: 3.25rem 2.5rem; }
.card-framed::before {
  content: ""; position: absolute; inset: 14px; border: 2px solid var(--sage-light);
  border-radius: calc(var(--radius-lg) - 10px); pointer-events: none;
}
.corner { position: absolute; width: 118px; height: 118px; pointer-events: none; }
.corner-bl { bottom: -6px; left: -6px; }
.corner-br { bottom: -6px; right: -6px; transform: scaleX(-1); }
.corner-tl { top: -6px; left: -6px; transform: scaleY(-1); }
.corner-tr { top: -6px; right: -6px; transform: rotate(180deg); }
@media (max-width: 720px) {
  .card-framed { padding: 3rem 1.25rem 2.75rem; }
  .corner { width: 74px; height: 74px; }
}

/* ---------- invitation ---------- */
.invite { max-width: 760px; margin: 1rem auto 0; }
.invite-inner { position: relative; z-index: 1; text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; justify-items: center; }
.script { font-family: var(--font-script); font-weight: 700; color: var(--sage-dark); line-height: 1; }
.invite-kicker { font-size: 2.6rem; }
.invite-title { font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--ink); }
.invite-honoring { font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.invite-names { font-size: clamp(2rem, 6vw, 3rem); color: var(--sage-dark); }
.invite-hosts { font-family: var(--font-script); font-size: 1.45rem; color: var(--ink-soft); font-weight: 500; }
.invite-welcome { max-width: 54ch; font-size: 1.05rem; color: var(--ink-soft); }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--pink); width: min(100%, 260px); }
.divider::before, .divider::after { content: ""; flex: 1; height: 2px; background: var(--sage-light); border-radius: 2px; }
.divider svg { width: 16px; height: 16px; }

.event-info {
  display: grid; gap: .9rem; width: 100%; max-width: 520px; text-align: left;
  background: var(--sage-mist); border-radius: var(--radius-md); padding: 1.25rem 1.35rem;
}
.info-row { display: grid; grid-template-columns: 44px 1fr; gap: .85rem; align-items: start; }
.info-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--sage-dark);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.info-icon svg { width: 22px; height: 22px; }
.info-label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.info-value { font-weight: 700; font-size: 1.05rem; }
.info-sub { color: var(--ink-soft); font-size: .95rem; white-space: pre-line; }
.info-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 700; margin-top: .2rem; }
.info-link svg { width: 14px; height: 14px; }

.details { display: grid; gap: .75rem; width: 100%; max-width: 620px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); text-align: left; }
.detail { border-radius: var(--radius-md); padding: .9rem 1rem; border: 1px solid var(--line); background: var(--paper); }
.detail:nth-child(3n+1) { background: var(--butter-soft); border-color: transparent; }
.detail:nth-child(3n+2) { background: var(--pink-soft); border-color: transparent; }
.detail:nth-child(3n+3) { background: var(--sky-soft); border-color: transparent; }
.detail-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); margin-bottom: .2rem; }
.detail-text { font-size: .93rem; }

.invite .btn-row { margin-top: .25rem; }

/* meadow scene under the invitation */
.meadow { position: relative; max-width: 760px; margin: 0 auto; padding-top: 1.5rem; }
.meadow-hill { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; width: 100%; }
.meadow-row { position: relative; display: flex; align-items: flex-end; justify-content: space-around; gap: .5rem; padding: 0 1rem 1rem; }
.meadow-row svg { height: 90px; width: auto; }
.meadow-row .m-fawn { width: 150px; height: 112px; }
.meadow-row .m-fox { width: 100px; height: 100px; }
.meadow-row .m-bunny { width: 92px; height: 92px; }
.meadow-row .m-bear { width: 96px; height: 96px; }
.meadow-row .m-hedgehog { width: 100px; height: 70px; }
.meadow-row .m-mushroom { width: 44px; height: 44px; }
.meadow-row .m-tree { width: 56px; height: 94px; }
.meadow-row .m-tree-2 { width: 64px; height: 80px; }
@media (max-width: 720px) {
  .meadow-row .m-tree, .meadow-row .m-tree-2, .meadow-row .m-mushroom { display: none; }
  .meadow-row .m-fawn { width: 120px; height: 90px; }
  .meadow-row .m-fox { width: 78px; height: 78px; }
  .meadow-row .m-bunny { width: 72px; height: 72px; }
  .meadow-row .m-bear { width: 74px; height: 74px; }
  .meadow-row .m-hedgehog { width: 80px; height: 56px; }
}

/* ---------- registry ---------- */
.registry-hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); margin-top: 1rem;
  background: linear-gradient(180deg, #e8f1ec 0%, #d6e7df 100%); border: 1px solid #cfe0d7;
  padding: 2.75rem 1.5rem 2.25rem; text-align: center; box-shadow: var(--shadow);
}
.hero-scene { position: absolute; inset: auto 0 0 0; height: 150px; pointer-events: none; }
.hero-scene svg { position: absolute; bottom: -4px; }
.hero-scene .h-tree-1 { left: 2%; width: 70px; height: 118px; }
.hero-scene .h-tree-2 { left: 11%; width: 52px; height: 86px; opacity: .85; }
.hero-scene .h-tree-3 { right: 3%; width: 74px; height: 92px; }
.hero-scene .h-bush { right: 14%; width: 90px; height: 44px; }
.hero-scene .h-fawn { left: 15%; width: 120px; height: 90px; }
.hero-scene .h-owl { right: 9%; bottom: 30px; width: 60px; height: 60px; }
.hero-scene .h-mushroom { left: 9%; width: 28px; height: 28px; }
.hero-scene .h-flower { right: 26%; width: 22px; height: 22px; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; justify-items: center; max-width: 640px; margin: 0 auto; padding-bottom: 120px; }
.hero-kicker { font-family: var(--font-script); font-size: 1.6rem; color: var(--sage-dark); }
.hero-title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); color: var(--ink); }
.hero-message { color: var(--ink-soft); font-size: 1.02rem; max-width: 56ch; }
@media (max-width: 720px) {
  .hero-inner { padding-bottom: 96px; }
  .hero-scene { height: 110px; }
  .hero-scene .h-tree-2, .hero-scene .h-mushroom, .hero-scene .h-flower, .hero-scene .h-owl { display: none; }
  .hero-scene .h-tree-1 { width: 50px; height: 84px; }
  .hero-scene .h-fawn { left: 12%; width: 96px; height: 72px; }
  .hero-scene .h-tree-3 { width: 54px; height: 68px; }
  .hero-scene .h-bush { right: 12%; width: 70px; height: 34px; }
}

.cat-bar {
  display: flex; gap: .5rem; margin: 1.5rem 0 1.25rem; padding: .25rem .25rem .6rem;
  overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.cat-bar::-webkit-scrollbar { height: 6px; }
.cat-bar::-webkit-scrollbar-thumb { background: var(--sage-light); border-radius: 6px; }
.cat {
  flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: .35rem;
  min-width: 86px; padding: .6rem .5rem; border-radius: var(--radius-md); border: 2px solid transparent;
  background: transparent; font: inherit; font-weight: 700; font-size: .78rem; color: var(--ink-soft); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.cat-icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--sage-dark);
  background: var(--paper); border: 1px solid var(--line); transition: background .2s, transform .2s;
}
.cat-icon svg { width: 24px; height: 24px; }
.cat:hover .cat-icon { transform: translateY(-2px); }
.cat[aria-pressed="true"] { background: var(--paper); border-color: var(--sage-light); color: var(--sage-dark); }
.cat[aria-pressed="true"] .cat-icon { background: var(--sage-light); border-color: transparent; }
.cat[data-tone="nursery"] .cat-icon { background: var(--butter-soft); }
.cat[data-tone="feeding"] .cat-icon { background: var(--pink-soft); }
.cat[data-tone="diapers"] .cat-icon { background: var(--sky-soft); }
.cat[data-tone="clothing"] .cat-icon { background: var(--lilac-soft); }
.cat[data-tone="bath"] .cat-icon { background: var(--sky-soft); }
.cat[data-tone="toys"] .cat-icon { background: var(--peach-soft); }
.cat[data-tone="travel"] .cat-icon { background: var(--sage-mist); }
.cat-count { font-size: .7rem; font-weight: 600; color: var(--ink-soft); opacity: .8; }

.registry-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.registry-toolbar h2 { font-size: 1.15rem; }
.registry-toolbar .muted { font-size: .85rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

.items { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
@media (max-width: 720px) { .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }
@media (max-width: 360px) { .items { grid-template-columns: 1fr; } }

.item {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.item-media {
  aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--sage-mist); position: relative; overflow: hidden;
}
.item-media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; background: #fff; }
.item-media .item-ill { width: 42%; height: 42%; color: var(--sage-dark); opacity: .9; }
.item-media[data-tone="nursery"] { background: var(--butter-soft); }
.item-media[data-tone="feeding"] { background: var(--pink-soft); }
.item-media[data-tone="diapers"] { background: var(--sky-soft); }
.item-media[data-tone="clothing"] { background: var(--lilac-soft); }
.item-media[data-tone="bath"] { background: var(--sky-soft); }
.item-media[data-tone="toys"] { background: var(--peach-soft); }
.item-media[data-tone="travel"] { background: var(--sage-mist); }
.item-qty {
  position: absolute; top: .6rem; right: .6rem; background: var(--paper); color: var(--sage-dark);
  font-size: .72rem; font-weight: 700; padding: .25rem .55rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.item-body { display: flex; flex-direction: column; gap: .4rem; padding: .85rem .95rem 1rem; flex: 1; }
.item-cat { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.item-cat svg { width: 14px; height: 14px; }
.item-name { font-size: .98rem; line-height: 1.3; }
.item-price { font-weight: 700; font-size: 1.05rem; color: var(--sage-dark); }
.item-price .muted { font-weight: 600; font-size: .78rem; }
.item-note { font-size: .86rem; color: var(--ink-soft); font-style: italic; }
.item-actions { margin-top: auto; display: grid; gap: .4rem; padding-top: .5rem; }
.item-actions .btn { padding: .65rem 1rem; font-size: .9rem; }
.link-plain { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font-size: .82rem; font-weight: 700; color: var(--ink-soft); text-decoration: none; }
.link-plain:hover { color: var(--sage-dark); }
.link-plain svg { width: 14px; height: 14px; }

.empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--ink-soft); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius-md); }
.empty svg { width: 70px; height: 70px; margin-bottom: .5rem; }

.registry-foot { margin-top: 2rem; text-align: center; display: grid; gap: .9rem; justify-items: center; }
.fineprint { font-size: .8rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- rsvp ---------- */
.rsvp { max-width: 680px; margin: 1rem auto 0; }
.rsvp-head { text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; justify-items: center; margin-bottom: 1.5rem; position: relative; z-index: 1; }
.rsvp-head .script { font-size: 2.6rem; }
.rsvp-intro { color: var(--ink-soft); max-width: 48ch; }
.rsvp-deadline { font-weight: 700; color: var(--sage-dark); }
.required-note { font-size: .8rem; color: var(--ink-soft); }
.required-note .req { color: var(--danger); font-weight: 700; }

form { position: relative; z-index: 1; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label, .field legend { font-weight: 700; font-size: .9rem; }
.req { color: var(--danger); }
.field input, .field textarea, .field select {
  font: inherit; font-weight: 500; color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: 14px; padding: .75rem .95rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(95, 143, 123, .15); }
.field textarea { min-height: 110px; resize: vertical; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); background: #fffafa; }
.field-error { font-size: .82rem; color: var(--danger); font-weight: 700; min-height: 0; }
.field-error:empty { display: none; }
.hint { font-size: .8rem; color: var(--ink-soft); }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: grid; gap: .6rem; grid-template-columns: repeat(3, 1fr); margin-top: .25rem; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-label {
  display: flex; align-items: center; gap: .6rem; padding: .85rem .95rem; border-radius: 16px;
  border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: .92rem; cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}
.choice-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; transition: all .2s; }
.choice-dot svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.choice input:checked + .choice-label { border-color: var(--sage); background: var(--sage-mist); }
.choice input:checked + .choice-label .choice-dot { background: var(--sage); border-color: var(--sage); }
.choice input:checked + .choice-label .choice-dot svg { opacity: 1; }
.choice input:focus-visible + .choice-label { outline: 3px solid rgba(95, 143, 123, .5); outline-offset: 2px; }
.choice-label:hover { transform: translateY(-1px); }
.fieldset-error .choice-label { border-color: var(--danger); }

.form-alert {
  border-radius: 14px; padding: .9rem 1rem; margin-bottom: 1rem; font-size: .92rem; font-weight: 600;
  background: var(--danger-soft); color: #8a3b3b; border: 1px solid #f1c9c9;
}
.form-alert ul { margin: .4rem 0 0; padding-left: 1.2rem; font-weight: 500; }
.form-actions { margin-top: 1.5rem; display: grid; gap: .75rem; justify-items: center; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }

.success { text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; justify-items: center; position: relative; z-index: 1; }
.success-ill { width: 140px; height: 140px; }
.success h2 { font-size: 1.6rem; }
.success p { color: var(--ink-soft); max-width: 46ch; }
.success .pill { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: var(--radius-pill); background: var(--sage-light); color: var(--sage-dark); font-weight: 700; font-size: .9rem; }
.success .pill svg { width: 16px; height: 16px; }

/* ---------- footer ---------- */
.site-footer { text-align: center; padding-block: 1.5rem 2rem; padding-left: max(1rem, env(safe-area-inset-left, 0px)); padding-right: max(1rem, env(safe-area-inset-right, 0px)); color: var(--ink-soft); font-size: .88rem; }
.footer-row { display: flex; justify-content: center; gap: .9rem; margin-bottom: .5rem; }
.footer-row svg { width: 26px; height: 26px; opacity: .85; }

/* ---------- not found ---------- */
.notfound { text-align: center; padding: 4rem 1rem; display: grid; gap: 1rem; justify-items: center; }
.notfound svg { width: 120px; height: 120px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .backdrop, .site-nav, .btn-row, .site-footer, .meadow { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}
