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

:root {
  --cream: #F5F0E8;
  --bark: #6B5740;
  --moss: #4A5E3A;
  --terracotta: #9B5E3C;
  --ink: #2E2318;
  --gold: #A07840;
  --leaf: #7A9260;
  --nav-h: 58px;
}

body {
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  background: #F5F0E8;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid rgba(160,120,64,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bark);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--moss); background: rgba(74,94,58,0.06); }
.nav-links a.active { color: var(--moss); border-bottom: 1.5px solid var(--moss); }

/* ── HERO (index only) ── */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: brightness(0.82) saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(46,35,24,0.08) 0%, rgba(46,35,24,0.45) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 3.5rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  font-family: 'Jost', sans-serif;
  margin-bottom: 0.8rem;
}

.hero-names {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 2px 20px rgba(46,35,24,0.3);
}

.hero-names .amp {
  display: block;
  font-style: italic;
  font-size: 0.6em;
  color: rgba(255,255,255,0.85);
  margin: 0.2em 0;
}

.hero-date {
  margin-top: 1.2rem;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-family: 'Jost', sans-serif;
}

/* ── PAGE WRAPPER ── */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.page-inner {
  background: rgba(253,248,237,0.9);
  border: 0.5px solid rgba(160,120,64,0.18);
  border-radius: 6px;
  padding: 3rem 3rem 3.5rem;
  box-shadow: 0 4px 40px rgba(46,35,24,0.06);
}

/* ── BOTANICAL SVG ── */
.botanical-top {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  opacity: 0.5;
}

/* ── TYPOGRAPHY HELPERS ── */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bark);
  text-align: center;
  margin-bottom: 1.2rem;
  font-family: 'Jost', sans-serif;
}

.section-title {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bark);
  text-align: center;
  margin-bottom: 1.5rem;
}

.names-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1;
  text-align: center;
  color: var(--ink);
}

.names-heading .amp {
  display: block;
  font-style: italic;
  font-size: 0.65em;
  color: var(--gold);
  margin: 0.15em 0;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 380px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 0.5px;
  background: var(--gold); opacity: 0.5;
}
.divider span { color: var(--moss); font-size: 14px; opacity: 0.7; }

/* ── LETTER ── */
.letter {
  background: rgba(237,229,212,0.45);
  border: 0.5px solid rgba(160,120,64,0.2);
  border-radius: 2px;
  padding: 2.5rem 2.5rem 2rem;
  margin-bottom: 2.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.85;
  position: relative;
}

.letter::before {
  content: '\201C';
  position: absolute;
  top: 0.8rem; left: 1.5rem;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.18;
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
}

/* ── ESSENTIALS GRID ── */
.essentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(160,120,64,0.15);
  border: 0.5px solid rgba(160,120,64,0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.essential-item { background: rgba(253,248,237,0.9); padding: 1.4rem 1.6rem; }
.essential-label {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--bark); margin-bottom: 0.4rem;
  font-family: 'Jost', sans-serif; font-weight: 400;
}
.essential-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 400; color: var(--ink); line-height: 1.4;
}
.essential-sub {
  font-size: 0.8rem; color: var(--bark); margin-top: 0.2rem;
  font-family: 'Jost', sans-serif; line-height: 1.5;
}

/* ── CALLOUT BOXES ── */
.callout {
  border-left: 2px solid var(--moss);
  background: rgba(74,94,58,0.06);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0 2px 2px 0;
}
.callout.terra {
  border-color: var(--terracotta);
  background: rgba(155,94,60,0.06);
}
.callout-label {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--moss); margin-bottom: 0.4rem;
  font-family: 'Jost', sans-serif;
}
.callout.terra .callout-label { color: var(--terracotta); }
.callout p { font-size: 0.9rem; color: var(--ink); line-height: 1.6; }
.callout p + p { margin-top: 0.4rem; }

/* ── GALLERY ── */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 2.5rem;
  border-radius: 4px;
  overflow: hidden;
}
.gallery-main { grid-column: 1 / -1; position: relative; height: 320px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb { position: relative; height: 200px; overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-thumb:hover img { transform: scale(1.04); }
.gallery-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(46,35,24,0.55), transparent);
  padding: 1.2rem 1rem 0.7rem;
  color: rgba(255,255,255,0.92);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-family: 'Jost', sans-serif;
}

/* ── SCHEDULE ── */
.schedule { margin-bottom: 2.5rem; }
.schedule-item { display: grid; grid-template-columns: 82px 1fr; }
.schedule-item + .schedule-item .schedule-time,
.schedule-item + .schedule-item .schedule-event {
  border-top: 0.5px solid rgba(160,120,64,0.12);
}
.schedule-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-style: italic; color: var(--gold);
  padding: 0.85rem 1rem 0.85rem 0; line-height: 1.4;
}
.schedule-event {
  padding: 0.85rem 0 0.85rem 1.2rem;
  border-left: 0.5px solid rgba(160,120,64,0.25);
  font-family: 'Jost', sans-serif; font-size: 0.9rem; font-weight: 300;
  color: var(--ink); line-height: 1.5;
}
.schedule-event strong { font-weight: 400; color: var(--moss); }
.overnight .schedule-time { color: var(--terracotta); }
.overnight .schedule-event { font-style: italic; }
.overnight-fun { font-size: 0.78rem; font-style: normal; color: var(--bark); margin-top: 0.2rem; opacity: 0.75; }

/* ── RSVP ── */
.rsvp-block {
  text-align: center; padding: 2.5rem 1.5rem;
  background: rgba(237,229,212,0.4);
  border: 0.5px solid rgba(160,120,64,0.2);
  border-radius: 2px; margin-bottom: 2.5rem;
}
.rsvp-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-style: italic; color: var(--ink);
}

/* ── FOOTER ── */
.footer { text-align: center; }
.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-style: italic; color: var(--gold); margin-bottom: 0.3rem;
}
.footer-date {
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bark); opacity: 0.55;
}

/* ── SUB-PAGE STYLES ── */
.page-header {
  text-align: center; margin-bottom: 2.5rem;
}
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; font-size: 2.8rem; color: var(--ink); line-height: 1.1;
}
.page-header p {
  font-size: 0.9rem; color: var(--bark); margin-top: 0.5rem;
}

/* guest list */
.guest-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 0.5px solid rgba(160,120,64,0.12);
}
.guest-card:last-child { border-bottom: none; }
.guest-initial {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: rgba(74,94,58,0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--moss);
}
.guest-name { font-size: 1rem; color: var(--ink); }
.guest-note { font-size: 0.78rem; color: var(--bark); }

/* dress code */
.dress-section { margin-bottom: 2rem; }
.dress-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400; color: var(--ink); margin-bottom: 0.6rem;
}
.dress-section p { font-size: 0.92rem; color: var(--ink); line-height: 1.7; }
.dress-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.8rem; }
.chip {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 2px;
  font-family: 'Jost', sans-serif; font-weight: 400;
}
.chip-moss { background: rgba(74,94,58,0.1); color: var(--moss); }
.chip-gold { background: rgba(160,120,64,0.1); color: var(--gold); }
.chip-terra { background: rgba(155,94,60,0.1); color: var(--terracotta); }

/* our story */
.story-block { margin-bottom: 2rem; }
.story-block h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400; color: var(--ink); margin-bottom: 0.5rem;
  font-style: italic;
}
.story-block p { font-size: 0.95rem; color: var(--ink); line-height: 1.8; }

/* ── RESPONSIVE ── */
@media (max-width: 580px) {
  .page { padding: 1.5rem 1rem 4rem; }
  .page-inner { padding: 2rem 1.4rem 2.5rem; }
  .essentials { grid-template-columns: 1fr; }
  .names-heading { font-size: 2.8rem; }
  .schedule-item { grid-template-columns: 70px 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumb { height: 180px; }
  .nav-links a { padding: 0.5rem 0.6rem; font-size: 10px; letter-spacing: 0.12em; }
  .hero { height: 380px; }
}

/* ── MOBILE OVERRIDES ── */
@media (max-width: 580px) {
  .page { padding: 1.5rem 1rem 4rem; }
  .page-inner { padding: 2rem 1.4rem 2.5rem; }
  .essentials { grid-template-columns: 1fr; }
  .names-heading { font-size: 2.8rem; }
  .schedule-item { grid-template-columns: 70px 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumb { height: 180px; }

  /* Nav: brand on top row, links scroll horizontally below */
  .nav {
    padding: 0 1rem;
    height: auto;
    min-height: 52px;
    flex-wrap: wrap;
  }
  .nav-brand {
    font-size: 1.05rem;
    padding: 0.55rem 0;
  }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.35rem;
    border-top: 0.5px solid rgba(160,120,64,0.12);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    padding: 0.4rem 0.7rem;
    font-size: 10px;
    letter-spacing: 0.13em;
    white-space: nowrap;
  }

  /* Hero: taller on mobile, better text sizing */
  .hero { height: 460px; }
  .hero-img { object-position: center 20%; }
  .hero-overlay {
    padding-bottom: 2.5rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
  .hero-names {
    font-size: clamp(2.6rem, 11vw, 3.5rem);
    line-height: 1.05;
  }
  .hero-eyebrow { font-size: 9px; letter-spacing: 0.22em; margin-bottom: 0.5rem; }
  .hero-date { font-size: 10px; letter-spacing: 0.13em; margin-top: 0.8rem; }
}
