/* Design language A of the app: milk background, ink text, soft tiles, yellow only with the signal. */
:root {
  color-scheme: light;
  --bg: #fbf8f1;
  --ink: #1c1a17;
  --sec: rgba(28, 26, 23, 0.74);
  --ter: rgba(28, 26, 23, 0.64);
  --tile: #eee9df;
  --panel: #ffffff;
  --line: rgba(28, 26, 23, 0.16);
  --fill: rgba(28, 26, 23, 0.07);
  --y: #ffc629;
  --on-y: #1c1a17;
  --cta: #1c1a17;
  --on-cta: #ffffff;
  --shadow: 0 1px 0 rgba(28, 26, 23, 0.06), 0 24px 60px rgba(28, 26, 23, 0.09);
  --r-tile: 14px;
  --r-cap: 27px;
  --r-panel: 28px;
  --gutter: 16px;
  --page: 1120px;
  --text: 720px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1b1a17;
    --ink: #f4f1ea;
    --sec: rgba(244, 241, 234, 0.72);
    --ter: rgba(244, 241, 234, 0.64);
    --tile: #36322b;
    --panel: #26241f;
    --line: rgba(244, 241, 234, 0.2);
    --fill: rgba(244, 241, 234, 0.1);
    --cta: #f4f1ea;
    --on-cta: #1c1a17;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.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); top: -60px; z-index: 10; padding: 10px 16px; border-radius: 12px; background: var(--cta); color: var(--on-cta); }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }

/* Header and footer */
.site-head { position: relative; z-index: 2; }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 68px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { display: inline-flex; align-items: center; gap: 4px; padding: 7px 9px; border-radius: 12px; background: var(--y); color: var(--on-y); }
.brand-mark i { display: block; height: 6px; width: 6px; border-radius: 3px; background: currentColor; }
.brand-mark i.h { width: 18px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 12px; font-size: 16px; text-decoration: none; color: var(--sec); }
.nav a:hover { color: var(--ink); background: var(--fill); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--fill); }
.site-foot { margin-top: 120px; padding-block: 40px 56px; border-top: 1px solid var(--line); color: var(--sec); font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot p { margin: 0; }

/* Type: at most four sizes on a screen */
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
.display { font-size: clamp(44px, 7.4vw, 88px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
.lede { margin: 0; font-size: clamp(19px, 2vw, 22px); line-height: 1.45; color: var(--sec); text-wrap: pretty; }
p { text-wrap: pretty; }

/* Buttons: one black capsule per screen, everything else soft */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--r-cap);
  font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s, opacity 0.18s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.primary { background: var(--cta); color: var(--on-cta); min-width: 140px; }
.btn.soft { background: var(--fill); color: var(--ink); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .when-playing { display: none; }
.btn[data-playing] .when-playing { display: inline; }
.btn[data-playing] .when-idle { display: none; }
.btn .icon-stop { display: none; }
.btn[data-playing] .icon-stop { display: block; }
.btn[data-playing] .icon-idle { display: none; }

/* Analytics consent bar */
.consent {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; max-width: 640px; margin-inline: auto;
  padding: 16px 18px; border-radius: 22px; background: var(--panel); box-shadow: var(--shadow), 0 0 0 1px var(--line);
  font-size: 15px; animation: consent-in 0.5s var(--spring) both;
}
.consent p { flex: 1 1 280px; margin: 0; }
.consent .row { display: flex; gap: 8px; }
@keyframes consent-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }

.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--r-cap); background: var(--fill); font-size: 17px; font-weight: 600; }
.soon svg { width: 20px; height: 20px; }
