/* Wedding site styles. Themes only change the tokens and a few accents;
   the markup is shared so every theme supports every section. */

[data-theme="garden"] {
  --bg: #f7f4ee;
  --surface: #fffdf8;
  --ink: #2f3327;
  --muted: #6d705f;
  --accent: #6b7a4b;
  --accent-ink: #fffdf8;
  --line: #ddd8c9;
  --hero-bg: #e8e4d6;
  --hero-ink: #2f3327;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
  --display-weight: 500;
  --radius: 14px;
}

[data-theme="classic"] {
  --bg: #ffffff;
  --surface: #faf8f5;
  --ink: #1c1c1c;
  --muted: #6b6b6b;
  --accent: #8a1c2b;
  --accent-ink: #ffffff;
  --line: #e6e1da;
  --hero-bg: #1c1c1c;
  --hero-ink: #f6f1ea;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
  --display-weight: 400;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
img { max-width: 100%; display: block; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  line-height: 1.1;
  margin: 0;
}

.muted { color: var(--muted); }

.demo-bar {
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  font-size: 14px;
  padding: 8px 16px;
}
.demo-bar a { color: inherit; font-weight: 500; }

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 72px 20px;
  background: var(--hero-bg);
  color: var(--hero-ink);
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
}
.hero[style]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}
.hero[style] { color: #fff; }
.hero-inner { position: relative; max-width: 720px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  margin: 0 0 20px;
  font-weight: 400;
}
.hero h1 { font-size: clamp(52px, 13vw, 104px); display: flex; flex-direction: column; align-items: center; }
.hero h1 .amp { font-style: italic; font-size: 0.55em; margin: 6px 0; opacity: 0.8; }
.hero .date { font-size: 20px; margin: 28px 0 4px; letter-spacing: 0.04em; }
.hero .venue { margin: 0; opacity: 0.85; }

.countdown {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.countdown span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.countdown b {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 40px;
  letter-spacing: 0;
  line-height: 1;
}

[data-theme="garden"] .hero:not([style]) {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(107, 122, 75, 0.22), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(150, 120, 90, 0.18), transparent 50%),
    var(--hero-bg);
}
[data-theme="classic"] .hero h1 .amp { color: #c9a77c; opacity: 1; }

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 4px 22px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 0;
}
.site-nav a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .site-nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .site-nav a { flex: none; }
}

/* Sections */
main { padding: 0 20px; }
.section {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 56px;
}
.section.wide { max-width: 960px; }
.section:last-child { border-bottom: 0; }
.section h2 { font-size: clamp(36px, 8vw, 48px); text-align: center; margin-bottom: 32px; }
.prose p { margin: 0 0 1em; }

.invitation { text-align: center; font-size: 19px; }
.where {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 28px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
}
.where strong { font-weight: 500; }
.where a { margin-top: 8px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.timeline li:first-child { border-top: 0; }
.timeline .time { color: var(--accent); font-weight: 400; }
.timeline .what { display: flex; flex-direction: column; }
.timeline .what strong { font-weight: 500; }
.timeline .what span { color: var(--muted); font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: var(--radius); }

.video { position: relative; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 400; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* RSVP */
.rsvp { display: grid; gap: 18px; }
.rsvp label { display: grid; gap: 6px; font-size: 15px; font-weight: 400; }
.rsvp input:not([type="radio"]), .rsvp textarea {
  font: inherit;
  font-weight: 300;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
}
.rsvp input:focus, .rsvp textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.rsvp fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.rsvp legend { font-size: 15px; font-weight: 400; margin-bottom: 6px; }
.rsvp .choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}
.rsvp .choice:has(input:checked) { border-color: var(--accent); }
.rsvp input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; }
.rsvp button {
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
  padding: 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}
.rsvp .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notice { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--accent); text-align: center; }
.notice.error { border-color: #b3261e; color: #b3261e; }

.site-footer { text-align: center; padding: 56px 20px 40px; background: var(--surface); border-top: 1px solid var(--line); }
.site-footer .names { font-family: var(--font-display); font-size: 32px; margin: 0 0 8px; }
.site-footer .made { font-size: 13px; color: var(--muted); margin: 0; }

/* Personal greeting and password prompt */
.hello { font-family: var(--font-display); font-size: 24px; margin: 0 0 16px; }
.hero.locked { min-height: 100vh; }
.unlock { max-width: 360px; margin: 32px auto 0; text-align: left; }
.unlock p { margin: 0; text-align: center; }
