/* ===== Tokens ===== */
:root {
  --bg: #FAF5E8;
  --bg-alt: #F2E9D3;
  --ink: #1F2A33;
  --ink-soft: #3E4A55;
  --muted: #8B7D6B;
  --rule: #E6DBC1;

  --navy: #1F3440;
  --teal: #5FA8A3;
  --teal-deep: #3F7F7B;
  --coral: #E07856;
  --coral-deep: #C5634A;
  --butter: #F5E6B3;
  --sage: #AEC6A8;

  --display: 'Fredericka the Great', serif;
  --heading: 'Playfair Display', Georgia, serif;
  --body: 'Gentium Book Plus', Georgia, serif;

  --wrap: 720px;
  --wrap-wide: 1100px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--coral-deep); }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }

/* Subtle paper texture */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(31,42,51,.025) 1px, transparent 0);
  background-size: 4px 4px;
  pointer-events: none;
  z-index: 1;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 32px;
  background: rgba(31, 52, 64, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-brand {
  display: flex; align-items: baseline; gap: 14px;
  color: #FAF5E8; text-decoration: none;
  font-family: var(--display);
}
.brand-tag {
  font-size: 13px; letter-spacing: .05em; opacity: .7;
  font-family: var(--body); font-style: italic;
}
.brand-tag--left, .brand-tag--right { display: none; }
@media (min-width: 900px) { .brand-tag--left, .brand-tag--right { display: inline; } }
.brand-name { font-size: 26px; letter-spacing: .02em; }

.site-nav { position: relative; }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 28px;
}
.nav-list a {
  color: #FAF5E8; text-decoration: none;
  font-family: var(--body); font-size: 15px; letter-spacing: .08em;
  text-transform: uppercase;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-list a:hover { border-color: var(--coral); color: var(--butter); }

@media (max-width: 760px) {
  .site-header { padding: 12px 18px; }
  .brand-name { font-size: 22px; }
  .nav-toggle-label {
    display: flex; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 8px;
  }
  .nav-toggle-label span {
    display: block; width: 22px; height: 2px; background: #FAF5E8;
    transition: transform .2s;
  }
  .nav-list {
    display: none;
    position: absolute; top: calc(100% + 12px); right: 0;
    flex-direction: column; gap: 0;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,.1);
    min-width: 180px;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }
  .nav-toggle:checked ~ .nav-list { display: flex; }
  .nav-list li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-list li:last-child { border-bottom: none; }
  .nav-list a { display: block; padding: 14px 20px; font-size: 13px; }
  .nav-list a:hover { border-color: transparent; background: rgba(255,255,255,.05); }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: grid; place-items: center;
  overflow: hidden;
  background: #2a3a2a;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(31,52,64,.15) 0%, rgba(31,52,64,.45) 100%),
    url('/images/hero-couple.jpg');
  background-size: cover;
  background-position: center 30%;
}
/* Fallback gradient if hero image missing */
.hero-bg--fallback {
  background-image:
    linear-gradient(180deg, rgba(31,52,64,.2), rgba(31,52,64,.6)),
    radial-gradient(ellipse at 30% 40%, #6a8a4a 0%, #3a5a30 60%, #1f3420 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  text-align: center;
  color: #FAF5E8;
  padding: 60px 24px;
  max-width: 900px;
}
.hero-location, .hero-date {
  font-family: var(--body); font-style: italic;
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: .08em;
  opacity: .85;
}
.hero-name {
  font-family: var(--display);
  font-size: clamp(64px, 12vw, 144px);
  line-height: 1;
  margin: 18px 0;
  letter-spacing: .01em;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-amp { color: var(--coral); font-style: italic; padding: 0 .1em; }
.hero-meta {
  display: flex; gap: 24px; justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.hero-meta span { white-space: nowrap; }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: #FAF5E8;
  font-family: var(--body); font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase;
  opacity: .7;
  animation: float 2s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== Sections ===== */
section { position: relative; padding: 96px 24px; z-index: 2; }
.section-wrap { max-width: var(--wrap); margin: 0 auto; }
.section-wrap--wide { max-width: var(--wrap-wide); }

.section-eyebrow {
  font-family: var(--body); font-style: italic;
  text-transform: uppercase; letter-spacing: .25em;
  font-size: 12px; color: var(--muted);
  text-align: center;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  text-align: center;
  margin: 0 0 40px;
  line-height: 1.05;
}
.section-title--light { color: var(--bg); }
.section-intro {
  text-align: center; max-width: 560px; margin: 0 auto 56px;
  font-size: 19px; color: var(--ink-soft);
}

/* Tinted sections */
.section--teal { background: var(--teal); color: #fff; }
.section--teal h2, .section--teal h3 { color: #fff; }
.section--teal a { color: var(--butter); }
.section--teal a:hover { color: #fff; }
.section--teal .section-intro { color: rgba(255,255,255,.85); }
.section--teal .section-eyebrow { color: rgba(255,255,255,.75); }

.section--butter { background: var(--butter); }
.section--coral { background: var(--coral); color: #fff; }
.section--coral h2 { color: #fff; }
.section--coral .section-eyebrow { color: rgba(255,255,255,.8); }
.section--coral .section-intro { color: rgba(255,255,255,.9); }
.section--coral a { color: var(--bg); font-weight: 700; }

.section--alt { background: var(--bg-alt); }

/* Decorative divider */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 0 auto 24px; max-width: 200px;
  color: var(--muted);
}
.ornament::before, .ornament::after {
  content: ''; flex: 1; height: 1px; background: currentColor; opacity: .5;
}
.ornament-mark {
  font-family: var(--display);
  font-size: 20px;
  opacity: .8;
}

/* ===== Events ===== */
.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 40px; }
.event {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.event:first-child { border-top: none; padding-top: 0; }
@media (max-width: 640px) {
  .event { grid-template-columns: 1fr; gap: 8px; }
}
.event-date {
  font-family: var(--heading);
  font-style: italic;
  color: var(--teal-deep);
  font-size: 18px;
  line-height: 1.4;
}
.event-date strong {
  display: block;
  font-family: var(--display);
  font-style: normal;
  font-size: 28px;
  color: var(--ink);
}
.event h3 {
  font-size: 28px;
  margin: 0 0 6px;
  font-family: var(--heading);
}
.event-meta {
  font-family: var(--body);
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 12px;
}
.event p { margin: 0 0 14px; }
.event p:last-child { margin-bottom: 0; }

/* ===== RSVP ===== */
.rsvp-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px;
  padding: 48px;
  max-width: 560px;
  margin: 0 auto;
}
@media (max-width: 640px) { .rsvp-card { padding: 32px 24px; } }
.rsvp-form { display: grid; gap: 20px; }
.rsvp-form label {
  display: block;
  font-family: var(--body); font-style: italic;
  font-size: 14px; letter-spacing: .05em;
  margin-bottom: 6px;
  color: rgba(255,255,255,.9);
}
.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form textarea,
.rsvp-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-family: var(--body); font-size: 17px;
  border-radius: 2px;
  transition: border-color .2s, box-shadow .2s;
}
.rsvp-form input:focus,
.rsvp-form textarea:focus,
.rsvp-form select:focus {
  outline: none; border-color: var(--butter);
  box-shadow: 0 0 0 3px rgba(245,230,179,.4);
}
.rsvp-radio-group { display: flex; gap: 24px; }
.rsvp-radio-group label {
  display: flex; align-items: center; gap: 8px;
  font-style: normal; font-size: 16px;
  cursor: pointer; margin: 0;
}
.rsvp-radio-group input[type="radio"] { accent-color: var(--butter); }
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--coral);
  color: #fff;
  border: none;
  font-family: var(--body);
  font-size: 15px; letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s, transform .1s;
}
.btn:hover { background: var(--coral-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent; color: inherit;
  border: 1px solid currentColor;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: inherit; }

/* ===== Travel & Lodging ===== */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.lodging-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 48px;
}
@media (max-width: 760px) { .lodging-grid { grid-template-columns: 1fr; } }
.lodging-card {
  padding: 32px 28px;
  background: rgba(255,255,255,.5);
  border-top: 3px solid var(--coral);
}
.lodging-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
}
.lodging-card p { margin: 6px 0; font-size: 15px; }
.lodging-card .walk { font-family: var(--body); font-style: italic; color: var(--muted); font-size: 14px; }
.lodging-card .price { font-family: var(--heading); font-size: 22px; color: var(--teal-deep); margin-top: 14px; }

/* ===== Registry ===== */
.registry-photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 40px;
}
@media (max-width: 640px) { .registry-photos { grid-template-columns: 1fr; } }
.registry-photo {
  text-align: center;
}
.registry-photo img {
  border: 8px solid #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
  aspect-ratio: 3/2;
  object-fit: cover;
  transform: rotate(-1deg);
  transition: transform .3s;
}
.registry-photo:nth-child(2) img { transform: rotate(1deg); }
.registry-photo:hover img { transform: rotate(0); }
.registry-photo figcaption {
  font-family: var(--body); font-style: italic;
  color: rgba(255,255,255,.9);
  font-size: 14px;
  margin-top: 14px;
}
.registry-links {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 40px;
}

/* ===== Gallery ===== */
.gallery-note {
  background: rgba(139, 125, 107, 0.08);
  border-left: 3px solid var(--muted);
  padding: 20px 24px;
  margin: 40px auto;
  max-width: var(--wrap);
  font-family: var(--body); font-style: italic;
  color: var(--ink-soft);
  font-size: 16px;
}
.photo-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  max-width: var(--wrap-wide); margin: 0 auto;
}
@media (max-width: 720px) { .photo-pair { grid-template-columns: 1fr; } }
.photo-pair figure { margin: 0; }
.photo-pair img {
  width: 100%; aspect-ratio: 3/2; object-fit: cover;
  border: 10px solid #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
}
.photo-pair figcaption {
  text-align: center;
  margin-top: 16px;
  font-family: var(--body); font-style: italic;
  color: var(--muted);
  font-size: 15px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 40px 24px;
  text-align: center;
}
.footer-credits {
  font-family: var(--body); font-style: italic;
  font-size: 14px; margin: 0 0 8px;
}
.footer-meta {
  font-family: var(--body);
  font-size: 13px; margin: 0;
  letter-spacing: .05em;
}
.site-footer a { color: var(--butter); }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
