/* ===== House Warming — base + 3 themes ===== */
:root {
  /* default (Cookout) */
  --bg: #fbf6ea;
  --bg-alt: #f1e7d2;
  --surface: #ffffff;
  --ink: #23291f;
  --muted: #6f7763;
  --accent: #e1574c;
  --accent-2: #2f7d4f;
  --accent-3: #f0b440;
  --line: rgba(35, 41, 31, 0.12);
  --card-shadow: 0 18px 50px -28px rgba(35, 41, 31, 0.45);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --radius: 22px;
}

[data-theme="rustic"] {
  --bg: #f2e7d6;
  --bg-alt: #e7d6bd;
  --surface: #fbf4e7;
  --ink: #392a1b;
  --muted: #8a7252;
  --accent: #c2703d;
  --accent-2: #6f7a3a;
  --accent-3: #d9a441;
  --line: rgba(57, 42, 27, 0.14);
  --card-shadow: 0 18px 50px -30px rgba(57, 42, 27, 0.5);
}

[data-theme="dusk"] {
  --bg: #1e2823;
  --bg-alt: #18211c;
  --surface: #27332c;
  --ink: #f1e9d9;
  --muted: #9fb09b;
  --accent: #e2913f;
  --accent-2: #79b389;
  --accent-3: #e7c45c;
  --line: rgba(241, 233, 217, 0.14);
  --card-shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; letter-spacing: -0.02em; }

.kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}

.wrap { width: min(1160px, 92vw); margin: 0 auto; }

/* ===== top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 19px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 18px;
  transform: rotate(-6deg);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; opacity: 0.8; }
.nav-links a:hover { opacity: 1; color: var(--accent); }
@media (max-width: 760px) { .nav-links .nav-hide { display: none; } }

/* ===== buttons ===== */
.btn {
  font-family: var(--body); font-weight: 700; font-size: 16px;
  border: none; cursor: pointer; border-radius: 999px;
  padding: 13px 26px; display: inline-flex; align-items: center; gap: 9px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 32px; font-size: 18px; }

/* ===== hero ===== */
.hero { padding: 46px 0 24px; text-align: center; }
.hero h1 { font-size: clamp(44px, 8.4vw, 104px); font-weight: 800; max-width: 14ch; margin: 14px auto 0; }
.hero .sub { font-size: clamp(18px, 2.4vw, 23px); color: var(--muted); max-width: 56ch; margin: 20px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

.facts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.fact {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 15px;
  box-shadow: var(--card-shadow);
}
.fact b { font-weight: 800; }
.fact .dot { width: 9px; height: 9px; border-radius: 50%; }

/* ===== scene ===== */
.scene-card {
  margin: 40px auto 0; border-radius: 28px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--card-shadow); position: relative;
}
.scene-svg { display: block; width: 100%; height: auto; }
.scene-caption {
  position: absolute; left: 18px; bottom: 16px;
  background: color-mix(in srgb, var(--ink) 84%, transparent); color: var(--bg);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(4px);
}
.scene-tag {
  position: absolute; font-family: var(--mono); font-size: 11px; font-weight: 700;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px; box-shadow: var(--card-shadow);
  white-space: nowrap;
}
.scene-tag::after {
  content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 720px) { .scene-tag { display: none; } }

/* ===== section scaffolding ===== */
section { scroll-margin-top: 80px; }
.band { padding: 78px 0; }
.band.alt { background: var(--bg-alt); }
.section-head { max-width: 60ch; }
.section-head h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; margin-top: 12px; }
.section-head p { color: var(--muted); font-size: 19px; margin-top: 14px; }

/* ===== schedule ===== */
.timeline { margin-top: 42px; display: grid; gap: 0; }
.tl-row {
  display: grid; grid-template-columns: 120px 30px 1fr; gap: 18px; align-items: start;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.tl-row:last-child { border-bottom: 1px solid var(--line); }
.tl-time { font-family: var(--mono); font-weight: 700; font-size: 17px; color: var(--accent); padding-top: 2px; }
.tl-node { position: relative; display: grid; place-items: center; padding-top: 6px; }
.tl-node .ring { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--accent); background: var(--surface); z-index: 1; }
.tl-node::after { content: ""; position: absolute; top: 10px; bottom: -44px; width: 2px; background: var(--line); }
.tl-row:last-child .tl-node::after { display: none; }
.tl-body h3 { font-size: 23px; font-weight: 700; }
.tl-body p { margin: 5px 0 0; color: var(--muted); font-size: 16px; }
@media (max-width: 620px) {
  .tl-row { grid-template-columns: 84px 24px 1fr; gap: 12px; }
  .tl-time { font-size: 14px; }
}

/* ===== cards grid (kids/family) ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 40px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--card-shadow);
}
.card .ico {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent);
  margin-bottom: 16px;
}
.card h3 { font-size: 21px; font-weight: 700; }
.card p { margin: 9px 0 0; color: var(--muted); font-size: 16px; }

.kids-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 36px; margin-top: 40px; box-shadow: var(--card-shadow);
}
.kids-feature h3 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.kids-feature p { color: var(--muted); margin-top: 14px; }
.castle-badge {
  aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #a9dcec, #d8eef0 60%, #84bd5b 60%, #5f9a42);
  display: grid; place-items: center; position: relative;
}
@media (max-width: 760px) { .kids-feature { grid-template-columns: 1fr; } }

/* ===== RSVP / forms ===== */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  padding: 30px; box-shadow: var(--card-shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: var(--body); font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 13px;
  padding: 13px 15px; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.seg { display: flex; gap: 8px; }
.seg button {
  flex: 1; font-family: var(--body); font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 12px; border-radius: 13px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); transition: all 0.15s ease;
}
.seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.stepper { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--bg); }
.stepper button {
  width: 46px; height: 48px; border: none; background: transparent; cursor: pointer;
  font-size: 22px; color: var(--ink); font-family: var(--body);
}
.stepper button:hover { background: var(--bg-alt); color: var(--accent); }
.stepper .val { flex: 1; text-align: center; font-weight: 800; font-size: 18px; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 0 18px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }

.form-success { text-align: center; padding: 18px 8px; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent-2); color: #fff;
  display: grid; place-items: center; margin: 0 auto 18px; font-size: 32px;
}
.form-success h3 { font-size: 28px; font-weight: 800; }
.form-success p { color: var(--muted); margin-top: 10px; }

.count-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-weight: 600; font-size: 15px;
}
.count-pill b { font-family: var(--display); font-size: 19px; }
.avatars { display: flex; }
.avatars span {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface);
  margin-left: -8px; display: grid; place-items: center; font-size: 12px; color: #fff; font-weight: 700;
}
.avatars span:first-child { margin-left: 0; }

/* ===== text alerts ===== */
.alerts-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface));
  border: 1px solid var(--line); border-radius: 26px; padding: 32px; box-shadow: var(--card-shadow);
}
.phone-row { display: flex; gap: 10px; flex-wrap: wrap; }
.phone-row input { flex: 1; min-width: 200px; }

/* ===== map ===== */
.map-card { border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--card-shadow); background: var(--surface); }
.map-card iframe { display: block; width: 100%; height: 360px; border: 0; filter: saturate(0.92); }
.map-meta { padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.map-meta .addr { font-weight: 700; font-size: 18px; }
.map-meta .addr span { display: block; color: var(--muted); font-weight: 500; font-size: 15px; margin-top: 3px; }

/* ===== footer ===== */
.foot { padding: 54px 0 70px; text-align: center; border-top: 1px solid var(--line); margin-top: 12px; }
.foot .big { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 5vw, 50px); }
.foot p { color: var(--muted); margin-top: 12px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
