/* Nothing may ever be wider than the screen (stops pinch-zooming out on phones). */
html, body { overflow-x: hidden; overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
/* Stop iPhone Safari from enlarging some text blocks and not others (it made the long harbour address bigger than "Olowalu Plantation House"). */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* Script "C B" monogram (Hawaii + neutral pages): white PNG, /img/monogram-cb.png */
.monogram { display: block; width: 170px; height: auto; margin: 0 auto; }
.theme-neutral .monogram { filter: drop-shadow(0 0 1px rgba(40, 60, 55, .55)) drop-shadow(0 1px 6px rgba(40, 60, 55, .3)); }

.flash { padding: .7em 1em; border: 1px solid currentColor; border-radius: 6px; }
.flash.ok { opacity: .9; }

/* --- Neutral gate / chooser / admin --- */
.theme-neutral { background: #f6f1e9 url('/img/hawaii/watercolor.jpg') center / cover fixed; color: #3d4a47; min-height: 100vh; }
.gate { max-width: 460px; margin: 0 auto; padding: 12vh 24px; text-align: center; }
.gate h1 { font-weight: 400; font-size: 34px; margin: .4em 0 .2em; }
.gate-form { display: grid; gap: 10px; margin-top: 24px; text-align: left; }
.gate-form input { font: inherit; padding: 10px 12px; border: 1px solid #a9bdb8; border-radius: 4px; background: #fffc; }
.gate-form button, .gate-form label { font: inherit; }
.gate-form button { padding: 10px; border: 1px solid #3d4a47; background: #3d4a47; color: #fff; border-radius: 4px; cursor: pointer; letter-spacing: .05em; }
.gate-small { font-size: 15px; margin-top: 28px; }
.gate a { color: inherit; }
.chooser { display: grid; gap: 14px; margin-top: 28px; }
.choice { display: grid; padding: 22px; border-radius: 6px; text-decoration: none; }
.choice strong { font-size: 28px; font-weight: 500; }
.choice-hawaii { background: #c2dfd7cc; color: #2f3f3c; }
.choice-edmonton { background: #b0281f; color: #f6ce6e; font-family: 'Cinzel', serif; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.choice-edmonton strong { font-family: 'Pinyon Script', cursive; text-transform: none; letter-spacing: 0; font-size: 38px; font-weight: 400; }

.admin { max-width: 1100px; margin: 0 auto; padding: 32px 20px 80px; background: #fffe; min-height: 100vh; font-family: system-ui, sans-serif; font-size: 14px; }
.admin h1, .admin h2 { font-weight: 600; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.admin-card { border: 1px solid #ddd; border-radius: 8px; padding: 4px 16px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { border-bottom: 1px solid #eee; padding: 6px 8px; text-align: left; vertical-align: top; }
.admin-table code { font-size: 12px; user-select: all; }
.muted { color: #bbb; }

/* ---- Shared one-page site chrome (Maui + Edmonton) ---- */

/* Nav: fixed to the top the whole time. Its tint lives in ::before as a gradient that fades
   to nothing, so there is never a hard edge. (No backdrop blur: browsers can't fade a blur
   out, so it always leaves a visible box.) */
.site-nav {
  --nav-bg: 0, 0, 0;
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 30px;
  padding: 14px 12px 34px;
}
.site-nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(var(--nav-bg), .55) 0%, rgba(var(--nav-bg), .30) 45%, rgba(var(--nav-bg), .10) 75%, rgba(var(--nav-bg), 0) 100%);
}
.site-nav { transition: opacity .35s ease, transform .35s ease; }
.site-nav.moving:not(:focus-within) { opacity: 0; transform: translateY(-8px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .site-nav { transition: opacity .2s linear; } .site-nav.moving:not(:focus-within) { transform: none; } }
.site-nav a { color: inherit; text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent; }
.site-nav a.active, .site-nav a:hover { border-bottom-color: currentColor; }

/* The video sits behind the whole page (not just the hero), so the hero flows straight into
   the content with no change of background. A tint layer sits between it and the content. */
.page-video { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-tint { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .page-video { display: none; } }

.hero {
  position: relative; z-index: 1;
  height: 100vh; height: 100svh;
  display: grid; place-items: center; text-align: center;
}
.hero-inner { position: relative; z-index: 2; padding: 0 20px; }

section[id] { scroll-margin-top: 56px; }
html { scroll-behavior: smooth; }

.site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; padding: 24px 20px 34px; font-size: 14px; }
.site-footer a { color: inherit; }

/* RSVP section (shared bits) */
.rsvp-section { text-align: center; }
.rsvp-section form { text-align: left; max-width: 540px; margin: 24px auto 0; }
.rsvp-find { display: grid; gap: 14px; }
.rsvp-find label, .rsvp-note, .if-dietary { display: grid; gap: 6px; }
.rsvp-section .flash { max-width: 540px; margin: 16px auto; }

@media (max-width: 640px) {
  .site-nav { gap: 6px 22px; padding: 12px 10px; }
}

/* Content columns: the tint is drawn in ::before and feathered at the left and right edges,
   so it melts into the background video instead of ending in a straight line. */
.feather-col::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--col-bg);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--feather), #000 calc(100% - var(--feather)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--feather), #000 calc(100% - var(--feather)), transparent 100%);
}
/* The fade always fits inside the column's side padding, so text never sits in the fading edge. */
.feather-col { --feather: 60px; }
@media (max-width: 720px) { .feather-col { --feather: 0px; } }

/* ---- RSVP: one question at a time, a row per person ---- */
.rsvp-form { --line: rgba(255, 255, 255, .22); --pill: rgba(255, 255, 255, .9); --pill-ink: #2f3f3c; }
.rq { display: block; margin: 0 0 30px; }
.rq .q { display: block; font-weight: 600; margin: 0 0 4px; }
.rq-hint { font-size: 14px; opacity: .8; margin: 0 0 6px; }
.rq-rows { border-top: 1px solid var(--line); }
.rq-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rq-name { font-size: 18px; min-width: 90px; }
.rq-input { flex: 1 1 240px; display: flex; justify-content: flex-end; }
.rq-input select, .rq-input input:not([type=radio]) { width: 100%; max-width: 340px; }
.rq-single input, .rq-single textarea { margin-top: 6px; }

/* Pill buttons built on radio inputs (still keyboard- and screen-reader-friendly). */
.seg { display: inline-flex; border: 1px solid var(--pill); border-radius: 999px; overflow: hidden; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label > span { display: block; padding: 6px 16px; font-size: 15px; white-space: nowrap; transition: background .15s, color .15s; }
.seg label + label > span { border-left: 1px solid var(--pill); }
.seg input:checked + span { background: var(--pill); color: var(--pill-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--pill); outline-offset: -4px; }

@media (max-width: 520px) {
  .rq-row { flex-direction: column; align-items: stretch; }
  .rq-input { justify-content: flex-start; flex-basis: auto; }
  .rq-input select, .rq-input input:not([type=radio]) { max-width: none; }
  .seg { width: 100%; } .seg label { flex: 1; text-align: center; }
}

/* Small phones: the yes/no pills share the row evenly and may wrap, so they never push the page wider than the screen. */
@media (max-width: 420px) {
  .seg { display: flex; width: 100%; }
  .seg label { flex: 1; min-width: 0; }
  .seg label > span { padding: 7px 8px; text-align: center; white-space: normal; }
  .lg-card .seg label > span { letter-spacing: .06em; }
}
@media (max-width: 360px) {
  body .ex-count-row, body .lg-count-row { gap: 12px; }
  body .ex-count-row small, body .lg-count-row small { letter-spacing: .14em; }
}
span.rq-hint { display: block; }
/* Both halves of a yes/no pill are always the same height, so the selected colour fills it completely. */
.seg label { display: flex; }
.seg label > span { flex: 1; display: flex; flex-direction: column; justify-content: center; }
