/* =========================================================================
   Ann's 80th — "Eight Decades" theme
   Palette:  plum #8E1359 · blush #F4E2EB · mauve #AE5685
   Display:  'Playfair Display'   Body: 'Josefin Sans'
   ========================================================================= */

:root{
  --plum:     #8E1359;
  --plum-dk:  #630D3F;
  --mauve:    #AE5685;
  --blush:    #F4E2EB;
  --blush-2:  #ECD2DF;
  --ink:      #3B1D2E;
  --paper:    #FFFBFA;
  --gold:     #C7A25B;
  --shadow:   rgba(142, 19, 89, 0.14);
  --radius:   16px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--blush);
  background-image:
    radial-gradient(circle at 10% 4%, rgba(142,19,89,0.06) 0, transparent 42%),
    radial-gradient(circle at 94% 92%, rgba(174,86,133,0.10) 0, transparent 45%);
  color: var(--ink);
  font-family: 'Josefin Sans', 'Trebuchet MS', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap{
  max-width: 720px;
  margin: 0 auto;
  padding: 34px 20px 64px;
}

/* ---------- Header / masthead ------------------------------------------ */
.masthead{
  position: relative;
  text-align: center;
  padding: 24px 20px 30px;
  margin-bottom: 26px;
}

.eyebrow{
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--mauve);
}

h1.display, h2.display{
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 600;
  font-style: normal;
  color: var(--plum);
  margin: 10px 0 6px;
  line-height: 1.2;
}
h1.display{ font-size: clamp(32px, 7vw, 48px); }
h2.display{ font-size: clamp(21px, 5vw, 27px); }

.subtitle{
  font-size: 16.5px;
  color: var(--ink);
  opacity: .78;
  max-width: 46ch;
  margin: 0 auto;
}

/* ---------- Card panel --------------------------------------------------- */
.card{
  background: var(--paper);
  border: 1px solid var(--blush-2);
  border-radius: var(--radius);
  padding: 30px 26px;
  margin-bottom: 22px;
  box-shadow: 0 10px 26px var(--shadow);
  position: relative;
}
.card + .card{ margin-top: 26px; }

.ticket-notch::before, .ticket-notch::after{
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  background: var(--blush);
  border: 1px solid var(--blush-2);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.ticket-notch::before{ left: -10px; }
.ticket-notch::after{ right: -10px; }

/* ---------- Forms -------------------------------------------------------- */
label{
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mauve);
  margin: 18px 0 6px;
}
label:first-of-type{ margin-top: 0; }

input[type=text], input[type=tel], input[type=email], input[type=number],
textarea, select{
  width: 100%;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 17px;
  padding: 12px 14px;
  border: 1px solid var(--blush-2);
  border-radius: 10px;
  background: var(--blush);
  color: var(--ink);
}
textarea{ resize: vertical; min-height: 90px; }

input:focus, textarea:focus, select:focus, button:focus, a.btn:focus{
  outline: 2px solid var(--mauve);
  outline-offset: 2px;
}

.hint{
  font-size: 13.5px;
  color: var(--ink);
  opacity: .6;
  margin-top: 4px;
  font-style: italic;
}

.field-row{ display: flex; gap: 16px; flex-wrap: wrap; }
.field-row > div{ flex: 1 1 200px; }

/* Attending / declined toggle */
.rsvp-toggle{
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.toggle-option{
  flex: 1 1 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--blush-2);
  border-radius: 10px;
  padding: 12px 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
  background: var(--blush);
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.toggle-option input{
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.toggle-option:has(input:checked),
.toggle-option.active{
  background: var(--plum);
  border-color: var(--plum);
  color: var(--paper);
}
.toggle-option:has(input:focus-visible){
  outline: 2px solid var(--mauve);
  outline-offset: 2px;
}

/* Party-size stepper */
.stepper{
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.stepper button{
  width: 46px;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  background: var(--plum);
  color: var(--paper);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.stepper input{ text-align: center; }

/* ---------- Buttons -------------------------------------------------------- */
.btn{
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--paper);
  background: var(--plum);
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 12px 24px var(--shadow); }
.btn:active{ transform: translateY(0); box-shadow: 0 4px 10px var(--shadow); }
.btn.secondary{ background: var(--mauve); }
.btn.gold{ background: var(--gold); color: var(--ink); }
.btn-row{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.btn.block{ display:block; width: 100%; }

.error-box{
  background: var(--blush);
  border: 1px solid var(--plum);
  color: var(--plum-dk);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  margin-bottom: 18px;
}

/* ---------- Map ------------------------------------------------------------ */
#venueMap{
  width: 100%;
  height: 260px;
  border-radius: 12px;
  border: 1px solid var(--blush-2);
  margin: 12px 0 4px;
}

/* ---------- Then & Now (signature element) ---------------------------------
   Two aligned columns — 1946 always on the left, 2026 always on the right —
   so each row reads as a clean side-by-side comparison. */
.timecapsule{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 22px;
  margin: 20px 0 4px;
}
.timecapsule::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 40px;
  bottom: 4px;
  width: 1px;
  background: var(--blush-2);
}
.tc-col-head{
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--blush-2);
}
.tc-then.tc-col-head{ color: var(--plum); }
.tc-now.tc-col-head{ color: var(--mauve); }

.tc-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--blush);
}
.tc-item svg{ width: 38px; height: 38px; flex: 0 0 38px; }
.tc-label{
  font-size: 13px;
  line-height: 1.3;
}
.tc-then svg, .tc-then .tc-label{ color: var(--plum); }
.tc-now svg, .tc-now .tc-label{ color: var(--mauve); }

@media (max-width: 420px){
  .tc-item{ padding: 10px 4px; gap: 8px; }
  .tc-item svg{ width: 30px; height: 30px; flex-basis: 30px; }
  .tc-label{ font-size: 11.5px; }
}

/* ---------- Table (attendee list) ------------------------------------------ */
.table-wrap{ overflow-x: auto; }
table.roster{
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  background: var(--paper);
}
table.roster th{
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  background: var(--plum);
  color: var(--paper);
  padding: 10px 12px;
}
table.roster td{
  padding: 10px 12px;
  border-bottom: 1px solid var(--blush-2);
  vertical-align: top;
}
table.roster tr:nth-child(even) td{ background: rgba(174,86,133,0.05); }
table.roster tfoot td{
  font-weight: bold;
  border-top: 2px solid var(--plum);
  background: var(--blush);
  color: var(--plum-dk);
}

.pill{
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  background: var(--mauve);
  color: var(--paper);
}

/* ---------- Misc ------------------------------------------------------------ */
.center{ text-align: center; }
.footer-note{
  text-align: center;
  font-size: 13px;
  opacity: .55;
  margin-top: 30px;
  font-style: italic;
}
a{ color: var(--plum); }
hr.divider{
  border: none;
  border-top: 1px solid var(--blush-2);
  margin: 24px 0;
}
.checklist{ padding-left: 20px; }
.checklist li{ margin-bottom: 6px; }

.detail-row{
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--blush-2);
}
.detail-row:last-child{ border-bottom: none; }
.detail-row .k{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--mauve);
  flex: 0 0 110px;
  padding-top: 2px;
}
.detail-row .v{ flex: 1; font-size: 16.5px; }
