/* Sage green & beige, romantic garden theme */
:root {
  --sage: #9caf88;
  --sage-deep: #6b7a57;
  --forest: #3b4a36;
  --beige: #e8dcc4;
  --cream: #f6efe2;
  --paper: #fbf7ef;
  --gold: #b0915a;
  --ink: #34402f;
  --muted: #6d7565;
  --line: #d9cdb2;
  --radius: 14px;
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --script: 'Great Vibes', 'Snell Roundhand', cursive;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--forest); }
h2 { font-size: clamp(2rem, 5vw, 2.9rem); text-align: center; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.script { font-family: var(--script); font-weight: 400; }
.eyebrow { font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--sage-deep); text-align: center; margin-bottom: .6rem; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(720px, 100% - 40px); margin: 0 auto; }
section { padding: clamp(56px, 9vw, 104px) 0; }
.alt { background: var(--cream); }
.sage { background: var(--sage-deep); color: var(--cream); }
.sage h2, .sage h3 { color: var(--cream); }
.sage .eyebrow { color: var(--beige); }

.divider { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 0 auto 2.2rem; color: var(--gold); }
.divider::before, .divider::after { content: ''; height: 1px; width: 70px; background: currentColor; opacity: .6; }
.divider svg { width: 26px; height: 26px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251,247,239,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 16px; }
.brand { font-family: var(--script); font-size: 1.9rem; color: var(--forest); text-decoration: none; line-height: 1; }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; align-items: center; }
.nav a.link { text-decoration: none; color: var(--ink); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.nav a.link:hover { color: var(--sage-deep); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }

.btn {
  display: inline-block; border: 1px solid var(--forest); background: var(--forest); color: var(--cream);
  padding: 13px 30px; border-radius: 999px; font: 500 .82rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s;
}
.btn:hover { background: var(--sage-deep); border-color: var(--sage-deep); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--forest); }
.btn.ghost:hover { background: var(--forest); color: var(--cream); }
.btn.small { padding: 10px 20px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Hero / Save the Date */
.hero {
  min-height: calc(100vh - 62px); display: grid; place-items: center; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(156,175,136,.35), transparent 70%),
    radial-gradient(900px 500px at 100% 100%, rgba(232,220,196,.9), transparent 70%),
    var(--cream);
  padding: 56px 0;
}
.hero .sprig { position: absolute; width: min(320px, 42vw); opacity: .55; pointer-events: none; }
.hero .sprig.tl { top: -10px; left: -30px; transform: rotate(8deg); }
.hero .sprig.br { bottom: -10px; right: -30px; transform: rotate(188deg); }
.hero-inner { position: relative; z-index: 1; padding: 0 20px; }
.hero .save { font-size: .9rem; letter-spacing: .5em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 1.2rem; }
.hero h1 { font-family: var(--script); font-size: clamp(3.6rem, 13vw, 8rem); line-height: 1; margin: 0; color: var(--forest); font-weight: 400; }
.hero h1 .amp { display: block; font-family: var(--serif); font-style: italic; font-size: .32em; color: var(--gold); margin: .1em 0; }
.hero .date { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 1.6rem 0 .2rem; color: var(--forest); }
.hero .place { letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; color: var(--muted); margin-bottom: 2rem; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note-invite { margin-top: 1.6rem; font-size: .95rem; color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.15rem; }

.countdown { display: flex; justify-content: center; gap: clamp(10px, 3vw, 28px); margin: 2.2rem 0; }
.cd { min-width: 72px; }
.cd b { display: block; font-family: var(--serif); font-size: clamp(2rem, 6vw, 3rem); font-weight: 500; color: var(--forest); line-height: 1; }
.cd span { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* Cards & grids */
.grid { display: grid; gap: 22px; }
.g1 { grid-template-columns: 1fr; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.alt .card { background: var(--paper); }
.card h3 { margin-bottom: .35em; }
.card .meta { color: var(--sage-deep); letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; margin-bottom: .6rem; }

.timeline { list-style: none; margin: 2rem auto 0; padding: 0; max-width: 640px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 105px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 32px; padding: 14px 0; position: relative; }
.timeline li::after { content: ''; position: absolute; left: 100px; top: 24px; width: 11px; height: 11px; border-radius: 50%; background: var(--sage); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--sage-deep); }
.timeline .t { text-align: right; font-family: var(--serif); font-size: 1.2rem; color: var(--sage-deep); padding-top: 2px; }
.timeline h3 { margin: 0; font-size: 1.35rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .95rem; }

.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); margin-top: 22px; background: var(--beige); }

.swatches { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 1.6rem 0; }
.sw { text-align: center; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sw i { display: block; width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 8px; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }

/* FAQ */
details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 0; font-family: var(--serif); font-size: 1.3rem; color: var(--forest); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--gold); font-size: 1.6rem; line-height: 1; }
details[open] summary::after { content: '\2212'; }
details p { color: var(--muted); padding-bottom: 8px; }

/* Single venue card (ceremony + reception at the same place) */
.venue-card { max-width: 640px; margin: 0 auto 28px; text-align: center; }
.venue-card h3 { font-size: 1.9rem; }
.venue-times { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin: 1.2rem 0 1.4rem; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.venue-times b { display: block; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sage-deep); font-weight: 500; }
.venue-times span { font-family: var(--serif); font-size: 1.5rem; color: var(--forest); }

/* Entourage: embossed cards */
.ent-group {
  position: relative; text-align: center; margin-bottom: 2rem;
  padding: 30px 26px 28px; border-radius: 20px;
  background: linear-gradient(145deg, #fefbf5 0%, #f2e9d8 100%);
  box-shadow:
    9px 9px 20px rgba(107, 122, 87, .20),
    -8px -8px 18px rgba(255, 255, 255, .95),
    inset 1px 1px 0 rgba(255, 255, 255, .9),
    inset -1px -1px 0 rgba(176, 145, 90, .16);
}
/* engraved inner frame */
.ent-group::after {
  content: ''; position: absolute; inset: 9px; border-radius: 13px; pointer-events: none;
  border: 1px solid rgba(176, 145, 90, .32);
  box-shadow: 1px 1px 0 rgba(255, 255, 255, .9), inset 1px 1px 1px rgba(107, 122, 87, .10);
}
.ent-group h3 {
  font-size: 1rem; letter-spacing: .28em; text-transform: uppercase; color: var(--sage-deep);
  font-family: var(--sans); font-weight: 500; margin-bottom: 1.3rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .95), 0 -1px 0 rgba(107, 122, 87, .18);
}
/* embossed ornament above the title */
.ent-group h3::before {
  content: ''; display: block; width: 34px; height: 34px; margin: 0 auto 10px;
  background: var(--ico, none) center / contain no-repeat;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .95)) drop-shadow(0 -1px 0 rgba(107, 122, 87, .30));
  opacity: .9;
}
.ent-group h3::after {
  content: ''; display: block; width: 52px; height: 1px; margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ent-group[data-icon="leaf"]   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a57' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21C6 17 4 11 6 4c7 1 12 5 12 11 0 3-2 5-6 6Z'/%3E%3Cpath d='M12 21C12 15 13 11 16 7'/%3E%3C/svg%3E"); }
.ent-group[data-icon="heart"]  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a57' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20.5C5 15.5 3.5 11.5 3.5 8.6A4.1 4.1 0 0 1 12 7.3a4.1 4.1 0 0 1 8.5 1.3c0 2.9-1.5 6.9-8.5 11.9Z'/%3E%3C/svg%3E"); }
.ent-group[data-icon="rings"]  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a57' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='14.5' r='5'/%3E%3Ccircle cx='15' cy='14.5' r='5'/%3E%3Cpath d='M15 2.8l1.7 2.2-1.7 2-1.7-2z'/%3E%3C/svg%3E"); }
.ent-group[data-icon="flower"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a57' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='6.6' r='3.1'/%3E%3Ccircle cx='17.1' cy='10.3' r='3.1'/%3E%3Ccircle cx='15.2' cy='16.3' r='3.1'/%3E%3Ccircle cx='8.8' cy='16.3' r='3.1'/%3E%3Ccircle cx='6.9' cy='10.3' r='3.1'/%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3C/svg%3E"); }
.ent-row { display: grid; gap: 28px; margin-bottom: 2rem; align-items: stretch; }
.ent-row .ent-group { margin-bottom: 0; }
.person { text-align: center; }
.person b { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; text-shadow: 0 1px 0 rgba(255, 255, 255, .9); }
.person span { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* Gallery */
.gallery { columns: 3 220px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; }
.tile { border-radius: 12px; margin-bottom: 14px; break-inside: avoid; display: grid; place-items: center; color: rgba(59,74,54,.55); font-family: var(--script); font-size: 1.6rem; }
.tile:nth-child(3n+1) { background: linear-gradient(135deg, #cdd8bf, #e8dcc4); height: 260px; }
.tile:nth-child(3n+2) { background: linear-gradient(135deg, #e8dcc4, #bccaa9); height: 190px; }
.tile:nth-child(3n) { background: linear-gradient(135deg, #a9bb96, #efe6d2); height: 230px; }

footer { text-align: center; padding: 56px 20px; background: var(--forest); color: var(--beige); }
footer .script { font-size: 2.6rem; color: var(--cream); }
footer p { margin: .2rem 0; opacity: .85; }
footer a { color: var(--beige); }

/* Forms */
.page-head { text-align: center; padding: clamp(48px, 8vw, 84px) 0 24px; background: linear-gradient(var(--cream), var(--paper)); }
.page-head h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
.page-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 5vw, 44px); box-shadow: 0 20px 50px -30px rgba(59,74,54,.35); }
.field { margin-bottom: 20px; }
label, .lbl { display: block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 6px; font-weight: 500; }
.opt { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }
textarea { min-height: 96px; resize: vertical; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice label { text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--ink); margin: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; text-align: center; padding: 16px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; transition: all .15s; font-family: var(--serif); font-size: 1.25rem; }
.choice input:checked + span { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.err { background: #f8e6e0; border: 1px solid #e3b7ab; color: #7d2f1e; padding: 12px 14px; border-radius: 10px; margin-bottom: 18px; }
.hidden { display: none !important; }
.hint { font-size: .9rem; color: var(--muted); }

/* Response page */
.response-card { text-align: center; }
.response-card .big { font-family: var(--script); font-size: clamp(2.6rem, 8vw, 4.2rem); color: var(--forest); line-height: 1.1; margin-bottom: .2em; }
.summary { text-align: left; margin: 28px 0; border-top: 1px solid var(--line); }
.summary div { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); padding-top: 3px; }
.summary dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Admin */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 2.3rem; color: var(--forest); line-height: 1; }
.stat span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--cream); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); white-space: nowrap; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; }
.pill.yes { background: #dfe8d3; color: #3d5a2a; }
.pill.no { background: #f0e0da; color: #7d2f1e; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 860px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .menu-btn { display: block; }
  .nav ul { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; background: var(--paper); padding: 16px 0 22px; border-bottom: 1px solid var(--line); gap: 16px; }
  .nav ul.open { display: flex; }
}
@media (max-width: 720px) {
  .ent-row { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .ent-group { padding: 26px 16px 22px; }
  .g2, .g3, .g4, .row { grid-template-columns: 1fr; }
  .timeline::before { left: 76px; }
  .timeline li { grid-template-columns: 62px 1fr; gap: 28px; }
  .timeline li::after { left: 71px; }
  .summary div { grid-template-columns: 1fr; gap: 2px; }
  .cd { min-width: 58px; }
}

/* Admin dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0 14px; }
.toolbar input[type=search] { flex: 1 1 240px; max-width: 380px; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.toolbar select { width: auto; background: #fff; }
.meals { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: .85rem; }
td.nowrap { white-space: nowrap; }
td.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.table-wrap td { min-width: 90px; }
.table-wrap td.wide { min-width: 240px; }