@font-face {
  font-family: Figtree;
  src: url("assets/fonts/Figtree.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --navy: #0b1526;
  --panel: #12203a;
  --gold: #e8b23c;
  --text: #f2f4f8;
  --dim: #9fadc4;
  --line: #30415c;
  color-scheme: dark;
  font-family: Figtree, system-ui, sans-serif;
  scroll-behavior: smooth;
  scrollbar-color: var(--dim) var(--navy);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  line-height: 1.5;
}
::selection {
  background: var(--gold);
  color: var(--navy);
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus, var(--gold));
  outline-offset: 6px;
}
button,
summary {
  touch-action: manipulation;
}
svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
button svg rect {
  fill: currentColor;
  stroke: none;
}
.wrap {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
  line-height: 1.06;
}
h1 {
  font-size: clamp(44px, 5.3vw, 76px);
}
h2 {
  font-size: clamp(36px, 4vw, 56px);
}
p {
  max-width: 65ch;
}
.small {
  font-size: 14px !important;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.brand svg {
  width: 34px;
  height: 34px;
  color: var(--gold);
  stroke-width: 2.3;
}
.brand small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--dim);
  margin-top: 4px;
}
.site-header nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.site-header nav a {
  font-size: 15px;
  text-decoration: none;
  padding-block: 12px;
}
.site-header nav a:hover {
  text-decoration: underline;
}
.nav-download {
  color: var(--gold);
}
.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 32px 64px;
  align-items: center;
  padding-block: 48px 28px;
}
.hero-copy {
  grid-column: 1;
  grid-row: 1;
}
.hero-portrait {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  overflow: hidden;
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: 50% 0%;
}
.hero-portrait figcaption {
  margin-top: 12px;
  color: var(--dim);
  font-size: 13px;
}
.hero-copy h1 span {
  color: var(--gold);
}
.hero-copy > p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--dim);
  margin-top: 24px;
}
.hero-copy > p.small {
  margin-top: 15px;
}
.button {
  min-height: 52px;
  padding: 15px 22px;
  border: 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition:
    background 0.15s,
    color 0.15s;
}
.button:hover {
  filter: brightness(1.08);
}
.primary {
  background: var(--gold);
  color: var(--navy);
}
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-links .button {
  max-width: 100%;
  text-align: center;
}
.hero .store-links {
  margin-top: 32px;
}
.instrument {
  grid-column: 2;
  grid-row: 1 / 3;
  max-width: 470px;
  width: 100%;
  justify-self: center;
}
.demo-instruction {
  text-align: center;
  color: var(--dim);
  font-size: 15px;
  margin-bottom: 18px;
}
.note-wheel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}
.voice-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  stroke: var(--gold);
  stroke-width: 1.4;
}
.orbit-track {
  stroke: var(--line);
  stroke-width: 1;
}
#voice-orbit-path {
  opacity: 0.85;
}
.note {
  --angle: calc(var(--i) * 30deg - 90deg);
  position: absolute;
  left: calc(50% + 42% * cos(var(--angle)));
  top: calc(50% + 42% * sin(var(--angle)));
  translate: -50% -50%;
  width: 58px;
  height: 58px;
  border: 1px solid #42516b;
  background: var(--panel);
  border-radius: 50%;
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.note.sharp {
  font-size: 19px;
  color: #bac6d9;
}
.note:hover {
  background: #233750;
  border-color: var(--gold);
}
.note.is-playing {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.note.is-loading {
  border-color: var(--gold);
  border-style: dashed;
}
.readout {
  position: absolute;
  inset: 27% 22%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.voice-name {
  font-size: 13px;
  color: var(--dim);
  white-space: nowrap;
}
#pitch-display {
  font-size: 96px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
#pitch-display span {
  font-size: 36px;
  margin-left: 5px;
  color: var(--dim);
}
#waveform {
  width: 170px;
  height: 30px;
  margin-top: 7px;
}
.transport {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: var(--dim);
  margin-top: 8px;
}
.stop {
  min-height: 44px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 14px;
}
.stop:hover:not(:disabled) {
  color: var(--text);
}
.audio-status {
  min-height: 60px;
  padding: 15px 0 24px;
  color: var(--dim);
  font-size: 14px;
}
.audio-status p {
  max-width: none;
  text-align: center;
}
.voice-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-block: 100px 120px;
  border-top: 1px solid var(--line);
}
.voice-story h2 {
  font-size: clamp(44px, 5.2vw, 72px);
}
.voice-story h2 span {
  color: var(--gold);
}
.voice-story > div {
  align-self: end;
  padding-bottom: 6px;
}
.voice-story p {
  font-size: 18px;
  color: var(--dim);
  margin-bottom: 18px;
}
.text-link {
  font-size: 15px;
  color: var(--gold);
}
.chord-section {
  background: var(--gold);
  color: var(--navy);
  padding-block: 96px;
  scroll-margin-top: 20px;
}
.chord-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.chord-copy > p {
  margin-top: 24px;
  font-size: 18px;
  max-width: 38ch;
}
.chord-copy .chord-status {
  min-height: 3em;
  margin-top: 16px;
}
.chord-options {
  border: 0;
  margin: 30px 0 20px;
  padding: 0;
}
.chord-options legend {
  font-size: 14px;
  margin-bottom: 12px;
}
.chord-options > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chord-options button {
  border: 1px solid #5d491d;
  background: transparent;
  color: var(--navy);
  border-radius: 6px;
  min-height: 44px;
  padding: 8px 13px;
  font-size: 14px;
}
.chord-options button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--text);
}
.dark {
  background: var(--navy);
  color: var(--text);
}
.chord-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.chord-actions .stop:hover {
  color: var(--navy);
}
.chord-score {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
}
.chord-score.is-playing .chord-tone {
  background: var(--text);
  color: var(--navy);
}
.score-lines {
  position: absolute;
  inset: 45px 0 85px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0.35;
}
.score-lines span {
  height: 1px;
  background: var(--navy);
}
.chord-tones {
  display: flex;
  gap: 18px;
  position: relative;
  justify-content: center;
  align-items: center;
  min-height: 150px;
}
.chord-tone {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 92px;
  aspect-ratio: 1;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  font-size: 30px;
  font-weight: 500;
  flex-shrink: 1;
}
.chord-tone:nth-child(2) {
  margin-top: -42px;
}
.chord-tone:nth-child(3) {
  margin-top: -84px;
}
.chord-tone:nth-child(4) {
  margin-top: -126px;
}
.chord-tone[hidden] {
  display: none;
}
#chord-caption {
  text-align: center;
  font-size: 16px;
  position: relative;
  font-variant-numeric: tabular-nums;
}
.performance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
  padding-block: 120px;
}
.performance-portrait {
  margin-top: 32px;
  overflow: hidden;
}
.performance-portrait img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: 50% 9%;
}
.performance-copy > p {
  font-size: 18px;
  color: var(--dim);
  margin-top: 25px;
  max-width: 35ch;
}
.performance-copy .included {
  font-size: 14px;
  color: var(--gold);
}
figure {
  margin: 0;
}
.stage-demo figcaption {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 14px;
}
.stage-screen {
  background: #050a12;
  padding: 28px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.stage-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--dim);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.stage-current {
  padding: 52px 0 38px;
  text-align: center;
}
.stage-current > p:first-child {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
}
.stage-current #song-key {
  color: var(--gold);
  font-size: 24px;
  margin: 14px 0 5px;
}
.stage-current > span {
  color: var(--dim);
  font-size: 14px;
}
.stage-next {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 14px;
}
.stage-next > span {
  color: var(--dim);
}
.stage-button {
  background: #1d304b;
  color: var(--text);
  width: 100%;
  font-size: 15px;
}
.download {
  border-top: 1px solid var(--line);
  padding-block: 78px 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 96px;
  align-items: center;
}
.download h2 {
  font-size: 44px;
}
.download > * {
  min-width: 0;
}
.download > div > p {
  color: var(--dim);
  font-size: 15px;
  margin-top: 18px;
}
.download details {
  grid-column: 1 / -1;
  border-block: 1px solid var(--line);
  padding: 20px 0;
}
.download summary {
  cursor: pointer;
  font-size: 18px;
  padding: 5px 0;
}
.download details p {
  margin-top: 20px;
  color: var(--dim);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding-block: 0 42px;
}
footer .brand {
  font-size: 17px;
  display: block;
}
footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
footer nav a,
footer > span {
  font-size: 13px;
  color: var(--dim);
}
footer nav a {
  padding-block: 12px;
}
.skip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  background: var(--gold);
  color: var(--navy);
  padding: 12px;
  transform: translateY(-180%);
}
.skip:focus {
  transform: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 56px);
  }
  .hero {
    gap: 20px;
  }
  .note {
    width: 50px;
    height: 50px;
  }
  .voice-story,
  .chord-layout,
  .performance,
  .download {
    gap: 44px;
  }
  .voice-name {
    font-size: 11px;
  }
  #pitch-display {
    font-size: 76px;
  }
  .chord-tone {
    width: 72px;
    font-size: 25px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    padding-block: 20px;
  }
  .brand {
    font-size: 18px;
    gap: 8px;
  }
  .brand svg {
    width: 28px;
  }
  .site-header nav a:first-child {
    display: none;
  }
  .site-header nav {
    gap: 0;
  }
  .site-header nav a {
    font-size: 14px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
    gap: 30px;
  }
  .hero-copy {
    grid-row: 1;
  }
  .instrument {
    grid-column: 1;
    grid-row: 2;
  }
  .hero-portrait {
    grid-row: 3;
  }
  .hero-portrait img {
    height: 250px;
  }
  .hero-copy h1 {
    font-size: 44px;
  }
  .hero-copy > p {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 16px;
  }
  .hero .store-links {
    margin-top: 20px;
  }
  .hero .button {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 15px;
  }
  .hero-copy > p.small {
    font-size: 12px !important;
    margin-top: 10px;
  }
  .instrument {
    max-width: 380px;
  }
  .demo-instruction {
    margin-bottom: 5px;
    font-size: 14px;
  }
  .note {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .note.sharp {
    font-size: 17px;
  }
  .voice-name {
    font-size: 12px;
  }
  #pitch-display {
    font-size: 80px;
  }
  #pitch-display span {
    font-size: 28px;
  }
  .transport {
    margin-top: 4px;
  }
  .voice-story,
  .chord-layout,
  .performance,
  .download {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .voice-story {
    padding-block: 50px;
  }
  .voice-story h2 {
    font-size: clamp(34px, 10.7vw, 48px);
  }
  .voice-story p {
    font-size: 16px;
  }
  .chord-section {
    padding-block: 56px;
  }
  .chord-copy h2,
  .performance h2 {
    font-size: 44px;
  }
  .chord-copy > p,
  .performance-copy > p {
    font-size: 17px;
  }
  .chord-score {
    min-height: 240px;
    margin-top: 30px;
  }
  .chord-tone {
    width: 75px;
    font-size: 25px;
  }
  .performance {
    padding-block: 65px;
  }
  .performance-portrait img {
    height: 300px;
  }
  .performance-copy > p {
    max-width: 42ch;
  }
  .stage-screen {
    padding: 24px;
  }
  .download {
    padding-block: 50px;
  }
  .download h2 {
    font-size: 38px;
  }
  .download details {
    grid-column: auto;
  }
  footer {
    flex-wrap: wrap;
    gap: 22px;
  }
  footer nav {
    gap: 18px;
  }
  footer > span {
    width: 100%;
  }
  .audio-status {
    font-size: 12px;
    min-height: 60px;
    padding-top: 2px;
  }
  .button {
    max-width: 100%;
  }
}
@media (max-width: 360px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .hero-copy h1 {
    font-size: 38px;
  }
  .note {
    width: 44px;
    height: 44px;
  }
  .voice-name {
    font-size: 10px;
  }
  #pitch-display {
    font-size: 66px;
  }
  #waveform {
    width: 128px;
  }
  .transport {
    gap: 10px;
  }
  .transport > span {
    font-size: 11px;
  }
  .chord-tones {
    gap: 10px;
  }
  .stage-screen {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.chord-section {
  --focus: var(--navy);
}
.outbound {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-left: 3px;
}
/* Enlarged text uses a flowing keyboard instead of fixed circular coordinates. */
.enlarged-text .note-wheel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  aspect-ratio: auto;
  padding-block: 12px;
}
.enlarged-text .voice-orbit {
  display: none;
}
.enlarged-text h1,
.enlarged-text h2 {
  overflow-wrap: anywhere;
  min-width: 0;
}
.enlarged-text .readout {
  position: static;
  grid-column: 1/-1;
  min-width: 0;
  padding: 20px 0;
}
.enlarged-text .voice-name {
  white-space: normal;
  text-align: center;
}
.enlarged-text .note {
  position: static;
  translate: none;
  width: 100%;
  height: auto;
  min-height: 64px;
  padding: 8px 2px;
  border-radius: 8px;
}
.enlarged-text .transport {
  flex-wrap: wrap;
}
.enlarged-text .chord-tones {
  flex-wrap: wrap;
  gap: 16px;
}
.enlarged-text .chord-tone {
  width: auto;
  min-width: 2.4em;
  min-height: 2.4em;
  padding: 0.25em;
  margin: 0;
}
.enlarged-text .score-lines {
  display: none;
}
.enlarged-text .stage-top,
.enlarged-text .stage-next {
  flex-wrap: wrap;
}
.enlarged-text .site-header {
  flex-wrap: wrap;
  gap: 18px;
}
