/* ==========================================================================
   Keepsake: wedding website template
   K&A Digital Studio · https://knadigitalstudio.com

   HOW TO CUSTOMIZE
   1. Brand color: change --brand below. Buttons, links and accents follow it.
   2. Style: set data-style="classic" | "modern" | "garden" on <html>.
   3. Light/dark: follows the visitor's device. To lock it, set
      data-mode-lock="light" or data-mode-lock="dark" on <html>.
   ========================================================================== */

/* --- Heading font: Cormorant Garamond (SIL Open Font License, see assets/fonts/OFL.txt) --- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }

/* --- Design tokens: Classic, light (default) ------------------------------ */
:root {
  --brand: #2f5d50;                 /* your main color: buttons, links, the RSVP band */
  --accent: #a07a32;                /* gold: ornaments, the ampersand, thin rules */
  --accent-text: #7a5c20;           /* the accent when it's small text */

  --bg: #fbf8f2;
  --bg-soft: #f3eee4;               /* alternate section background */
  --surface: #fffdf9;               /* cards */
  --text: #1d2621;
  --text-soft: #535d57;
  --border: #e3dccd;
  --brand-ink: #ffffff;             /* text on brand-colored buttons */
  --brand-text: var(--brand);       /* brand color used as text (links) */
  --brand-tint: color-mix(in srgb, var(--brand) 8%, var(--bg));
  --btn: var(--brand);
  --btn-ink: var(--brand-ink);
  --shadow: 0 1px 2px rgba(29, 38, 33, 0.05), 0 10px 30px rgba(29, 38, 33, 0.07);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-head: var(--font-display);
  --head-weight: 500;
  --head-style: normal;
  --head-case: none;
  --head-track: -0.005em;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-btn: 999px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);

  color-scheme: light;
}

/* --- Dark mode ("evening"): device setting, unless the site is locked to light --- */
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) {
    --bg: #0f1613; --bg-soft: #131c18; --surface: #17221d;
    --text: #f2eee5; --text-soft: #b4bbb3; --border: #2a3832;
    --accent: #d4b36d; --accent-text: #d9bb7a;
    --brand-text: color-mix(in srgb, var(--brand) 45%, #ffffff);
    --brand-tint: color-mix(in srgb, var(--brand) 22%, var(--bg));
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
/* ...or the visitor's choice from the toggle */
:root[data-mode="dark"] {
  --bg: #0f1613; --bg-soft: #131c18; --surface: #17221d;
  --text: #f2eee5; --text-soft: #b4bbb3; --border: #2a3832;
  --accent: #d4b36d; --accent-text: #d9bb7a;
  --brand-text: color-mix(in srgb, var(--brand) 45%, #ffffff);
  --brand-tint: color-mix(in srgb, var(--brand) 22%, var(--bg));
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* --- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-text); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); font-style: var(--head-style); text-transform: var(--head-case); letter-spacing: var(--head-track); line-height: 1.1; margin: 0 0 14px; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0 0 16px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .lead { margin-bottom: 0; }
.kicker { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Ornament: a sprig between two thin lines */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--accent); margin: 0 auto 18px; }
.ornament::before, .ornament::after { content: ""; width: 56px; height: 1px; background: currentColor; opacity: 0.7; }
.ornament .icon { width: 26px; height: 26px; }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: var(--radius-btn); border: 1.5px solid transparent;
  font: 600 0.98rem/1.2 var(--font); letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn, .nav a { white-space: nowrap; }
.btn--primary { background: var(--btn); color: var(--btn-ink); }
.btn--primary:hover { filter: brightness(1.1); }
.btn--outline { border-color: color-mix(in srgb, var(--text) 30%, transparent); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--text); }
.btn--light { background: #ffffff; color: #1d2621; }
.btn--light:hover { filter: brightness(0.95); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.65); color: #ffffff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link .icon { width: 18px; height: 18px; transition: transform 0.15s ease; }
.link:hover .icon { transform: translateX(3px); }

/* --- Announcement bar (optional) ------------------------------------------ */
.announce { background: var(--brand-tint); color: var(--text); font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.announce .container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; padding-block: 9px; text-align: center; }
.announce a { font-weight: 700; }

/* --- Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; white-space: nowrap; }
.monogram { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent-text); font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.05rem; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { color: var(--text-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 8px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--text-soft); }
.icon-btn .icon { width: 20px; height: 20px; }
.menu-btn { display: none; }

/* light/dark toggle: shows the moon in light mode and the sun in dark mode */
.mode-toggle .sun { display: none; }
:root[data-mode="dark"] .mode-toggle .sun { display: block; }
:root[data-mode="dark"] .mode-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-mode]) .mode-toggle .sun { display: block; }
  :root:not([data-mode]) .mode-toggle .moon { display: none; }
}

/* --- Hero ------------------------------------------------------------------ */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 8vw, 100px); background: radial-gradient(ellipse 70% 60% at 20% 20%, var(--brand-tint), transparent 70%); }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-text { text-align: center; }
.names { font-family: var(--font-display); font-weight: 500; font-size: clamp(3.6rem, 9vw, 7rem); line-height: 0.95; letter-spacing: -0.01em; margin: 0 0 22px; }
.names span { display: block; }
.amp { font-style: italic; color: var(--accent); font-size: 0.8em; line-height: 1.1; }
.when { display: grid; gap: 2px; margin-bottom: 26px; font-size: 1.05rem; color: var(--text-soft); }
.when strong { color: var(--text); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.95rem; }
.countdown { display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 22px; margin-bottom: 28px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-soft); }
.countdown strong { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; font-weight: 600; color: var(--text); }
.hero .btn-row { justify-content: center; }

/* Arched photo, with a thin gold outline behind it */
.arch { position: relative; margin: 0 auto; width: min(100%, 460px); }
.arch::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--accent); border-radius: 999px 999px var(--radius) var(--radius); opacity: 0.8; }
.arch .photo { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); box-shadow: var(--shadow); }
.photo { overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* --- Welcome note ---------------------------------------------------------- */
.welcome { max-width: 680px; margin: 0 auto; text-align: center; }
.welcome p { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.45; color: var(--text); }
.signature { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--accent-text); }

/* --- The weekend at a glance ----------------------------------------------- */
.glance { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.event-card { display: flex; flex-direction: column; gap: 6px; padding: 30px 26px; text-align: center; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.event-card .icon-tile { margin-bottom: 8px; }
.event-card h3 { margin: 0; }
.event-card .day { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); }
.event-card p { margin: 0; color: var(--text-soft); }
.event-card .meta { display: grid; gap: 2px; margin: 6px 0 4px; color: var(--text); font-weight: 600; }
.event-card .meta span { font-weight: 400; color: var(--text-soft); }
.event-card--main { border-color: var(--accent); }
.cal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: auto; padding-top: 12px; font-size: 0.92rem; }
.cal-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.cal-links a:hover { text-decoration: underline; }
.cal-links .icon { width: 16px; height: 16px; }

.icon-tile { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-text); }
.icon-tile .icon { width: 26px; height: 26px; }

/* --- Split: photo + text --------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split > * { min-width: 0; }
.split .photo { aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.prose p { color: var(--text-soft); }
.prose strong { color: var(--text); }

/* --- RSVP band --------------------------------------------------------------- */
.rsvp-band { position: relative; overflow: hidden; background: var(--btn); color: var(--btn-ink); text-align: center; border-radius: var(--radius); padding: clamp(40px, 7vw, 80px) var(--gutter); }
.rsvp-band::before, .rsvp-band::after { content: ""; position: absolute; width: 240px; height: 240px; border: 1px solid color-mix(in srgb, var(--btn-ink) 25%, transparent); border-radius: 50%; }
.rsvp-band::before { left: -90px; top: -110px; }
.rsvp-band::after { right: -80px; bottom: -120px; }
.rsvp-band > * { position: relative; }
.rsvp-band .kicker { color: inherit; opacity: 0.85; }
.rsvp-band h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 10px; }
.rsvp-band p { opacity: 0.92; margin-bottom: 26px; }
.rsvp-band .btn--primary { background: var(--btn-ink); color: var(--btn); }

/* --- Cards: hotels, registry, getting here ------------------------------------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.card { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card h3 { margin: 4px 0 0; }
.card p { color: var(--text-soft); margin: 0; }
.card > .link, .card > .btn { margin-top: auto; padding-top: 6px; }
.card > .btn { padding-top: 12px; align-self: flex-start; }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.tag { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-text); font-size: 0.82rem; font-weight: 600; }
.price { color: var(--text); font-weight: 600; }
.code { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px dashed var(--border); background: var(--bg-soft); color: var(--text-soft); font-size: 0.95rem; }
.code strong { color: var(--text); letter-spacing: 0.08em; }
.deadline { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--accent-text); font-weight: 600; }
.deadline .icon { width: 18px; height: 18px; }
.ways { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.way { display: flex; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.way h3 { font-size: 1.3rem; margin: 0 0 4px; }
.way p { margin: 0; color: var(--text-soft); font-size: 0.97rem; }

/* --- Schedule (timeline) ------------------------------------------------------- */
.schedule { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; }
.schedule li { display: grid; grid-template-columns: 110px 28px 1fr; gap: 0 18px; }
.schedule time { padding-top: 4px; text-align: right; font-weight: 600; color: var(--text); white-space: nowrap; }
.schedule .dot { position: relative; display: flex; justify-content: center; }
.schedule .dot::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); }
.schedule li:first-child .dot::before { top: 12px; }
.schedule li:last-child .dot::before { bottom: auto; height: 12px; }
.schedule .dot span { position: relative; width: 14px; height: 14px; margin-top: 8px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.schedule .slot { padding-bottom: 30px; }
.schedule h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; font-size: 1.4rem; }
.schedule h3 .icon { color: var(--accent); width: 22px; height: 22px; }
.schedule .where { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 4px; }
.schedule p { margin: 0; color: var(--text-soft); }

/* --- Story timeline ------------------------------------------------------------- */
.moments { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 22px; }
.moment { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.moment:last-child { border-bottom: 0; }
.moment .year { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--accent); font-style: italic; }
.moment h3 { margin: 4px 0 6px; }
.moment p { margin: 0; color: var(--text-soft); }

/* --- Wedding party ----------------------------------------------------------------- */
.party { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.member { text-align: center; padding: 30px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.avatar { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-text); border: 1px solid var(--accent); font-family: var(--font-display); font-size: 1.9rem; font-style: italic; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.member h3 { margin: 0 0 2px; }
.member .role { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.member p { margin: 0; color: var(--text-soft); font-size: 0.97rem; }
.party-side { text-align: center; margin: 0 0 24px; font-size: 1.9rem; }
.party + .party-side { margin-top: 56px; }

/* --- Photo gallery (tap a photo to see it larger) ----------------------------------- */
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-soft); }
.gallery img { width: 100%; height: auto; transition: transform 0.35s ease; }
.gallery a:hover img { transform: scale(1.03); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.strip a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.strip a:hover img { transform: scale(1.04); }
.viewer { width: min(94vw, 1100px); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.viewer::backdrop { background: rgba(8, 10, 9, 0.88); }
.viewer img { max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 8px; }
.viewer p { margin: 12px 0 0; color: #f2eee5; text-align: center; }
.viewer-nav { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.viewer button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(0, 0, 0, 0.35); color: #fff; cursor: pointer; }
.viewer button:hover { background: rgba(255, 255, 255, 0.15); }
.viewer .viewer-close { position: absolute; top: -8px; right: -8px; }

/* --- FAQ ------------------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--accent); transition: transform 0.2s ease; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 18px; color: var(--text-soft); }

/* --- Dress code ---------------------------------------------------------------------- */
.dress { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.dress > * { min-width: 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; color: var(--text-soft); }
.checklist .icon { color: var(--accent); margin-top: 3px; }

/* --- Box, venue ----------------------------------------------------------------------- */
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
.box h2 { font-size: 1.9rem; margin-bottom: 8px; }
.box h3 { margin-bottom: 8px; }
.box p { color: var(--text-soft); }
.venue-card { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; padding: 0; }
.venue-card .photo { border-radius: 0; aspect-ratio: auto; min-height: 100%; }
.venue-card .venue-body { padding: clamp(24px, 4vw, 44px); }
.venue-card address { font-style: normal; color: var(--text-soft); margin-bottom: 18px; }
.venue-card address strong { display: block; color: var(--text); font-size: 1.1rem; }

/* --- Forms (RSVP) ----------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-weight: 400; color: var(--text-soft); }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand-text); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.answer { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.answer label { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); font-weight: 500; cursor: pointer; }
.answer label:has(input:checked) { border-color: var(--brand-text); background: var(--brand-tint); }
.answer input, .choices input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.form .btn { justify-self: start; }
.form-note { font-size: 0.88rem; color: var(--text-soft); margin: 0; }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.aside-stack { display: grid; gap: 20px; position: sticky; top: 100px; }

/* --- Page hero (inner pages) ------------------------------------------------------------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); text-align: center; background: radial-gradient(ellipse 60% 80% at 50% 0%, var(--brand-tint), transparent 70%); }
.page-hero h1 { margin-bottom: 12px; }
.page-hero .lead { max-width: 40rem; margin: 0 auto; }
.page-hero .btn-row { justify-content: center; margin-top: 26px; }

/* --- Footer ------------------------------------------------------------------------------- */
.site-footer { margin-top: clamp(56px, 8vw, 104px); padding: clamp(48px, 7vw, 80px) 0 32px; border-top: 1px solid var(--border); background: var(--bg-soft); text-align: center; color: var(--text-soft); }
.footer-names { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--text); margin-bottom: 10px; }
.footer-names .amp { font-size: 0.85em; }
.footer-date { letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; list-style: none; padding: 0; margin: 28px 0; }
.footer-links a, .site-footer .mail { color: var(--text-soft); text-decoration: none; }
.footer-links a:hover, .site-footer .mail:hover { color: var(--text); text-decoration: underline; }
.site-footer .mail { display: inline-flex; align-items: center; gap: 8px; }
.footer-base { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.85rem; }

/* --- Phone bar ------------------------------------------------------------------------------ */
.call-bar { display: none; }

/* --- Simple centered pages (thank you, 404) -------------------------------------------------- */
.center-page { text-align: center; max-width: 640px; margin: 0 auto; padding: clamp(64px, 10vw, 120px) var(--gutter); }
.center-page .icon-tile { margin: 0 auto 20px; width: 64px; height: 64px; }
.center-page .icon-tile .icon { width: 32px; height: 32px; }
.center-page .btn-row { justify-content: center; margin-top: 26px; }

/* --- Responsive --------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .header-actions { margin-left: auto; }
  .nav.is-open { display: grid; position: absolute; left: 0; right: 0; top: 100%; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 16px; }
  .nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav.is-open a[aria-current="page"] { text-decoration: none; color: var(--brand-text); font-weight: 600; }
  .with-aside { grid-template-columns: 1fr; }
  .aside-stack { position: static; }
}
@media (max-width: 900px) {
  .hero .container, .split, .dress, .venue-card { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .arch { width: min(78%, 360px); }
  .venue-card .photo { aspect-ratio: 16 / 9; }
  .strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { padding-bottom: 72px; }    /* room for the phone bar */
  .site-header .container { gap: 12px; min-height: 66px; }
  .logo { font-size: 1.25rem; gap: 10px; }
  .monogram { width: 38px; height: 38px; font-size: 0.95rem; }
  .header-actions { gap: 8px; }
  .header-actions .btn { display: none; }
  .form-row, .answer { grid-template-columns: 1fr; }
  .schedule li { grid-template-columns: 74px 22px 1fr; gap: 0 12px; }
  .schedule time { font-size: 0.92rem; }
  .moment { grid-template-columns: 1fr; gap: 4px; }
  .moment .year { font-size: 2rem; }
  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
  }
  .call-bar .btn { min-height: 50px; }
}
@media (max-width: 380px) {
  .logo .logo-names { display: none; }   /* very small phones: the monogram alone */
  .icon-btn { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Photos sit slightly dimmer in dark mode so they don't glare */
:root[data-mode="dark"] .photo img, :root[data-mode="dark"] .gallery img, :root[data-mode="dark"] .strip img { filter: brightness(0.9); }
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) .photo img, :root:not([data-mode="light"]) .gallery img, :root:not([data-mode="light"]) .strip img { filter: brightness(0.9); }
}

/* ==========================================================================
   Styles: Modern and Garden (Classic is the default above)
   Set data-style="modern" or data-style="garden" on <html>.
   Each style has a light and a dark version, like Classic.
   ========================================================================== */

/* --- Modern: black and white, clean sans headings, sharp lines --------------- */
:root[data-style="modern"] {
  --accent: #1a1a1a; --accent-text: #3d3d3d;
  --bg: #ffffff; --bg-soft: #f5f5f4; --surface: #ffffff;
  --text: #121212; --text-soft: #4a4a4a; --border: #dcdcdc;
  --shadow: none;
  --font-head: var(--font);
  --head-weight: 300; --head-case: uppercase; --head-track: 0.08em;
  --radius: 0px; --radius-sm: 0px; --radius-btn: 0px;
}
@media (prefers-color-scheme: dark) {
  :root[data-style="modern"]:not([data-mode="light"]) {
    --accent: #f2f2f2; --accent-text: #d4d4d4;
    --bg: #0d0d0d; --bg-soft: #151515; --surface: #151515;
    --text: #f5f5f5; --text-soft: #b8b8b8; --border: #333333;
    --brand-text: color-mix(in srgb, var(--brand) 25%, #ffffff);
    --btn: #f5f5f5; --btn-ink: #0d0d0d;
  }
}
:root[data-style="modern"][data-mode="dark"] {
  --accent: #f2f2f2; --accent-text: #d4d4d4;
  --bg: #0d0d0d; --bg-soft: #151515; --surface: #151515;
  --text: #f5f5f5; --text-soft: #b8b8b8; --border: #333333;
  --brand-text: color-mix(in srgb, var(--brand) 25%, #ffffff);
  --btn: #f5f5f5; --btn-ink: #0d0d0d;
}
[data-style="modern"] .names { font-family: var(--font); font-weight: 300; text-transform: uppercase; letter-spacing: 0.12em; font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 1.05; }
[data-style="modern"] .amp { font-family: var(--font-display); text-transform: none; letter-spacing: 0; font-size: 0.9em; }
[data-style="modern"] h3 { font-weight: 500; font-size: 1.05rem; letter-spacing: 0.12em; }
[data-style="modern"] h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
[data-style="modern"] h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
[data-style="modern"] .welcome p, [data-style="modern"] .footer-names, [data-style="modern"] .logo { font-family: var(--font); }
[data-style="modern"] .welcome p { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 300; }
[data-style="modern"] .footer-names { font-weight: 300; text-transform: uppercase; letter-spacing: 0.12em; font-size: clamp(1.8rem, 4vw, 2.6rem); }
[data-style="modern"] .logo { font-size: 1rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
[data-style="modern"] .monogram { border-radius: 0; border-color: var(--text); color: var(--text); }
[data-style="modern"] .btn { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; }
[data-style="modern"] .arch::before { display: none; }
[data-style="modern"] .arch .photo { border-radius: 0; }
[data-style="modern"] .icon-tile, [data-style="modern"] .avatar { border-radius: 0; background: transparent; border: 1px solid var(--text); color: var(--text); }
[data-style="modern"] .event-card, [data-style="modern"] .card, [data-style="modern"] .member, [data-style="modern"] .box { border-color: var(--text); }
[data-style="modern"] .event-card--main { background: var(--text); color: var(--bg); }
[data-style="modern"] .event-card--main p, [data-style="modern"] .event-card--main .meta span, [data-style="modern"] .event-card--main .day { color: color-mix(in srgb, var(--bg) 80%, var(--text)); }
[data-style="modern"] .event-card--main .icon-tile { border-color: var(--bg); color: var(--bg); }
[data-style="modern"] .event-card--main a { color: var(--bg); }
[data-style="modern"] .moment .year, [data-style="modern"] .signature, [data-style="modern"] .avatar { font-style: normal; font-family: var(--font); font-weight: 300; }
[data-style="modern"] .countdown, [data-style="modern"] .tag { border-radius: 0; }
[data-style="modern"] .countdown strong { font-family: var(--font); font-weight: 300; }
[data-style="modern"] .ornament .icon { display: none; }
[data-style="modern"] .ornament::before, [data-style="modern"] .ornament::after { width: 40px; }

/* --- Garden: soft sage and blush, italic serif headings, rounded --------------- */
:root[data-style="garden"] {
  --accent: #b9786f; --accent-text: #8f4f47;
  --bg: #f6f7f1; --bg-soft: #eceee3; --surface: #fcfdf8;
  --text: #253025; --text-soft: #566255; --border: #dce1d1;
  --shadow: 0 1px 2px rgba(37, 48, 37, 0.05), 0 12px 32px rgba(37, 48, 37, 0.08);
  --head-style: italic;
  --radius: 28px; --radius-sm: 18px;
}
@media (prefers-color-scheme: dark) {
  :root[data-style="garden"]:not([data-mode="light"]) {
    --accent: #e0aea6; --accent-text: #e6b9b2;
    --bg: #121812; --bg-soft: #161e16; --surface: #1b241b;
    --text: #eef1e7; --text-soft: #b2bbad; --border: #2d382c;
  }
}
:root[data-style="garden"][data-mode="dark"] {
  --accent: #e0aea6; --accent-text: #e6b9b2;
  --bg: #121812; --bg-soft: #161e16; --surface: #1b241b;
  --text: #eef1e7; --text-soft: #b2bbad; --border: #2d382c;
}
[data-style="garden"] h3, [data-style="garden"] .names { font-style: italic; }
[data-style="garden"] .names span:not(.amp) { font-style: normal; }
[data-style="garden"] .kicker { letter-spacing: 0.04em; text-transform: none; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; font-weight: 500; }
[data-style="garden"] .hero { background: radial-gradient(ellipse 50% 60% at 85% 15%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(ellipse 60% 60% at 10% 80%, var(--brand-tint), transparent 70%); }
[data-style="garden"] .arch::before { inset: -16px; border-style: dashed; }
[data-style="garden"] .rsvp-band { border-radius: 40px; }
