/* Pete & Audrey: champagne background, sage green main color, royal blue accents */
:root {
  --primary: #5f7652;      /* sage green: names, headings, buttons, footer */
  --primary-light: #9caf88; /* lighter sage for decorative touches */
  --primary-soft: #eef2ea; /* pale sage for backgrounds */
  --accent: #4a66a6;       /* royal blue accents */
  --accent-deep: #4a66a6;  /* royal blue for small accent text */
  --accent-soft: #e9edf5;  /* pale blue for backgrounds */
  --ink: #222222;
  --muted: #5f6368;
  --line: #e4d8c4;
  --bg: #f5ebdc;           /* champagne */
  --bg-deep: #efe2cd;      /* slightly deeper champagne for alternating sections */
  --bg-light: #fbf6ee;     /* pale champagne for boxes inside white cards */
  --radius: 14px;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--primary); }
img { max-width: 100%; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 235, 220, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 16px; min-height: 58px;
}
.nav-brand {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--primary); text-decoration: none; white-space: nowrap;
}
.nav-links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  color: var(--primary); text-decoration: none; padding: 8px 10px; border-radius: 8px; white-space: nowrap;
}
.nav-links a:hover { background: var(--primary-soft); }

/* Hero */
.hero {
  text-align: center;
  padding: 72px 16px 64px;
  background:
    radial-gradient(ellipse at top, rgba(255, 255, 255, 0.55), transparent 60%),
    var(--bg);
}
.monogram { width: 108px; height: 108px; margin: 0 auto 20px; display: block; }
/* Monogram hover: lifts, tilts, glows, a dashed ring spins around it, and hearts float up.
   On phones a tap does the same thing. */
.monogram-wrap { position: relative; width: 108px; height: 108px; margin: 0 auto 20px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.monogram-wrap .monogram {
  position: relative; z-index: 1; width: 100%; height: 100%; margin: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}
.monogram-wrap::before {
  content: ''; position: absolute; inset: -11px; border-radius: 50%;
  border: 2px dashed var(--accent); opacity: 0;
  transition: opacity 0.4s ease;
  animation: ring-spin 12s linear infinite; animation-play-state: paused;
}
.monogram-wrap:hover .monogram, .monogram-wrap.pop .monogram {
  transform: scale(1.1) rotate(-6deg);
  filter: drop-shadow(0 8px 18px rgba(95, 118, 82, 0.4));
}
.monogram-wrap:hover::before, .monogram-wrap.pop::before { opacity: 0.75; animation-play-state: running; }
.heart {
  position: absolute; left: 50%; top: 45%; z-index: 2; pointer-events: none;
  font-size: var(--s); line-height: 1; color: var(--accent); opacity: 0;
  transform: translate(calc(-50% + var(--x)), 0) scale(0.5);
}
.heart.sage { color: var(--primary-light); }
.monogram-wrap:hover .heart, .monogram-wrap.pop .heart { animation: float-heart 2.4s ease-out var(--d) infinite; }
@keyframes float-heart {
  0%   { opacity: 0; transform: translate(calc(-50% + var(--x)), 0) scale(0.5); }
  15%  { opacity: 0.95; }
  50%  { transform: translate(calc(-50% + var(--x) + var(--drift)), -70px) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x) - var(--drift)), -140px) scale(0.85); }
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .monogram-wrap .monogram { transition: none; }
  .monogram-wrap:hover .monogram, .monogram-wrap.pop .monogram { transform: none; }
  .monogram-wrap::before, .heart { animation: none !important; }
}

.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 600; margin: 0 0 12px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500; color: var(--primary);
  font-size: clamp(3rem, 11vw, 6.2rem); line-height: 1; margin: 0;
}
.rule {
  width: 140px; height: 2px; margin: 26px auto; border: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.hero .date {
  font-family: var(--serif); font-size: clamp(1.5rem, 4.5vw, 2.2rem); color: var(--primary); margin: 0;
}
.hero .place { color: var(--muted); letter-spacing: 0.08em; margin: 6px 0 0; }
.hero .announce {
  font-family: var(--serif); font-weight: 500; color: var(--primary);
  font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.2; text-align: center; margin: 36px 0 0;
}
.hero .welcome { max-width: 560px; margin: 10px auto 0; color: var(--ink); text-align: center; }
.countdown {
  display: inline-flex; gap: 10px; align-items: baseline; margin-top: 26px;
  padding: 10px 22px; border: 1px solid var(--accent); border-radius: 999px; color: var(--primary);
}
.countdown strong { font-family: var(--serif); font-size: 1.8rem; color: var(--primary); }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.85rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 999px; border: 2px solid var(--primary);
  background: var(--primary); color: #fff; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn.outline { background: transparent; color: var(--primary); }
.btn.outline:hover { background: var(--accent-soft); color: var(--primary); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Sections */
main { display: block; }
.section { padding: 64px 16px; border-top: 1px solid var(--line); }
.section:nth-of-type(even) { background: var(--bg-deep); }
.section-inner { max-width: 760px; margin: 0 auto; }
.section h2 {
  font-family: var(--serif); font-weight: 500; color: var(--primary);
  font-size: clamp(2rem, 6vw, 2.8rem); text-align: center; margin: 0 0 6px;
}
.section h2 + .rule { margin: 14px auto 30px; }
.content h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--primary); margin: 1.6em 0 0.3em; font-weight: 600; }
.content ul { padding-left: 1.2em; }
.content li { margin: 0.25em 0; }
.content li::marker { color: var(--accent-deep); }

/* Venue cards and map */
.venues { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 8px 0 24px; }
.venue-card { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 20px; background: #fff; }
.venue-card .label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-deep); font-weight: 700; }
.venue-card h3 { font-family: var(--serif); font-size: 1.5rem; margin: 4px 0; color: var(--primary); font-weight: 600; }
.venue-card p { margin: 2px 0; color: var(--muted); }
.map { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); box-shadow: 0 6px 24px rgba(70, 60, 40, 0.1); }

/* Footer: sits at the bottom of the screen even when the page is short */
body.site { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.site > main { flex: 1 0 auto; }
body.site > footer { margin-top: auto; }
footer {
  background: var(--primary); color: #f4f1ea; text-align: center; padding: 40px 16px;
  border-top: 4px solid var(--accent);
}
footer .names { font-family: var(--serif); font-size: 1.8rem; color: #fff; margin: 0; }
footer p { margin: 4px 0; font-size: 0.9rem; }
footer a { color: #fff; }

/* Cards used on RSVP and photo pages */
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1; padding: 40px 16px 64px; }
.card {
  max-width: 600px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 36px 28px; box-shadow: 0 10px 40px rgba(70, 60, 40, 0.08);
  border-top: 5px solid var(--primary);
}
.card h1 { font-family: var(--serif); font-weight: 500; color: var(--primary); font-size: clamp(2rem, 7vw, 2.8rem); text-align: center; margin: 0; line-height: 1.1; }
.card .lead { text-align: center; color: var(--ink); margin: 14px 0 6px; }
.card .sub { text-align: center; color: var(--muted); font-size: 0.92rem; margin: 0; }
.notice { text-align: center; padding: 14px 16px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin: 20px 0 0; }
.notice.error { background: #fdecec; color: #8a1c1c; }
.notice.accent { background: var(--accent-soft); color: var(--accent); }

/* RSVP form */
.guest-row { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 14px 0; }
.guest-row .who { font-weight: 600; color: var(--primary); margin-bottom: 10px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: flex; align-items: center; justify-content: center; text-align: center; gap: 8px;
  min-height: 54px; padding: 10px; border: 2px solid var(--line); border-radius: 12px;
  font-weight: 600; cursor: pointer; transition: all 0.15s ease; user-select: none;
}
.choice label:hover { border-color: var(--primary); }
.choice input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice input[value="yes"]:checked + label { background: var(--primary); border-color: var(--primary); color: #fff; }
.choice input[value="no"]:checked + label { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.field { margin-top: 12px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; padding: 11px 13px; border: 1px solid #cfd3cc; border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(95, 118, 82, 0.2); }
.field textarea { min-height: 84px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plus-block { background: var(--bg-light); border: 1px dashed #cfd3cc; border-radius: 14px; padding: 16px; margin-top: 14px; }
.plus-block h3 { margin: 0 0 4px; font-size: 1rem; color: var(--primary); }
.actions { margin-top: 24px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.summary-list { list-style: none; padding: 0; margin: 16px 0 0; }
.summary-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.tag.yes { background: var(--primary); color: #fff; }
.tag.no { background: #e6e8ee; color: #4a4d4a; }

/* Photos */
.gallery { columns: 3 220px; column-gap: 12px; max-width: 1080px; margin: 32px auto 0; }
.gallery button { all: unset; display: block; margin: 0 0 12px; break-inside: avoid; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; background: var(--primary-soft); }
.dropzone {
  border: 2px dashed #c5cbbf; border-radius: 16px; padding: 28px 16px; text-align: center; margin-top: 18px;
  background: var(--bg-light); cursor: pointer; transition: border-color 0.15s ease;
}
.dropzone:hover, .dropzone.over { border-color: var(--primary); }
.progress { height: 10px; border-radius: 999px; background: var(--primary-soft); overflow: hidden; margin-top: 16px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.2s ease; }
.lightbox { position: fixed; inset: 0; background: rgba(18, 20, 24, 0.92); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 8px; }
.lightbox .cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: 0.9rem; }

.hidden { display: none !important; }
.center { text-align: center; }

@media (max-width: 560px) {
  .two { grid-template-columns: 1fr; }
  .card { padding: 28px 18px; }
  .hero { padding-top: 48px; }
}

/* Guest book */
.choice.three { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.choice input[name="kind"]:checked + label { background: var(--primary); border-color: var(--primary); color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 32px auto 0; max-width: 1080px; }
.chip-btn {
  font: 600 0.75rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--primary);
}
.chip-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.notes { columns: 3 280px; column-gap: 16px; max-width: 1080px; margin: 20px auto 0; }
.note {
  break-inside: avoid; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--primary-light);
  border-radius: var(--radius); padding: 18px 20px; margin: 0 0 16px; box-shadow: 0 4px 16px rgba(70, 60, 40, 0.06);
}
.note.advice { border-top-color: var(--accent); }
.note.story { border-top-color: var(--primary); }
.note-kind { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep); }
.note p { margin: 8px 0 10px; }
.note-by { font-family: var(--serif); font-size: 1.2rem; color: var(--primary); text-align: right; }
.note-by::before { content: '~ '; }
@media (max-width: 560px) { .choice.three { grid-template-columns: 1fr; } }

/* Recipes */
.recipe-list { max-width: 760px; margin: 20px auto 0; }
.recipe { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary-light); border-radius: var(--radius); margin: 0 0 12px; }
.recipe[open] { border-left-color: var(--primary); }
.recipe summary { list-style: none; cursor: pointer; padding: 16px 20px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; }
.recipe summary::-webkit-details-marker { display: none; }
.recipe-cat { grid-column: 1 / -1; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep); }
.recipe-title { font-family: var(--serif); font-size: 1.6rem; color: var(--primary); line-height: 1.2; }
.recipe-by { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.recipe-body { padding: 0 20px 20px; border-top: 1px dashed var(--line); }
.recipe-body h3 { font-family: var(--serif); color: var(--primary); font-size: 1.25rem; margin: 18px 0 6px; }
.recipe-body ul { padding-left: 1.2em; margin: 0; }
.recipe-body li::marker { color: var(--accent); }
.recipe-note { font-style: italic; color: var(--muted); background: var(--bg-light); border-radius: 10px; padding: 4px 16px; margin-top: 16px; }
.recipe-serves { font-size: 0.85rem; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 560px) { .recipe summary { grid-template-columns: 1fr; } }
