/* =====================================================
   Avani & Alex — regal emerald & gold
   Palette:
     --emerald  #14523F   deep emerald
     --jade #1E6B50   jade accent
     --gold    #C9A227   metallic gold
     --pale    #E8D9A0   pale gold
     --ivory   #FBF7EE   background
     --ink     #2B2118   text
   ===================================================== */

:root {
  --emerald: #14523F;
  --emerald-deep: #0B3B2C;
  --jade: #1E6B50;
  --gold: #C9A227;
  --pale: #E8D9A0;
  --ivory: #FBF7EE;
  --ink: #2B2118;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 1.05rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--emerald); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; color: var(--emerald); margin-bottom: .5rem; }
p + p { margin-top: .9rem; }
a { color: var(--jade); }
img { display: block; max-width: 100%; }

.center { text-align: center; }
.light { color: var(--pale); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.4rem; }
.wrap.narrow { max-width: 780px; }
.fine { font-size: .85rem; opacity: .75; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.eyebrow.gold { color: var(--gold); }
.eyebrow.emerald { color: var(--jade); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .95rem 2.2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-gold {
  background: var(--gold);
  color: var(--emerald-deep);
  border-color: var(--gold);
}
.btn-gold:hover, .btn-gold:focus-visible { background: transparent; color: var(--pale); border-color: var(--pale); }
.btn-emerald {
  background: var(--emerald);
  color: var(--ivory);
  border-color: var(--emerald);
}
.btn-emerald:hover, .btn-emerald:focus-visible { background: transparent; color: var(--emerald); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- password gate ---------- */
body.locked { overflow: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1.4rem;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(201,162,39,.18), transparent 55%),
    linear-gradient(180deg, var(--emerald-deep), var(--emerald) 60%, var(--emerald-deep));
}
body:not(.locked) .gate { display: none; }
.gate-card {
  width: min(560px, 100%);
  text-align: center;
  border: 1px solid rgba(201,162,39,.75);
  outline: 1px solid rgba(201,162,39,.35);
  outline-offset: 7px;
  padding: clamp(2.2rem, 6vw, 3.5rem) 1.5rem;
  color: var(--ivory);
}
.gate-monogram { height: clamp(80px, 12vw, 120px); margin: 0 auto 1.2rem; }
.gate-card .eyebrow { font-size: 1rem; letter-spacing: .4em; }
.amp-inline { font-family: var(--serif); font-style: italic; text-transform: none; }
.gate-date {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--pale);
}
.gate-note { font-size: .95rem; color: var(--pale); margin-bottom: 1.2rem; }
.gate-form { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.gate-form input {
  font-family: var(--sans); font-weight: 300; font-size: 1rem;
  padding: .9rem 1.1rem; min-width: min(260px, 100%);
  border: 1px solid rgba(201,162,39,.6); background: rgba(251,247,238,.06);
  color: var(--ivory); text-align: center;
}
.gate-form input::placeholder { color: rgba(232,217,160,.55); }
.gate-form input:focus-visible { border-color: var(--gold); }
.gate-msg { color: var(--pale); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1.4rem;
  background: rgba(11, 59, 44, .96);
  border-bottom: 1px solid rgba(201, 162, 39, .35);
}
.nav-brand img { height: 34px; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a {
  color: var(--pale); text-decoration: none;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.nav-cta {
  border: 1px solid var(--gold); color: var(--gold); padding: .45rem 1.1rem;
}
.nav-links a.nav-cta:hover { background: var(--gold); color: var(--emerald-deep); }
.nav-toggle {
  display: none; background: none; border: none; color: var(--gold);
  font-size: 1.5rem; cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 50% -20%, rgba(201,162,39,.18), transparent 55%),
    linear-gradient(180deg, var(--emerald-deep), var(--emerald) 60%, var(--emerald-deep));
  padding: clamp(2.5rem, 7vw, 5rem) 1.4rem;
  text-align: center;
}
.hero-frame {
  max-width: 860px; margin: 0 auto;
  border: 1px solid rgba(201,162,39,.75);
  outline: 1px solid rgba(201,162,39,.35);
  outline-offset: 7px;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
}
.hero-monogram { height: clamp(90px, 14vw, 140px); margin: 0 auto 1.6rem; }
.hero h1 {
  font-size: clamp(3rem, 9vw, 5.8rem);
  color: var(--ivory);
  font-weight: 500;
  letter-spacing: .015em;
}
.hero h1 .amp { font-style: italic; color: var(--gold); font-weight: 400; }
.hero-invite {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem); color: var(--pale);
  margin-top: .4rem; letter-spacing: .03em;
}
.hero-rule {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  margin: 1.4rem auto;
}
.hero-rule span { display: block; width: 90px; height: 1px; background: var(--gold); opacity: .8; }
.hero-rule em { color: var(--gold); font-style: normal; font-size: .8rem; }
.hero-date {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--pale);
}
.hero-venue {
  font-size: .82rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin: .5rem 0 2rem;
}

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-ivory { background: var(--ivory); }
.section-ivory.bordered { border-top: 1px solid rgba(17,64,49,.14); }
.section-emerald {
  background: linear-gradient(180deg, var(--emerald-deep), var(--emerald));
  color: var(--ivory);
}
.section-emerald h2 { color: var(--pale); }

.two-col {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.two-col.reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.two-col.reverse .framed-photo { order: 2; }
.two-col.reverse .col-text { order: 1; }

.framed-photo {
  border: 1px solid var(--gold);
  outline: 1px solid rgba(201,162,39,.4);
  outline-offset: 6px;
  padding: 10px;
  background: #fff;
  transform: rotate(-1.2deg);
}
.framed-photo img { width: 100%; }
.framed-photo.small { max-width: 380px; margin: 0 auto; transform: rotate(1.2deg); }

.lede { max-width: 620px; margin-left: auto; margin-right: auto; }
#weekend .btn { margin-top: 1.6rem; }

/* ---------- gallery ---------- */
.gallery {
  margin-top: 2.2rem;
  columns: 3; column-gap: 14px;
}
.gallery img {
  width: 100%; margin-bottom: 14px;
  border: 1px solid rgba(201,162,39,.55);
  padding: 6px; background: rgba(251,247,238,.06);
}

/* ---------- RSVP invitation card ---------- */
.invite-card {
  position: relative;
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid var(--gold);
  outline: 1px solid rgba(201,162,39,.45);
  outline-offset: 7px;
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}
.card-monogram {
  position: absolute; right: -30px; bottom: -40px;
  height: 200px; opacity: .07; pointer-events: none;
}
.lookup-form {
  display: flex; gap: .8rem; justify-content: center;
  margin-top: 1.6rem; flex-wrap: wrap;
}
.lookup-form input {
  font-family: var(--sans); font-weight: 300; font-size: 1rem;
  padding: .9rem 1.1rem; min-width: min(320px, 100%);
  border: 1px solid rgba(17,64,49,.4); background: #fff; color: var(--ink);
}
.lookup-form input:focus-visible { border-color: var(--emerald); }
.form-msg { text-align: center; margin-top: 1rem; min-height: 1.4em; color: var(--jade); }

/* party chooser (duplicate names) */
.choice-list { margin: 1.4rem 0; display: grid; gap: .7rem; }
.choice-item {
  display: flex; gap: .9rem; align-items: center; justify-content: space-between;
  width: 100%; text-align: left;
  font-family: var(--sans); font-weight: 300; font-size: 1rem; color: var(--ink);
  border: 1px solid rgba(201,162,39,.6); border-left: 4px solid var(--gold);
  background: #fff; padding: 1rem 1.1rem; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.choice-item:hover, .choice-item:focus-visible {
  border-color: var(--emerald); background: rgba(20,82,63,.04);
}
.choice-item strong { color: var(--emerald); font-weight: 500; }
.choice-go {
  flex-shrink: 0; font-size: .75rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--jade); white-space: nowrap;
}
.btn-ghost {
  background: transparent; color: var(--emerald);
  border-color: rgba(17,64,49,.45); margin-left: .6rem;
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--emerald); }

/* party header */
.party-name {
  font-family: var(--serif); font-size: 1.7rem; color: var(--emerald);
  text-align: center; margin: 1.6rem 0 .2rem;
}
.party-sub { text-align: center; font-size: .9rem; opacity: .8; margin-bottom: 1.8rem; }

/* event cards */
.event-card {
  border: 1px solid rgba(201,162,39,.6);
  border-left: 4px solid var(--gold);
  background: #fff;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.6rem;
}
.event-card h4 {
  font-family: var(--serif); font-size: 1.45rem; color: var(--emerald);
  margin-bottom: .15rem;
}
.event-when {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--jade); margin-bottom: .6rem;
}
.event-meta { font-size: .95rem; }
.event-meta a { color: var(--jade); }
.event-attire { font-style: italic; font-family: var(--serif); font-size: 1.05rem; margin-top: .5rem; }
.event-details { margin-top: .5rem; font-size: .95rem; }

/* per-guest rows within an event */
.guest-rows { margin-top: 1rem; border-top: 1px dashed rgba(17,64,49,.25); padding-top: .9rem; }
.guest-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .35rem 0; flex-wrap: wrap;
}
.guest-row .g-name { font-weight: 400; }
.pill-group { display: flex; gap: .5rem; }
.pill {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .4rem 1rem; cursor: pointer;
  border: 1px solid rgba(17,64,49,.4); background: #fff; color: var(--ink);
  transition: background .2s, color .2s;
}
.pill[aria-pressed="true"].yes { background: var(--emerald); color: var(--ivory); border-color: var(--emerald); }
.pill[aria-pressed="true"].no  { background: #8a8378; color: #fff; border-color: #8a8378; }

/* meals */
.meal-block { margin-top: 2rem; }
.meal-block h4 { font-family: var(--serif); font-size: 1.3rem; color: var(--emerald); margin-bottom: .6rem; }
.menu-list { list-style: none; margin: 1rem 0 1.4rem; }
.menu-list li {
  padding: .8rem 1rem;
  border: 1px solid rgba(201,162,39,.55);
  border-left: 4px solid var(--gold);
  background: #fff;
  margin-bottom: .6rem;
}
.menu-entree {
  display: block; font-family: var(--serif); font-size: 1.15rem;
  color: var(--emerald);
}
.menu-pairing { display: block; font-size: .9rem; font-style: italic; opacity: .85; }
.meal-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .3rem 0; flex-wrap: wrap; }
.meal-row select {
  font-family: var(--sans); font-size: .95rem; padding: .55rem .8rem;
  border: 1px solid rgba(17,64,49,.4); background: #fff; color: var(--ink);
}
.note-block { margin-top: 1.6rem; }
.note-block label { display: block; font-size: .9rem; margin-bottom: .4rem; }
.note-block textarea {
  width: 100%; min-height: 80px; padding: .8rem;
  font-family: var(--sans); font-weight: 300; font-size: .95rem;
  border: 1px solid rgba(17,64,49,.4); background: #fff; color: var(--ink);
  resize: vertical;
}
.submit-row { text-align: center; margin-top: 2rem; }
.rsvp-help { margin-top: 1.4rem; font-size: .9rem; color: var(--pale); }
.rsvp-help a { color: var(--gold); }

/* ---------- attire ---------- */
.attire-grid, .travel-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem; margin-top: 2.2rem;
}
.attire-grid { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin-left: auto; margin-right: auto; }
.attire-card, .travel-card {
  background: #fff;
  border: 1px solid rgba(201,162,39,.55);
  border-top: 4px solid var(--gold);
  padding: 1.8rem 1.6rem;
}
.attire-tag {
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--jade); margin-bottom: .7rem;
}
.travel-list { list-style: none; }
.travel-list li { padding: .45rem 0; border-bottom: 1px dashed rgba(17,64,49,.18); }
.travel-list li:last-child { border-bottom: none; }
.travel-card .btn { margin-top: 1rem; }
.redline {
  background: #BF0D3E; color: #fff; padding: .05rem .5rem;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- footer ---------- */
.footer {
  background: var(--emerald-deep); color: var(--pale);
  text-align: center; padding: 3.5rem 1.4rem;
  border-top: 1px solid rgba(201,162,39,.4);
}
.footer img { height: 70px; margin: 0 auto 1rem; opacity: .9; }
.footer-names { font-family: var(--serif); font-size: 1.8rem; color: var(--ivory); }
.footer-date { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: .4rem 0 1rem; }

/* ---------- loading spinner ---------- */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(17,64,49,.25); border-top-color: var(--emerald);
  border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .gallery { columns: 2; }
  .attire-grid, .travel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .two-col.reverse .framed-photo { order: 1; }
  .two-col.reverse .col-text { order: 2; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--emerald-deep);
    border-bottom: 1px solid rgba(201,162,39,.4); padding: .5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem 1.4rem; }
  .nav-links a.nav-cta { border: none; padding: .7rem 1.4rem; }
}
@media (max-width: 520px) {
  .gallery { columns: 1; }
}
