/* Kelter's public website (getkelter.app). Brand: the jacket palette of the app (AGENTS.md): cream, navy, mustard, red,
   and the sleeve stripes from the app's icon. Fonts are the reader's own system faces, as in the app, so nothing is
   downloaded. No inline styles anywhere: the site's security policy (SITE_HEADERS in src/worker.js) allows only this
   file. Motion is decoration only and stops under Reduce Motion. */
:root {
  --cream: #F7F1E1; --navy: #454557; --navy-deep: #2A2A36; --mustard: #E5B966; --red: #C24146;
  --bg: #F7F1E1; --card: #EFE7D3; --ink: #454557; --muted: #565563; --line: #DDD3BA;
  --red-ink: #B23A3F; --field: #FFFDF6; --field-ink: #454557; --ph: #6B6A78;
  --btn: #454557; --on-btn: #F7F1E1; --focus: #454557;
  --block: #454557; --stripe-gap: #454557;
  --tint-navy: #E3E1EA; --tint-mustard: #F6E8C4; --tint-red: #F2D0CB; --tint-cream: #ECE4CE;
  --display: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #22222C; --card: #2C2C38; --ink: #F7F1E1; --muted: #C9C4B6; --line: #3D3D4B;
    --red-ink: #FF8A8D; --field: #1B1B23; --field-ink: #F7F1E1; --ph: #9A97A6; --btn: #E5B966; --on-btn: #2A2A36; --focus: #E5B966;
    --block: #17171E; --stripe-gap: #17171E;
    --tint-navy: #34344A; --tint-mustard: #45391F; --tint-red: #4F2B2F; --tint-cream: #33302A;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.55 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(3.1rem, 9.5vw, 6.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--mustard); color: var(--navy-deep); padding: 0.6rem 1rem; z-index: 5; }
.skip:focus { left: 1rem; top: 1rem; }

/* A block in the brand's navy with cream words: everything inside takes its colours from these. */
.inv { background: var(--block); color: var(--cream); --ink: #F7F1E1; --muted: #D8D3C6; --line: rgba(247, 241, 225, 0.22);
  --btn: #E5B966; --on-btn: #2A2A36; --field: #FFFDF6; --field-ink: #454557; --ph: #6B6A78; --focus: #E5B966; --red-ink: #FFB3B5; --card: rgba(247, 241, 225, 0.1); }

/* Top bar */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; padding: 1.1rem 0; position: relative; z-index: 2; }
.top .btn { white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font: 600 1.5rem/1 var(--display); }
.brand img { width: 2.4rem; height: 2.4rem; border-radius: 0.6rem; border: 1px solid var(--line); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: 0.6rem 1.6rem; border: 0; border-radius: 999px;
  background: var(--btn); color: var(--on-btn); font: 700 1.05rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0.5rem 1.2rem -0.5rem rgba(0, 0, 0, 0.45); }
.btn:active { transform: none; box-shadow: none; }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); min-height: 2.5rem; padding-inline: 1.1rem; font-weight: 600; font-size: 1rem; }

/* The sleeve stripes from the app's icon: mustard, a gap, red, running across a corner. */
.sleeve { position: absolute; left: 0; bottom: 0; width: clamp(7rem, 17vw, 15rem); aspect-ratio: 1; pointer-events: none;
  background: linear-gradient(45deg, var(--mustard) 0 16%, transparent 16% 19.5%, var(--red) 19.5% 30%, transparent 30% 33.5%, var(--cream) 33.5% 36%, transparent 36%); }
.sleeve.tr { left: auto; bottom: auto; right: 0; top: 0; transform: rotate(180deg); width: clamp(5rem, 12vw, 10rem); }
.sleeve.br { left: auto; right: 0; transform: scaleX(-1); }
.inv .sleeve { background: linear-gradient(45deg, var(--mustard) 0 16%, transparent 16% 19.5%, var(--red) 19.5% 30%, transparent 30% 33.5%, rgba(247, 241, 225, 0.85) 33.5% 36%, transparent 36%); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-bottom: clamp(8rem, 17vw, 13rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; grid-template-columns: minmax(0, 1fr); padding-top: clamp(1.5rem, 4vw, 3.5rem); position: relative; z-index: 1; }
@media (min-width: 58rem) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.kicker { display: inline-block; font: 700 0.8rem/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-deep); background: var(--mustard);
  padding: 0.45rem 0.9rem; border-radius: 999px; margin-bottom: 1.4rem; }
.hl { background: linear-gradient(transparent 62%, var(--red) 62% 92%, transparent 92%); padding: 0 0.08em; }
.lede { font-size: clamp(1.15rem, 2.3vw, 1.4rem); line-height: 1.5; margin-top: 1.5rem; max-width: 35rem; }

/* The waiting list form */
.join { margin-top: 2rem; max-width: 34rem; }
.join .row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.join label.lab { display: block; font-weight: 700; margin-bottom: 0.5rem; }
.join .row .btn { flex: 1 1 9rem; }
.join input[type=email] { flex: 4 1 14rem; min-width: 0; min-height: 3.1rem; padding: 0.6rem 1.2rem; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--field); color: var(--field-ink); font: 1.05rem/1.2 var(--body); }
.join input[type=email]::placeholder { color: var(--ph); opacity: 1; }
.phones { border: 0; padding: 0; margin: 0.9rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.1rem; font-size: 0.95rem; }
.phones legend { float: left; padding: 0; margin-right: 0.9rem; color: var(--muted); }
.phones label { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 1.8rem; cursor: pointer; }
.phones input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--btn); }
.fine { font-size: 0.9rem; color: var(--muted); margin-top: 0.9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { margin-top: 0.9rem; font-weight: 600; }
.note:empty { margin-top: 0; }
.note.bad { color: var(--red-ink); }
.done { margin-top: 2rem; max-width: 34rem; padding: 1.2rem 1.4rem; border-radius: 1rem; background: var(--card); border-left: 6px solid var(--mustard); }
.done h3 { margin-bottom: 0.35rem; }

/* An iPhone with a screenshot in it. Everything on the glass is sized from the phone's own width (cqw). */
.phone { position: relative; width: min(20rem, 76vw); margin-inline: auto; aspect-ratio: 440 / 956; container-type: inline-size;
  border-radius: 16% / 7.4%; background: #1B1B22; box-shadow: 0 0 0 1px #6D6C78, 0 2.2rem 3.6rem -1.4rem rgba(20, 20, 30, 0.6); }
.phone img { position: absolute; inset: 2.3% 5%; width: 90%; height: 95.4%; object-fit: cover; object-position: top; border-radius: 13.4% / 6.2%; }
.phone::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 3.6%; width: 27%; height: 3.5%; transform: translateX(-50%); border-radius: 999px; background: #121217; }
.phone::after { content: ""; position: absolute; z-index: 1; left: 50%; bottom: 3.2%; width: 31%; height: 0.5%; transform: translateX(-50%); border-radius: 999px; background: rgba(42, 42, 54, 0.75); }
.phone .clock { position: absolute; z-index: 1; left: 15%; top: 3.9%; font: 600 3.9cqw/1 var(--body); color: #2A2A36; letter-spacing: -0.01em; }
.phone .batt { position: absolute; z-index: 1; right: 14.5%; top: 4.2%; width: 5.8%; height: 1.25%; border-radius: 30% / 62%; background: #2A2A36; }

/* Two phones in the hero, one behind the other. */
.duo { position: relative; width: min(27rem, 92vw); margin-inline: auto; padding: 4% 0 2%; }
/* The same stripes as a band running up behind the phones. */
.duo::before { content: ""; position: absolute; z-index: 0; left: -2%; bottom: -60%; width: 62%; height: 172%; pointer-events: none; transform: skewX(-24deg); transform-origin: bottom left;
  background: linear-gradient(90deg, var(--mustard) 0 42%, transparent 42% 50%, var(--red) 50% 78%, transparent 78% 86%, rgba(247, 241, 225, 0.85) 86% 94%, transparent 94%); animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { transform: skewX(-24deg) translateY(30%); opacity: 0; } }
.duo .phone { width: 62%; margin: 0; }
.duo .front { position: relative; z-index: 1; transform: rotate(-4deg); animation: bob 7s ease-in-out infinite; }
.duo .back { position: absolute; z-index: 1; right: 0; top: 0; transform: rotate(7deg); animation: bob2 8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-0.7rem); } }
@keyframes bob2 { 0%, 100% { transform: rotate(7deg) translateY(0); } 50% { transform: rotate(7deg) translateY(0.6rem); } }

/* A band of everything Kelter covers, moving sideways. */
.ticker { background: var(--mustard); color: var(--navy-deep); overflow: hidden; padding: 0.95rem 0; border-block: 3px solid var(--navy-deep); }
.ticker ul { display: flex; gap: 2.6rem; margin: 0; padding: 0 1.3rem; list-style: none; width: max-content; animation: slide 36s linear infinite; }
.ticker li { display: inline-flex; align-items: center; gap: 0.6rem; font: 700 1.15rem/1 var(--display); white-space: nowrap; }
.ticker:hover ul { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.mk { width: 1.5em; height: 1.5em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.mk .hd { fill: currentColor; stroke: none; }

/* What it does: each part in a panel of its own colour, like the session cards in the app. */
.band { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.intro { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.intro p { margin-top: 1rem; font-size: 1.2rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font: 700 0.8rem/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.9rem; }
.eyebrow::before { content: ""; width: 1.6rem; height: 0.5rem; background: linear-gradient(90deg, var(--mustard) 0 45%, transparent 45% 55%, var(--red) 55%); }
.panel { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; grid-template-columns: minmax(0, 1fr);
  padding: clamp(1.6rem, 5vw, 4rem); border-radius: clamp(1.6rem, 4vw, 2.6rem); margin-top: clamp(1.2rem, 3vw, 2rem); overflow: hidden; position: relative; }
@media (min-width: 58rem) {
  .panel { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .panel.flip .shot { order: -1; }
}
.panel.navy { background: var(--tint-navy); }
.panel.mustard { background: var(--tint-mustard); }
.panel.red { background: var(--tint-red); }
.panel.cream { background: var(--tint-cream); }
.panel .copy { max-width: 31rem; }
.panel h2 { margin-bottom: 1rem; }
.panel p { font-size: 1.1rem; }
.panel ul { margin: 1.3rem 0 0; padding: 0; list-style: none; }
.panel li { position: relative; padding-left: 1.7rem; margin-top: 0.6rem; }
.panel li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.9rem; height: 0.3rem; border-radius: 2px; background: var(--red); }
.panel.inv li::before, .panel.red li::before { background: var(--mustard); }
.panel.red li::before { background: var(--navy); }
@media (prefers-color-scheme: dark) { .panel.red li::before { background: var(--mustard); } }
.kinds { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.kinds span { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.8rem 0.4rem 0.65rem; border-radius: 999px; background: var(--bg); font-weight: 600; font-size: 0.95rem; }

/* Every move, drawn: the app's own figures, moving. The tiles keep their light colours in the dark too. */
.moves { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.move { margin: 0; border-radius: 1.4rem; padding: 0.9rem 0.9rem 1rem; text-align: center; color: #454557; background: #F7F1E1; }
.move:nth-child(3n+1) { background: #F6E8C4; }
.move:nth-child(3n+2) { background: #E3E1EA; }
.move:nth-child(3n) { background: #F2D0CB; }
.moves:not(:has(svg)) { display: none; }
.move figcaption { font: 700 1rem/1.2 var(--display); margin-top: 0.3rem; }
.move .stage { aspect-ratio: 100 / 106; }
.fig { width: 100%; height: 100%; display: block; overflow: visible; }
.fig .near line { stroke: #454557; stroke-width: 4.2; stroke-linecap: round; }
.fig .near circle { fill: #454557; }
.fig .far line { stroke: #565563; stroke-width: 4; stroke-linecap: round; opacity: 0.55; }
.fig .pf { stroke: rgba(69, 69, 87, 0.28); stroke-width: 2; }
.fig .pr { fill: #FFFDF6; stroke: #565563; stroke-width: 1.2; }
.fig .pl { stroke: #565563; stroke-width: 3; stroke-linecap: round; }
.fig .pp { fill: #F0D594; stroke: #9A7225; stroke-width: 2; }
.fig .pc, .fig .pd { fill: #9A7225; }

/* And the rest */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.tile { padding: 1.5rem; border-radius: 1.4rem; background: var(--card); border-top: 0.45rem solid var(--mustard); }
.tile:nth-child(3n+2) { border-top-color: var(--red); }
.tile:nth-child(3n) { border-top-color: var(--navy); }
@media (prefers-color-scheme: dark) { .tile:nth-child(3n) { border-top-color: var(--cream); } }
.tile h3 { margin-bottom: 0.5rem; }
.tile p { color: var(--muted); }

/* The name */
.word { text-align: center; background: var(--mustard); color: var(--navy-deep); overflow: hidden; padding-bottom: clamp(7rem, 15vw, 12rem); }
.word .entry { font: 600 clamp(4rem, 17vw, 11rem)/0.95 var(--display); letter-spacing: -0.03em; }
.word .how { margin-top: 0.9rem; font-style: italic; font-size: 1.1rem; }
.word .means { font: 600 clamp(1.4rem, 3.2vw, 2rem)/1.3 var(--display); margin: 1.2rem auto 0; max-width: 36rem; }
.word .sleeve { background: linear-gradient(45deg, var(--navy) 0 16%, transparent 16% 19.5%, var(--red) 19.5% 30%, transparent 30% 33.5%, var(--cream) 33.5% 36%, transparent 36%); }

/* Last call, footer */
.last { text-align: center; overflow: hidden; padding-bottom: clamp(8rem, 17vw, 13rem); }
.last .wrap { position: relative; z-index: 1; }
.last .join, .last .done { margin-inline: auto; }
.last .join { text-align: left; }
.last p.sub { margin: 1rem auto 0; max-width: 32rem; font-size: 1.2rem; }
.foot { padding: 2rem 0 3rem; font-size: 0.92rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }

/* Things further down the page rise into place as they come into view (site.js adds .wait, then .in). */
.wait { opacity: 0; transform: translateY(1.6rem); }
.in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hero .sleeve { animation: sweep 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .sleeve.tr { animation-name: sweep2; animation-delay: 0.15s; }
@keyframes sweep { from { transform: translate(-60%, 60%); } }
@keyframes sweep2 { from { transform: rotate(180deg) translate(-60%, 60%); } to { transform: rotate(180deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .duo .front, .duo .back, .duo::before, .ticker ul, .hero .sleeve { animation: none; }
  .ticker ul { flex-wrap: wrap; width: auto; gap: 0.9rem 2rem; }
  .ticker li[aria-hidden] { display: none; }
  .wait { opacity: 1; transform: none; }
  .in, .btn { transition: none; }
}

/* Plain pages: privacy, thanks, not found */
.page { padding: clamp(1.5rem, 5vw, 3.5rem) 0 4rem; }
.page .wrap { max-width: 44rem; }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin-bottom: 1rem; letter-spacing: -0.01em; }
.page h2 { font-size: 1.5rem; margin: 2.2rem 0 0.6rem; letter-spacing: 0; }
.page p, .page ul { margin: 0.8rem 0 0; }
.page ul { padding-left: 1.2rem; }
.page li { margin-top: 0.4rem; }
.page .when { color: var(--muted); }
.page .join { margin-top: 1.2rem; }
.page .btn { margin-top: 0.4rem; }
.pagetop { border-bottom: 0.45rem solid transparent; border-image: linear-gradient(90deg, var(--mustard) 0 33%, var(--red) 33% 66%, var(--navy) 66%) 1; }
