:root{
  /* Palette — forest, not the original's purple/gold */
  --forest:#1E3A2B;   /* deep green ink / dark section */
  --pine:#2F5D3A;     /* mid green — buttons, accents */
  --moss:#4B7A52;     /* lighter green for links/hover */
  --sage:#9CB29A;     /* soft muted green — borders */
  --fern:#E7EEE4;     /* pale green tint — section wash */
  --parchment:#F6F4EA;/* warm, green-leaning base */
  --brass:#C19A4B;    /* restrained warm metallic accent */
  --ink:#22271F;      /* near-black warm text */
  --muted:#5C6657;    /* secondary text */

  --card: rgba(255,255,255,.74);
  --border: rgba(30,58,43,.14);
  --shadow: 0 20px 55px rgba(20,38,26,.10);
  --radius: 20px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Mulish", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  line-height:1.6;
  background:
    radial-gradient(820px 420px at 82% 8%, rgba(75,122,82,.16), transparent 60%),
    radial-gradient(680px 420px at 14% 28%, rgba(30,58,43,.10), transparent 58%),
    var(--parchment);
}

img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}

.container{
  width:min(1140px, calc(100% - 40px));
  margin-inline:auto;
}

/* Brand leaf glyph */
.brand-mark .leaf{ fill: rgba(47,93,58,.16); stroke: var(--pine); stroke-width:1.4; }
.brand-mark .vein{ fill:none; stroke: var(--pine); stroke-width:1; stroke-linecap:round; opacity:.7; }
.footer-mark .leaf{ fill: rgba(47,93,58,.14); stroke: var(--pine); stroke-width:1.4; }
.footer-mark .vein{ fill:none; stroke: var(--pine); stroke-width:1; stroke-linecap:round; opacity:.7; }

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:60;
  background: rgba(246,244,234,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30,58,43,.10);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:13px 0; gap:18px;
}
.brand{ display:flex; align-items:center; gap:11px; min-width:200px; }
.brand-name{ font-family:var(--serif); font-weight:600; font-size:18px; letter-spacing:.2px; }
.brand-amp{ color:var(--brass); }

.nav{ display:flex; gap:6px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.nav a{
  font-size:14px; color:var(--muted); padding:9px 11px; border-radius:11px;
  transition:color .15s ease, background .15s ease;
}
.nav a:hover, .nav a:focus-visible{ color:var(--forest); background: rgba(47,93,58,.08); }

.nav-toggle{
  display:none; width:46px; height:42px; border-radius:13px;
  border:1px solid rgba(30,58,43,.16); background: rgba(255,255,255,.7);
  box-shadow:0 8px 22px rgba(20,38,26,.06); cursor:pointer;
}
.nav-toggle span{ display:block; width:20px; height:2px; margin:5px auto; background:var(--forest); border-radius:10px; }

/* Eyebrows / titles */
.eyebrow{
  margin:0 0 8px; font-size:12px; letter-spacing:.22em; text-transform:uppercase;
  color:var(--moss); font-weight:600;
}
.eyebrow-center{ text-align:center; }
.eyebrow-light{ color: rgba(231,238,228,.85); }
.section-title{
  margin:0 0 10px; font-family:var(--serif); font-weight:600;
  font-size:clamp(32px, 4.4vw, 50px); line-height:1.05; color:var(--forest);
}
.section-sub{ margin:0 0 24px; color:var(--muted); max-width:62ch; font-size:15.5px; }
.title-light{ color:#F4F8F0; }
.sub-light{ color: rgba(231,238,228,.8); }
.center{ text-align:center; margin-inline:auto; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 20px; border-radius:999px; font-weight:600; font-size:14px;
  letter-spacing:.2px; cursor:pointer; border:none; white-space:nowrap;
  transition: transform .08s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-solid{
  background:var(--pine); color:#fff; box-shadow:0 14px 32px rgba(47,93,58,.26);
}
.btn-solid:hover{ background:var(--forest); box-shadow:0 18px 40px rgba(47,93,58,.3); }
.btn-ghost{
  background: rgba(255,255,255,.7); color:var(--forest);
  border:1.5px solid rgba(47,93,58,.4); box-shadow:0 10px 24px rgba(20,38,26,.05);
}
.btn-ghost:hover{ border-color:var(--pine); background: rgba(255,255,255,.92); }
.btn-wide{ width:fit-content; min-width:240px; }

/* Hero */
.hero{ position:relative; padding:46px 0 18px; overflow:hidden; }
.hero-canopy{ position:absolute; inset:0 0 auto 0; height:240px; pointer-events:none; opacity:.5; }
.hero-canopy svg{ width:100%; height:100%; }
.hero-canopy .branch path{ fill:none; stroke: var(--sage); stroke-width:1.4; stroke-linecap:round; }
.hero-inner{ position:relative; text-align:center; padding-top:14px; }
.hero-title{
  margin:6px 0 6px; font-family:var(--serif); font-weight:700;
  font-size:clamp(46px, 8vw, 92px); line-height:1; color:var(--forest);
  display:flex; align-items:center; justify-content:center; gap:.22em; flex-wrap:wrap;
}
.hero-title .amp{ color:var(--brass); font-weight:500; font-style:italic; }
.hero-meta{
  margin:6px 0 0; font-family:var(--serif); font-size:clamp(15px,2.4vw,19px);
  color:var(--moss); letter-spacing:.02em;
}
.hero-sub{ margin:16px auto 6px; max-width:58ch; color:var(--muted); font-size:16.5px; }

/* Countdown */
.countdown{
  margin:26px auto 4px; display:flex; align-items:flex-end; justify-content:center;
  gap:10px; flex-wrap:wrap;
}
.cd-cell{
  display:flex; flex-direction:column; align-items:center; gap:4px;
  min-width:84px; padding:14px 10px; border-radius:16px;
  background: var(--card); border:1px solid var(--border);
  box-shadow:0 12px 30px rgba(20,38,26,.06);
}
.cd-num{ font-family:var(--serif); font-weight:600; font-size:clamp(28px,5vw,40px); color:var(--forest); line-height:1; font-variant-numeric:tabular-nums; }
.cd-lab{ font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); }
.cd-sep{ color:var(--sage); font-size:26px; padding-bottom:18px; }
.cd-note{ margin:14px 0 0; font-family:var(--serif); font-size:18px; color:var(--moss); }

.hero-actions{ margin-top:24px; display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }

/* Sprig divider (signature motif) */
.sprig{
  --sprig: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Cg fill='none' stroke='%239CB29A' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M10 20h40M70 20h40'/%3E%3Cpath d='M60 8c5 3 8 7 8 12 0 5-3 9-8 12-5-3-8-7-8-12 0-5 3-9 8-12z' fill='%23C19A4B' fill-opacity='.18'/%3E%3Cpath d='M60 10v22'/%3E%3C/g%3E%3C/svg%3E");
  height:40px; margin:34px auto 0; max-width:280px; background:var(--sprig);
}

/* Generic section */
.section{ padding:46px 0; }
.card{
  background: var(--card); border:1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.pad{ padding:22px; }
.card-h{ margin:0 0 8px; font-family:var(--serif); font-size:21px; color:var(--forest); }
.card-p{ margin:0 0 12px; color:var(--muted); }
.card-hint{ margin:0; font-size:13.5px; color:var(--moss); }
.link-arrow{ color:var(--pine); font-weight:600; font-size:14px; }
.link-arrow:hover{ color:var(--forest); }

.grid-two{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px; }

/* Story timeline */
.timeline{ list-style:none; margin:8px 0 0; padding:0; position:relative; }
.timeline::before{
  content:""; position:absolute; left:9px; top:6px; bottom:6px; width:2px;
  background: linear-gradient(var(--sage), rgba(156,178,154,.25));
}
.tl-item{ position:relative; padding:0 0 18px 40px; }
.tl-node{
  position:absolute; left:2px; top:6px; width:18px; height:18px; border-radius:50%;
  background: radial-gradient(circle at 35% 30%, var(--brass), var(--pine));
  border:3px solid var(--parchment); box-shadow:0 0 0 1px var(--sage);
}
.tl-when{ font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--moss); font-weight:600; }
.tl-head{ margin:4px 0 6px; font-family:var(--serif); font-size:20px; color:var(--forest); }
.tl-card{ padding:16px 18px; }
.tl-card p{ margin:0; color:var(--muted); }

/* The Day — dark forest section */
.day-section{
  padding:54px 0; margin:8px 0;
  background:
    radial-gradient(700px 360px at 80% 0%, rgba(75,122,82,.4), transparent 60%),
    linear-gradient(160deg, #1B3325, #15291D);
  color:#EAF0E6; position:relative;
}
.trail{ list-style:none; margin:26px auto 0; padding:0; max-width:680px; position:relative; }
.trail::before{
  content:""; position:absolute; left:10px; top:8px; bottom:8px; width:2px;
  background: linear-gradient(rgba(193,154,75,.7), rgba(156,178,154,.25));
}
.trail-stop{ position:relative; padding:0 0 26px 44px; }
.trail-stop:last-child{ padding-bottom:0; }
.trail-dot{
  position:absolute; left:3px; top:4px; width:16px; height:16px; border-radius:50%;
  background:var(--brass); box-shadow:0 0 0 4px rgba(193,154,75,.18);
}
.trail-time{ display:inline-block; font-family:var(--serif); font-size:14px; color:var(--brass); letter-spacing:.04em; }
.trail-body h3{ margin:2px 0 4px; font-family:var(--serif); font-size:22px; color:#F4F8F0; font-weight:600; }
.trail-body p{ margin:0; color: rgba(231,238,228,.75); }

/* Venue */
.venue{ padding:18px; }
.venue-top{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.venue-name{ margin:0; font-family:var(--serif); font-size:24px; color:var(--forest); }
.venue-address{ margin:6px 0 0; color:var(--muted); }
.map-wrap{ margin-top:16px; overflow:hidden; border-radius:16px; border:1px solid var(--border); background: rgba(255,255,255,.5); }
.map-wrap iframe{ width:100%; height:360px; border:0; display:block; }

/* RSVP */
.rsvp-line{ margin:0 0 14px; font-size:16px; color:var(--ink); }
.rsvp-actions{ display:flex; gap:12px; flex-wrap:wrap; }

/* Frames (seating / gallery placeholders) */
.frame{
  position:relative; margin:0; border-radius:18px; overflow:hidden;
  border:1px solid var(--border); background: rgba(255,255,255,.55);
  display:flex; align-items:center; justify-content:center;
}
.frame img{ width:100%; height:100%; object-fit:contain; background: rgba(255,255,255,.4); }
.frame figcaption{ display:none; }
.frame-tall{ aspect-ratio:4/5; }
.frame-empty img{ display:none; }
.frame-empty{
  aspect-ratio:4/5;
  background:
    no-repeat center 38%/40px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 6c8 5 12 12 12 19 0 8-5 14-12 17-7-3-12-9-12-17 0-7 4-14 12-19z' fill='%239CB29A' fill-opacity='.25' stroke='%239CB29A' stroke-width='1.4'/%3E%3Cpath d='M24 9v31' fill='none' stroke='%239CB29A' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(160deg, var(--fern), rgba(255,255,255,.5));
}
.frame-empty figcaption{
  display:block; position:absolute; bottom:22%; left:0; right:0; text-align:center;
  font-size:13px; color:var(--moss); letter-spacing:.04em;
}

/* Share */
.moments{ padding:18px; }
.moments-grid{ display:grid; grid-template-columns:1fr 1fr; gap:22px; align-items:center; }
.qr-box{
  position:relative; border-radius:16px; border:1px solid rgba(193,154,75,.4);
  background: rgba(255,255,255,.6); padding:14px;
}
.qr-img{ width:min(360px,100%); margin:0 auto; border-radius:12px; background:#fff; }
.qr-empty{ min-height:240px; display:flex; align-items:center; justify-content:center; }
.qr-empty .qr-img{ display:none; }
.qr-empty::before{ content:"QR code goes here"; color:var(--moss); font-size:14px; }
.qr-caption{ margin:10px 0 0; text-align:center; color:var(--muted); font-size:13px; }
.moments-right{ display:flex; flex-direction:column; gap:14px; padding-left:6px; }
.note{
  padding:12px 14px; border-radius:14px; border:1px solid rgba(47,93,58,.18);
  background: rgba(255,255,255,.55); color:var(--muted); font-size:13.5px; max-width:520px;
}

/* Gallery */
.gallery-grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px; }

/* Wishes */
.wish-form{ display:flex; flex-direction:column; gap:14px; max-width:680px; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font-size:13px; font-weight:600; color:var(--forest); letter-spacing:.02em; }
.field input, .field textarea{
  font-family:var(--sans); font-size:15px; color:var(--ink);
  padding:11px 13px; border-radius:12px; border:1px solid var(--border);
  background: rgba(255,255,255,.8); resize:vertical;
}
.field input:focus, .field textarea:focus{ outline:2px solid var(--moss); outline-offset:1px; border-color:var(--moss); }
.wish-actions{ display:flex; gap:12px; flex-wrap:wrap; }
.wish-hint{ margin:2px 0 0; font-size:13.5px; color:var(--moss); min-height:1.2em; }
.wish-wall{
  margin-top:24px; columns:3; column-gap:16px;
}
.wish-card{
  break-inside:avoid; margin-bottom:16px; padding:16px 18px; border-radius:16px;
  border:1px solid var(--border); background: var(--card); box-shadow:0 10px 26px rgba(20,38,26,.06);
}
.wish-card p{ margin:0 0 8px; color:var(--ink); font-size:15px; }
.wish-card .wish-by{ margin:0; font-family:var(--serif); font-size:14px; color:var(--moss); }

/* FAQ */
.faq{ padding:14px; }
.faq-q{
  width:100%; text-align:left; padding:15px 16px; border-radius:14px;
  border:1px solid var(--border); background: rgba(255,255,255,.55);
  font-family:var(--serif); font-size:18px; color:var(--forest);
  display:flex; justify-content:space-between; align-items:center; gap:12px; cursor:pointer;
  transition:border-color .15s ease, background .15s ease;
}
.faq-q:hover{ background: rgba(255,255,255,.78); }
.faq-q + .faq-a{ margin-bottom:10px; }
.faq-icon{ font-family:var(--sans); font-weight:700; color:var(--brass); font-size:22px; transition:transform .2s ease; }
.faq-q[aria-expanded="true"]{ border-color: rgba(47,93,58,.32); }
.faq-q[aria-expanded="true"] .faq-icon{ transform:rotate(45deg); }
.faq-a{ display:none; padding:6px 16px 14px; color:var(--muted); }
.faq-a p{ margin:6px 0 0; }
.faq-q[aria-expanded="true"] + .faq-a{ display:block; }

/* Footer */
.footer{ margin-top:30px; text-align:center; color:var(--muted); }
.footer-mark{ display:inline-block; margin-bottom:6px; }
.footer p{ margin:4px 0; }
.footer-sign{ font-family:var(--serif); font-weight:700; font-size:20px; color:var(--forest); }

/* Reveal on scroll */
.reveal{ opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }

/* Focus visibility */
a:focus-visible, .btn:focus-visible, .faq-q:focus-visible, .nav-toggle:focus-visible{
  outline:2px solid var(--moss); outline-offset:2px; border-radius:8px;
}

/* Responsive */
@media (max-width: 980px){
  .gallery-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .wish-wall{ columns:2; }
  .map-wrap iframe{ height:320px; }
}
@media (max-width: 760px){
  .nav-toggle{ display:block; }
  .nav{ display:none; width:100%; padding:8px 0 12px; gap:4px; justify-content:flex-start; }
  .nav.open{ display:flex; flex-direction:column; }
  .nav a{ display:block; width:100%; }
  .brand{ min-width:auto; }

  .grid-two{ grid-template-columns:1fr; }
  .moments-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:1fr 1fr; }
  .wish-wall{ columns:1; }
  .cd-sep{ display:none; }
  .countdown{ gap:8px; }
  .cd-cell{ min-width:70px; flex:1 1 60px; }
  .venue-top .btn{ width:100%; }
  .btn-wide{ min-width:100%; }
  .map-wrap iframe{ height:260px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .btn, .faq-icon{ transition:none; }
}
