/* ═══════════════════════════════════════════════════════════════════════════
   base.css — reset, type, buttons, layout helpers, page transitions.
   ═══════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cyc); color: var(--ink);
  font-family: var(--f-text); font-size: var(--t-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--sound); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sound-2); }
::selection { background: var(--pen); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sound); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; background: var(--ink); color: var(--cyc); border-radius: 8px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

h1, h2, h3, h4 {
  font-family: var(--f-display); font-weight: 700; line-height: 1.02; letter-spacing: -.02em;
  margin: 0; text-wrap: balance;
  font-variation-settings: 'opsz' 96, 'wdth' 100, 'wght' 720;
}
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-variation-settings: 'opsz' 48, 'wdth' 100, 'wght' 680; }
h4 { font-size: 1.15rem; font-variation-settings: 'opsz' 24, 'wdth' 100, 'wght' 650; }
p { margin: 0; }
.lede { font-size: var(--t-lede); line-height: 1.45; max-width: 34ch; text-wrap: pretty; }
.prose { max-width: 62ch; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.muted { color: var(--ink-2); }
.eyebrow {
  font-family: var(--f-display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); font-variation-settings: 'opsz' 12, 'wdth' 90, 'wght' 650;
}
.eyebrow b { color: var(--sound); font-weight: inherit; }
.ipa { font-family: var(--f-ipa); font-style: normal; }
.pen { background: linear-gradient(transparent 58%, var(--pen) 58%, var(--pen) 94%, transparent 94%); padding: 0 .08em; }
.dot { color: var(--live); font-weight: inherit; }

.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
main { display: block; }

/* buttons: the black pill is the site's one primary button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-display); font-variation-settings: 'opsz' 24, 'wdth' 96, 'wght' 650;
  font-size: 1rem; line-height: 1; padding: 16px 24px; border-radius: 999px;
  background: var(--ink); color: var(--cyc); text-decoration: none; border: 0; white-space: nowrap;
  transition: transform var(--dur-1) var(--ease-out), background var(--dur-1), color var(--dur-1), box-shadow var(--dur-1);
}
.btn:hover { background: var(--black); color: var(--cyc); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { background: var(--cyc-2); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-live { background: var(--live); color: #fff; }
.btn-live:hover { background: #d02c22; }
.btn-lg { font-size: 1.15rem; padding: 20px 30px; }
.btn-white { background: var(--cyc); color: var(--ink); }
.btn-white:hover { background: var(--cyc); color: var(--ink); }

/* the Voice Line: a static waveform used as a divider */
.vline { display: block; width: 100%; height: 28px; color: var(--sound); }
.vline path { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }

/* lights off: sections that turn the studio dark */
.dark { background: var(--black); color: var(--on-black); }
.dark .muted { color: var(--on-black-2); }
.dark a { color: var(--on-black); }
.dark .btn { background: var(--cyc); color: var(--ink); }
.dark .btn:hover { background: #fff; color: var(--ink); }
.dark .btn-live { background: var(--live); color: #fff; }

/* page transitions: a cut, not a fade. The bar stays; the page wipes. */
@view-transition { navigation: auto; }
.bar { view-transition-name: bar; }
::view-transition-old(root) { animation: vt-out .32s var(--ease-cut) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease-out) both; }
@keyframes vt-out { to { clip-path: inset(0 0 0 100%); } }
@keyframes vt-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
