@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant.woff2?v=20261201g") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; src: url("/fonts/cormorant-italic.woff2?v=20261201g") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-400.woff2?v=20261201g") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --ink: #241c2b;
  --ink-soft: #62586b;
  --ink-faint: #9a90a3;
  --rose: #a9473a;
  --rose-deep: #86342a;
  --rose-wash: #fbebe7;
  --lake: #2f6b7e;
  --lake-wash: #edf4f6;
  --page: #ffffff;
  --tile: #f3f6f8;
  --err: #b3261e;
  --radius: 14px;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --bar-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
button { -webkit-tap-highlight-color: transparent; }

.masthead { position: relative; background: var(--lake-wash); overflow: hidden; }
.banner { width: 100%; height: clamp(136px, 20vh, 340px); object-fit: cover; object-position: 64% 58%; transition: height 260ms ease; }
body.inner .banner { height: 54px; object-position: 64% 64%; }
body.done .banner { height: clamp(180px, 30vh, 340px); }

.sheet { position: relative; max-width: 560px; margin: 0 auto; padding: 20px 20px calc(var(--bar-h) + 24px); background: var(--page); }
body.hero .sheet, body.done .sheet { margin-top: -30px; border-radius: 26px 26px 0 0; padding-top: 26px; }
@media (min-width: 600px) { body.hero .sheet, body.done .sheet { box-shadow: 0 -10px 40px rgba(36, 28, 43, 0.10); } }
.loading { padding: 40px 0; color: var(--ink-soft); }

h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.04; margin: 0 0 10px; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: clamp(33px, 9vw, 50px); }
h2 { font-size: clamp(30px, 8vw, 38px); }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--rose); }
p { margin: 0 0 14px; }
.lede { color: var(--ink-soft); font-size: 16.5px; line-height: 1.5; }

.details { list-style: none; margin: 12px 0 16px; padding: 0; display: grid; gap: 8px; }
.details li { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 12px; }
.details .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--rose-wash); display: grid; place-items: center; color: var(--rose); }
.details b { display: block; font-weight: 600; font-size: 16px; line-height: 1.25; }
.details small { display: block; color: var(--ink-soft); font-size: 14px; line-height: 1.3; }
.svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.prog { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.prog .segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; flex: 1; }
.prog .segs i { height: 4px; border-radius: 4px; background: #e6e0ea; }
.prog .segs i.on { background: var(--rose); }
.prog span { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }

.rail { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px 12px; padding: 2px 20px 4px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.chip { flex: none; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--tile); font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.chip .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 700; }
.chip.now { background: var(--ink); color: #fff; }
.chip.now .av { background: var(--rose); color: #fff; }
.chip.ok .av { background: var(--lake); color: #fff; }

.field { margin: 0 0 11px; }
.label { display: block; font-weight: 600; font-size: 15.5px; margin: 0 0 6px; }
.hint { display: block; color: var(--ink-soft); font-size: 13.5px; font-weight: 400; margin: 1px 0 0; }
input[type=text], input[type=tel], textarea, select {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--tile);
  border: 2px solid transparent; border-radius: var(--radius); padding: 13px 15px; min-height: 54px;
  -webkit-appearance: none; appearance: none; transition: border-color 150ms, background 150ms;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
textarea { min-height: 88px; resize: vertical; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--lake); background: #fff; }
.count { display: block; text-align: right; color: var(--ink-faint); font-size: 13px; margin-top: 4px; }
.names { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.names .field { min-width: 0; }
.names .label { font-size: 14.5px; }

.choices { display: grid; gap: 8px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choices.three { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.choice .tile { display: flex; flex-direction: column; justify-content: center; min-height: 56px; height: 100%; padding: 10px 14px 10px 46px; background: var(--tile); border: 2px solid transparent; border-radius: var(--radius); position: relative; transition: background 150ms, border-color 150ms; }
.choice .tile b { font-weight: 600; font-size: 16px; line-height: 1.25; }
.choice .tile small { color: var(--ink-soft); font-size: 13.5px; line-height: 1.3; margin-top: 2px; }
.choice .tile::before { content: ""; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 2px solid var(--ink-faint); background: #fff; transition: border 150ms; }
.choice input:checked + .tile { border-color: var(--ink); background: #fff; }
.choice input:checked + .tile::before { border: 6px solid var(--rose); }
.choice input:focus-visible + .tile { outline: 3px solid var(--lake); outline-offset: 2px; }
.choices.three .tile, .choices.flat .tile { padding: 8px 6px; align-items: center; text-align: center; min-height: 48px; }
.choices.three .tile::before, .choices.flat .tile::before { display: none; }
.choices.three .tile b { font-size: 14.5px; }
.choices.three .tile small { font-size: 12.5px; }
.choices.three input:checked + .tile, .choices.flat input:checked + .tile { background: var(--rose-wash); border-color: var(--rose); }

.field.inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 10px 10px 16px; background: var(--tile); border-radius: var(--radius); }
.field.inline .label { margin: 0; }
.field.inline .err { flex-basis: 100%; }
.stepper { display: flex; align-items: center; }
.stepper button { width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; font: 500 24px/1 var(--body); color: var(--ink); cursor: pointer; box-shadow: 0 1px 3px rgba(36, 28, 43, 0.12); }
.stepper button:disabled { color: #c8c1cd; box-shadow: none; background: transparent; cursor: default; }
.stepper output { min-width: 42px; text-align: center; font: 600 28px/1 var(--display); }

.fixed { display: flex; gap: 10px; align-items: center; background: var(--lake-wash); padding: 12px 14px; border-radius: var(--radius); font-size: 15px; }
.fixed .svg { flex: none; color: var(--lake); }

.err { color: var(--err); font-size: 14px; font-weight: 600; margin-top: 6px; display: block; }
.has-err input, .has-err textarea, .has-err select, .has-err .tile { border-color: var(--err); }
.has-err.inline { box-shadow: inset 0 0 0 2px var(--err); }
.form-err { color: var(--err); font-weight: 600; margin: 0 0 12px; }

.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--lake-wash); padding: 12px 14px; border-radius: var(--radius); margin: 0 0 16px; font-size: 15px; }
.notice .svg { flex: none; margin-top: 2px; color: var(--lake); }

.actions { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.97); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(36, 28, 43, 0.08); z-index: 5; }
.actions-in { max-width: 520px; margin: 0 auto; display: flex; gap: 10px; }
.btn { font: 600 17px/1 var(--body); min-height: 56px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.primary { flex: 1; background: var(--ink); color: #fff; }
.btn.primary:active { background: #000; }
.btn.back { width: 56px; padding: 0; flex: none; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn:focus-visible { outline: 3px solid var(--lake); outline-offset: 2px; }
.btn.small { min-height: 44px; font-size: 15px; padding: 0 16px; }
.btn.text { border-color: transparent; background: transparent; padding: 0 4px; min-height: 40px; color: var(--rose-deep); text-decoration: underline; text-underline-offset: 3px; }
.btn.add { width: 100%; border-style: dashed; border-color: var(--ink-faint); min-height: 60px; border-radius: var(--radius); }

.fam { background: var(--tile); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fam b { display: block; font-weight: 600; }
.fam small { color: var(--ink-soft); font-size: 14px; }

.card { background: #fff; border-radius: 20px; box-shadow: 0 2px 4px rgba(36, 28, 43, 0.05), 0 10px 30px rgba(36, 28, 43, 0.08); padding: 4px 18px 6px; margin: 0 0 14px; }
.card-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 4px; }
.card-h h3 { font: 600 22px/1.1 var(--display); margin: 0; }
.card-h h3 small { font: 600 14px var(--body); color: var(--ink-soft); margin-left: 6px; }
.person { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 10px 0; }
.person + .person { border-top: 1px solid #eee8f0; }
.person .av { width: 34px; height: 34px; border-radius: 50%; background: var(--rose-wash); color: var(--rose-deep); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.person b { display: block; font-weight: 600; line-height: 1.3; }
.person span { display: block; color: var(--ink-soft); font-size: 14px; line-height: 1.4; }
.person .sev { display: inline; color: var(--err); font-weight: 600; }

.done-mark { width: 54px; height: 54px; border-radius: 50%; background: var(--rose); display: grid; place-items: center; margin: 0 0 14px; color: #fff; }
.done-mark .svg { width: 26px; height: 26px; stroke-width: 2.6; }
.seats { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 16.5px; }
.seats td { padding: 11px 0; border-bottom: 1px solid #eee8f0; }
.seats td:last-child { text-align: right; font: 600 24px/1 var(--display); }
.seats tr.total td { border-bottom: 0; font-weight: 700; padding-top: 14px; }
.seats tr.total td:last-child { font-size: 34px; color: var(--rose); }
.after { display: grid; gap: 10px; margin: 6px 0 14px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .screen.enter { animation: fade 240ms ease-out; }
  @keyframes fade { from { opacity: 0.3; } to { opacity: 1; } }
}

body.inner h2 { font-size: clamp(27px, 7.2vw, 36px); }
body.inner .sheet { padding-top: 16px; }
.choice .tile .x { display: none; }
.lrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lrow .btn.text { min-height: 28px; font-size: 14px; font-weight: 600; }
.kidline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--lake-wash); border-radius: var(--radius); padding: 10px 12px; font-size: 14.5px; }
.kidline .svg { color: var(--lake); flex: none; }
.kidline > span { flex: 1; min-width: 0; }
.kidline .btn.text { min-height: 28px; font-size: 14px; }
.nolabel .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.nolabel { margin-bottom: 10px; }
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.steppers .field.inline { flex-direction: column; align-items: stretch; gap: 8px; margin: 0; padding: 12px; }
.steppers .stepper { justify-content: space-between; }

/* ---------- desktop and tablet: panorama band + raised card ---------- */
@media (min-width: 760px) {
  body { background: var(--lake-wash); min-height: 100vh; }
  .masthead { background: var(--lake-wash); }
  .banner, body.inner .banner, body.done .banner { height: auto; aspect-ratio: 4 / 1; max-height: 420px; object-position: 60% 55%; }
  body.inner .banner { max-height: 300px; }
  .sheet, body.hero .sheet, body.done .sheet, body.inner .sheet {
    max-width: 640px; margin: -120px auto 56px; padding: 44px 52px 40px;
    border-radius: 24px; box-shadow: 0 2px 6px rgba(36, 28, 43, 0.05), 0 24px 60px rgba(36, 28, 43, 0.14);
  }
  body.inner .sheet { margin-top: -90px; }
  .actions { position: static; background: none; box-shadow: none; padding: 0; margin-top: 26px; }
  .actions-in { max-width: none; }
  .rail { margin: 0 0 14px; padding: 2px 0 4px; }
  h1 { font-size: 52px; }
  body.inner h2 { font-size: 40px; }
}
@media (min-width: 1280px) {
  .sheet, body.hero .sheet, body.done .sheet, body.inner .sheet { max-width: 680px; margin-top: -150px; }
  body.inner .sheet { margin-top: -110px; }
}
