:root {
  --bg: #f4ede2;
  --card: #fffaf2;
  --ink: #2a2420;
  --muted: #6b5f55;
  --line: #e2d5c2;
  --accent: #b4532a;
  --accent-ink: #ffffff;
  --accent-dark: #8f3f1e;
  --sage: #5f6e4d;
  --sage-soft: #e6eadb;
  --warn-soft: #f7e3d6;
  --ok: #3f7a43;
  --err: #b42a2a;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 18px rgba(60, 40, 20, .06);
  --radius: 10px;
  --wrap: 880px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1815; --card: #252120; --ink: #f1e9de; --muted: #b8aa9a; --line: #3b332c;
    --accent: #e07a4a; --accent-ink: #1b1815; --accent-dark: #f09a70; --sage: #a9b88f; --sage-soft: #2c3226;
    --warn-soft: #3a2a20; --ok: #7cc480; --err: #f08080;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: "Barlow Condensed", Inter, sans-serif; font-weight: 700; line-height: 1.1; letter-spacing: .01em; }
h2 { font-size: 1.9rem; margin-bottom: .75rem; }
h3 { font-size: 1.3rem; margin-bottom: .5rem; }
p + p { margin-top: .75rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
main > section.wrap { margin-top: 3.25rem; }
main > section.intro { margin-top: 2rem; }
main > section.details { margin-top: 1.5rem; }
main > section.action { margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; overflow: hidden; background: #6c8fb8; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,8,0) 30%, rgba(20,14,8,.65) 100%); }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px 28px; color: #fff; }
.hero h1 { font-size: clamp(2.8rem, 9vw, 5rem); text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.kicker { font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; opacity: .95; }
.tagline { font-size: 1.15rem; margin-top: .25rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
@media (min-width: 720px) { .hero { min-height: 440px; } }

/* ---------- Intro + details ---------- */
.intro p { font-size: 1.1rem; }

.details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.detail svg { width: 20px; height: 20px; fill: var(--accent); flex: none; margin-top: 3px; }
.detail .label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.detail .value { display: block; font-weight: 600; }
.details-note { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) { .details { grid-template-columns: 1fr; } }

/* ---------- Cards / forms ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.action .card { border-top: 4px solid var(--accent); }
.small { font-size: .9rem; color: var(--muted); }
.card > .small { margin-top: .5rem; margin-bottom: 1rem; }

form { margin-top: 1rem; }
.field { margin-bottom: 1.1rem; border: 0; min-width: 0; }
label, legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.opt, .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.hint { display: block; margin-top: .25rem; }
input[type=text], input[type=email], input[type=tel], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible, .pills input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; border-color: var(--accent);
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid2 .span2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 11px 20px; }
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-wide { width: 100%; padding: 14px; margin-top: .5rem; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-ghost:hover { background: var(--warn-soft); }

.gate-row { display: flex; gap: 8px; }
.gate-row input { flex: 1; font-size: 1.05rem; letter-spacing: .05em; }
.ts:not(:empty) { margin-top: 12px; }
.form-msg { margin-top: 10px; font-weight: 600; color: var(--err); min-height: 0; }
.form-msg:empty { display: none; }

/* pill radios */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { margin: 0; font-weight: 500; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); cursor: pointer; transition: background .15s, border-color .15s; }
.pills input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.checks label, .check-solo { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.checks input, .check-solo input { margin-top: 5px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.check-solo { margin-top: .5rem; }
.guest-note { margin-top: 12px; padding: 14px 16px; border-radius: 8px; background: var(--warn-soft); border-left: 4px solid var(--accent); }
.guest-note p { margin-bottom: .75rem; }
.guest-note label { margin-top: .25rem; }
.done-note { margin-top: .75rem; padding: 12px 14px; border-radius: 8px; background: var(--warn-soft); border-left: 4px solid var(--accent); }
.ack { background: var(--sage-soft); border-radius: 8px; padding: 10px 12px; margin: .5rem 0 1.1rem; }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }

/* date availability rows */
.date-rows { display: grid; gap: 8px; }
.date-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.date-row .dname { font-weight: 600; }
.date-row .dname small { display: block; font-weight: 400; color: var(--muted); }
.date-row .pills span { padding: 6px 12px; font-size: .9rem; }
.date-row .pills input[value=great]:checked + span { background: var(--ok); border-color: var(--ok); color: #fff; }
.date-row .pills input[value=ok]:checked + span { background: #c08a2a; border-color: #c08a2a; color: #fff; }
.date-row .pills input[value=no]:checked + span { background: var(--muted); border-color: var(--muted); color: var(--card); }
fieldset.disabled { opacity: .45; pointer-events: none; }

.success { border-top-color: var(--ok) !important; }
.success h2 { color: var(--ok); }
.done-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 1rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps li { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.steps .when { align-self: flex-start; white-space: nowrap; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 6px; background: var(--line); color: var(--ink); }
.steps p { font-size: .9rem; color: var(--muted); margin-top: .25rem; }
.steps li.current { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.steps li.current .when { background: var(--accent); color: var(--accent-ink); }
.steps li.done .when { background: var(--sage); color: var(--card); }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Agenda / lists ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.two-col.tight { gap: 20px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

.agenda { list-style: none; border-left: 2px solid var(--line); margin-left: 6px; }
.agenda li { position: relative; padding: 0 0 14px 20px; }
.agenda li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.agenda time { display: block; font-weight: 700; font-size: .85rem; letter-spacing: .05em; color: var(--accent); text-transform: uppercase; }

.bring, .rules, .not-allowed ul { list-style: none; }
.bring li, .rules li, .not-allowed li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.bring li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 14px; border-radius: 3px; border: 2px solid var(--sage); }
.rules li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.not-allowed { background: var(--warn-soft); border-radius: var(--radius); padding: 18px 20px; }
.not-allowed li::before { content: "✕"; position: absolute; left: 4px; top: 0; font-weight: 700; color: var(--err); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 28px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--muted); }

.footer { margin-top: 3.5rem; padding-top: 1.5rem; padding-bottom: 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* notify-me form */
#sub-form .small { margin-top: .75rem; }
.sub-done { margin-top: 1rem; padding: 14px 16px; border-radius: 8px; background: var(--sage-soft); }
