/* A Chance to Live
   Layout: phone-first, one column, left-aligned. A title-card hero over the dusk photograph.
   The ring of twelve seats is the one signature; the paper receipt is the only light surface.
   Gold means light: a lit seat, a person's own words, the one main action on a page. */

@font-face { font-family: "Besley Variable"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/besley-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Besley Variable"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(../fonts/besley-latin-wght-italic.woff2) format("woff2"); }
@font-face { font-family: "Libre Franklin Variable"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/libre-franklin-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Franklin Variable"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(../fonts/libre-franklin-latin-wght-italic.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --night: #0f1719;       /* the sea after sunset */
  --deep: #162326;        /* a raised surface */
  --slate: #2c4144;       /* rules and quiet fills: the cloud teal */
  --edge: #56747a;        /* the outline of anything you can type in or press: 3:1 on both dark surfaces */
  --mist: #a5b7b6;        /* secondary text */
  --bone: #efe8da;        /* primary text */
  --light: #e9c46a;       /* a lit seat */
  --light-ink: #1c1706;   /* text on gold */
  --paper: #f3efe4;       /* the receipt */
  --paper-ink: #1b2426;
  --alert: #f0a183;       /* form errors */

  --display: "Besley Variable", "Besley", Georgia, "Times New Roman", serif;
  --text: "Libre Franklin Variable", "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 1.2vw, 1.9rem);
  --step-3: clamp(1.85rem, 1.35rem + 2.5vw, 2.85rem);
  --step-4: clamp(2.45rem, 1.45rem + 5.2vw, 4.6rem);

  --gutter-l: max(1.25rem, env(safe-area-inset-left, 0px));
  --gutter-r: max(1.25rem, env(safe-area-inset-right, 0px));
  --band: clamp(3.25rem, 2rem + 6vw, 6rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--bone); font: 400 var(--step-0)/1.6 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em;
  margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.005em; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--light); }
:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--light); color: var(--light-ink); }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter-l); top: -4rem; z-index: 50; background: var(--light);
  color: var(--light-ink); padding: 0.6rem 0.9rem; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 0.75rem; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.narrow { max-width: 44rem; }
.band { padding-block: var(--band); }
.band + .band { padding-top: 0; }
.band--ruled { border-top: 1px solid var(--slate); padding-top: var(--band); }
.band + .band--ruled { padding-top: var(--band); }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--bone); max-width: 36rem; }
.quiet { color: var(--mist); }
.small { font-size: var(--step--1); line-height: 1.5; }
.voice { font-family: var(--display); font-style: italic; color: var(--light); }
.kicker { color: var(--mist); font-size: var(--step--1); margin-bottom: 0.9rem; }

/* preview and to-confirm markers */
.preview-note { margin: 0; background: var(--light); color: var(--light-ink); font-size: var(--step--1);
  font-weight: 500; padding: 0.5rem var(--gutter-r) 0.5rem var(--gutter-l); text-align: center; }
.todo { background: rgba(233, 196, 106, 0.2); outline: 1px dashed var(--light); outline-offset: 1px;
  border-radius: 3px; padding: 0 0.2em; }
.receipt .todo, .prose--paper .todo { background: rgba(233, 196, 106, 0.45); outline-color: #8a6d1c; }

/* page frame: the header sits over the photograph on the home page */
.page { position: relative; display: flex; flex-direction: column; min-height: 100vh; }
.page > main { flex: 1 0 auto; }
.masthead { position: relative; z-index: 20; }
.page--home > main { margin-top: -4.5rem; }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.5rem; padding-block: 0.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font: 600 1.05rem/1 var(--display);
  letter-spacing: -0.01em; color: var(--bone); }
.brand svg { width: 1.9rem; height: 1.9rem; flex: none; color: var(--light); }
.nav { display: none; align-items: center; gap: 1.5rem; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--mist); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--bone); }
.nav a.btn { color: var(--light-ink); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 0.95rem; padding: 0.55rem 0.9rem;
  border: 1px solid var(--edge); border-radius: var(--radius); background: rgba(15, 23, 25, 0.55); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--deep); }
.menu nav { position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 15rem; background: var(--deep);
  border: 1px solid var(--slate); border-radius: var(--radius); padding: 0.5rem; display: grid; }
.menu nav a { text-decoration: none; padding: 0.7rem 0.75rem; border-radius: 4px; }
.menu nav a:hover { background: var(--slate); color: var(--bone); }
.menu nav a.menu-apply { color: var(--light); font-weight: 600; }
@media (min-width: 60rem) {
  .nav { display: flex; }
  .menu { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem;
  padding: 0.7rem 1.25rem; border-radius: var(--radius); border: 1px solid transparent; font: 600 1rem/1.2 var(--text);
  text-decoration: none; cursor: pointer; text-align: center; }
.btn--primary { background: var(--light); color: var(--light-ink); }
.btn--primary:hover { background: #f3d382; color: var(--light-ink); }
.btn--ghost { border-color: rgba(239, 232, 218, 0.45); color: var(--bone); background: transparent; }
.btn--ghost:hover { border-color: var(--light); color: var(--light); }
.btn--small { min-height: 2.4rem; padding: 0.45rem 0.9rem; font-size: 0.95rem; }
.btn--wide { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--slate); color: var(--mist); cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* hero */
.hero { position: relative; isolation: isolate; }
.hero-media { position: relative; z-index: -1; }
.hero-media img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 60% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 25, 0.35) 0%, rgba(15, 23, 25, 0) 22%, rgba(15, 23, 25, 0) 48%, var(--night) 97%); }
.hero-text { margin-top: -4rem; padding-bottom: 3rem; }
.hero-text h1 { max-width: 12ch; }
.hero-text .lede { margin-top: 1.1rem; }
.hero-text .actions { margin-top: 1.6rem; }
.hero-note { margin-top: 1.1rem; color: var(--mist); font-size: var(--step--1); }
.hero--inner .hero-media img { aspect-ratio: 5 / 3; }
@media (min-width: 56rem) {
  .hero { display: grid; align-items: end; min-height: 37rem; }
  .hero-media { position: absolute; inset: 0 0 0 auto; width: min(66%, 62rem); }
  .hero-media img { height: 100%; aspect-ratio: auto; }
  .hero-media::after { background:
    linear-gradient(to right, var(--night) 0%, rgba(15, 23, 25, 0.55) 26%, rgba(15, 23, 25, 0) 55%),
    linear-gradient(to top, var(--night) 0%, rgba(15, 23, 25, 0) 34%),
    linear-gradient(to bottom, rgba(15, 23, 25, 0.5) 0%, rgba(15, 23, 25, 0) 20%); }
  .hero-text { margin-top: 0; padding-block: 5.5rem 4.5rem; }
  .hero-text > * { max-width: 35rem; }
  .hero-text h1 { max-width: 11ch; }
}
.page-head { padding-block: clamp(2rem, 1rem + 5vw, 4.5rem) 0; }
.page-head h1 { font-size: var(--step-3); max-width: 18ch; }
.page-head .lede { margin-top: 1rem; }

/* the ring of seats */
.twelve { display: grid; gap: 2.25rem; align-items: center; }
.ring { position: relative; width: min(100%, 19rem); aspect-ratio: 1; margin-inline: auto; }
.ring-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ring-arc { fill: none; stroke: var(--slate); stroke-width: 1; }
.seat-rim { fill: var(--night); stroke: var(--mist); stroke-opacity: 0.6; stroke-width: 1.25; }
.seat--raising .seat-rim { stroke: var(--light); stroke-opacity: 0.35; }
.seat-arc { fill: none; stroke: var(--light); stroke-width: 3.5; stroke-linecap: round; }
.seat-fill { fill: var(--light); filter: drop-shadow(0 0 5px rgba(233, 196, 106, 0.6)); }
.seat-halo { fill: none; stroke: var(--light); stroke-opacity: 0.4; stroke-width: 1; }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 0.2rem; }
.ring-center strong { font: 600 3.6rem/1 var(--display); letter-spacing: -0.03em; }
.ring-center span { font-size: var(--step--1); color: var(--mist); max-width: 8rem; line-height: 1.3; }
.ring-key { display: flex; justify-content: space-between; width: min(100%, 19rem); margin: 0.75rem auto 0;
  font-size: var(--step--1); color: var(--mist); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; margin-top: 1.75rem; }
.facts dt { font-size: var(--step--1); color: var(--mist); }
.facts dd { margin: 0.1rem 0 0; font: 600 var(--step-2)/1.1 var(--display); letter-spacing: -0.02em; }
@media (min-width: 52rem) {
  .twelve { grid-template-columns: 23rem minmax(0, 1fr); gap: 4.5rem; }
  .ring, .ring-key { margin-inline: 0; width: 100%; }
  .ring-center strong { font-size: 4.6rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .seat { animation: seat-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; transform-box: fill-box; transform-origin: center; }
  .s1 { animation-delay: 0.05s; } .s2 { animation-delay: 0.12s; } .s3 { animation-delay: 0.19s; }
  .s4 { animation-delay: 0.26s; } .s5 { animation-delay: 0.33s; } .s6 { animation-delay: 0.4s; }
  .s7 { animation-delay: 0.47s; } .s8 { animation-delay: 0.54s; } .s9 { animation-delay: 0.61s; }
  .s10 { animation-delay: 0.68s; } .s11 { animation-delay: 0.75s; } .s12 { animation-delay: 0.82s; }
  @keyframes seat-in { from { opacity: 0.25; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
}

/* the steps: a real sequence, so they are numbered */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.75rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 1rem; }
.steps li::before { content: counter(step); font: 600 2rem/1 var(--display); color: var(--light); grid-row: span 2; }
.steps h3 { align-self: end; }
.steps p { grid-column: 2; color: var(--mist); margin-top: 0.3rem; max-width: 34rem; }
@media (min-width: 56rem) {
  .steps--row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem; }
  .steps--row li { grid-template-columns: 1fr; row-gap: 0.6rem; align-content: start; }
  .steps--row li::before { grid-row: auto; }
  .steps--row h3 { align-self: start; }
  .steps--row p { grid-column: 1; margin-top: 0; }
}

/* the receipt */
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 52rem) { .split { grid-template-columns: minmax(0, 1fr) 24rem; gap: 4.5rem; } }
.receipt { background: var(--paper); color: var(--paper-ink); padding: 1.4rem 1.25rem 1.9rem; max-width: 26rem; width: 100%;
  font-variant-numeric: tabular-nums;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; }
.receipt h3 { font-size: 1.15rem; }
.receipt-sub { font-size: var(--step--1); color: #4d5a5c; margin-top: 0.25rem; }
.receipt dl { margin-top: 1.1rem; display: grid; gap: 0.85rem; }
.receipt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.75rem; align-items: baseline; }
.receipt dt { display: flex; gap: 0.5rem; align-items: baseline; font-weight: 500; }
.receipt dt::after { content: ""; flex: 1; min-width: 1rem; border-bottom: 1px dotted #7b8789; transform: translateY(-0.3em); }
.receipt dd { margin: 0; font-weight: 600; }
.receipt-note { grid-column: 1 / -1; font-size: 0.8125rem; line-height: 1.4; color: #4d5a5c; margin-top: 0.1rem; }
.receipt-total { border-top: 1px solid var(--paper-ink); padding-top: 0.85rem; }
.receipt-total dt, .receipt-total dd { font: 600 1.2rem/1.2 var(--display); }
.receipt-total dt::after { border-bottom: 0; }
.receipt-foot { font-size: 0.8125rem; line-height: 1.45; color: #4d5a5c; margin-top: 1rem; }

/* three points about the show */
.points { display: grid; gap: 1.5rem; }
.points h3 { margin-bottom: 0.35rem; }
.points p { color: var(--mist); }
@media (min-width: 48rem) { .points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }

/* forms */
.form { display: grid; gap: 1rem; max-width: 30rem; }
.field { display: grid; gap: 0.35rem; }
.field label, .field-label { font-size: 0.95rem; font-weight: 500; }
.field input, .field select, .field textarea, .kit textarea, .kit input[type="text"] {
  width: 100%; font: 400 1rem/1.4 var(--text); color: var(--bone); background: var(--deep);
  border: 1px solid var(--edge); border-radius: var(--radius); padding: 0.75rem 0.85rem; min-height: 3rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input::placeholder, .kit textarea::placeholder { color: #7f9393; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .kit textarea:focus-visible, .kit input:focus-visible {
  outline: 2px solid var(--light); outline-offset: 1px; border-color: var(--light); }
.check { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.7rem; align-items: start; font-size: 0.95rem; line-height: 1.45; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--light); }
.checks { border: 0; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.checks legend { padding: 0; font-size: 0.95rem; font-weight: 500; margin-bottom: 0.6rem; }
.hp { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
.form-status { border: 1px solid var(--slate); border-left: 3px solid var(--light); background: var(--deep);
  border-radius: var(--radius); padding: 1rem 1.1rem; max-width: 30rem; }
.form-status--fail { border-left-color: var(--alert); }
.form-status h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }

/* who is behind this */
.trust { display: grid; gap: 1.5rem; }
.trust h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.trust p { color: var(--mist); font-size: 0.975rem; }
@media (min-width: 48rem) { .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }

/* people */
.sorts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sort { font: 500 0.95rem/1 var(--text); color: var(--mist); background: transparent; border: 1px solid var(--edge);
  border-radius: 999px; padding: 0.6rem 0.95rem; cursor: pointer; min-height: 2.5rem; }
.sort[aria-pressed="true"] { color: var(--light-ink); background: var(--light); border-color: var(--light); }
.people-grid { display: grid; gap: 2.25rem 1.5rem; margin-top: 2rem; }
@media (min-width: 40rem) { .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.card .meter { margin-top: auto; }
.card-media { position: relative; display: block; aspect-ratio: 1; background: var(--deep); overflow: hidden;
  border-radius: 4px; text-decoration: none; color: var(--bone); }
@media (min-width: 40rem) { .card-media { aspect-ratio: 4 / 5; } }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.ph { position: absolute; inset: 0; display: grid; place-content: center;
  background: radial-gradient(120% 90% at 30% 20%, #3e5759 0%, #1d2c2e 55%, #121a1c 100%);
  font: 600 4.5rem/1 var(--display); color: rgba(239, 232, 218, 0.28); }
.lower-third { position: absolute; left: 0; bottom: 0.9rem; background: rgba(15, 23, 25, 0.9); padding: 0.55rem 0.9rem 0.6rem;
  display: grid; gap: 0.1rem; max-width: 90%; }
.lower-third strong { font: 600 1.3rem/1.1 var(--display); letter-spacing: -0.01em; }
.lower-third span { font-size: 0.85rem; color: var(--mist); }
.ribbon { position: absolute; top: 0.7rem; right: 0.7rem; background: var(--bone); color: var(--paper-ink);
  font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.5rem; border-radius: 3px; }
.card-line { font: italic 400 1.05rem/1.4 var(--display); color: var(--light); }
.meter { display: grid; gap: 0.45rem; }
progress { appearance: none; -webkit-appearance: none; width: 100%; height: 0.5rem; border: 0; border-radius: 999px;
  background: var(--edge); overflow: hidden; display: block; }
progress::-webkit-progress-bar { background: var(--edge); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--light); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--light); border-radius: 999px; }
.nums { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; font-size: 0.95rem;
  color: var(--mist); font-variant-numeric: tabular-nums; }
.nums strong { color: var(--bone); font-weight: 600; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.empty { border: 1px dashed var(--slate); border-radius: var(--radius); padding: 2rem 1.5rem; max-width: 40rem; margin-top: 2rem; }
.empty h2 { font-size: var(--step-2); }

/* one person's page */
.person-top { display: grid; gap: 1.5rem; padding-top: 1rem; }
.person-media { position: relative; aspect-ratio: 4 / 5; max-height: 34rem; background: var(--deep); overflow: hidden; border-radius: 4px; }
.person-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-media .lower-third strong { font-size: 1.6rem; }
.person-panel { display: grid; gap: 1.1rem; align-content: start; }
.person-panel h1 { font-size: var(--step-3); }
.person-panel .card-line { font-size: 1.2rem; }
.raised { font: 600 var(--step-3)/1 var(--display); letter-spacing: -0.02em; }
.raised small { font: 400 1rem/1.3 var(--text); color: var(--mist); letter-spacing: 0; display: block; margin-top: 0.4rem; }
.secured-note { border: 1px solid var(--light); border-radius: var(--radius); padding: 0.9rem 1rem; color: var(--light); font-weight: 500; }
.person-body { display: grid; gap: 3rem; margin-top: 3rem; padding-bottom: var(--band); }
.story { max-width: 38rem; }
.story h2, .updates h2, .gift h2 { font-size: var(--step-2); margin-bottom: 1rem; }
.story p + p { margin-top: 1.1rem; }
.video-link { display: flex; align-items: center; gap: 0.8rem; border: 1px solid var(--slate); border-radius: var(--radius);
  padding: 0.85rem 1rem; text-decoration: none; max-width: 30rem; }
.video-link svg { width: 2.25rem; height: 2.25rem; color: var(--light); flex: none; }
.updates ol { list-style: none; padding: 0; display: grid; gap: 1.5rem; max-width: 38rem; }
.updates time { font-size: var(--step--1); color: var(--mist); display: block; margin-bottom: 0.2rem; }
.updates h3 { margin-bottom: 0.4rem; }
.updates p + p { margin-top: 0.75rem; }
@media (min-width: 56rem) {
  .person-top { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
  .person-body { grid-template-columns: minmax(0, 1fr) 24rem; gap: 4.5rem; align-items: start; }
  .person-body .gift { grid-column: 2; grid-row: 1 / span 3; }
}
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(15, 23, 25, 0.96);
  border-top: 1px solid var(--slate); display: grid; grid-template-columns: 1.6fr 1fr; gap: 0.6rem;
  padding: 0.7rem var(--gutter-r) calc(0.7rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  transform: translateY(110%); transition: transform 0.2s ease-out; }
.actionbar.is-shown { transform: none; }
@media (min-width: 56rem) { .actionbar { display: none; } }
@media (prefers-reduced-motion: reduce) { .actionbar { transition: none; } html { scroll-behavior: auto; } }
.has-actionbar .site-footer { padding-bottom: 6.5rem; }

/* the share kit */
.kit { display: grid; gap: 3rem; }
.kit h2 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.kit-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }
.linkbox { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem; max-width: 34rem; margin-top: 0.9rem; }
.qr { background: var(--paper); padding: 0.75rem; border-radius: 4px; width: 11rem; height: 11rem; display: grid; place-content: center; margin-top: 1rem; }
.qr canvas, .qr img { width: 9.5rem; height: 9.5rem; display: block; image-rendering: pixelated; }
.voices { display: inline-grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--edge); border-radius: 999px; padding: 0.2rem; margin-top: 0.9rem; }
.voices button { font: 500 0.95rem/1 var(--text); border: 0; background: transparent; color: var(--mist); padding: 0.6rem 1rem;
  border-radius: 999px; cursor: pointer; min-height: 2.5rem; }
.voices button[aria-pressed="true"] { background: var(--bone); color: var(--paper-ink); }
.messages { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 52rem) { .messages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.message { border: 1px solid var(--slate); border-radius: var(--radius); padding: 1rem; display: grid; gap: 0.7rem; align-content: start; min-width: 0; }
.message h3 { font-size: 1.1rem; }
.message textarea { min-height: 6rem; resize: vertical; }
.message .kit-row { margin-top: 0; }
.contacts { max-width: 40rem; }
.contact-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; }
.contact-list li { display: grid; gap: 0.6rem; align-items: center;
  border: 1px solid var(--slate); border-radius: var(--radius); padding: 0.7rem 0.75rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
@media (min-width: 40rem) {
  .contact-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; }
  .contact-actions { justify-content: flex-end; }
}
.contact-add { margin-top: 1.25rem; max-width: 26rem; }
.contact-list li.is-sent { opacity: 0.55; }
.contact-list .who { min-width: 0; overflow-wrap: anywhere; }
.contact-list .who span { display: block; font-size: var(--step--1); color: var(--mist); }
.tally { font-variant-numeric: tabular-nums; color: var(--mist); margin-top: 0.75rem; }
.tips { margin-top: 1rem; }

/* reading pages */
.prose { max-width: 40rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.75rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.prose li::marker { color: var(--light); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.975rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--slate); vertical-align: top; }
.prose th { font-weight: 600; color: var(--mist); }
.table-scroll { overflow-x: auto; }
.callout { border: 1px solid var(--slate); border-left: 3px solid var(--light); border-radius: var(--radius);
  background: var(--deep); padding: 1.1rem 1.25rem; }
.callout > * + * { margin-top: 0.6rem; }
.callout--risk { border-left-color: var(--alert); }
.sources { font-size: var(--step--1); color: var(--mist); }
.sources ol { padding-left: 1.2rem; display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.sources a { overflow-wrap: anywhere; }

/* money flow */
.flow { list-style: none; padding: 0; display: grid; gap: 0; max-width: 30rem; }
.flow li { border: 1px solid var(--slate); border-radius: var(--radius); padding: 0.9rem 1rem; background: var(--deep); }
.flow li + li { margin-top: 2.25rem; position: relative; }
.flow li + li::before { content: ""; position: absolute; left: 1.6rem; top: -2.25rem; height: 2.25rem; border-left: 1px solid var(--mist); }
.flow li + li::after { content: ""; position: absolute; left: calc(1.6rem - 4px); top: -0.6rem; width: 9px; height: 9px;
  border-right: 1px solid var(--mist); border-bottom: 1px solid var(--mist); transform: rotate(45deg); }
.flow strong { display: block; font: 600 1.1rem/1.2 var(--display); }
.flow span { color: var(--mist); font-size: 0.95rem; }
.flow .flow-main { border-color: var(--light); }
.flow .flow-end { border-style: dashed; }

/* footer */
.site-footer { border-top: 1px solid var(--slate); padding-block: 2.75rem 2.5rem; font-size: 0.95rem; }
.foot { display: grid; gap: 2rem; }
.foot h2 { font: 600 1rem/1.2 var(--text); letter-spacing: 0; color: var(--mist); margin-bottom: 0.7rem; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.fineprint { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--slate); color: var(--mist);
  font-size: 0.85rem; line-height: 1.55; display: grid; gap: 0.75rem; max-width: 56rem; }
@media (min-width: 48rem) { .foot { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; } }

/* small pieces shared by the pages */
.crumb { font-size: var(--step--1); color: var(--mist); padding-top: 1.25rem; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.page-head .crumb { padding-top: 0; margin-bottom: 0.9rem; }
.more { margin-top: 2rem; }
.more a:not(.btn) { font-weight: 500; }
.prose .flush { margin-top: 0; }
.nowrap { white-space: nowrap; }
sup { font-size: 0.7em; line-height: 0; }
sup a { text-decoration: none; color: var(--light); padding: 0 0.12em; }
.callout-title { font-size: var(--step-1); }
.example-note { margin-top: 1rem; font-size: 0.95rem; max-width: 44rem; }
.page-head .example-note { margin: 0 0 1.25rem; }
.preview-inline { margin-top: 0.9rem; max-width: 36rem; }

/* a rule, a promise, a thing we're asking of you: marked with a lit seat */
.rules { list-style: none; padding: 0; display: grid; gap: 0.7rem; max-width: 38rem; }
.rules li { position: relative; padding-left: 1.4rem; }
.rules li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 0.5rem; height: 0.5rem;
  border-radius: 50%; background: var(--light); }
.rules--wide { max-width: none; margin-top: 1.75rem; }
@media (min-width: 52rem) { .rules--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 3.5rem; } }

/* home */
.seats-lede { margin-top: 1rem; max-width: 34rem; }
.facts-note { margin-top: 1.5rem; max-width: 34rem; font-size: 0.95rem; }
.steps--home { margin-top: 2.25rem; }
.steps--next { margin-top: 2rem; max-width: 44rem; }
.points--show { margin-top: 2.25rem; }
@media (min-width: 48rem) { .points--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .points--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 52rem) { .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.money { margin-top: 2.25rem; }
.trust-title { margin-bottom: 1.75rem; }
.empty-text { margin-top: 0.75rem; color: var(--mist); }
.empty-actions { margin-top: 1.25rem; }
.tally-line { margin-top: 0.9rem; font-variant-numeric: tabular-nums; }
.updated { margin-top: 1.75rem; max-width: 40rem; }

/* apply */
.apply-grid { display: grid; gap: 3rem; align-items: start; }
.apply-form { background: var(--deep); border: 1px solid var(--slate); border-radius: var(--radius); padding: 1.5rem 1.25rem; }
.apply-form h2 { font-size: var(--step-2); }
.apply-form-note { margin: 0.4rem 0 1.25rem; }
.apply-form .field input, .apply-form .field select, .apply-form .form-status { background-color: var(--night); }
.apply-grid .stack h2 { font-size: var(--step-2); }
.apply-talk { margin-top: 1.25rem; font-size: 0.95rem; }
@media (min-width: 56rem) {
  .apply-grid { grid-template-columns: minmax(0, 1fr) 26rem; gap: 4.5rem; }
  .apply-form { order: 2; padding: 2rem; }
}

/* a person's page */
.person-actions .btn { flex: 1 1 12rem; }
.secured-note--closed { border-color: var(--slate); color: var(--bone); font-weight: 400; }
.video-link strong { display: block; }
.video-where { display: block; font-size: var(--step--1); color: var(--mist); }
.gift-rules { margin-top: 1.5rem; display: grid; gap: 1rem; }
.qr-note { margin-top: 0.75rem; max-width: 30rem; }

/* inner pages: the first block sits close under the page heading */
.page-head + .band { padding-top: clamp(2rem, 1.25rem + 3vw, 3.25rem); }
.page-head--after { padding-top: clamp(1.5rem, 1rem + 2.5vw, 2.75rem); }
.sub { font-size: var(--step-2); }

/* how it works: the two halves of the journey */
.journey { display: grid; gap: 3rem; align-items: start; }
.journey .steps--next { margin-top: 1.5rem; }
.steps--from6 { counter-reset: step 5; }
@media (min-width: 60rem) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4.5rem; } }

/* the show: one frame from the film, letterboxed, with its caption */
.still { position: relative; margin: 0.5rem 0 0; overflow: hidden; border-radius: 4px; background: var(--deep); }
.still img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 60% 60%; }
.still .lower-third strong { font-size: 1.15rem; }
@media (min-width: 40rem) {
  .still img { aspect-ratio: 2.39 / 1; }
  .still .lower-third { bottom: 1.5rem; padding: 0.7rem 1.25rem 0.8rem; }
  .still .lower-third strong { font-size: 1.6rem; }
}
