/* Music with Wolfgang (Jugami Elementary Music, grades K-5): "bright concert stage" theme. Version 1.
   The whole look lives in custom properties so it can be swapped. */
:root{
  --ink:#24163a;          /* deep plum ink */
  --ink-soft:#5b4a72;
  --paper:#fffaf0;        /* program-booklet cream */
  --card:#fff;
  --stage:#3d1f63;        /* stage curtain plum */
  --stage-dark:#2a1447;
  --gold:#f4b400;
  --gold-dark:#9a6a00;
  --line:#eadfcf;
  /* one color per instrument family */
  --strings:#c2410c; --woodwinds:#2a7f3a; --brass:#b7791f; --percussion:#7048e8; --keyboards:#1c6dd0;
  --radius:22px;
  --round:"Trebuchet MS","Segoe UI","Nunito",system-ui,-apple-system,sans-serif;
  --display:"Comic Neue","Chalkboard SE","Trebuchet MS",system-ui,sans-serif;
  /* read-aloud.js v2 theme */
  --ra-accent:#3d1f63; --ra-accent-ink:#fff; --ra-highlight:#f4b400; --ra-highlight-bg:#fff6d6;
  --ra-radius:999px; --ra-font-size:1.25em; --ra-sub-ink:#24163a;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
body{margin:0;background:var(--paper);color:var(--ink);font:20px/1.6 var(--round)}
img,svg{max-width:100%;height:auto}
a{color:#2f3fb0;text-underline-offset:3px}
a:hover{color:var(--strings)}
:focus-visible{outline:4px solid var(--percussion);outline-offset:3px}
.skip{position:absolute;left:-999px;top:8px;background:var(--gold);color:var(--ink);padding:10px 16px;border-radius:12px;font-weight:800;z-index:10}
.skip:focus{left:8px}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.wrap{max-width:1060px;margin:0 auto;padding:0 18px}

/* header: plum curtain with a piano-key edge */
.site-head{background:var(--stage);color:#fff;position:relative;padding-bottom:16px}
.site-head::after{content:"";position:absolute;left:0;right:0;bottom:0;height:16px;
  background:#fff linear-gradient(90deg,transparent 0 6px,#24163a 6px 14px,transparent 14px) 0 0/22px 10px repeat-x;
  border-top:2px solid var(--gold);border-bottom:2px solid #24163a}
.bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:10px 18px;max-width:1060px;margin:0 auto}
.brand{display:inline-flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:800;font-size:1.3em;min-height:44px}
.brand img{width:42px;height:42px}
.brand:hover{color:#ffe08a}
.head-nav{margin-left:auto;display:flex;flex-wrap:wrap;gap:6px}
.head-nav a{min-height:44px;display:inline-flex;align-items:center;color:#fff;text-decoration:none;font-weight:700;font-size:1em;padding:6px 14px;border-radius:999px;background:rgba(255,255,255,.14)}
.head-nav a:hover,.head-nav a:focus-visible{background:rgba(255,255,255,.3);color:#fff}
.crumbs{font-size:.95em;margin:10px 0 0}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px}
.crumbs li{display:inline-flex;align-items:center;min-height:44px}
.crumbs li+li::before{content:"›";margin-right:4px;color:var(--ink-soft)}
.crumbs a{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 2px}
.pager{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:14px 0;font-size:1em}
.pager a{background:#fff;border:3px solid var(--stage);color:var(--stage);padding:8px 16px;border-radius:999px;text-decoration:none;font-weight:800;min-height:44px;display:inline-flex;align-items:center}
.pager a:hover{background:#f3ecff}
.pager span{display:inline-flex;align-items:center;min-height:44px;padding:8px 4px;color:var(--ink-soft);font-weight:600;font-style:italic}

/* hero */
.hero{display:grid;gap:18px;align-items:center;background:radial-gradient(circle at 80% 20%,#fff3c4 0,transparent 55%),linear-gradient(180deg,#efe6ff,#fff);border-radius:var(--radius);padding:22px;margin-top:12px;box-shadow:0 5px 0 var(--line)}
@media (min-width:800px){.hero{grid-template-columns:1.05fr 1fr}}
.kicker{font-size:.95em;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--stage);margin:0}
h1{font-family:var(--display);font-size:clamp(2.2rem,7vw,3.5rem);line-height:1.1;margin:.15em 0 .2em;color:var(--stage)}
.tag{font-size:1.3em;font-weight:700;margin:0 0 10px}
h2{font-family:var(--display);font-size:clamp(1.6rem,5vw,2.1rem);line-height:1.2;color:var(--stage-dark);margin:0 0 10px;scroll-margin-top:12px}
h3{font-size:1.3em;margin:.3em 0;line-height:1.25}
.hero-art{width:100%;max-width:440px;margin:0 auto;display:block}
.bubble{background:#fff;border:3px solid var(--stage);border-radius:20px;padding:10px 16px;position:relative}
.bubble p{margin:.3em 0}
.block{background:var(--card);border-radius:var(--radius);padding:22px;margin:24px 0;box-shadow:0 5px 0 var(--line);scroll-margin-top:12px}
.block p,.block li{max-width:64ch}
.word{font-weight:800;color:var(--percussion)}
.grownups{background:#fff6d6;border-left:6px solid var(--gold);padding:10px 14px;border-radius:12px;font-size:1em}
.nojs{background:#fff0b3;padding:10px 14px;border-radius:12px;font-weight:700}
.note{font-size:1em;color:var(--ink-soft)}

/* JS-only controls appear once instruments.js runs */
.needs-js{display:none!important}
.js .needs-js{display:inline-flex!important}
.js .needs-js.block-level{display:block!important}

/* family overview chips */
.families{list-style:none;padding:0;margin:14px 0 0;display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr))}
.families li{display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center;background:#fff;border:4px solid var(--c);border-radius:18px;padding:10px 8px}
.families svg{width:64px;height:64px;flex:none}
.families a{font-weight:800;color:var(--ink);min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:1.1em}
.families small{display:block;font-size:.95em;color:var(--ink-soft);line-height:1.3}
@media (max-width:520px){.families{grid-template-columns:1fr 1fr}.families li:last-child{grid-column:1/-1}}
/* a family section */
.family{border-top:14px solid var(--c)}
.family h2{color:var(--c-ink,var(--c))}
.howto{display:flex;gap:12px;align-items:flex-start;background:var(--tint,#f6f1ff);border-radius:16px;padding:10px 14px;margin:10px 0 16px}
.howto strong{color:var(--ink)}
.icons{list-style:none;padding:0;margin:0;display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(14.5rem,1fr))}
.inst{border:4px solid var(--c);border-radius:20px;padding:12px 14px;background:#fff;display:flex;flex-direction:column}
.inst .pic{display:block;width:120px;height:120px;margin:0 auto;background:var(--tint,#f6f1ff);border-radius:50%}
.inst h3{text-align:center;margin:.35em 0 .1em}
.inst p{margin:.25em 0;font-size:1.05em}
.inst details{margin-top:auto;padding-top:8px}
.inst summary{cursor:pointer;font-weight:800;color:var(--c-ink,var(--c));min-height:44px;display:flex;align-items:center;gap:6px;list-style:none;border-radius:12px;padding:0 8px;background:var(--tint,#f6f1ff)}
.inst summary::-webkit-details-marker{display:none}
.inst summary::before{content:"＋";font-weight:900}
.inst details[open] summary::before{content:"－"}
.inst details p{font-size:1em}
.hear{min-height:44px;font:inherit;font-size:1em;font-weight:800;border:3px solid var(--c);background:#fff;color:var(--ink);border-radius:999px;padding:4px 16px;cursor:pointer;align-items:center;gap:6px;justify-content:center;margin:6px auto 0}
.hear:hover,.hear.playing{background:var(--tint,#f6f1ff)}
.hear.playing{transform:scale(1.04)}

/* buttons */
.btn{font:inherit;font-weight:800;border:0;border-radius:999px;padding:12px 24px;min-height:52px;cursor:pointer;background:var(--stage);color:#fff;box-shadow:0 4px 0 #1d0d33;text-decoration:none;display:inline-flex;align-items:center;gap:8px}
.btn:hover{background:#4d2a7a;color:#fff}
.btn:active{transform:translateY(3px);box-shadow:0 1px 0 #1d0d33}
.btn.alt{background:#fff;color:var(--stage);border:3px solid var(--stage);box-shadow:0 4px 0 var(--line)}
.btn[disabled]{opacity:.5;cursor:default}
.btn-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}

/* sound lab */
.lab{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));margin-top:10px}
.pair{background:#f6f1ff;border-radius:18px;padding:12px 14px}
.pair h3{margin-top:0}
.pair .duo{display:flex;flex-wrap:wrap;gap:10px}
.pair .hear{margin:0;--c:var(--stage)}

/* quiz */
.quiz fieldset{border:3px solid var(--line);border-radius:16px;margin:0 0 14px;padding:12px 14px}
.quiz legend{font-weight:800;padding:0 6px;font-size:1.2em;display:flex;align-items:center;gap:10px}
.quiz legend svg{width:64px;height:64px;flex:none;background:#f6f1ff;border-radius:50%}
.choices{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.choices label{position:relative;display:inline-flex;cursor:pointer}
.choices input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.choices span{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:6px 14px 6px 8px;border-radius:999px;border:3px solid var(--line);background:#fff;font-weight:800}
.choices span::before{content:"";width:22px;height:22px;border-radius:50%;background:var(--c);box-shadow:inset 0 -3px 0 rgba(0,0,0,.2)}
.choices input:checked+span{border-color:var(--ink);background:#fff6d6}
.choices input:checked+span::after{content:"✓"}
.choices input:focus-visible+span{outline:4px solid var(--percussion);outline-offset:3px}
.fb{font-weight:800;min-height:1.6em;margin:6px 0 0}
.ok{color:#1f7a32}.no{color:#b3261e}
.score{font-size:1.35em;font-weight:800;min-height:1.6em}
.status{font-weight:800;min-height:1.6em}

/* hub cards */
.cards{list-style:none;padding:0;margin:0;display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr))}
.card{background:#fff;border-radius:var(--radius);padding:18px;border-top:12px solid var(--c,var(--stage));box-shadow:0 5px 0 var(--line)}
.card h3 a{color:var(--ink)}
.card .row{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0}
.card .row svg{width:52px;height:52px;background:#f6f1ff;border-radius:50%}
.card.soon{border-top-style:dashed;color:var(--ink-soft)}

/* high-or-low game */
.hl{display:grid;gap:14px;justify-items:center;text-align:center;background:#f6f1ff;border-radius:18px;padding:16px}
.hl .pick{display:flex;flex-wrap:wrap;gap:14px;justify-content:center}
.hl .pick button{font:inherit;font-weight:800;font-size:1.2em;min-width:9.5rem;min-height:96px;border-radius:24px;border:4px solid var(--ink);background:#fff;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;box-shadow:0 5px 0 rgba(0,0,0,.15)}
.hl .pick button svg{width:56px;height:56px}
.hl .pick button:active{transform:translateY(3px)}
.hl .pick button.right{background:#d3f9d8;border-color:#2b8a3e}
.hl .pick button.wrong{background:#ffe3e3;border-color:#c92a2a}
.hl .pick button{color:var(--ink)}
.hl .pick button[disabled]{cursor:default}
.hl .pick button[disabled]:not(.right):not(.wrong){opacity:.65}
.round{font-weight:800;color:var(--ink-soft);margin:0}

.sources li,.credits{font-size:1em}
.sources li a,.card h3 a,.card p a,.site-foot p a{min-height:44px;display:inline-flex;align-items:center}
figure{margin:0}
figcaption{font-size:1em;margin-top:6px}

/* footer */
.site-foot{background:var(--stage-dark);color:#f3ecff;margin-top:30px;padding:16px 0;font-size:1em}
.site-foot a{color:#fff}
.jugami-more{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;margin-top:8px}
.jugami-more a{min-height:44px;display:inline-flex;align-items:center;padding:0 4px;font-weight:700}
.ra-reading{border-radius:var(--radius)}
@media (max-width:520px){body{font-size:19px}.block,.hero{padding:16px}.inst .pic{width:104px;height:104px}}
@media (prefers-reduced-motion:no-preference){.bounce{animation:bounce 1.6s ease-in-out infinite alternate}@keyframes bounce{to{transform:translateY(-6px)}}}
