:root {
  --linen: #F1ECEA;
  --espresso: #3E2B24;
  --brown: #403528;
  --tan: #C4B693;
  --cocoa: #6B5B56;
  --bg: var(--linen);
  --text: var(--espresso);
  --muted: var(--cocoa);
  --btn-bg: var(--espresso);
  --btn-text: var(--linen);
  --focus: var(--espresso);
  --card: #FFFFFF;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--brown);
    --text: var(--linen);
    --muted: #CFC4BE;
    --btn-bg: var(--linen);
    --btn-text: var(--espresso);
    --focus: var(--linen);
    --card: #4B3F31;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

main { max-width: 40rem; margin: 0 auto; padding: 0 16px 2rem; }
h1, h2, .wordmark, blockquote { font-family: "Libre Baskerville", Georgia, serif; }
h1 { font-size: clamp(2.1rem, 8vw, 3.4rem); line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 0 0 1rem; }
p { margin: 0 0 1rem; }
a { color: inherit; }
a:focus-visible, input:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: #F1ECEA; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto 0; height: 7rem; background: linear-gradient(180deg, rgba(30,20,16,0.7) 0%, rgba(30,20,16,0) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,20,16,0.15) 0%, rgba(30,20,16,0.35) 40%, rgba(30,20,16,0.85) 100%); }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 40rem; margin: 0 auto; padding: 2rem 16px calc(2.5rem + env(safe-area-inset-bottom)); }
.wordmark { position: absolute; z-index: 2; top: calc(1.25rem + env(safe-area-inset-top)); left: 0; right: 0; max-width: 40rem; margin: 0 auto; padding: 0 16px; font-size: 1.4rem; font-weight: 700; }
.badge { display: inline-block; margin: 0 0 1rem; padding: 0.3rem 0.75rem; border: 1px solid rgba(241,236,234,0.7); border-radius: 999px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.lede { font-size: 1.1rem; max-width: 32rem; }
.btn { display: inline-block; min-height: 44px; padding: 0.7rem 1.4rem; background: #F1ECEA; color: #3E2B24; border-radius: 999px; font-weight: 600; text-decoration: none; }

section { padding: 3rem 0 0; }
.moves { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.moves li { display: grid; align-content: start; gap: 0.35rem; padding: 1rem 1.25rem; border-left: 4px solid var(--tan); background: var(--card); border-radius: 0 10px 10px 0; }
.move-name { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; }
.move-line { font-family: "Libre Baskerville", Georgia, serif; font-size: 1.05rem; line-height: 1.5; }

.card { margin: 0; padding: 1.5rem; background: var(--card); border-radius: 14px; box-shadow: 0 10px 30px rgba(62,43,36,0.12); }
.card-kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.75rem; }
blockquote { margin: 0 0 1rem; font-size: 1.35rem; line-height: 1.4; }
figcaption { color: var(--muted); font-size: 0.95rem; }

.coach-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.coach-photo { width: 5.5rem; height: auto; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.coach h2 { margin: 0; }
.coach-role { display: block; font-family: Montserrat, sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.25rem; }

.join { padding-bottom: 1rem; }
.join .card, .join form { }
form { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0.5rem; }
label { width: 100%; font-weight: 600; }
input[type="email"] { flex: 1 1 14rem; min-height: 48px; padding: 0.5rem 0.9rem; font: inherit; color: var(--espresso); background: #fff; border: 1px solid var(--cocoa); border-radius: 999px; }
button { min-height: 48px; padding: 0.5rem 1.5rem; font: inherit; font-weight: 600; color: var(--btn-text); background: var(--btn-bg); border: 0; border-radius: 999px; cursor: pointer; }
.helper { width: 100%; margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* ALTCHA widget (vendor/altcha-*.min.js) mapped onto the site tokens; the
   element selector beats the widget's own :root defaults, light and dark. */
altcha-widget {
  width: 100%;
  --altcha-color-base: var(--card);
  --altcha-color-base-content: var(--text);
  --altcha-color-neutral: var(--muted);
  --altcha-color-neutral-content: var(--muted);
  --altcha-color-primary: var(--btn-bg);
  --altcha-color-primary-content: var(--btn-text);
  --altcha-color-success: var(--btn-bg);
  --altcha-color-success-content: var(--btn-text);
  --altcha-checkbox-border-color: var(--muted);
  --altcha-checkbox-outline-color: var(--focus);
  --altcha-border-color: var(--muted);
  --altcha-border-radius: 10px;
  --altcha-max-width: 100%;
}
.status { min-height: 1.6em; font-weight: 600; }
footer { max-width: 40rem; margin: 0 auto; padding: 1rem 16px 3rem; color: var(--muted); font-size: 0.9rem; }

@media (min-width: 48rem) {
  .moves { grid-template-columns: repeat(3, 1fr); }
  .coach { display: grid; grid-template-columns: 10rem 1fr; gap: 1.5rem; align-items: start; }
  .coach-head { display: contents; }
  .coach-photo { width: 10rem; grid-row: span 2; }
  .coach h2 { grid-column: 2; }
  .coach-body { grid-column: 2; }
}

.film video { display: block; width: 100%; max-width: 20rem; height: auto; margin: 0 auto; border-radius: 14px; background: var(--card); box-shadow: 0 10px 30px rgba(62,43,36,0.12); }
.listen audio { display: block; width: 100%; max-width: 28rem; margin: 1rem auto 0; }
.listen-note { font-size: 0.9rem; color: var(--muted); text-align: center; }
