/* ─────────── Wedding site — fall forest palette ─────────── */
:root {
  --forest-deep:    #2a3a2a;
  --forest-moss:    #4a5d3a;
  --forest-olive:   #6b6e3f;
  --sienna:         #a85a32;
  --ochre:          #c08a3e;
  --amber:          #d4a045;
  --cream:          #f4ede0;
  --cream-warm:     #ebe1cf;
  --cream-deep:     #ddd0b4;
  --ink:            #1f1a14;
  --ink-soft:       #3d3528;

  --bg:             var(--cream);
  --surface:        var(--cream-warm);
  --fg:             var(--ink);
  --fg-soft:        var(--ink-soft);
  --fg-mute:        rgba(31, 26, 20, 0.58);
  --rule:           rgba(31, 26, 20, 0.16);
  --accent:         var(--sienna);
  --accent-deep:    var(--forest-deep);

  --hero-bg-opacity: 0.27;
  --hero-bg-blur:    50px;

  --serif-display:  'Cormorant Garamond', 'Cormorant', Garamond, 'Apple Garamond', serif;
  --serif-body:     'Lora', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --mono:           'JetBrains Mono', ui-monospace, Menlo, monospace;
}

body.dark {
  --bg:        #1b1f1a;
  --surface:   #242a22;
  --fg:        #efe6d3;
  --fg-soft:   #d8cdb6;
  --fg-mute:   rgba(239, 230, 211, 0.62);
  --rule:      rgba(239, 230, 211, 0.18);
  --accent-deep: #8aa583;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.display {
  font-family: var(--serif-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
}
.eyebrow {
  font-family: var(--serif-body);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 500;
}

section { position: relative; }
.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Top nav ─── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.topnav.scrolled { border-bottom-color: var(--rule); }
.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 18px;
}
.topnav .mono {
  font-family: var(--serif-display);
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--fg);
  white-space: nowrap;
}
.topnav .mono em { font-style: italic; color: var(--accent); margin: 0 .15em; }

.nav-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--fg);
  border-radius: 6px;
}
.nav-toggle:hover { background: rgba(255,255,255,.05); }
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-menu { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

.nav-drawer {
  position: fixed;
  top: 52px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 16px 24px 24px;
  transform: translateY(-110%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  z-index: 49;
}
.nav-drawer.open { transform: translateY(0); }
.nav-drawer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.nav-drawer a {
  display: block;
  padding: 10px 0;
  color: var(--fg);
  font-family: var(--serif-display);
  font-size: 22px;
  border-bottom: 1px solid var(--rule);
}
.nav-drawer a:hover { color: var(--accent); text-decoration: none; }

/* ─── Hero ─── */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  padding: 60px 24px 48px;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 2; }
.hero .eyebrow { margin-bottom: 24px; display: block; }

.names {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(58px, 16vw, 124px);
  line-height: 0.95;
  color: var(--fg);
  letter-spacing: -0.005em;
  margin: 0;
}
.names .amp {
  display: block;
  font-style: italic;
  font-weight: 300;
  font-size: 0.65em;
  color: var(--accent);
  margin: 0.05em 0;
}

.hero-meta {
  margin-top: 40px;
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 18px;
  color: var(--fg-soft);
  letter-spacing: 0.02em;
  line-height: 1.8;
}
.hero-meta .dot { margin: 0 14px; color: var(--accent); font-style: normal; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--hero-bg-opacity);
  filter: blur(var(--hero-bg-blur));
  background:
    radial-gradient(ellipse 60% 50% at 18% 12%, color-mix(in srgb, var(--ochre) 55%, transparent), transparent 65%),
    radial-gradient(ellipse 65% 55% at 88% 92%, color-mix(in srgb, var(--forest-moss) 50%, transparent), transparent 65%),
    radial-gradient(ellipse 40% 35% at 75% 25%, color-mix(in srgb, var(--sienna) 28%, transparent), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
body.dark .hero::before {
  background:
    radial-gradient(ellipse 60% 50% at 18% 12%, color-mix(in srgb, var(--ochre) 28%, transparent), transparent 65%),
    radial-gradient(ellipse 65% 55% at 88% 92%, color-mix(in srgb, var(--forest-moss) 32%, transparent), transparent 65%),
    radial-gradient(ellipse 40% 35% at 75% 25%, color-mix(in srgb, var(--sienna) 18%, transparent), transparent 70%);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  z-index: 2;
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 24px;
  background: var(--fg-mute);
  margin: 8px auto 0;
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
  50%      { transform: scaleY(1);   opacity: 0.7; }
}

/* ─── Quick actions ─── */
.quick {
  background: var(--surface);
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.quick-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
}
.quick-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px;
  text-align: center;
  text-decoration: none;
  color: var(--fg);
  border-radius: 10px;
  transition: background .2s;
}
.quick-tile:hover { background: rgba(255,255,255,.04); text-decoration: none; }
.quick-tile .ico {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--accent-deep);
}
.quick-tile .ico svg { width: 22px; height: 22px; stroke-width: 1.5; }
.quick-tile .lbl {
  font-family: var(--serif-display);
  font-size: 16px;
  letter-spacing: 0.01em;
}

/* ─── Section heading ─── */
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(36px, 8vw, 56px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.005em;
}
.section-head .lede {
  margin: 16px auto 0;
  max-width: 480px;
  color: var(--fg-soft);
  font-style: italic;
  font-size: 17px;
}
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 18px 0;
  color: var(--accent);
}
.divider::before, .divider::after {
  content: "";
  display: block;
  width: 38px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.divider svg { width: 18px; height: 18px; }

.section.alt { background: var(--surface); }
.section.dark-band {
  background: var(--forest-deep);
  color: var(--cream);
}
.section.dark-band .section-head h2 { color: var(--cream); }
.section.dark-band .eyebrow { color: rgba(244, 237, 224, 0.65); }
.section.dark-band .lede { color: rgba(244, 237, 224, 0.8); }
.section.dark-band .divider { color: var(--amber); }

/* ─── Hero portrait ─── */
.hero-portrait {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 36px;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(244, 237, 224, 0.06) 0 12px,
      rgba(244, 237, 224, 0.02) 12px 24px),
    linear-gradient(160deg,
      color-mix(in srgb, var(--forest-moss) 35%, var(--forest-deep)) 0%,
      color-mix(in srgb, var(--ochre) 25%, var(--forest-deep)) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(244, 237, 224, 0.12);
}
.hero-portrait .pp-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 237, 224, 0.5);
  padding: 16px;
  line-height: 1.6;
}
.hero-portrait .pp-label span {
  display: block;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-portrait img + .pp-label { display: none; }
@media (max-width: 480px) {
  .hero-portrait { max-width: 220px; margin-bottom: 28px; }
}

/* ─── Timeline ─── */
.timeline {
  position: relative;
  padding-left: 28px;
  margin-top: 20px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(244, 237, 224, 0.3);
}
.tl-item {
  position: relative;
  padding: 0 0 28px 0;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--forest-deep), 0 0 0 5px rgba(212, 160, 69, 0.3);
  animation: tl-pulse 8s ease-in-out infinite;
  animation-delay: var(--tl-delay, 0s);
}
@keyframes tl-pulse {
  0%, 18%, 100% {
    box-shadow:
      0 0 0 4px var(--forest-deep),
      0 0 0 5px rgba(212, 160, 69, 0.3),
      0 0 0 5px rgba(212, 160, 69, 0);
  }
  6% {
    box-shadow:
      0 0 0 4px var(--forest-deep),
      0 0 0 6px rgba(212, 160, 69, 0.55),
      0 0 0 11px rgba(212, 160, 69, 0.18);
  }
  12% {
    box-shadow:
      0 0 0 4px var(--forest-deep),
      0 0 0 9px rgba(212, 160, 69, 0),
      0 0 0 16px rgba(212, 160, 69, 0);
  }
}
.tl-time {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--amber);
  margin-bottom: 4px;
}
.tl-title {
  font-family: var(--serif-display);
  font-size: 24px;
  margin: 0 0 4px 0;
  color: var(--cream);
}
.tl-desc {
  font-size: 15px;
  color: rgba(244, 237, 224, 0.75);
  margin: 0;
}

/* ─── Location card ─── */
.venue-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px 28px;
  text-align: center;
  margin-top: 8px;
}
.venue-card .v-name {
  font-family: var(--serif-display);
  font-size: 28px;
  margin: 0 0 8px 0;
}
.venue-card .v-addr {
  font-style: italic;
  color: var(--fg-soft);
  margin: 0 0 20px 0;
  line-height: 1.5;
}
.venue-card .v-addr a { color: var(--fg-soft); border-bottom: 1px dotted var(--rule); }

.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--rule);
  margin-top: 16px;
  background: var(--surface);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ─── Buttons ─── */
.btn-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
@media (min-width: 520px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--serif-display);
  font-size: 17px;
  letter-spacing: 0.03em;
  border-radius: 2px;
  border: 1px solid var(--accent-deep);
  background: var(--accent-deep);
  color: var(--cream);
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s;
  min-width: 200px;
  text-decoration: none;
}
.btn:hover {
  background: transparent;
  color: var(--accent-deep);
  text-decoration: none;
}
.btn.outline {
  background: transparent;
  color: var(--accent-deep);
}
.btn.outline:hover {
  background: var(--accent-deep);
  color: var(--cream);
}
.btn.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
}
.btn.accent:hover { background: transparent; color: var(--accent); }
.btn svg { width: 18px; height: 18px; }

/* ─── Gifts ─── */
.gift-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
}
@media (min-width: 600px) {
  .gift-grid { grid-template-columns: repeat(2, 1fr); }
  .gift-grid .gift-card.full { grid-column: 1 / -1; }
}
.gift-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 28px 24px;
  text-align: center;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.gift-card .gift-ico {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface);
  display: grid; place-items: center;
  color: var(--accent-deep);
  margin-bottom: 4px;
}
.gift-card .gift-ico svg { width: 22px; height: 22px; }
.gift-card h3 {
  font-family: var(--serif-display);
  font-size: 24px;
  margin: 0;
}
.gift-card p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-mute);
  font-style: italic;
}
.gift-card .btn { margin-top: 4px; min-width: 180px; padding: 12px 18px; font-size: 15px; }

.gift-note {
  margin-top: 32px;
  text-align: center;
  font-style: italic;
  color: var(--fg-mute);
  font-size: 14px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.gift-note .heart {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 6px;
  color: var(--accent);
}

/* ─── Footer ─── */
footer {
  text-align: center;
  padding: 56px 24px 48px;
  background: var(--surface);
  border-top: 1px solid var(--rule);
}
footer .mono {
  font-family: var(--serif-display);
  font-size: 22px;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 8px;
}
footer .ft-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
footer .leaves {
  width: 60px;
  height: 24px;
  margin: 0 auto 16px;
  color: var(--accent);
  opacity: 0.5;
}

/* ─── Reveal on scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Mobile tuning ─── */
@media (max-width: 480px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .quick-tile .lbl { font-size: 14px; }
  .quick-tile .ico { width: 48px; height: 48px; }
  .quick-tile .ico svg { width: 20px; height: 20px; }
  .venue-card, .gift-card { padding: 24px 18px; }
  .btn { width: 100%; }
  .hero { padding: 48px 20px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after, .tl-item::before { animation: none; }
  html { scroll-behavior: auto; }
}

@media print {
  .topnav, .nav-drawer, .scroll-cue { display: none !important; }
}
