@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #f9f9f5;
  --ink: #272a25;
  --muted: #62685d;
  --line: #d8dcd0;
  --soft: #eff1e8;
  --accent: #bd4523;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  color: white;
  background: var(--accent);
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font-weight: 450;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
h2 {
  font-size: 34px;
  line-height: 1.15;
}
main,
.site-header,
footer {
  max-width: 1240px;
  padding-inline: 48px;
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 94px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.065em;
  text-decoration: none;
}
.brand svg {
  width: 24px;
  height: 24px;
  stroke: var(--ink);
  stroke-width: 2.5;
  fill: none;
}
.brand span {
  font-size: 11px;
  align-self: start;
  margin: -2px 0 0 -7px;
  letter-spacing: 0;
}
.site-header nav {
  display: flex;
  gap: 26px;
  margin-left: 44px;
}
.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  padding-block: 12px;
  border-bottom: 1px solid transparent;
}
.site-header nav a[aria-current] {
  color: var(--ink);
  border-color: var(--ink);
}
.header-note {
  margin-left: auto;
  font: 400 10px/1.4 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.overline {
  font: 400 10px/1.6 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 15px;
}
.intro {
  display: grid;
  grid-template-columns: 1.4fr 0.65fr;
  gap: 64px;
  padding: 60px 0 70px;
  border-top: 1px solid var(--line);
  align-items: end;
}
h1 {
  font-size: clamp(48px, 6.7vw, 88px);
  line-height: 0.99;
  margin-bottom: 28px;
}
.intro-copy {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  letter-spacing: -0.02em;
}
.route {
  margin: 0 0 3px;
  padding: 0;
  list-style: none;
}
.route li {
  display: flex;
  gap: 23px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.route li:first-child {
  border-top: 1px solid var(--line);
}
.route li > span {
  font: 400 10px var(--mono);
  color: var(--accent);
}
.route li > div {
  font-size: 17px;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.route p {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 3px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}
.scale-section {
  padding: 42px 0 44px;
  border-top: 1px solid var(--ink);
}
.key-picker {
  border: 0;
  padding: 0;
  margin: 0 0 3px;
  min-width: 0;
}
.key-picker legend {
  font-size: 11px;
  color: var(--muted);
  padding: 0;
  margin-bottom: 9px;
}
.key-picker > div {
  display: flex;
  gap: 4px;
}
.key-picker button {
  background: transparent;
  border: 1px solid var(--line);
  min-width: 54px;
  height: 38px;
  padding: 5px 15px;
  font-size: 12px;
}
.key-picker button:hover {
  border-color: var(--ink);
}
.key-picker button[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}
.section-copy {
  max-width: 70ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}
.note-list {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  margin-top: 28px;
  border: 1px solid var(--line);
}
.scale-note {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  padding: 18px;
  min-height: 142px;
  text-align: left;
}
.scale-note:last-child {
  border-right: 0;
}
.note-index {
  font: 400 10px var(--mono);
  color: var(--muted);
}
.scale-note strong {
  font-size: 38px;
  font-weight: 450;
  line-height: 1;
  letter-spacing: -0.06em;
}
.note-foot {
  font-size: 10px;
  min-height: 16px;
  color: var(--muted);
}
.scale-note:hover {
  background: var(--soft);
}
.scale-note.selected {
  background: var(--accent);
  color: white;
}
.scale-note.selected .note-index,
.scale-note.selected .note-foot {
  color: white;
}
.scale-footer {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}
.scale-footer > p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.play-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  font-size: 12px;
  white-space: nowrap;
}
.play-button:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.play-icon {
  width: 8px;
  height: 9px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.stop-icon {
  width: 8px;
  height: 8px;
  background: currentColor;
}
.keyboard-tip {
  margin-left: auto;
  font: 400 10px var(--mono);
  color: var(--muted);
}
.instrument-section {
  display: grid;
  grid-template-columns: 0.72fr 1.4fr;
  gap: 58px;
  padding: 45px 0 52px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.diagram-copy h2 {
  font-size: 28px;
  max-width: 12ch;
  line-height: 1.13;
}
.diagram-copy > p:not(.overline) {
  font-size: 13px;
  margin-top: 16px;
  color: var(--muted);
  max-width: 31ch;
}
.note-instruction {
  padding-top: 28px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
#selected-note {
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 450;
  color: var(--accent);
  margin-bottom: 14px;
}
.note-instruction strong {
  font-size: 14px;
  font-weight: 500;
}
.note-instruction p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
  max-width: 32ch;
}
.diagram-paper {
  background: var(--soft);
  padding: 24px 26px 20px;
  min-width: 0;
}
.diagram-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: 400 10px/1.5 var(--mono);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 22px;
}
.diagram-guide {
  font-size: 11px;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}
.fretboard {
  display: grid;
  grid-template-columns: 44px repeat(5, minmax(0, 1fr));
}
.fret-number {
  text-align: center;
  font: 400 11px/1.5 var(--mono);
  color: var(--muted);
  padding-bottom: 13px;
}
.fret-heading {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
}
.string-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.string-name small {
  font: 400 8px var(--mono);
  color: var(--muted);
}
.fret-cell {
  position: relative;
  min-width: 0;
  height: 45px;
  border-right: 1px solid var(--line);
}
.fret-cell::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #b7bcb0;
  pointer-events: none;
}
.fret-cell.open-string {
  border-right: 2px solid var(--ink);
}
.fret-note {
  position: relative;
  border: 0;
  background: transparent;
  height: 100%;
  width: 100%;
  display: grid;
  place-items: center;
}
.fret-note span {
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: var(--paper);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 11px;
  z-index: 1;
}
.fret-note:hover span {
  border-color: var(--accent);
  color: var(--accent);
}
.fret-note.selected span {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}
.harp-diagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 2px;
}
.harp-hole {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.hole-number {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.hole-number b {
  font-weight: 500;
}
.breath-note {
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--paper);
  min-height: 87px;
  padding: 10px 4px;
}
.breath-action {
  font-size: 10px;
  color: var(--muted);
}
.breath-note strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 450;
  letter-spacing: -0.05em;
}
.breath-note:hover {
  border-color: var(--accent);
}
.breath-note.selected {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.breath-note.selected .breath-action {
  color: white;
}
.melody-section {
  padding: 42px 0 48px;
  border-top: 1px solid var(--ink);
}
.song-credit {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
  white-space: nowrap;
}
.melody-score {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 27px 0 24px;
}
.melody-note {
  min-width: 52px;
  height: 58px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 18px;
  font-weight: 450;
  letter-spacing: -0.04em;
}
.melody-note:nth-child(4n + 4) {
  margin-right: 11px;
}
.melody-note:hover {
  background: var(--soft);
}
.melody-note.playing {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}
.try-section {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 24px;
  align-items: center;
  background: #e9ece1;
  padding: 30px 32px;
  margin: 6px 0 60px;
}
.try-mark {
  align-self: start;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
}
.try-section .overline {
  margin-bottom: 8px;
}
.try-section h2 {
  font-size: 27px;
  margin-bottom: 12px;
}
.try-section p:not(.overline) {
  font-size: 13px;
  color: var(--muted);
  max-width: 57ch;
}
.phrase-notes {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}
.phrase-note {
  border: 1px solid #c0c6b6;
  background: transparent;
  padding: 8px 14px;
  font-size: 15px;
  min-width: 50px;
  min-height: 40px;
}
.phrase-note:hover {
  background: var(--paper);
}
.phrase-note.selected {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: start;
  gap: 24px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 12px 0;
  min-height: 44px;
  font-size: 12px;
  white-space: nowrap;
}
.text-button.is-playing {
  color: var(--accent);
}
.arrow {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 100px;
  border-top: 1px solid var(--line);
}
footer .brand {
  font-size: 17px;
}
footer p {
  font-size: 12px;
  color: var(--muted);
}
footer > span {
  font-size: 10px;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: white;
  padding: 12px;
  transform: translateY(-160%);
}
.skip:focus {
  transform: none;
}
@media (max-width: 1000px) {
  main,
  .site-header,
  footer {
    padding-inline: 32px;
  }
  .intro {
    gap: 40px;
    padding-block: 44px 50px;
  }
  h1 {
    font-size: 68px;
  }
  .site-header nav {
    margin-left: 12px;
  }
  .scale-note {
    padding: 14px;
    min-height: 130px;
  }
  .scale-note strong {
    font-size: 31px;
  }
  .instrument-section {
    gap: 36px;
  }
  .diagram-paper {
    padding: 22px 20px 18px;
  }
  .try-section {
    grid-template-columns: 32px 1fr;
  }
  .try-section .text-button {
    grid-column: 2;
    justify-self: start;
    margin-top: -10px;
  }
}
@media (max-width: 720px) {
  main,
  .site-header,
  footer {
    padding-inline: 24px;
  }
  .site-header {
    min-height: 84px;
    height: auto;
    gap: 24px;
  }
  .site-header nav {
    margin-left: auto;
    gap: 18px;
  }
  .header-note {
    display: none;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 38px;
  }
  h1 {
    font-size: 66px;
  }
  .intro-copy {
    font-size: 16px;
  }
  .route {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .route li {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    display: block;
    padding: 13px 0 0;
  }
  .route li > span {
    display: block;
    margin-bottom: 8px;
  }
  .route li > div {
    font-size: 15px;
  }
  .route p {
    font-size: 11px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 24px;
  }
  .scale-section {
    padding-top: 32px;
  }
  h2 {
    font-size: 31px;
  }
  .key-picker legend {
    font-size: 12px;
  }
  .key-picker button {
    min-width: 58px;
    min-height: 42px;
    font-size: 13px;
  }
  .note-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .scale-note:nth-child(4) {
    border-right: 0;
  }
  .scale-note:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }
  .scale-note {
    min-height: 116px;
    padding: 14px;
    gap: 12px;
  }
  .scale-note strong {
    font-size: 34px;
  }
  .scale-footer {
    gap: 18px;
    flex-wrap: wrap;
  }
  .scale-footer > p {
    font-size: 11px;
  }
  .keyboard-tip {
    display: none;
  }
  .instrument-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 32px 38px;
  }
  .diagram-copy h2 {
    max-width: none;
    font-size: 29px;
  }
  .diagram-copy > p:not(.overline) {
    max-width: none;
    font-size: 14px;
    margin-top: 12px;
  }
  .note-instruction {
    display: grid;
    grid-template-columns: 65px 1fr;
    column-gap: 18px;
    padding-top: 20px;
    margin-top: 20px;
  }
  #selected-note {
    grid-row: 1 / span 2;
    font-size: 43px;
    margin-bottom: 0;
  }
  .note-instruction strong {
    font-size: 15px;
  }
  .note-instruction p {
    max-width: none;
    font-size: 12px;
    margin-top: 4px;
  }
  .diagram-paper {
    padding: 20px;
  }
  .diagram-top {
    font-size: 10px;
  }
  .melody-section {
    padding-top: 32px;
  }
  .melody-section .section-heading {
    gap: 12px;
  }
  .section-copy {
    font-size: 14px;
  }
  .song-credit {
    font-size: 12px;
  }
  .melody-note {
    min-width: 47px;
    height: 52px;
    font-size: 17px;
  }
  .try-section {
    padding: 24px;
    gap: 14px;
    margin-bottom: 38px;
  }
  .try-section h2 {
    font-size: 27px;
  }
  footer {
    min-height: 110px;
    flex-wrap: wrap;
    padding-block: 24px;
    gap: 16px;
  }
  footer > span {
    flex-basis: 100%;
  }
}
@media (max-width: 420px) {
  main,
  .site-header,
  footer {
    padding-inline: 20px;
  }
  .site-header {
    gap: 12px;
  }
  .brand {
    font-size: 19px;
    gap: 6px;
  }
  .brand svg {
    width: 19px;
    height: 19px;
  }
  .site-header nav {
    gap: 15px;
  }
  .site-header nav a {
    font-size: 12px;
  }
  h1 {
    font-size: 58px;
  }
  .intro-copy {
    font-size: 14px;
  }
  .route {
    gap: 12px;
  }
  .route li > div {
    font-size: 14px;
  }
  .route p {
    font-size: 10px;
  }
  h2 {
    font-size: 29px;
  }
  .scale-note strong {
    font-size: 30px;
  }
  .scale-note {
    padding: 12px;
    min-height: 110px;
  }
  .scale-footer > p {
    width: 100%;
  }
  .diagram-paper {
    padding: 18px 12px;
  }
  .fretboard {
    grid-template-columns: 38px repeat(5, minmax(0, 1fr));
  }
  .fret-note span {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .string-name {
    gap: 4px;
    font-size: 10px;
  }
  .harp-diagram {
    gap: 5px;
  }
  .breath-note {
    min-height: 85px;
  }
  .breath-note strong {
    font-size: 23px;
  }
  .try-section {
    grid-template-columns: 1fr;
  }
  .try-mark {
    display: none;
  }
  .try-section .text-button {
    grid-column: 1;
    margin-top: 0;
  }
  .melody-note:nth-child(4n + 4) {
    margin-right: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media (max-width: 420px) {
  .route {
    display: none;
  }
  .intro {
    gap: 0;
    padding-block: 30px;
  }
  h1 {
    font-size: 54px;
    margin-bottom: 24px;
  }
}
