@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant.woff2?v=20261201e") 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=20261201e") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-400.woff2?v=20261201e") 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;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --bar-h: 74px;
}

*, *::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.45 var(--body); -webkit-font-smoothing: antialiased; caret-color: var(--rose); }
::selection { background: var(--rose-wash); color: var(--rose-deep); }
img { max-width: 100%; height: auto; display: block; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.masthead { background: var(--lake-wash); overflow: hidden; }
.banner { width: 100%; height: clamp(80px, 12.5vh, 300px); object-fit: cover; object-position: 64% 58%; }
body.done .banner { height: clamp(170px, 30vh, 340px); }

.sheet { max-width: 560px; margin: 0 auto; padding: 14px 20px var(--bar-h); }

h1 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -0.012em; margin: 0; font-size: clamp(28px, 7.8vw, 46px); text-wrap: balance; font-variant-numeric: lining-nums; }
h1 em { font-style: italic; font-weight: 500; }
p { margin: 0 0 14px; }
.meta { color: var(--rose-deep); font-weight: 600; font-size: 15px; margin: 5px 0 10px; }
.lede { color: var(--ink-soft); font-size: 17px; line-height: 1.5; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; width: 100%; }
legend.lrow { display: flex; }
.field { margin: 0 0 10px; }
.lrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; clear: both; }
.lrow::after { content: ""; display: table; clear: both; }
.label { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; margin: 0 0 5px; }
.label .soft { font-weight: 400; color: var(--ink-soft); }
.err { color: var(--err); font-size: 14px; font-weight: 600; text-align: right; white-space: nowrap; }
.err:empty { display: none; }

input[type=text], input[type=tel] {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--tile);
  border: 2px solid transparent; border-radius: 6px; padding: 9px 14px; min-height: 46px;
  -webkit-appearance: none; appearance: none; transition: border-color 150ms, background 150ms;
}
input::placeholder { color: var(--ink-faint); }
input:focus { outline: none; border-color: var(--lake); background: #fff; }
.has-err input[type=text], .has-err input[type=tel] { border-color: var(--err); background: #fff; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; clear: both; }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.choice .tile { display: flex; align-items: center; min-height: 46px; height: 100%; padding: 6px 12px; background: var(--tile); border-radius: 6px; font-weight: 600; font-size: 15px; line-height: 1.2; transition: background 150ms, color 150ms; }
.choice input:checked + .tile { background: var(--rose); color: #fff; }
.choice input:focus-visible + .tile { outline: 3px solid var(--lake); outline-offset: 2px; }
.has-err .tile { box-shadow: inset 0 0 0 2px var(--err); }

.actions { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); z-index: 5; }
.actions-in { max-width: 520px; margin: 0 auto; display: flex; }
.btn { font: 600 17px/1.2 var(--body); min-height: 54px; padding: 0 22px; border-radius: 6px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn.primary { flex: 1; background: var(--ink); color: #fff; }
.btn.primary:active { background: #000; }
.btn.primary.failed { background: var(--err); border-color: var(--err); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn:focus-visible { outline: 3px solid var(--lake); outline-offset: 2px; }
.btn.text { border: 0; background: none; padding: 0; min-height: 44px; color: var(--rose-deep); text-decoration: underline; text-underline-offset: 4px; }

.what { font: 600 23px/1.25 var(--display); margin: 14px 0 8px; font-variant-numeric: lining-nums; }

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

@media (prefers-reduced-motion: no-preference) {
  #thanks:not([hidden]) { animation: fade 260ms cubic-bezier(0.16, 1, 0.3, 1); }
  @keyframes fade { from { opacity: 0.35; } to { opacity: 1; } }
}

/* Taller phones get a little more banner and air. */
@media (min-height: 760px) and (max-width: 759px) {
  .banner { height: clamp(120px, 18vh, 300px); }
  .sheet { padding-top: 22px; }
  .field { margin-bottom: 16px; }
  .meta { margin-bottom: 20px; }
}

/* Tablet and desktop: panorama band, sheet set left over it. */
@media (min-width: 760px) {
  body { background: var(--lake-wash); min-height: 100vh; }
  .banner, body.done .banner { height: auto; aspect-ratio: 4 / 1; max-height: 360px; object-position: 60% 55%; }
  .sheet { max-width: 600px; margin: -90px auto 56px max(48px, 9vw); padding: 40px 48px 36px; background: var(--page); }
  .actions { position: static; padding: 0; margin-top: 22px; background: none; }
  .actions-in { max-width: none; }
  h1 { font-size: 48px; }
}

/* The mobile label fills the row, so its error sits inside the input's right edge instead of beside the label. */
.field[data-f=mobile] { position: relative; }
.field[data-f=mobile] .err { position: absolute; right: 14px; bottom: 15px; pointer-events: none; }
.field[data-f=mobile].has-err input { padding-right: 180px; }
