/* ==========================================================================
   Palette + type lifted from the printed invitation.
   ========================================================================== */
:root {
  --cream:      #fdf1d6;
  --cream-deep: #f8e6bd;
  --gold:       #ffc21a;
  --gold-deep:  #e2a100;
  --gold-soft:  #ffe9a8;
  --ink:        #1a1a1a;
  --muted:      #7a6c4d;
  --white:      #ffffff;
  --line:       #ecdcb4;
  --shadow:     0 18px 44px rgba(90, 66, 0, .16);
  --shadow-sm:  0 10px 26px rgba(90, 66, 0, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Montserrat", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }
.shell { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.svg-defs { position: absolute; width: 0; height: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 60;
  background: var(--ink); color: var(--white); padding: 12px 18px;
  border-radius: 12px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { left: 12px; }
.center { margin-inline: auto; }

/* -------------------------------------------------------------- lettering */
.script-small {
  font-family: "Grand Hotel", cursive;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin: 0 0 -.18em;
  line-height: 1;
}
.script-big {
  font-family: "Grand Hotel", cursive;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.05; margin: .18em 0;
  text-align: center;
}
h1 { margin: 0; line-height: .92; text-align: center; }
.word-bumble {
  display: block;
  font-family: "Pacifico", cursive;
  font-size: clamp(4rem, 13vw, 8.4rem);
  color: var(--gold);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 6px 7px 0 var(--ink);
  letter-spacing: .01em;
}
.word-bees {
  display: block;
  font-family: "Grand Hotel", cursive;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  margin-top: -.12em;
}

/* black notched banner */
.ribbon-black {
  display: block; width: fit-content; max-width: 100%;
  margin: 26px auto; padding: 13px 46px;
  background: var(--ink); color: var(--white);
  font-weight: 800; text-transform: uppercase; letter-spacing: .16em;
  font-size: clamp(.86rem, 2vw, 1.15rem); text-align: center;
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 50%, 100% 100%, 0 100%, 22px 50%);
}
.ribbon-black.small { padding: 10px 40px; font-size: .78rem; letter-spacing: .18em; }

/* gold notched name ribbon */
.ribbon-gold {
  position: relative; z-index: 3;
  margin: -22px auto 0; width: fit-content; max-width: 100%;
  padding: 8px 34px;
  background: var(--gold); color: var(--ink);
  font-family: "Grand Hotel", cursive; font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.1; text-align: center;
  border-top: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 50%, 100% 100%, 0 100%, 18px 50%);
  box-shadow: 0 8px 18px rgba(90, 66, 0, .2);
}

/* first-birthday subtitle under "Sweet Celebration" */
.first-bday {
  margin: 2px 0 12px;
  font-weight: 800;
  font-size: clamp(.95rem, 2.4vw, 1.3rem);
  letter-spacing: .01em;
  color: var(--ink);
}

/* gold full-width strip */
.strip-gold {
  width: fit-content; max-width: 100%;
  margin: 6px auto 0; padding: 12px 40px;
  background: var(--gold); color: var(--ink);
  font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  font-size: clamp(.82rem, 2.1vw, 1.12rem); text-align: center;
  clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 50%, 100% 100%, 0 100%, 20px 50%);
}

/* --------------------------------------------------------------- buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  border: 3px solid var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--ink); }
.button:active { transform: translateY(0); box-shadow: 2px 2px 0 var(--ink); }
.button:disabled { opacity: .55; cursor: progress; transform: none; box-shadow: none; }
.button.primary { background: var(--ink); color: var(--gold); }
.button.secondary { background: var(--white); color: var(--ink); }
.button.full { width: 100%; }
.link-button {
  display: inline-block; margin-top: 12px; padding: 0; background: none; border: 0;
  font: inherit; font-weight: 800; color: var(--gold-deep); cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px;
}
.icon-button {
  background: none; border: 0; cursor: pointer; font-size: 1.05rem;
  padding: 4px 8px; border-radius: 8px; line-height: 1;
}
.icon-button:hover { background: #ffe9e9; }

/* ====================================================== invitation panel */
.invite {
  position: relative; overflow: hidden;
  padding: 30px 0 0;
  background: var(--cream);
}
.invite-inner {
  position: relative; z-index: 3;
  width: min(880px, calc(100% - 36px));
  margin-inline: auto; padding: 40px 0 30px;
  text-align: center;
}

.deco { position: absolute; pointer-events: none; }
.honeycomb { top: -30px; left: -70px; width: min(340px, 42vw); opacity: .95; }
.bunting { top: 6px; right: -20px; width: min(430px, 55vw); }
.trail { width: 210px; opacity: .8; }
.trail-left { top: 210px; left: -20px; }
.trail-right { top: 150px; right: -10px; }
.bee { width: 92px; }
.bee-1 { top: 250px; left: 30px; animation: bob 6s ease-in-out infinite; }
.bee-2 { top: 175px; right: 40px; animation: bob 7s ease-in-out infinite reverse; }
.daisy { width: 74px; opacity: .95; }
.daisy-1 { bottom: 210px; left: 40px; }
.daisy-2 { bottom: 250px; right: 50px; }
.hive-art { bottom: 34px; left: 24px; width: 130px; }
@keyframes bob { 50% { transform: translate(10px, -16px) rotate(-6deg); } }

.dot-strip {
  height: 26px; background: var(--ink);
  background-image: radial-gradient(circle, var(--white) 2.6px, transparent 3px);
  background-size: 22px 26px; background-position: center;
}

/* twins row */
.twins {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: clamp(6px, 2vw, 26px);
  margin: 6px 0 10px;
}
.twin { margin: 0; }
.photo-ring {
  position: relative; border-radius: 50%; padding: 9px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(90, 66, 0, .2);
}
.photo-ring::after {
  content: ""; position: absolute; inset: 4px;
  border: 3px dashed var(--gold); border-radius: 50%;
}
.photo-ring img {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; object-position: center;
}
.one-badge {
  position: relative; display: grid; place-items: center;
  width: clamp(100px, 20vw, 200px); aspect-ratio: 1;
  filter: drop-shadow(0 14px 26px rgba(90, 66, 0, .3));
}
.one-badge > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.one-badge span {
  position: relative;
  font-family: "Grand Hotel", cursive; color: var(--gold);
  font-size: clamp(2.1rem, 5.6vw, 4.6rem); line-height: 1;
  transform: rotate(-5deg) translateY(-4%);
  text-shadow: 0 2px 0 var(--gold-deep);
}
.badge-heart {
  position: absolute; bottom: 16%; color: var(--gold);
  font-size: clamp(.8rem, 1.8vw, 1.3rem); font-style: normal;
}

/* facts row */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin: 34px auto 30px; max-width: 780px;
}
.fact { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 6px; }
.fact + .fact { border-left: 4px dotted var(--ink); }
.fact svg { width: 46px; height: 46px; flex: none; }
.fact p { margin: 0; text-align: left; }
.fact-date { line-height: 1; }
.fact-date span { display: block; font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; }
.fact-date strong { display: block; font-size: 1.9rem; font-weight: 900; line-height: 1; text-transform: uppercase; }
.fact-date em { font-style: normal; font-weight: 800; color: var(--gold-deep); font-size: 1.15rem; }
.fact-time { font-size: 1.35rem; font-weight: 700; }
.fact-place { font-weight: 700; text-transform: uppercase; font-size: .86rem; line-height: 1.5; }

.invite-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 34px; }

/* countdown */
.countdown-wrap { padding-bottom: 40px; }
.countdown { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.countdown div {
  min-width: 92px; padding: 12px 8px;
  background: var(--white); border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 4px 4px 0 var(--gold);
}
.countdown strong {
  display: block; font-size: 2rem; font-weight: 900; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown span { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.countdown-note { margin: 14px 0 0; font-weight: 700; }

/* width/height must be explicit: a positioned <canvas> otherwise sizes itself
   from its intrinsic buffer width and pushes a horizontal scrollbar. */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 50; pointer-events: none; }
/* ambient falling daisies — drift above content (so they show over the opaque
   sections too) but stay below the sticky RSVP bar and the burst confetti. */
.petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

/* ================================================================ details */
.details { padding: 74px 0; background: var(--white); }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.card {
  padding: 30px 26px; text-align: center; background: var(--cream);
  border: 3px solid var(--ink); border-radius: 24px; box-shadow: 6px 6px 0 var(--gold);
}
.card-icon { width: 54px; height: 54px; margin: 0 auto 12px; display: block; }
.card h3 { font-size: 1.3rem; font-weight: 800; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; font-weight: 600; }
.map-frame {
  margin-top: 26px; border: 3px solid var(--ink); border-radius: 24px;
  overflow: hidden; box-shadow: 6px 6px 0 var(--gold); background: var(--white);
}
.map-frame iframe { width: 100%; height: 330px; border: 0; display: block; }

/* ================================================================= poster */
.poster-section { padding: 74px 0; background: var(--cream-deep); }
.poster-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 54px; }
.poster-copy .ribbon-black, .poster-copy .script-big { margin-inline: 0; text-align: left; }
.poster-copy p { color: #6a5f3f; line-height: 1.8; font-weight: 600; }
.check-list { list-style: none; padding: 0; margin-bottom: 26px; }
.check-list li { margin: 13px 0; display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.check-list li::before {
  content: "✓"; flex: none; display: inline-grid; place-items: center;
  width: 26px; height: 26px; background: var(--gold); border: 2px solid var(--ink);
  border-radius: 50%; font-weight: 900; font-size: .8rem;
}
.poster-frame {
  margin: 0; padding: 14px; background: var(--white);
  border: 3px solid var(--ink); border-radius: 26px;
  box-shadow: 10px 10px 0 var(--gold); transform: rotate(1deg);
}
.poster-frame img { border-radius: 14px; }

/* =================================================================== rsvp */
.rsvp-section {
  padding: 74px 0; position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,194,26,.22) 0 24px, transparent 25px) 0 0/86px 76px,
    var(--cream);
}
.rsvp-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: start; margin-top: 28px; }
.rsvp-side { position: sticky; top: 26px; }
.side-text { line-height: 1.8; font-weight: 600; color: #5f5340; }
.attendance-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
.attendance-stats div {
  padding: 16px 8px; background: var(--ink); border-radius: 16px; text-align: center;
}
.attendance-stats strong { display: block; color: var(--gold); font-size: 1.9rem; font-weight: 900; line-height: 1.1; }
.attendance-stats span { font-size: .68rem; color: #f4e9cf; font-weight: 700; }
.storage-note {
  margin-top: 18px; padding: 12px 14px; border-radius: 14px; font-size: .82rem; font-weight: 600;
  background: var(--gold-soft); border: 2px solid var(--gold); color: #5a4400;
}
.bee-side { position: static; display: block; width: 84px; margin: 22px auto 0; }

.rsvp-form {
  background: var(--white); padding: 30px;
  border: 3px solid var(--ink); border-radius: 26px; box-shadow: 8px 8px 0 var(--gold);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label, legend { display: block; font-weight: 800; font-size: .88rem; }
.optional { font-weight: 500; color: var(--muted); }
input, textarea {
  width: 100%; margin-top: 8px; padding: 14px;
  border: 2px solid var(--line); border-radius: 12px;
  font: inherit; font-weight: 600; background: #fffdf6; color: inherit;
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 3px solid rgba(255,194,26,.45); border-color: var(--gold-deep); }
input[aria-invalid="true"] { border-color: #c0392b; background: #fff5f4; }
fieldset { border: 0; padding: 0; margin: 18px 0; }
.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-card span {
  display: block; padding: 16px; border: 2px solid var(--line); border-radius: 14px;
  background: var(--white); font-weight: 700; transition: .15s ease;
}
.radio-card:hover span { border-color: var(--gold); }
.radio-card input:checked + span { border-color: var(--ink); background: var(--gold-soft); box-shadow: 4px 4px 0 var(--gold); }
.radio-card input:focus-visible + span { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.rsvp-form > label { display: block; margin: 18px 0; }
.attending-only[hidden] { display: none; }

.stepper { display: grid; grid-template-columns: 46px 1fr 46px; gap: 8px; margin-top: 8px; }
.stepper input { margin-top: 0; text-align: center; font-weight: 800; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step {
  border: 2px solid var(--line); background: var(--gold-soft); border-radius: 12px;
  font-size: 1.3rem; font-weight: 900; cursor: pointer; line-height: 1;
}
.step:hover { background: var(--gold); }

.field-error { display: block; margin-top: 6px; color: #c0392b; font-size: .8rem; font-style: normal; font-weight: 700; }
.lookup-note {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; font-size: .86rem; font-weight: 700;
  background: var(--gold-soft); border: 2px solid var(--gold);
}
.privacy-note { text-align: center; color: var(--muted); font-size: .74rem; margin-bottom: 4px; font-weight: 600; }
.form-message { min-height: 24px; text-align: center; font-weight: 800; }
.form-message.ok { color: #1c6f30; }
.form-message.bad { color: #c0392b; }

/* ================================================================== host */
.admin-section { padding: 20px 0 80px; }
details { background: var(--white); border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; }
summary { cursor: pointer; padding: 20px 22px; font-weight: 800; }
.admin-login { display: flex; gap: 10px; padding: 0 22px 22px; flex-wrap: wrap; align-items: center; }
.admin-login input { max-width: 260px; margin: 0; }
.admin-login .field-error { flex-basis: 100%; margin: 0; }
.admin-panel { padding: 0 22px 22px; }
.hidden { display: none !important; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.admin-toolbar h2 { margin: 0 0 4px; font-size: 1.5rem; }
.admin-toolbar p { margin: 0; color: var(--muted); font-weight: 600; font-size: .9rem; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.search { margin: 20px 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { padding: 13px 12px; text-align: left; border-bottom: 2px solid var(--line); vertical-align: top; font-size: .9rem; }
th { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
td small { color: var(--muted); }
.status-yes { color: #1c6f30; font-weight: 800; }
.status-no { color: #9a2020; font-weight: 800; }

/* ================================================================ footer */
footer { position: relative; background: var(--cream); padding: 60px 0 0; overflow: hidden; }
.daisy-3 { top: 30px; left: 3%; width: 62px; }
.bee-3 { bottom: 70px; right: 4%; width: 90px; animation: bob 7s ease-in-out infinite; }
.footer-grid { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; align-items: stretch; }
.scallop-card {
  flex: 1 1 260px; max-width: 360px;
  background: var(--white); border-radius: 30px; padding: 24px 26px; text-align: center;
  box-shadow: var(--shadow-sm); position: relative;
}
.scallop-card::after {
  content: ""; position: absolute; inset: 8px;
  border: 3px dotted var(--gold); border-radius: 22px; pointer-events: none;
}
.scallop-card.dark { background: var(--ink); color: var(--white); display: grid; place-items: center; }
.scallop-card.dark::after { border-color: var(--white); }
.scallop-card.dark p { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; line-height: 1.7; }
.scallop-card.dark strong { color: var(--gold); font-size: 1.3rem; }
.rsvp-label { margin: 0 0 10px; font-weight: 900; letter-spacing: .18em; font-size: 1.1rem; }
#footerContacts { display: grid; gap: 6px; font-weight: 700; }
#footerContacts a { text-decoration: none; border-bottom: 2px solid var(--gold); }
.footer-when { text-align: center; font-weight: 700; margin: 34px 0 26px; color: var(--muted); font-size: .88rem; }

.sticky-rsvp { display: none; }

/* ========================================================== responsive */
@media (max-width: 900px) {
  .poster-grid, .rsvp-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .rsvp-side { position: static; }
  .hive-art, .daisy-1, .daisy-2 { display: none; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1120px); }
  .invite-inner { padding-top: 22px; width: calc(100% - 24px); }
  .honeycomb { width: 190px; top: -20px; left: -50px; }
  .bunting { width: 230px; top: 0; right: -30px; }
  .trail, .bee-1, .bee-2 { display: none; }
  .word-bumble { -webkit-text-stroke-width: 2px; text-shadow: 4px 5px 0 var(--ink); }
  .ribbon-black { padding: 10px 30px; letter-spacing: .12em; }
  .ribbon-gold { padding: 6px 22px; }
  .twins { gap: 2px; }
  .facts { grid-template-columns: 1fr; gap: 0; max-width: 320px; }
  .fact { padding: 14px 0; justify-content: flex-start; }
  .fact + .fact { border-left: 0; border-top: 4px dotted var(--ink); }
  .countdown div { min-width: 68px; padding: 10px 4px; border-radius: 14px; border-width: 2px; }
  .countdown strong { font-size: 1.5rem; }
  .details, .poster-section, .rsvp-section { padding: 52px 0; }
  .form-row, .radio-group { grid-template-columns: 1fr; }
  .rsvp-form { padding: 20px; }
  .attendance-stats { gap: 6px; }
  .attendance-stats strong { font-size: 1.4rem; }
  .attendance-stats span { font-size: .6rem; }
  .map-frame iframe { height: 260px; }
  .bee-3 { display: none; }

  .sticky-rsvp {
    display: block; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px;
    padding: 15px; text-align: center; text-decoration: none; font-weight: 800;
    background: var(--ink); color: var(--gold); border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0,0,0,.3);
  }
  body { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
