@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap');
:root{--ink:#17243a;--muted:#647080;--paper:#f5f6f8;--line:#dce1e8;--gold:#e7bc75;--blue:#315781}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 'DM Sans',sans-serif}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #b58233;outline-offset:4px}header{height:100px;max-width:1280px;margin:auto;display:flex;align-items:center;gap:24px;padding:0 48px}.brand{font:36px Georgia;color:var(--ink);text-decoration:none}.brand span{font-size:19px;color:#ae7930;margin-left:2px}.header-label{font-size:12px;letter-spacing:2.4px;color:var(--muted)}.volume{margin-left:auto;display:flex;gap:12px;align-items:center;font-size:13px;color:var(--muted)}input[type=range]{width:84px;accent-color:var(--blue)}main{max-width:1184px;margin:0 auto;padding:36px 32px 80px;min-height:calc(100vh - 205px)}.hero{text-align:center;padding:18px 0 55px}.eyebrow{font-size:12px;font-weight:600;letter-spacing:2.5px;color:var(--muted);text-transform:uppercase}h1{font-family:'Libre Caslon Display',Georgia,serif;font-weight:400;font-size:88px;line-height:1.1;letter-spacing:-3px;margin:8px 0 12px}.subtitle{color:var(--muted);font-size:18px;margin:0}.section-label{display:flex;align-items:center;gap:20px;font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--muted);margin:0 0 22px}.section-label:after{content:'';height:1px;background:var(--line);flex:1}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{border:1px solid var(--line);border-radius:16px;background:white;overflow:hidden;transition:transform .2s,box-shadow .2s}.card:hover{transform:translateY(-4px);box-shadow:0 12px 24px #17243a0a}.card-art{height:158px;background:#17263d;color:var(--gold);display:flex;align-items:center;justify-content:center;position:relative}.card:nth-child(2) .card-art{background:#243d51;color:#bdd8da}.card:nth-child(3) .card-art{background:#30334b;color:#d1c4ea}.card-art svg{width:118px;height:105px;stroke:currentColor;fill:none;stroke-width:1.4}.card-number{position:absolute;top:18px;left:22px;font-size:12px;letter-spacing:2px;opacity:.6}.card-body{padding:25px}h2{font-size:21px;font-weight:500;line-height:1.4;margin:0 0 10px}.card p{color:var(--muted);font-size:14px;min-height:48px;margin:0 0 26px}.card-actions{display:flex;gap:10px}button,.button{border:1px solid var(--line);background:white;color:var(--ink);border-radius:8px;padding:10px 18px;line-height:1.5;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:500}.card-actions a{flex:1;font-size:14px}.primary{background:var(--ink);border-color:var(--ink);color:white}.primary:hover{background:#2c4463}.secondary:hover,button:hover:not(:disabled){border-color:#91a0b3}.home-note{text-align:center;font-size:13px;color:var(--muted);margin:30px 0 0}footer{max-width:1184px;border-top:1px solid var(--line);padding:22px 32px;margin:0 auto;display:flex;justify-content:space-between;gap:20px;font-size:12px;color:var(--muted)}details{max-width:480px}summary{cursor:pointer}a{color:inherit}#audio-status{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);border-radius:8px;background:var(--ink);color:white;font-size:14px;max-width:90vw;padding:0;z-index:10}#audio-status:not(:empty){padding:12px 20px}.back{font-size:14px;text-decoration:none;color:var(--muted)}.exercise-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:26px 0}.exercise-heading h1{font-size:48px;letter-spacing:-1px;margin:0 0 8px}.exercise-heading p{color:var(--muted);font-size:14px;margin:0}.tabs{display:flex;background:#e7ebf0;border-radius:10px;padding:4px;gap:4px}.tabs a{padding:8px 22px;text-decoration:none;font-size:14px;border-radius:7px}.tabs .active{background:white;box-shadow:0 2px 6px #17243a10}.panel{background:white;border:1px solid var(--line);border-radius:16px;padding:28px}.workspace{display:grid;grid-template-columns:1fr 285px;gap:22px}.settings{align-self:start}.settings h2{font-size:16px;margin-bottom:24px}.field{display:block;margin-bottom:20px;font-size:14px;color:var(--muted)}.field select{display:block;width:100%;margin-top:8px;border:1px solid var(--line);border-radius:7px;padding:10px;background:white;color:var(--ink)}.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;margin:22px 0}.check input{accent-color:var(--blue);margin-top:6px}.hint{font-size:13px;color:var(--muted)}.circle{position:relative;width:min(100%,460px);aspect-ratio:1;margin:auto}.circle svg{position:absolute;width:100%;height:100%;inset:0}.key-node{position:absolute;transform:translate(-50%,-50%);border:0;padding:0;background:transparent;display:flex;flex-direction:column;gap:0;border-radius:50%;width:48px;height:48px;font-size:16px}.key-node small{font-size:11px;color:var(--muted)}.key-node.minor{font-size:14px;color:var(--muted);width:42px;height:36px}.key-node.selected{background:var(--ink);color:var(--gold)}.key-node.selected small{color:#ddd}.circle-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none}.circle-center strong{font-family:Georgia,serif;font-size:30px;font-weight:400}.circle-center span{display:block;font-size:11px;color:var(--muted);letter-spacing:1px}.legend{text-align:center;font-size:12px;color:var(--muted)}.readout{text-align:center;margin-bottom:24px}.readout h2{font:36px Georgia}.keyboard-scroll{overflow-x:auto;padding:15px 4px 22px}.keyboard{position:relative;height:190px;min-width:520px;display:flex;margin:auto}.piano-key{position:relative;border-radius:0 0 6px 6px;display:block;padding:0;flex:1;background:linear-gradient(white,#f1f2f5);border:1px solid #b9c1cd;box-shadow:0 4px 0 #d4dae2;height:180px}.piano-key span{position:absolute;bottom:14px;left:0;right:0;font-size:12px;color:var(--muted)}.piano-key.black{position:absolute;z-index:2;top:0;background:linear-gradient(#29354a,#111b2b);height:112px;width:4.3%;box-shadow:0 4px 0 #080e18;border-color:#101b2b}.piano-key.black span{font-size:10px;color:#c5ccda;bottom:10px}.piano-key.playing{background:var(--gold)}.pitch-learn .panel{padding-top:40px}.interval-grid,.answers{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.interval-grid button{font-size:14px;flex-direction:column;padding:12px 8px;gap:2px}.interval-grid small{color:var(--muted);font-size:12px}.interval-grid .selected,.answers .selected{border-color:var(--blue);background:#eaf0f8}.listen{text-align:center;padding:28px 0}.listen-symbol{width:76px;height:76px;border-radius:50%;background:#edf1f7;margin:0 auto 20px;display:grid;place-items:center;font:34px Georgia;color:var(--blue)}.listen h2{font:30px Georgia}.listen p{color:var(--muted);font-size:14px}.answers{margin:16px 0 24px}.answers button{font-size:14px;min-height:47px}.answers .correct{background:#e6f3ec;border-color:#469370}.answers .wrong{background:#fae9e9;border-color:#c47777}.quiz-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px}.score{font-size:13px;color:var(--muted)}.feedback{min-height:32px;font-size:15px;margin:0 0 16px}.feedback.good{color:#227047}.feedback.bad{color:#a64343}.selected-label{text-align:center;color:var(--muted);font-size:14px;margin:15px 0 0}@media(max-width:800px){header{padding:0 24px;height:80px}.header-label{display:none}.cards{grid-template-columns:1fr}.card{display:grid;grid-template-columns:130px 1fr}.card-art{height:100%}.card-art svg{width:90px}.card-body{padding:22px}.card p{min-height:0;margin-bottom:18px}.hero{padding:15px 0 38px}h1{font-size:68px}main{padding:20px 20px 50px}.workspace{grid-template-columns:1fr}.settings{order:-1}.settings h2{margin-bottom:14px}.field{margin-bottom:12px}.exercise-heading{align-items:flex-start;flex-direction:column}.exercise-heading h1{font-size:40px}.panel{padding:20px}footer{padding:20px;flex-direction:column}.interval-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:420px){.card{grid-template-columns:1fr}.card-art{height:110px}.card-art svg{height:85px}.card p{font-size:14px}.answers{grid-template-columns:repeat(2,1fr)}.key-node{font-size:14px;width:38px}.key-node.minor{font-size:12px}.circle-center strong{font-size:24px}.interval-grid{grid-template-columns:repeat(2,1fr)}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Reserve consistent space for natural and enharmonic pitch names. */
#note-label{min-height:1.6em;line-height:1.6;display:flex;align-items:baseline;justify-content:center;gap:.25em;white-space:nowrap;font-size:clamp(24px,5vw,36px)}
#note-label .note-octave{font:16px/1.6 "DM Sans",sans-serif}
/* Exercise library */
.exercise-section{margin-bottom:46px}.exercise-section .section-label{font-size:14px;letter-spacing:1.8px;margin-bottom:22px}.cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{display:flex;flex-direction:column}.card-art{height:128px;flex:none}.card-body{display:flex;flex:1;flex-direction:column}.card-body h2{font-size:19px}.card-body p{flex:1}.card-actions{margin-top:auto}.card-art.tone-0{background:#17263d;color:#e7bc75}.card-art.tone-1{background:#243d51;color:#bdd8da}.card-art.tone-2{background:#30334b;color:#d1c4ea}.exercise-symbol{font:68px/1 Georgia,serif}.workspace>section{min-width:0}.exercise-heading h1{font-size:clamp(30px,4vw,46px)}.exercise-heading>div{min-width:0}.tabs{flex-shrink:0}.long-title{font-size:30px!important;line-height:1.3!important;margin-top:14px!important;overflow-wrap:anywhere}.pitch-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:18px 0}.pitch-chips span{background:#f0f3f7;border:1px solid #e0e5ec;border-radius:6px;padding:5px 10px;font-size:13px}.chord-grid,.mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.chord-grid button,.mode-grid button{flex-direction:column;gap:2px;text-align:center;overflow-wrap:anywhere}.chord-grid strong{font-size:16px;font-weight:500}.chord-grid span{font-size:14px}.chord-grid small,.mode-grid small{font-size:11px;color:var(--muted);letter-spacing:1px}.mode-grid button{font-size:14px;padding:15px 12px;gap:7px}.chord-grid .selected,.mode-grid .selected,.note-answer .selected{border-color:var(--blue);background:#eaf0f8}.scale-diagram{display:flex;align-items:flex-end;gap:5px;height:85px;margin:25px 0 0}.scale-diagram>span{flex:1;min-width:0;background:#edf0f4;border-radius:5px 5px 0 0;height:22px;position:relative}.scale-diagram>span.in-scale{height:68px;background:#294563}.scale-diagram b{font-size:10px;font-weight:400;position:absolute;bottom:3px;left:0;right:0;text-align:center;color:var(--muted)}.scale-diagram .in-scale b{color:#fff}.center-action{text-align:center;margin:26px 0 15px}.expanded-answers{grid-template-columns:repeat(2,minmax(0,1fr))}.note-answer{padding:16px 0;border:0;border-top:1px solid var(--line);margin:0 0 12px;min-width:0}.note-answer legend{font-size:14px;padding-right:12px}.note-answer-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.note-answer-grid button{font-size:12px;padding:9px 3px;min-height:43px}.note-answer .correct{background:#e6f3ec;border-color:#469370;opacity:1}.note-answer .wrong{background:#fae9e9;border-color:#c47777;opacity:1}.feedback{overflow-wrap:anywhere}.hero{padding-bottom:42px}.card-art svg{height:85px}.answers .correct{opacity:1}.answers .wrong{opacity:1}
@media(min-width:701px) and (max-width:900px){.cards{gap:12px}.card-body{padding:16px}.card-body h2{font-size:17px}.card-actions{gap:6px}.card-actions a{padding:9px 8px}.card p{font-size:13px}}
@media(max-width:700px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.card{display:flex}.card-body{padding:18px}.card-body h2{font-size:18px}.card p{font-size:14px}.card-art{height:104px}.exercise-heading{gap:18px}.exercise-section{margin-bottom:34px}}
@media(max-width:460px){.cards{grid-template-columns:1fr}.card-art{height:104px}.note-answer-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.expanded-answers,.mode-grid{grid-template-columns:1fr}.long-title{font-size:25px!important}.chord-grid button{padding:12px 7px}.scale-diagram{gap:3px}.settings{padding:20px}}
/* Supplied brand artwork */
header .brand{display:flex;align-items:center;flex-shrink:0;line-height:1}.header-singer{display:block;width:44px;height:68px;object-fit:contain}.alchemical-logo{display:block;width:174px;height:80px;object-fit:contain}.title-lockup{display:flex;align-items:center;justify-content:center;gap:3px;margin:0 auto 10px}.title-lockup h1{margin:0;line-height:1.15}.title-singer{display:block;flex-shrink:0;width:88px;height:138px;object-fit:contain}.hero{padding-top:0}
@media(max-width:700px){header{gap:12px;padding:0 20px;height:90px}.header-singer{width:34px;height:58px}.alchemical-logo{width:140px;height:66px}.title-singer{width:70px;height:110px}.title-lockup{gap:0}.volume{gap:6px}.volume input{width:64px}}
@media(max-width:400px){header{padding:0 16px;gap:8px}.alchemical-logo{width:120px;height:58px}.volume{font-size:12px}.volume input{width:54px}.title-lockup h1{font-size:62px}.title-singer{width:64px;height:102px}}
/* Compact branding and listening/singing affordances. */
header{height:82px}main{padding-top:8px}.hero{padding-bottom:28px}.title-singer{width:72px;height:112px}.title-lockup{margin-bottom:5px}.title-lockup h1{font-size:76px}.exercise-badge{position:absolute;right:14px;top:13px;width:33px;height:33px;display:grid;place-items:center;background:#f5f6f8;color:#24394f;border:1px solid #ffffff88;border-radius:50%;box-shadow:0 2px 7px #0002}.card-art .exercise-badge svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.exercise-badge.singing-badge{background:#f2dba9;color:#293044}
.singing-intro{text-align:center}.singing-intro p{font-size:14px;color:var(--muted)}.sing-note-trail{display:flex;list-style:none;flex-wrap:wrap;gap:7px;justify-content:center;padding:0;margin:24px 0}.sing-note-trail li{min-width:48px;padding:8px;border:1px solid var(--line);border-radius:8px;text-align:center;font-size:12px;background:#f7f8fa}.sing-note-trail li span{display:block;font-size:10px;color:var(--muted);margin-bottom:2px}.sing-note-trail .current{background:#e9eff7;border:2px solid #315781;padding:7px}.sing-note-trail .done{background:#e6f3ec;border-color:#9fcbb2;color:#226847}.voice-tuner{background:#f5f7fa;border:1px solid #e4e8ef;border-radius:14px;padding:26px 24px 18px;margin:24px 0 18px;text-align:center}.tuner-target{font-size:12px;letter-spacing:1.3px;color:var(--muted)}.voice-note{font:44px/1.35 Georgia,serif;min-height:60px;margin:12px 0}.voice-guidance{font-size:14px;min-height:44px;margin:0 0 18px;display:flex;align-items:center;justify-content:center}.tuning-meter{height:12px;border-radius:20px;background:linear-gradient(90deg,#e3b2a7,#e6e9ed 35%,#e6e9ed 65%,#e3b2a7);position:relative;margin:0 4px}.tuning-zone{position:absolute;left:50%;transform:translateX(-50%);top:0;bottom:0;background:#a9cdb8}.tuning-meter:after{content:'';position:absolute;width:2px;background:#426957;height:22px;top:-5px;left:50%}#tuning-needle{position:absolute;height:26px;width:4px;top:-7px;transform:translateX(-50%);background:var(--ink);border-radius:4px;z-index:1}.meter-labels{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin:9px 0 23px}.hold-track{height:7px;border-radius:20px;overflow:hidden;background:#dfe5ed}.hold-track span{height:100%;width:0;display:block;background:#397858}.hold-caption{font-size:12px;margin:7px 0 20px;color:var(--muted)}.input-level{display:flex;gap:10px;align-items:center;font-size:11px;color:var(--muted);justify-content:center;flex-wrap:wrap}.input-level meter{width:70px;height:10px}.sing-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.sing-actions button{font-size:14px}.voice-status{font-size:14px;text-align:center;min-height:44px;margin:8px 0 16px}.voice-status.error{color:#a64343}.singing-score{text-align:center;margin-top:18px}.voice-tuner.finished{border-color:#9fcbb2;background:#eef7f1}.voice-tuner.finished .voice-note{color:#397858}.mic-privacy{font-size:12px;color:var(--muted);padding-top:16px;border-top:1px solid var(--line)}[hidden]{display:none!important}
@media(max-width:700px){header{height:72px}main{padding-top:4px}.title-lockup h1{font-size:64px}.title-singer{width:64px;height:100px}.hero{padding-bottom:26px}.voice-tuner{padding:22px 15px 15px}.voice-note{font-size:38px}.sing-note-trail{gap:5px}.sing-note-trail li{min-width:42px;font-size:11px}.settings .field{margin-bottom:15px}}
/* Exercise notation and footer discovery link. */
header{height:54px}
.card-art .exercise-artwork{width:min(82%,220px);height:110px;stroke-width:1.5;overflow:visible}
.card .card-art.art-1 .exercise-artwork{width:118px;height:98px}
.card .card-art.art-3{background:#17263d;color:#e7bc75}
.card .card-art.art-4{background:#263f4a;color:#afe0db}
.card .card-art.art-5{background:#30334b;color:#d1c4ea}
.card .card-art.art-7{background:#163e45;color:#aee0d0}
.card .card-art.art-8{background:#493747;color:#f0c1be}
.card .card-art.art-9{background:#243d51;color:#bdd8da}
.card .card-art.art-10{background:#443653;color:#dfc3f1}
footer{display:block;padding-top:30px;padding-bottom:26px}
.footer-discover{text-align:center;margin:0 auto 30px;max-width:580px}
.footer-discover p{font-size:14px;line-height:1.6;margin:0 0 15px}
.footer-discover a{display:inline-block;border-radius:6px}
.footer-discover .alchemical-logo{width:230px;height:auto;max-width:100%}
.footer-bottom{display:flex;justify-content:space-between;gap:20px;font-size:13px}
@media(max-width:700px){.card-art .exercise-artwork{height:92px}.footer-bottom{flex-direction:column}header{height:52px}.footer-discover .alchemical-logo{width:210px}}

@font-face{font-family:Bravura;src:url("fonts/Bravura.otf") format("opentype");font-display:block}


.parent-keyboard{overflow-x:auto;padding:8px 1px}.parent-keyboard svg{display:block;width:100%;min-width:420px;height:auto}

/* Muted but varied home-card palette; related listening and singing exercises share hues. */
.card-art.art-1,.card-art.art-11{background:#304b5c;color:#c1e0d7}
.card-art.art-2,.card-art.art-8{background:#443852;color:#e6c2df}
.card-art.art-3,.card-art.art-9{background:#68453b;color:#f0c6a5}
.card-art.art-4{background:#38534e;color:#c4e1c4}
.card-art.art-5,.card-art.art-7{background:#3f4b68;color:#c9d3ee}
.card-art.art-6,.card-art.art-10{background:#59435e;color:#e2c7e9}
.header-logo{display:block;line-height:0;margin-right:auto}.header-logo img{display:block;width:36px;height:55px;object-fit:contain}
@media(max-width:700px){.header-logo img{width:30px;height:46px}}
/* Compact singer mark for the title lockup. */
.title-singer{width:58px;height:90px}
@media(max-width:700px){.title-singer{width:54px;height:84px}}
@media(max-width:400px){.title-singer{width:50px;height:78px}}
.header-brand{display:none;align-items:center;gap:8px;color:var(--ink);text-decoration:none;font:22px Georgia,serif;line-height:1}.header-brand img{display:block;width:36px;height:55px;object-fit:contain}.exercise-page header{height:100px}.exercise-page .header-brand{display:flex}.exercise-page .volume{margin-left:auto}
@media(max-width:700px){.exercise-page header{height:88px}.header-brand{font-size:19px}.header-brand img{width:30px;height:46px}}
/* Keep the title and exercise header marks visually consistent. */
.title-singer{width:66px;height:100px}
.header-brand{gap:3px}
@media(max-width:700px){.title-singer{width:60px;height:92px}}
@media(max-width:400px){.title-singer{width:56px;height:86px}}
