/* Practice uses the chapter's shared palette and typography.
   Compact spacing keeps the task, notation and controls together. */
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 24px 16px 48px;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 "Gill Sans", "Gill Sans MT", Calibri, "Segoe UI", sans-serif;
}
main {
  max-width: 760px;
  margin: auto;
  padding: 28px 40px 32px;
  background: var(--paper);
  border: 1px solid #e6e1d4;
  box-shadow: 0 2px 14px rgba(60,50,30,.07);
}
a { color: var(--stencil); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
main > a { font-size: 14px; }
h1, h2 {
  font-family: "Futura Condensed ExtraBold", "Futura-CondensedExtraBold", Futura, "Arial Narrow", sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
}
h1 { font-size: 36px; line-height: 1.1; margin: 16px 0 12px; }
h2 { font-size: 22px; line-height: 1.25; color: var(--stencil); margin: 0 0 10px; }
p { margin: 0 0 12px; }
button, select {
  font: inherit;
  color: var(--ink);
  border: 1px solid #b7afa0;
  border-radius: 6px;
  background: var(--paper);
  padding: 7px 12px;
  min-height: 42px;
}
button { cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--stencil); }
button:disabled { opacity: .5; cursor: default; }
button.primary, #play { background: #285da1; color: white; border-color: #285da1; }
button.primary:hover:not(:disabled), #play:hover:not(:disabled) { background: #214e89; }
button:focus-visible, select:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #b96b22; outline-offset: 3px;
}
.card {
  background: #faf8f4;
  border: 1px solid #ded9ce;
  border-radius: 12px;
  padding: 18px;
  margin: 14px 0 18px;
}
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.note-control { display: grid; gap: 4px; text-align: center; font-size: 15px; }
.note-control select { width: 90px; }
#notation { overflow-x: auto; color: #273747; }
#notation svg { display: block; width: 100%; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
#feedback { min-height: 3em; border-left: 3px solid #b9ad97; padding: 8px 12px; margin-bottom: 12px; }
#feedback.correct { border-color: #21735d; }
#feedback.wrong { border-color: #a63e43; }
.card > p:last-child { margin-bottom: 0; font-size: 15px; }
.answers { display: grid; gap: 8px; }
.answers label { padding: 10px; border: 1px solid #ded9ce; border-radius: 6px; background: var(--paper); cursor: pointer; }
.answers label:has(input:checked) { border-color: var(--stencil); background: #eef2f8; }
.music-glyph { font-family: Bravura; fill: currentColor; }
.sounding { color: #b35c16; }
.muted { font-size: 14px; color: #65717a; }
input { accent-color: #285da1; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; vertical-align: middle; }
nav { border-top: 1px solid #e6e1d4; padding-top: 14px; font-size: 15px; line-height: 1.8; }
@media (max-width: 640px) {
  body { padding: 12px 8px 28px; }
  main { padding: 20px 16px 24px; }
  .card { padding: 12px; }
  h1 { font-size: 30px; }
}
