:root {
  --cream: #f1ede4;
  --cream-2: #f6f2ea;
  --olive: #66570e;
  --olive-deep: #4a4110;
  --gold: #b09c2c;
  --gold-soft: #cdbb5a;
  --wine: #572530;
  --rose: #b44650;
  --ink: #5a4c0c;

  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --sans: "Josefin Sans", "Futura", "Century Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0 0 1em; }

.caps { text-transform: uppercase; letter-spacing: .14em; font-weight: 400; font-size: .86rem; }
.caps.small { font-size: .78rem; }
.script { font-family: var(--script); text-transform: none; letter-spacing: 0; font-weight: 400; }

/* ---------- Welcome screen ---------- */
.splash {
  position: fixed; inset: 0; z-index: 50;
  background: #3b3511 url("/img/cover.jpg") center 50% / cover no-repeat;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 7vh 16px 9vh;
  transition: opacity .9s ease, visibility .9s;
}
.splash::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(30, 26, 6, .45) 100%);
  pointer-events: none;
}
.splash.gone { opacity: 0; visibility: hidden; }
.splash-date, .splash-enter { position: relative; color: var(--cream); text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.splash-date { font-size: .95rem; letter-spacing: .35em; margin: 0; }
.splash-enter {
  font-family: var(--sans); font-size: .85rem; letter-spacing: .3em; text-transform: uppercase;
  background: rgba(40, 34, 8, .35); border: 1px solid rgba(241, 237, 228, .7);
  padding: 14px 28px; cursor: pointer; backdrop-filter: blur(2px);
  transition: background .3s;
}
.splash-enter:hover, .splash-enter:focus-visible { background: rgba(40, 34, 8, .6); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 24px; height: 60px;
  background: var(--olive); color: var(--cream);
}
.nav-mono { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; letter-spacing: .04em; }
.nav-mono span { font-family: var(--script); margin: 0 .12em; color: var(--gold-soft); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none; text-transform: uppercase; letter-spacing: .2em; font-size: .74rem;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .25s;
}
.nav-links a:hover, .nav-links a:focus-visible { border-color: var(--gold-soft); }
.nav-rsvp { color: var(--gold-soft); }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(241,237,228,.6); color: var(--cream);
  font-family: var(--sans); letter-spacing: .2em; text-transform: uppercase; font-size: .72rem;
  padding: 8px 12px; cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--olive);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { padding: 14px 24px; border-top: 1px solid rgba(241,237,228,.12); }
}

/* ---------- Invitation hero ---------- */
.hero { padding: 48px 16px 64px; display: flex; justify-content: center; }
.invite {
  position: relative; width: min(720px, 100%);
  text-align: center; color: var(--olive);
  padding: clamp(96px, 16vw, 140px) clamp(20px, 6vw, 72px) clamp(80px, 12vw, 120px);
  background: var(--cream);
  /* triple frame like the printed invitation */
  border: 4px solid var(--olive);
  outline: 1px solid var(--olive); outline-offset: -14px;
  box-shadow:
    inset 0 0 0 10px var(--cream),
    inset 0 0 0 12px var(--gold),
    inset 0 0 0 20px var(--cream),
    inset 0 0 0 22px var(--rose);
}
.corner { position: absolute; width: clamp(110px, 24%, 190px); }
.corner.tl { top: 34px; left: 34px; }
.corner.tr { top: 34px; right: 34px; transform: scaleX(-1); }
.corner.bl { bottom: 34px; left: 34px; transform: scaleY(-1); }
.corner.br { bottom: 34px; right: 34px; transform: scale(-1, -1); }
.names {
  font-size: clamp(2.3rem, 8.4vw, 4.6rem); line-height: 1.02; text-transform: uppercase;
  letter-spacing: -.01em; margin: .45em 0 .55em;
}
.names span { font-family: var(--serif); }
.date { font-size: clamp(2rem, 6vw, 3rem); margin: .4em 0 .25em; }
.date sup { font-size: .5em; }

.countdown { display: flex; justify-content: center; gap: clamp(18px, 5vw, 40px); margin: 28px 0 36px; }
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.countdown b { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; }
.countdown span { text-transform: uppercase; letter-spacing: .2em; font-size: .66rem; margin-top: 6px; }

.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--sans); font-weight: 400; font-size: .8rem; letter-spacing: .26em; text-transform: uppercase;
  text-decoration: none; color: var(--cream); background: var(--olive);
  border: 1px solid var(--olive); padding: 15px 30px;
  transition: background .25s, color .25s;
}
.btn:hover, .btn:focus-visible { background: var(--olive-deep); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- Band divider (from the belly band) ---------- */
.band { height: 60px; background: #66570e url("/img/band.png") center / auto 60px repeat-x; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 110px) 16px; text-align: center; }
.section h2 { font-size: clamp(2.4rem, 7vw, 3.8rem); text-transform: uppercase; line-height: 1; margin-bottom: .6em; }
.kicker { font-size: clamp(2rem, 5vw, 2.8rem); line-height: .6; margin: 0; }
.narrow { max-width: 620px; margin: 0 auto; }
.dark { background: var(--olive); color: var(--cream); }
.dark .btn { background: var(--cream); color: var(--olive); border-color: var(--cream); }
.dark .btn:hover { background: #fff; }
.dark .btn.ghost { background: transparent; color: var(--cream); }
.wine { background: var(--wine); }
.ornament { width: 150px; margin: 0 auto 36px; }
.ornament.small { width: 90px; margin: 26px auto; }

.story p { font-size: 1.05rem; line-height: 1.85; }
.sign { font-size: 2.2rem; margin-top: 1.2em; }

/* Day cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 900px; margin: 0 auto; }
.card {
  background: var(--cream-2); border: 1px solid rgba(176,156,44,.55); outline: 1px solid rgba(176,156,44,.35); outline-offset: -8px;
  padding: 42px 28px 36px; color: var(--olive);
}
.card-kicker { font-size: 1.7rem; margin: 0; line-height: .9; }
.card h3 { font-size: 2rem; text-transform: uppercase; margin-bottom: .3em; }
.time { font-family: var(--serif); font-size: 1.4rem; margin-bottom: .6em; }
.note { font-size: .95rem; opacity: .85; }
.link { text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; text-underline-offset: 5px; text-decoration-color: var(--gold); }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } }

/* Details oval (from the details card) */
.oval {
  max-width: 640px; margin: 0 auto; color: var(--olive);
  background: var(--cream-2);
  border-radius: 50% / 34%;
  padding: clamp(80px, 14vw, 130px) clamp(36px, 12vw, 110px);
  outline: 3px dotted var(--gold); outline-offset: -22px;
}
.oval h2 { font-size: clamp(2.6rem, 8vw, 4.2rem); }
.oval h3 { font-size: clamp(1.9rem, 5vw, 2.5rem); margin: 1.1em 0 .3em; }
.oval .caps { font-size: .8rem; line-height: 1.7; }
.oval .ornament { width: 120px; margin-bottom: 20px; }
@media (max-width: 560px) { .oval { border-radius: 46% / 18%; } }

/* Menu */
.menu-card {
  max-width: 560px; margin: 0 auto; padding: 48px 28px;
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
}
.course-name { color: var(--gold); margin-bottom: .5em; font-weight: 600; }
.dish { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; margin: 0; }
.choose { font-size: 1.6rem; margin: -.2em 0 .1em; }
.or { font-family: var(--script); font-size: 1.5rem; margin: .1em 0; }
.desc { font-size: .95rem; font-style: italic; opacity: .85; max-width: 440px; margin: .35em auto 0; line-height: 1.5; }

/* Main-course choice cards in the RSVP form */
.dish-pill { flex: 1 1 220px; display: flex !important; }
.pill.dish-pill span { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 12px 14px; }
.dish-pill b { font-family: var(--serif); font-weight: 400; font-size: 1.02rem; }
.dish-pill small { font-size: .8rem; opacity: .8; line-height: 1.4; }

/* ---------- RSVP ---------- */
.lead { font-size: .9rem; }
.lead strong { font-weight: 600; }
.intro { max-width: 560px; margin: 0 auto 36px; opacity: .9; }
.rsvp { max-width: 620px; margin: 0 auto; text-align: left; }
.rsvp fieldset {
  border: 1px solid rgba(241,237,228,.35); padding: 22px 22px 8px; margin: 0 0 20px; position: relative;
  background: rgba(0,0,0,.06);
}
.rsvp legend { padding: 0 10px; color: var(--gold-soft); }
.rsvp label { display: block; margin-bottom: 18px; font-size: .92rem; letter-spacing: .03em; }
.rsvp input[type="text"], .rsvp input[type="email"], .rsvp input[type="tel"], .rsvp textarea {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; font-size: 1rem; color: var(--olive);
  background: var(--cream); border: 1px solid transparent; border-radius: 0; padding: 12px 14px;
}
.rsvp input:focus, .rsvp textarea:focus { outline: 2px solid var(--gold-soft); outline-offset: 1px; }
.rsvp input::placeholder { color: #9c9474; }
.opt { opacity: .7; font-size: .85em; }
.group-label { display: block; font-size: .92rem; margin-bottom: 8px; }
.choice-group { margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.choice-group .group-label { flex-basis: 100%; margin-bottom: 0; }
.pill { margin: 0 !important; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-block; padding: 10px 16px; border: 1px solid rgba(241,237,228,.55);
  font-size: .9rem; transition: background .2s, color .2s;
}
.pill input:checked + span { background: var(--cream); color: var(--olive); border-color: var(--cream); }
.pill input:focus-visible + span { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.remove {
  position: absolute; top: -12px; right: 12px; background: var(--olive); color: var(--cream);
  border: 1px solid rgba(241,237,228,.35); font: inherit; font-size: .72rem; letter-spacing: .15em;
  text-transform: uppercase; padding: 3px 10px; cursor: pointer;
}
.guest:only-child .remove { display: none; }
.invalid input[type="text"], input.invalid { outline: 2px solid #e8a0a6 !important; }
.choice-group.invalid .pill span { border-color: #e8a0a6; }
.add { width: 100%; margin-bottom: 28px; }
.contact { margin-top: 8px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: rgba(180,70,80,.25); border-left: 3px solid #e8a0a6; padding: 10px 14px; }
.rsvp .btn[type="submit"] { width: 100%; padding: 18px; font-size: .86rem; }
.thanks { max-width: 520px; margin: 0 auto; }
.thanks:focus { outline: none; }
.thanks h3 { font-size: 3.2rem; }
.thanks-flower { width: 70px; margin: 0 auto 12px; }

/* FAQ */
.faq { max-width: 680px; margin: 0 auto; text-align: left; }
.faq details { border-bottom: 1px solid rgba(176,156,44,.5); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font-family: var(--serif); font-size: 1.15rem; color: var(--olive);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 12px; }

/* Footer */
.footer { background: var(--wine); color: var(--cream); text-align: center; padding: 56px 16px 48px; }
.footer-flower { width: 54px; margin: 0 auto 10px; }
.nav-mono.big { font-size: 2.4rem; margin: 0 0 .2em; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .splash { transition: none; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .invite { box-shadow: inset 0 0 0 7px var(--cream), inset 0 0 0 9px var(--gold), inset 0 0 0 14px var(--cream), inset 0 0 0 16px var(--rose); outline-offset: -10px; }
  .corner.tl, .corner.tr { top: 24px; } .corner.bl, .corner.br { bottom: 24px; }
  .corner.tl, .corner.bl { left: 24px; } .corner.tr, .corner.br { right: 24px; }
}
