:root {
  color-scheme: light;
  color: #675080;
  background: #f6f0fb;
  font-family: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 18% 22%, #e8dcf4 0%, transparent 55%),
    radial-gradient(ellipse at 85% 78%, #eee2f7 0%, transparent 55%),
    #f6f0fb;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 80px 24px;
}
header { display: grid; place-items: center; padding: 30px 0 80px; }
h1 {
  margin: 0;
  max-width: 1100px;
  text-align: center;
  font-size: clamp(2rem, 4.5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
section { font-family: system-ui, sans-serif; }
h2 { margin: 0; font: 400 2.5rem Georgia, serif; }
.intro { color: #806c93; margin-bottom: 30px; }
.sample { margin: 20px 0; padding: 24px; border: 1px solid #dccfea; border-radius: 20px; background: #ffffffa8; box-shadow: 0 8px 30px #80609c08; }
.sample h3 { margin: 0 0 5px; font-size: 1.1rem; font-weight: 600; }
.sample-id { color: #8b779c; font-size: .8rem; margin: 0 0 22px; }
.references { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #dccfea; }
.reference h4 { margin: 0 0 10px; font-size: .8rem; font-weight: 550; }
.reference a { display: inline-block; margin-top: 8px; color: #675080; font-size: .85rem; }
.reference a:focus-visible, .video-load:focus-visible { outline: 3px solid #806c93; outline-offset: 4px; }
.reference .fine-print { margin: 0; }
.alignment-note { margin-top: 6px !important; font-size: .78rem; }
.piano-link { margin: 0 0 18px; font-size: .9rem; }
.piano-link a { color: #675080; }
.group-title { margin: 44px 0 4px; font: 400 1.65rem Georgia, serif; }
.video-frame { aspect-ratio: 16 / 9; max-width: 400px; border-radius: 12px; overflow: hidden; background: #efe6f6; display: grid; place-items: center; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-load { padding: 10px 18px; border-radius: 22px; border: 1px solid #675080; background: #675080; color: white; cursor: pointer; font: 600 .9rem system-ui, sans-serif; }
.video-load:hover { background: #806c93; }
.tracks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.track h4 { margin: 0 0 12px; font-size: .8rem; font-weight: 550; }
audio { display: block; width: 100%; height: 40px; }
.tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; font-family: system-ui, sans-serif; }
.tabs a { color: inherit; padding: 12px 18px; border: 1px solid #dccfea; border-radius: 24px; text-decoration: none; }
.tabs a[aria-current="page"] { background: #675080; color: white; }
.tabs a:focus-visible, summary:focus-visible { outline: 3px solid #806c93; outline-offset: 4px; }
.listening-comment { margin-top: 22px; border-top: 1px solid #dccfea; padding-top: 16px; line-height: 1.6; }
.listening-comment summary { cursor: pointer; font-weight: 600; }
.listening-comment p { margin-bottom: 0; }
.detail-card { margin: 24px 0; padding: 26px; border: 1px solid #dccfea; border-radius: 20px; background: #ffffffa8; line-height: 1.6; }
.detail-card h3 { margin: 0 0 12px; font: 400 1.65rem Georgia, serif; }
.detail-card h4 { margin: 22px 0 8px; }
.detail-card p { max-width: 78ch; }
.intro { max-width: 90ch; line-height: 1.7; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.table-scroll { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e3d9ec; white-space: nowrap; }
th { color: #675080; font-size: .9rem; background: #f1e9f7; }
td { font-size: .95rem; }
.plain-table, #system-mixtures { table-layout: fixed; min-width: 620px; }
.plain-table th, .plain-table td, #system-mixtures th, #system-mixtures td { white-space: normal; overflow-wrap: break-word; vertical-align: top; }
.plain-table th:last-child { width: 48%; }
tbody tr:nth-child(even) { background: #f6f0fb80; }
.fine-print { color: #806c93; font-size: .88rem; }
.significant { font-weight: 650; }
@media (max-width: 750px) { main { padding: 40px 18px; } header { padding-bottom: 55px; } .tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .references { grid-template-columns: 1fr; } .detail-grid { grid-template-columns: 1fr; } .detail-card { padding: 20px; } }
@media (max-width: 400px) { .tracks { grid-template-columns: 1fr; } }
