/* ============================================================
   Mike & Julia — September 18, 2027 — Raleigh, NC
   Palette: arboretum green, ivory, speakeasy brass
   Type: Cormorant Garamond (display) + Karla (body)
   Ornament: line drawings of NC native flowers (img/flowers.svg)
   ============================================================ */

:root {
  --paper: #F2F1E7;
  --paper-deep: #E9E7D8;
  --pine: #253828;
  --pine-deep: #182517;
  --sage: #8A997F;
  --sage-soft: #C6CDB6;
  --brass: #96762D;
  --ink: #26261F;
  --white: #FBFAF4;

  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Karla", -apple-system, "Segoe UI", sans-serif;

  --max: 980px;
  --max-nav: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pine); }

/* ---------- Password gate ---------- */

#gate {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--pine-deep);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
#gate .gate-card { max-width: 380px; width: 100%; }
#gate .gate-bloom { width: 68px; height: 68px; margin: 0 auto 6px; color: var(--sage-soft); display: block; }
#gate .gate-monogram {
  font-family: var(--display); font-weight: 300; font-style: italic;
  font-size: 3rem; letter-spacing: 0.04em; margin-bottom: 8px;
  color: var(--sage-soft);
}
#gate p {
  font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage-soft); margin-bottom: 28px;
}
#gate input {
  width: 100%; padding: 14px 16px; font-size: 1rem; font-family: var(--body);
  border: 1px solid var(--sage); border-radius: 3px;
  background: rgba(251,250,244,0.06); color: var(--white);
  text-align: center; letter-spacing: 0.08em; outline: none;
}
#gate input:focus { border-color: var(--sage-soft); }
#gate button {
  margin-top: 14px; width: 100%; padding: 14px; font-size: 0.85rem;
  letter-spacing: 0.24em; text-transform: uppercase; font-family: var(--body);
  background: var(--brass); color: var(--white);
  border: none; border-radius: 3px; cursor: pointer;
}
#gate button:hover { background: #AA8838; }
#gate .gate-error {
  margin-top: 14px; color: #E4B7A5; font-size: 0.9rem;
  letter-spacing: normal; text-transform: none; min-height: 1.4em;
}
body.locked > *:not(#gate) { display: none !important; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(242,241,231,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--paper-deep);
}
.nav-inner {
  max-width: var(--max-nav); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 1.35rem; text-decoration: none; color: var(--pine);
}
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--pine); padding: 8px;
}
.nav-links { display: flex; gap: 20px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink);
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding-bottom: 3px; border-bottom: 1px solid transparent; white-space: nowrap;
}
.nav-links a:hover { color: var(--pine); border-bottom-color: var(--sage); }
.nav-links a.active { color: var(--pine); border-bottom-color: var(--brass); }
.nav-links a.nav-rsvp {
  border: 1px solid var(--pine); border-radius: 3px;
  padding: 8px 16px; color: var(--pine); margin-left: 4px;
}
.nav-links a.nav-rsvp:hover { background: var(--pine); color: var(--white); }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--paper-deep);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 12px 20px; border-bottom: none; font-size: 0.8rem; }
  .nav-links a.nav-rsvp { border: none; padding: 12px 20px; margin-left: 0; }
}

/* ---------- Hero ---------- */

.hero {
  text-align: center; padding: 48px 20px 72px;
  min-height: min(78vh, 760px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-art { width: min(360px, 88vw); height: auto; margin: 0 auto 6px; display: block; }
.hero-art .branch { color: var(--sage); }
.hero-art .blooms { color: var(--pine); }
.hero-eyebrow {
  font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--display); font-weight: 300; line-height: 1.08;
  font-size: clamp(2.6rem, 8vw, 4.6rem); color: var(--pine);
}
.hero h1 .amp { font-style: italic; color: var(--brass); font-size: 0.7em; }
.hero-date {
  margin-top: 22px; font-family: var(--display); font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--ink);
}
.hero-venue {
  margin-top: 26px; font-family: var(--display); font-weight: 400;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem); color: var(--pine);
}
.hero-addr {
  margin-top: 6px; font-size: 0.78rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--sage);
}
.hero-addr a { color: var(--sage); text-decoration: none; border-bottom: 1px solid var(--sage-soft); }
.hero-addr a:hover { color: var(--pine); border-bottom-color: var(--pine); }
.hero-more {
  display: inline-block; margin-top: 22px;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pine); text-decoration: none; border-bottom: 1px solid var(--sage-soft);
}
.hero-more:hover { border-bottom-color: var(--pine); }

.btn {
  display: inline-block; margin-top: 34px; padding: 15px 44px;
  background: var(--pine); color: var(--white); text-decoration: none;
  font-size: 0.82rem; letter-spacing: 0.24em; text-transform: uppercase;
  border-radius: 3px; border: none; cursor: pointer; font-family: var(--body);
}
.btn:hover { background: var(--pine-deep); }
.btn-brass { background: var(--brass); }
.btn-brass:hover { background: #7E6224; }

/* ---------- Sections & typography ---------- */

.section { max-width: var(--max); margin: 0 auto; padding: 56px 20px 64px; }
.section-narrow { max-width: 680px; }

.section-head { text-align: center; margin-bottom: 46px; }
.section-head .bloom { width: 86px; height: 86px; margin: 0 auto 4px; color: var(--sage); display: block; }
.section-head .bloom-name {
  font-size: 0.74rem; letter-spacing: 0.04em; color: var(--sage); margin-bottom: 16px;
}
.section-head .bloom-name i { font-family: var(--display); font-size: 0.9rem; }
.section-head h2 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.9rem, 5vw, 2.6rem); color: var(--pine);
}
.section-head .sub {
  margin-top: 10px; font-size: 0.8rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--brass);
}
.section-head .lede { margin-top: 14px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Schedule (stem timeline) ---------- */

.timeline { position: relative; max-width: 640px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 1px; background: var(--sage-soft);
}
.event { position: relative; padding: 0 0 44px 46px; }
.event:last-child { padding-bottom: 0; }
.event::before {
  content: ""; position: absolute; left: 5px; top: 7px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--brass);
}
.event-day {
  font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 4px;
}
.event h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 1.55rem; color: var(--pine); margin-bottom: 6px;
}
.event .venue { font-weight: 700; }
.event .addr a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sage); }
.event .times { margin-top: 10px; }
.event .times li { list-style: none; padding: 2px 0; }
.event .times .t {
  display: inline-block; min-width: 86px; font-weight: 700; color: var(--pine);
  font-variant-numeric: tabular-nums;
}

/* ---------- Cards (things to do, attire) ---------- */

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.card {
  background: var(--white); border: 1px solid var(--paper-deep);
  border-radius: 4px; padding: 24px;
}
.card .tag {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 8px;
}
.card h3 {
  font-family: var(--display); font-weight: 400; font-size: 1.3rem;
  color: var(--pine); margin-bottom: 6px;
}
.card p { font-size: 0.95rem; }
.card .card-addr { margin-top: 10px; font-size: 0.85rem; color: var(--sage); }

.group-label {
  font-size: 0.8rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--pine); text-align: center; margin: 46px 0 20px;
}
.group-label:first-of-type { margin-top: 0; }

/* ---------- Place lists (things to do) ---------- */

.place-list {
  list-style: none; max-width: 760px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0 32px;
}
.place-list li { border-bottom: 1px solid var(--paper-deep); }
.place-list a {
  display: block; padding: 12px 0; text-decoration: none; color: var(--pine);
  font-family: var(--display); font-size: 1.25rem; line-height: 1.25;
}
.place-list a::after { content: " \2197"; font-size: 0.7em; color: var(--sage); }
.place-list a:hover { color: var(--brass); }
.place-list .note {
  display: block; font-size: 0.78rem; color: var(--sage);
  margin-top: -10px; padding-bottom: 10px;
}

/* ---------- FAQ ---------- */

.faq { max-width: 680px; margin: 0 auto; }
.faq-item { padding: 26px 0; border-top: 1px solid var(--sage-soft); }
.faq-item:last-child { border-bottom: 1px solid var(--sage-soft); }
.faq-item h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 1.45rem; color: var(--pine); margin-bottom: 8px;
}
.faq-item p { font-size: 1rem; }
.faq-item p + p { margin-top: 8px; }

/* ---------- Registry statement ---------- */

.statement {
  text-align: center; max-width: 560px; margin: 0 auto;
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.3; color: var(--pine);
}

/* ---------- Photo gallery ---------- */

.gallery { columns: 3 260px; column-gap: 14px; }
.gallery a { display: block; margin-bottom: 14px; break-inside: avoid; }
.gallery img {
  width: 100%; border-radius: 4px; border: 1px solid var(--paper-deep);
  background: var(--paper-deep);
}
.gallery a:hover img { opacity: 0.92; }

/* ---------- Embedded RSVP form ---------- */

.rsvp-frame {
  border: 1px solid var(--paper-deep); border-radius: 4px;
  overflow: hidden; background: var(--white);
}
.rsvp-frame iframe { width: 100%; height: 900px; border: 0; display: block; }
@media (max-width: 640px) { .rsvp-frame iframe { height: 1000px; } }

/* ---------- Embedded map ---------- */

.map-frame {
  height: clamp(440px, 70vh, 720px);
  border: 1px solid var(--paper-deep);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-note {
  margin-top: 16px; text-align: center;
  font-size: 0.9rem; color: var(--ink);
}
.map-note a { text-decoration: underline; text-decoration-color: var(--sage); }

/* ---------- Placeholder / empty state ---------- */

.empty {
  text-align: center; padding: 40px 24px;
  border: 1px dashed var(--sage-soft); border-radius: 4px; color: var(--ink);
}
.empty .sprig { width: 64px; height: 18px; margin: 0 auto 12px; color: var(--sage); display: block; }

/* ---------- Footer ---------- */

footer {
  margin-top: 40px; padding: 46px 20px 56px; text-align: center;
  background: var(--pine); color: var(--sage-soft);
}
footer .foot-bloom { width: 46px; height: 46px; margin: 0 auto 10px; color: var(--sage-soft); display: block; }
footer .foot-monogram {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: 1.8rem; color: var(--white); margin-bottom: 6px;
}
footer p { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
