:root {
  --cream: #F7F1E6;
  --sand: #EDE1CB;
  --terra: #B85C3A;
  --terra-dark: #9A4A2D;
  --olive: #5F6842;
  --sage: #9CA986;
  --ink: #3A2E28;
  --muted: #7A6A5E;
  --white: #FFFCF7;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 300 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--terra); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(247, 241, 230, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58, 46, 40, .08);
}
.nav__brand { font: 500 1.5rem var(--serif); color: var(--ink); text-decoration: none; letter-spacing: .05em; }
.nav__brand span { color: var(--terra); font-style: italic; }
.nav__links { display: flex; gap: 22px; align-items: center; }
.nav__links a { color: var(--ink); text-decoration: none; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.nav__links a:hover { color: var(--terra); }
.nav__cta { border: 1px solid var(--terra); color: var(--terra) !important; padding: 6px 16px; border-radius: 99px; }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--ink); cursor: pointer; }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--cream);
    border-bottom: 1px solid rgba(58, 46, 40, .1);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 14px; width: 100%; text-align: center; }
  .nav__cta { border: 0; border-radius: 0; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 60px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 164, 65, .18), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(156, 169, 134, .25), transparent 55%),
    var(--cream);
}
.hero__branch { position: absolute; bottom: -20px; width: clamp(70px, 12vw, 140px); fill: var(--sage); stroke: var(--olive); stroke-width: 2; opacity: .75; }
.hero__branch path { fill: none; }
.hero__branch--l { left: 4%; transform: rotate(-12deg); }
.hero__branch--r { right: 4%; transform: scaleX(-1) rotate(-12deg); }
.hero__kicker { font-size: .85rem; letter-spacing: .35em; text-transform: uppercase; color: var(--olive); margin-bottom: 18px; }
.hero__names { font-size: clamp(3.4rem, 11vw, 7rem); font-weight: 400; margin: 0; }
.hero__names span { color: var(--terra); font-style: italic; }
.hero__date { font: italic 400 clamp(1.4rem, 3.5vw, 2rem) var(--serif); margin: 14px 0 4px; }
.hero__place { color: var(--muted); letter-spacing: .08em; }
.hero__deadline { font-size: .9rem; color: var(--muted); margin-top: 14px; }

.countdown { display: flex; gap: clamp(16px, 5vw, 44px); margin: 26px 0 32px; }
.countdown div { display: flex; flex-direction: column; }
.countdown strong { font: 500 clamp(2rem, 6vw, 3rem) var(--serif); color: var(--terra); line-height: 1; }
.countdown span { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; cursor: pointer;
  background: var(--terra); color: var(--white); border: 1px solid var(--terra);
  padding: 13px 30px; border-radius: 99px;
  font: 400 .9rem var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--terra-dark); transform: translateY(-1px); }
.btn--small { padding: 9px 20px; font-size: .78rem; }
.btn--ghost { background: transparent; color: var(--terra); }
.btn--ghost:hover { background: var(--terra); color: var(--white); }
.btn--light { background: var(--white); color: var(--terra); border-color: var(--white); }
.btn--light:hover { background: var(--sand); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(64px, 10vw, 110px) clamp(16px, 5vw, 40px); max-width: 1080px; margin: 0 auto; text-align: center; }
.section--sand, .section--olive, .section--terra { max-width: none; }
.section--sand > *, .section--olive > *, .section--terra > * { max-width: 1000px; margin-left: auto; margin-right: auto; }
.section--sand { background: var(--sand); }
.section--olive { background: var(--olive); color: var(--cream); }
.section--olive .eyebrow { color: var(--sand); }
.section--terra { background: var(--terra); color: var(--white); }
.section--terra .eyebrow { color: var(--sand); }
.eyebrow { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--terra); margin-bottom: 6px; }
.lead { max-width: 640px; margin: 0 auto 40px !important; font-size: 1.08rem; }
.note { font-size: .88rem; color: var(--muted); font-style: italic; }
.section--sand .note { margin-top: 12px; }

.grid { display: grid; gap: 24px; text-align: left; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 20px rgba(58, 46, 40, .05); }
.card--line { border-top: 3px solid var(--sage); }
.address { font: 500 1.2rem/1.5 var(--serif); }
.plain { list-style: none; padding: 0; margin: 0 0 18px; }
.plain li { padding: 5px 0; }
.link { text-decoration: none; font-weight: 400; }

/* ---------- TIMELINE ---------- */
.timeline { list-style: none; padding: 0; margin: 0 auto 20px; max-width: 620px; text-align: left; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 8px; bottom: 8px; width: 1px; background: var(--sage); }
.timeline li { display: flex; gap: 36px; padding: 16px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 87px; top: 26px; width: 11px; height: 11px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 4px var(--cream); }
.timeline time { flex: 0 0 72px; text-align: right; font: 500 1.25rem var(--serif); color: var(--terra); padding-top: 2px; }
.timeline h3 { margin-bottom: 2px; }
.timeline p { margin: 0; color: var(--muted); }
.timeline__next li::before, .timeline li.timeline__next::before { background: var(--sage); }

.hero__weekend { font-size: .9rem; letter-spacing: .06em; color: var(--olive); margin: -2px 0 6px; }
.days { display: grid; gap: 28px; max-width: 700px; margin: 0 auto 20px; }
.day { background: var(--white); border-radius: var(--radius); padding: 28px 24px 12px; box-shadow: 0 2px 20px rgba(58, 46, 40, .05); }
.day--main { border: 1px solid rgba(184, 92, 58, .35); }
.day__title { font-size: 1.8rem; margin-bottom: 0; }
.day__sub { font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; color: var(--olive); margin-bottom: 8px; }
.day .timeline { margin-bottom: 0; }
.day .timeline li::before { box-shadow: 0 0 0 4px var(--white); }

/* ---------- PALETTE ---------- */
.palette-card { background: rgba(255, 252, 247, .08); border: 1px solid rgba(247, 241, 230, .25); border-radius: var(--radius); padding: 28px; }
.palette-card--avoid h3::before { content: "✕ "; color: #E7A58B; }
.palette-card:not(.palette-card--avoid) h3::before { content: "✓ "; color: var(--sage); }
.swatches { list-style: none; padding: 0; margin: 10px 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 16px 10px; }
.swatches li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .85rem; text-align: center; }
.swatches span { width: 48px; height: 48px; border-radius: 50%; background: var(--c); border: 2px solid rgba(247, 241, 230, .6); }
.palette-card--avoid .swatches span { position: relative; }
.palette-card--avoid .swatches span::after { content: ""; position: absolute; inset: 50% -4px auto; height: 2px; background: #E7A58B; transform: rotate(-45deg); }
.tip { margin-top: 32px !important; font-size: .95rem; opacity: .9; }

/* ---------- GIFT ---------- */
.gift { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.gift__item { padding: 30px 24px; border: 1px solid rgba(184, 92, 58, .25); border-radius: var(--radius); background: var(--white); }

/* ---------- FORM ---------- */
.form { max-width: 680px; margin: 0 auto; text-align: left; display: grid; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.form__row--3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea {
  font: 400 1rem var(--sans); color: var(--ink);
  padding: 12px 14px; border-radius: 10px; border: 1px solid transparent; background: var(--white);
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--sand); }
.form .invalid { border-color: #FFD7C7 !important; box-shadow: 0 0 0 2px #FFD7C7; }
.if-yes { display: grid; gap: 18px; }
.if-yes[hidden] { display: none; }
.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.choice legend { font-size: .92rem; margin-bottom: 8px; width: 100%; }
.pill { flex-direction: row !important; cursor: pointer; }
.pill input { position: absolute; opacity: 0; }
.pill span { padding: 10px 22px; border: 1px solid rgba(255, 252, 247, .7); border-radius: 99px; transition: .2s; }
.pill input:checked + span { background: var(--white); color: var(--terra); }
.pill input:focus-visible + span { outline: 2px solid var(--sand); }
.check { flex-direction: row !important; align-items: center; gap: 10px !important; }
.check input { width: 18px; height: 18px; accent-color: var(--olive); }
.hp { position: absolute; left: -9999px; }
.form button { justify-self: center; margin-top: 8px; }
.form__status { text-align: center; min-height: 1.5em; font-weight: 400; margin: 0; }

/* ---------- FOOTER ---------- */
.footer { text-align: center; padding: 50px 20px; background: var(--ink); color: var(--sand); }
.footer__names { font: italic 400 2rem var(--serif); color: var(--white); margin-bottom: 4px; }
.footer__small { font-size: .85rem; opacity: .8; }
.footer a { color: var(--sand); }

@media (max-width: 560px) {
  .timeline::before { left: 66px; }
  .timeline li { gap: 32px; }
  .timeline li::before { left: 61px; }
  .day { padding: 24px 16px 8px; }
  .timeline time { flex-basis: 52px; font-size: 1.05rem; }
  .hero__branch { opacity: .4; }
}
