/* Beyond Marriage - warm, elegant, mobile-first. Contrast checked for WCAG AA. */
:root {
  --ivory: #fbf6ec;
  --cream: #f3ead8;
  --paper: #ffffff;
  --ink: #2b2118;
  --muted: #6b5d4f;
  --burgundy: #6b1f2e;
  --burgundy-deep: #4a1420;
  --gold: #b8923a;        /* decoration only */
  --gold-text: #7a5c14;   /* text on ivory, 5.6:1 */
  --gold-soft: #e9d8a6;   /* text on burgundy */
  --sage: #5d7157;
  --line: #e3d6bd;
  --err: #8f1d1d;
  --ok: #285a32;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 1.0625rem/1.65 var(--sans); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); color: var(--burgundy); line-height: 1.15; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--burgundy); text-underline-offset: 3px; }
a:hover { color: var(--burgundy-deep); }
:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }
.wrap { width: min(100% - 32px, 1060px); margin-inline: auto; }
.narrow-wrap { width: min(100% - 32px, 720px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--burgundy); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 10; }
.skip-link:focus { top: 8px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding: 10px 0; }
.brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--burgundy); text-decoration: none; }
.brand-mark { color: var(--gold-text); font-style: italic; }
.tag { font: .75rem var(--sans); text-transform: uppercase; letter-spacing: .1em; background: var(--cream); padding: 2px 8px; border-radius: 99px; color: var(--muted); }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0; padding: 0; align-items: center; }
.nav-list a { color: var(--ink); text-decoration: none; padding: 8px 2px; display: inline-block; font-size: .98rem; }
.nav-list a:hover, .nav-list a.active { color: var(--burgundy); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); }
.nav-list a.btn { color: #fff; text-decoration: none; padding: 8px 18px; }

/* Buttons */
.btn { display: inline-block; background: var(--burgundy); color: #fff; border: 2px solid var(--burgundy); border-radius: 999px; padding: 12px 28px; font: 600 1rem var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-small { padding: 6px 16px; min-height: 36px; font-size: .92rem; }
.btn-secondary { background: transparent; color: var(--burgundy); }
.btn-secondary:hover { background: var(--cream); color: var(--burgundy-deep); }
.btn-gold { background: var(--gold-soft); color: var(--burgundy-deep); border-color: var(--gold-soft); }
.btn-gold:hover { background: #fff; color: var(--burgundy-deep); border-color: #fff; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 50% -10%, #8a2a3d 0%, var(--burgundy) 45%, var(--burgundy-deep) 100%); color: #fdf8ee; text-align: center; padding: 56px 0 64px; position: relative; }
.hero::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(233, 216, 166, .55); border-radius: 6px; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: .1em; }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .8rem; color: var(--gold-soft); margin-bottom: 1em; }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 4vw, 2rem); color: var(--gold-soft); margin-bottom: .6em; }
.hero-when { font-family: var(--serif); font-size: clamp(1.3rem, 3.5vw, 1.8rem); margin-bottom: .1em; }
.hero-where { color: #f0e6d0; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px auto 18px; color: var(--gold); max-width: 340px; }
.ornament span { flex: 1; height: 1px; background: currentColor; opacity: .7; }
.ornament i { font-style: normal; font-size: 1.4rem; }
.hero .ornament { color: var(--gold-soft); }
.countdown { display: flex; justify-content: center; gap: 10px; margin: 26px 0; }
.countdown div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(233, 216, 166, .5); border-radius: var(--radius); padding: 10px 6px; min-width: 70px; }
.countdown b { display: block; font: 600 clamp(1.7rem, 7vw, 2.6rem)/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-soft); }
.hero-cta { margin-bottom: .6em; }
.capacity { color: #f0e6d0; font-size: .95rem; margin: 0; }

/* Sections */
.section { padding: 56px 0; }
.section-cream { background: var(--cream); }
.section-burgundy { background: var(--burgundy); color: #fdf8ee; }
.section-burgundy h2 { color: #fff; }
.link-light { color: var(--gold-soft); }
.hosts-name { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--gold-soft); margin-bottom: .4em; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 26px; }
.two-col { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.card { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 1px 2px rgba(74, 20, 32, .05); margin-bottom: 18px; }
.card-flat { box-shadow: none; margin-bottom: 0; }
.card h2, .card h3 { margin-bottom: .3em; }
.narrow { width: min(100%, 480px); margin: 40px auto; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 8px 0 8px 32px; position: relative; border-bottom: 1px dotted var(--line); }
.check-list li::before { content: "\2766"; position: absolute; left: 0; color: var(--gold-text); }
.chips { list-style: none; padding: 0; display: grid; gap: 8px; }
.chips li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.swatch-row { display: flex; align-items: center; gap: 10px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .35); display: inline-block; }
.menu-group { margin: 28px 0; }
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list li { padding: 8px 0; border-bottom: 1px dotted var(--line); font-family: var(--serif); font-size: 1.3rem; }
.prose h2 { margin-top: 1.4em; font-size: 1.5rem; }
.qa { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 16px; }
.qa-cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-text); margin-bottom: .3em; }
.qa-answer { white-space: pre-line; }

/* Forms */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 26px; }
.stack > * + * { margin-top: 18px; }
.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
label, legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.optional { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fffdf8; border: 1.5px solid #8b7b66; border-radius: 8px; padding: 10px 12px; min-height: 44px;
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 1px; }
label.radio, label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; padding: 8px 0; cursor: pointer; }
input[type=radio], input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--burgundy); flex: none; }
.hint { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }
.field-error { color: var(--err); font-size: .95rem; font-weight: 600; margin: 6px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius); padding: 12px 16px; margin: 0 0 18px; border: 1px solid; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-error { background: #fdecec; border-color: #d99; color: var(--err); }
.alert-ok { background: #eaf4ec; border-color: #9c9; color: var(--ok); }
.alert-info { background: #f6efdc; border-color: var(--gold); color: var(--ink); }

/* Footer */
.site-footer { background: var(--burgundy-deep); color: #e9dfca; text-align: center; padding: 28px 0; font-size: .95rem; }
.site-footer a { color: var(--gold-soft); }
.footer-title { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin-bottom: .2em; }

/* Admin */
.admin-main { padding: 28px 0 60px; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font: 600 2rem/1.1 var(--serif); color: var(--burgundy); }
.stat span { font-size: .88rem; color: var(--muted); }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.toolbar input { flex: 1 1 240px; width: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--cream); font-size: .85rem; white-space: nowrap; }
tbody th { font-weight: 600; }
.wrap-cell { min-width: 220px; max-width: 360px; }
.badge { display: inline-block; background: var(--cream); border: 1px solid var(--line); border-radius: 99px; padding: 0 10px; font-size: .78rem; font-weight: 600; color: var(--muted); margin-inline: 4px; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.preview iframe { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.qa-admin textarea { margin-bottom: 10px; }

@media (min-width: 720px) {
  .hero { padding: 88px 0 96px; }
  .section { padding: 80px 0; }
  .chips { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff3cd; padding: 10px 16px; z-index: 20; }
#blazor-error-ui .dismiss { cursor: pointer; margin-left: 12px; }
