/* Niki & Bradley — November 13, 2027
   Sophisticated · Elegant · Timeless */

:root {
  --ivory: #faf6ef;
  --cream: #f4eee1;
  --ink: #2b2620;
  --ink-soft: #5c554a;
  --gold: #a68a5b;
  --gold-deep: #866f45;
  --sage: #7d8c6f;
  --line: #e3d9c4;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h2 { font-size: clamp(2rem, 5vw, 2.9rem); margin-bottom: 0.4em; }
h3 { font-size: 1.45rem; margin: 1.6em 0 0.5em; }

a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s; }
a:hover { border-bottom-color: var(--gold-deep); }

.quiet { color: var(--ink-soft); font-size: 0.95em; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.1em;
  font-weight: 400;
}

.lede {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1.2em;
}

/* Gold rule with diamond */
.rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 1.4em auto 2em; max-width: 320px; }
.rule span { flex: 1; height: 1px; background: var(--gold); opacity: .55; }
.rule i { font-style: normal; color: var(--gold); font-size: 0.6rem; }

/* ---------- Nav ---------- */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2rem;
  transition: background .4s, box-shadow .4s, padding .4s;
}
#nav.scrolled { background: rgba(250, 246, 239, .94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); padding: 0.7rem 2rem; }
#nav .monogram { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .18em; color: var(--ivory); border: none; transition: color .4s; }
#nav.scrolled .monogram { color: var(--ink); }
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a {
  border: none; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory); font-weight: 400; transition: color .4s;
}
#nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--gold-deep); }
.nav-links .nav-cta {
  border: 1px solid currentColor; padding: 0.55em 1.4em; border-radius: 2px;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 26px; height: 1.5px; background: var(--ivory); transition: background .4s; }
#nav.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--ivory); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04); animation: heroDrift 24s ease-in-out infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(30,25,18,.42), rgba(30,25,18,.28) 45%, rgba(30,25,18,.55)); }
.hero-inner { position: relative; z-index: 2; padding: 6rem 1.5rem 4rem; max-width: 900px; }
.hero .eyebrow { color: #e8d9b8; }
.hero h1 { font-size: clamp(3rem, 10vw, 6.2rem); font-weight: 500; letter-spacing: 0.02em; }
.hero h1 .amp { font-style: italic; font-weight: 400; color: #e8d9b8; }
.hero .rule span { background: #e8d9b8; }
.hero .rule i { color: #e8d9b8; }
.hero-date { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .12em; }
.hero-venue { font-size: 0.85rem; letter-spacing: 0.3em; text-transform: uppercase; margin-top: 0.7em; color: #f0e6d2; }
.hero .btn { margin-top: 2.2em; }

.btn {
  display: inline-block; font-size: 0.82rem; letter-spacing: 0.32em; text-transform: uppercase;
  padding: 1em 2.8em 1em 3em; border: 1px solid var(--gold); color: var(--ivory);
  background: rgba(166, 138, 91, .14); border-radius: 2px; cursor: pointer;
  transition: background .35s, color .35s; font-family: var(--sans); font-weight: 400;
}
.btn:hover { background: var(--gold); color: #fff; border-bottom-color: var(--gold); }
.section .btn { color: var(--gold-deep); background: transparent; }
.section .btn:hover { background: var(--gold); color: #fff; }

.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  color: var(--ivory); font-size: 1.3rem; border: none; opacity: .75;
  animation: cueBob 2.6s ease-in-out infinite;
}
@keyframes cueBob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Sections ---------- */
.section { padding: 6.5rem 1.5rem; }
.section.alt { background: var(--cream); }
.wrap { max-width: 1080px; margin: 0 auto; text-align: center; }
.wrap.narrow { max-width: 720px; }
.section p { margin-bottom: 1.1em; }

/* ---------- Countdown ---------- */
.countdown { background: var(--ink); color: var(--ivory); text-align: center; padding: 4.5rem 1.5rem; }
.countdown .eyebrow { color: #cbb37e; }
.count-grid { display: flex; justify-content: center; gap: clamp(1.2rem, 5vw, 3.5rem); margin-top: 1.5em; }
.count-grid div { min-width: 76px; }
.count-grid span { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 3.4rem); display: block; }
.count-grid label { font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; color: #cbb37e; }

/* ---------- Venue ---------- */
.venue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin: 2.4em 0; }
.venue-grid figure, .gallery-grid figure { overflow: hidden; border-radius: 2px; background: #fff; box-shadow: 0 18px 44px rgba(60, 48, 30, .10); }
.venue-grid img, .gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 1.2s cubic-bezier(.2,.6,.2,1); }
.venue-grid figure:hover img, .gallery-grid figure:hover img { transform: scale(1.045); }
.venue-grid figcaption, .gallery-grid figcaption {
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-soft);
  padding: 0.9em; background: #fff;
}
.venue-address { margin-top: 1.5em; font-size: 1.05rem; }

/* ---------- Schedule ---------- */
.schedule-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin: 2.2em 0; }
.schedule-item { border: 1px solid var(--line); border-radius: 2px; padding: 2.2em 1.2em; background: rgba(255,255,255,.5); }
.schedule-item h3 { margin: 0 0 0.4em; font-size: 1.5rem; }
.schedule-item p { margin: 0; color: var(--ink-soft); font-style: italic; font-family: var(--serif); font-size: 1.1rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.4em; }
.gallery-grid figure:nth-child(1) { grid-column: span 2; }
.gallery-grid figure:nth-child(1) img { aspect-ratio: 16/10; }

/* ---------- RSVP form ---------- */
#rsvp-form { text-align: left; margin-top: 2.4em; background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 2px; padding: clamp(1.6rem, 4vw, 3rem); }
.field { margin-bottom: 1.4em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field label { display: block; font-size: 0.76rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.6em; font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-weight: 300; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 0.85em 1em;
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(166,138,91,.14); }
.radio-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio { display: inline-flex; align-items: center; gap: 0.6em; cursor: pointer; border: 1px solid var(--line); background: #fff; border-radius: 2px; padding: 0.8em 1.3em; transition: border-color .3s; }
.radio input { accent-color: var(--gold-deep); width: 1.05em; height: 1.05em; }
.radio span { font-size: 0.95rem; letter-spacing: 0.04em; }
.radio:has(input:checked) { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(166,138,91,.14); }
.form-error { color: #9c3d2e; font-size: 0.95rem; margin-bottom: 1em; }
.form-success { color: #4c6b41; font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin-top: 1.2em; text-align: center; }
#rsvp-form .btn { width: 100%; margin-top: 0.4em; }

/* ---------- FAQ ---------- */
.faq-list { text-align: left; margin-top: 2em; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 1.2em 0.2em; }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { font-family: var(--serif); font-size: 1.3rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--gold-deep); font-size: 1.4rem; font-family: var(--sans); font-weight: 300; }
.faq-list details[open] summary::after { content: '–'; }
.faq-list details p { margin: 0.8em 0 0.2em; color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #d9cdb4; text-align: center; padding: 4rem 1.5rem; }
footer .monogram { font-family: var(--serif); font-size: 1.8rem; letter-spacing: .2em; color: #e8d9b8; margin-bottom: 0.6em; }
footer p { margin-bottom: 0.4em; font-size: 0.95rem; }
footer .quiet { color: #9a8f78; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.6,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: var(--ivory);
    flex-direction: column; justify-content: center; gap: 2rem; padding: 2rem;
    transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.6,.2,1);
    box-shadow: -18px 0 44px rgba(0,0,0,.18);
  }
  .nav-links.open { transform: none; }
  .nav-links a { color: var(--ink); font-size: 0.95rem; }
  #nav.scrolled .nav-links a { color: var(--ink); }
  .venue-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure:nth-child(1) { grid-column: span 1; }
  .schedule-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 1.25rem; }
}
