/* BEGIN GENERATED house-theme tokens
   Copied from canon/house-theme-tokens.json light values.
   Pitch colors are the labeled-key primer, not chrome. */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-muted: #55595f;
  --border: #d8dade;
  --border-strong: #7c828c;
  --focus: #0b5fff;
  --accent: #0b5fff;
  --accent-ink: #ffffff;
  --danger: #d70015;
  --success: #188236;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --hit: 44px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 150ms;
  --pitch-c: #d23b32;
  --pitch-c-ink: #ffffff;
  --pitch-d: #e36a3c;
  --pitch-d-ink: #1a1a1a;
  --pitch-e: #f0a04a;
  --pitch-e-ink: #1a1a1a;
  --pitch-f: #c6d24a;
  --pitch-f-ink: #1a1a1a;
  --pitch-g: #3d94d4;
  --pitch-g-ink: #ffffff;
  --pitch-a: #e0569a;
  --pitch-a-ink: #1a1a1a;
  --pitch-b: #c4843c;
  --pitch-b-ink: #1a1a1a;
}
/* END GENERATED house-theme tokens */

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: var(--space-md);
  top: -40px;
  background: var(--surface);
  padding: var(--space-xs);
}
.skip:focus { top: var(--space-xs); }

.wrap { width: min(920px, 100%); max-width: 100%; margin: 0 auto; padding: var(--space-lg) var(--space-md) var(--space-2xl); box-sizing: border-box; }
header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-lg);
}
.mark { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); }
nav a { color: var(--ink); text-decoration: none; font-size: 15px; min-height: var(--hit); display: inline-flex; align-items: center; }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

h1 { font-size: 28px; font-weight: 400; line-height: 1.15; margin: 0 0 var(--space-xs); }
.lede { color: var(--ink-muted); margin: 0 0 var(--space-lg); max-width: 62ch; }

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-md);
  max-width: 100%;
}
button, select {
  font: inherit;
  min-height: var(--hit);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 0 var(--space-md);
}
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
label.tempo { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: 15px; color: var(--ink-muted); }
input[type="range"] { width: 140px; accent-color: var(--accent); }

.sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-sm) var(--space-lg);
  overflow-x: auto;
  max-width: 100%;
}
.sheet svg { display: block; height: auto; }
.staff-line { stroke: var(--ink); stroke-width: 1; }
.barline { stroke: var(--ink); stroke-width: 1; }
.lyric { font-family: var(--sans); font-size: 15px; fill: var(--ink); }
.syl { font-family: var(--sans); font-size: 12px; fill: var(--ink-muted); }
.note-letter { font-family: var(--sans); font-size: 13px; font-weight: 600; text-anchor: middle; dominant-baseline: central; }
.note.is-on circle { stroke: var(--ink); stroke-width: 3px; }
.ledger { stroke: var(--ink); stroke-width: 1.5; }

.keys { display: flex; gap: 0; margin-top: var(--space-lg); overflow-x: auto; max-width: 100%; padding-bottom: var(--space-xs); }
.key {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 148px;
  border: 1px solid var(--border-strong);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--surface);
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  font-weight: 600;
}
.key.black {
  width: 34px;
  height: 92px;
  margin: 0 -17px;
  z-index: 1;
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
  align-self: flex-start;
  border-radius: 0 0 6px 6px;
}
.key.is-on { transform: translateY(3px); }
.key .face {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.practice {
  display: none;
  margin: var(--space-md) 0;
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.practice.on { display: block; }
.ask {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.status { min-height: 1.6em; color: var(--ink-muted); }

.prose { max-width: 68ch; }
.prose h2 { font-size: 22px; font-weight: 400; margin-top: var(--space-xl); }
.field {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  background: var(--surface);
  margin: var(--space-sm) 0;
}
.field dt { font-weight: 600; }
.field dd { margin: 0 0 var(--space-sm); color: var(--ink-muted); }
footer.site { margin-top: var(--space-2xl); color: var(--ink-muted); font-size: 13px; }

@media (max-width: 720px) {
  .controls { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .controls > * { min-width: 0; }
  select { max-width: 100%; min-width: 0; }
  #practice { grid-column: 1 / -1; width: 100%; }
  label.tempo { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .key.is-on { transform: none; }
}
@media print {
  header.site, .controls, .keys, .practice, footer.site, nav { display: none; }
  body { background: white; }
  .sheet { border: none; overflow: visible; }
  .sheet svg { max-width: 100%; width: auto; height: auto; }
  .note circle { fill: white !important; stroke: black !important; stroke-width: 1.5px; }
  .note-letter { fill: black !important; }
  .pitch-c circle { stroke-dasharray: none; }
  .pitch-d circle { stroke-dasharray: 5 3; }
  .pitch-e circle { stroke-dasharray: 2 2; }
  .pitch-f circle { stroke-dasharray: 8 3; }
  .pitch-g circle { stroke-dasharray: 6 2 1 2; }
  .pitch-a circle { stroke-dasharray: 1 3; }
  .pitch-b circle { stroke-dasharray: 7 2 2 2; }
}
