/* ==========================================================================
   Ada & Tom — wedding website
   Theme tokens first. The online editor edits this block.
   ========================================================================== */

:root {
  --accent: #9b6a6c;          /* dusty rose: buttons, details */
  --accent-dark: #7f5355;
  --accent-text: #8a5b5d;
  --accent-soft: #f3e7e4;
  --sage: #8a977b;

  --ink: #2f2a26;
  --ink-2: #5b544e;
  --ink-3: #857c74;

  --surface: #fbf8f3;
  --surface-2: #f3eee6;
  --card: #fffdf9;
  --border: #e6ddd1;

  --radius: 999px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", -apple-system, system-ui, sans-serif;

  --container: 1100px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 17px; font-weight: 300; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
strong, b { font-weight: 500; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.05; }
h1 { font-size: clamp(3.6rem, 10vw, 8rem); font-weight: 300; }
h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 300; }
h3 { font-size: 1.7rem; }
p { margin: 0; }
.amp { font-style: italic; color: var(--accent-text); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--alt { background: var(--surface-2); }
.center { text-align: center; }
.kicker { display: block; font-size: .74rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--sage); margin-bottom: 18px; }
.lede { font-size: 1.15rem; color: var(--ink-2); }
.center .lede { margin-inline: auto; max-width: 34em; }
.flourish { display: block; width: 120px; height: 20px; margin: 22px auto; color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 30px; border-radius: var(--radius); border: 1px solid var(--ink); background: transparent; font-size: .82rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink); color: var(--surface); }
.btn--rose { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--rose:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* ---------------------------------------------------------------- header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 243, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.mono { font-family: var(--font-display); font-size: 1.6rem; text-decoration: none; letter-spacing: .02em; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-text); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: var(--card); cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav { position: absolute; inset: 100% 0 auto; display: none; flex-direction: column; gap: 0; padding: 8px var(--gutter) 22px; background: var(--surface); border-bottom: 1px solid var(--border); text-align: center; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
}

/* ------------------------------------------------------------------ hero */
.hero { padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 96px); text-align: center; }
.hero__img { position: relative; max-width: 880px; margin: 0 auto; }
.hero__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 300px 300px 20px 20px; }
.hero h1 { margin-top: 44px; }
.hero__when { margin-top: 18px; font-size: .9rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2); }
.countdown { display: flex; justify-content: center; gap: clamp(16px, 4vw, 44px); margin-top: 38px; }
.countdown div { min-width: 70px; }
.countdown strong { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 300; line-height: 1; font-variant-numeric: lining-nums; }
.countdown span { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }

/* ----------------------------------------------------------------- story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story__imgs { position: relative; height: 520px; }
.story__imgs img { position: absolute; object-fit: cover; border-radius: 12px; box-shadow: 0 30px 60px -36px rgba(47, 42, 38, .45); }
.story__imgs img:first-child { left: 0; top: 0; width: 66%; height: 78%; }
.story__imgs img:last-child { right: 0; bottom: 0; width: 52%; height: 52%; border: 8px solid var(--surface); }
.story p + p { margin-top: 16px; }
.story .lede { margin-top: 18px; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } .story__imgs { height: 380px; } }

/* ------------------------------------------------------------- timeline */
.timeline { position: relative; max-width: 720px; margin: 48px auto 0; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--border); }
.moment { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 18px 0; }
.moment::before { content: ""; position: absolute; left: 50%; top: 30px; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: var(--surface-2); border: 1.5px solid var(--accent); }
.moment time { text-align: right; font-family: var(--font-display); font-size: 1.9rem; color: var(--accent-text); }
.moment h3 { font-size: 1.6rem; }
.moment p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 640px) {
  .timeline::before { left: 8px; }
  .moment { grid-template-columns: 1fr; gap: 0; padding-left: 36px; }
  .moment::before { left: 8px; top: 26px; }
  .moment time { text-align: left; }
}

/* --------------------------------------------------------- details cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card { padding: 32px 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); text-align: center; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: .98rem; }
.card .btn { margin-top: 22px; min-height: 44px; padding: 0 22px; font-size: .74rem; }
.card--img { padding: 0; overflow: hidden; text-align: left; }
.card--img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card--img .card__body { padding: 24px 26px 28px; }
.card .meta { margin-top: 10px; font-size: .84rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.venue { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; margin-top: 48px; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--border); }
.venue img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.venue__body { padding: clamp(28px, 4vw, 48px); }
.venue dl { margin: 22px 0 0; }
.venue dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.venue dt { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.venue dd { margin: 0; }
@media (max-width: 820px) { .venue { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- rsvp */
.rsvp { max-width: 720px; margin: 44px auto 0; padding: clamp(28px, 5vw, 56px); border-radius: 18px; background: var(--card); border: 1px solid var(--border); }
.rsvp fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.rsvp legend { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 12px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: block; padding: 18px; border: 1px solid var(--border); border-radius: 12px; text-align: center; cursor: pointer; background: var(--surface); }
.pick input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); font-weight: 500; }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field + .field { margin-top: 18px; }
label, .label { font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 1rem; font-weight: 400; }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: #b4483a; }
.error { min-height: 1em; font-size: .86rem; color: #b4483a; }
.guest { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 10px; align-items: end; padding: 14px 0; border-top: 1px dashed var(--border); }
.guest:first-of-type { border-top: 0; }
.remove { width: 44px; height: 50px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.add { margin-top: 10px; border: 0; background: none; color: var(--accent-text); font-weight: 500; cursor: pointer; padding: 6px 0; }
.attending[hidden] { display: none; }
.thanks { text-align: center; padding: 30px 0; }
.thanks h3 { font-size: 2.4rem; }
.thanks p { margin-top: 12px; color: var(--ink-2); }
@media (max-width: 600px) { .guest { grid-template-columns: 1fr; } .remove { width: 100%; height: 44px; } }

.faq { max-width: 760px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 1.45rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding-bottom: 20px; color: var(--ink-2); }

.page-head { padding-block: clamp(56px, 8vw, 96px) clamp(24px, 4vw, 40px); text-align: center; }
.page-head h1 { font-size: clamp(3rem, 7vw, 5.4rem); }
.page-head .lede { margin-top: 16px; }

.footer { padding-block: 56px; text-align: center; border-top: 1px solid var(--border); color: var(--ink-3); font-size: .92rem; }
.footer .mono { display: block; font-size: 2.4rem; color: var(--ink); margin-bottom: 10px; }
.footer a { color: var(--accent-text); }

.credits { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; }
.credits li { padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--ink-2); font-size: .95rem; }
.credits a { color: var(--accent-text); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
