/* Livie G: shared tokens and primitives. Layout idea: a white page built from seven flat note colors and tall "keys";
   color belongs to the notes, text is always ink. Single light theme by choice. */
:root{
  color-scheme: light;
  --ink:#121212; --paper:#FFFFFF; --wash:#F6F5F1; --rule:#121212; --mute:#5E5C57; --hair:#DAD7CF;
  --c:#E03030; --d:#F2801E; --e:#F5C518; --f:#3FA34D; --g:#049F82; --a:#2D6CDF; --b:#8650D6; --c2:#F4B7B7;
  --display:"Outfit","Avenir Next","Segoe UI",system-ui,sans-serif;
  --text:"DM Sans","Helvetica Neue","Segoe UI",system-ui,sans-serif;
  --wrap:1240px; --gut:clamp(20px,4.5vw,64px);
  --s1:8px; --s2:16px; --s3:24px; --s4:40px; --s5:64px; --s6:104px; --s7:160px;
  --ease:cubic-bezier(.2,.7,.2,1);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} }
body{margin:0; background:var(--paper); color:var(--ink); font-family:var(--text); font-size:18px; line-height:1.55; -webkit-font-smoothing:antialiased; overflow-x:hidden}
img{max-width:100%; height:auto; display:block}
h1,h2,h3,h4{font-family:var(--display); font-weight:800; letter-spacing:-.02em; line-height:.98; margin:0; text-wrap:balance}
p{margin:0; text-wrap:pretty}
a{color:inherit}
button{font:inherit; color:inherit}
/* two-tone ring: ink outline over a white halo, so it shows on white, on every note colour and on ink */
:focus-visible{outline:3px solid var(--ink); outline-offset:2px; box-shadow:0 0 0 2px #fff}
.wrap{max-width:var(--wrap); margin-inline:auto; padding-inline:var(--gut)}
.sr-only{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
/* one button shape */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:52px; padding:0 24px; border-radius:6px; border:2px solid var(--ink);
  background:var(--ink); color:#fff; font-family:var(--text); font-weight:700; font-size:17px; text-decoration:none; cursor:pointer; transition:transform .18s var(--ease), background .18s, color .18s}
.btn:hover{background:#2A2A2A}
.btn:active{transform:translateY(2px)}
.btn--ghost{background:transparent; color:var(--ink)}
.btn--ghost:hover{background:var(--ink); color:#fff}
.btn--light{background:#fff; color:var(--ink); border-color:#fff}
.btn--light:hover{background:var(--wash)}
.btn--sm{min-height:44px; padding:0 16px; font-size:15px}
.link{font-weight:700; text-underline-offset:4px; text-decoration-thickness:2px}
/* note colors: put data-note="C".."B" (or "C2" for high C) on an element and use var(--note) / var(--on-note).
   Text on a note colour is at least 4.5:1: white on C 4.53, A 4.86, B 5.08; ink on D 7.03, E 11.49, F 5.85, G 5.61, C2 10.98. */
[data-note="C"]{--note:var(--c); --on-note:#fff}
[data-note="D"]{--note:var(--d); --on-note:var(--ink)}
[data-note="E"]{--note:var(--e); --on-note:var(--ink)}
[data-note="F"]{--note:var(--f); --on-note:var(--ink)}
[data-note="G"]{--note:var(--g); --on-note:var(--ink)}
[data-note="A"]{--note:var(--a); --on-note:#fff}
[data-note="B"]{--note:var(--b); --on-note:#fff}
[data-note="C2"]{--note:var(--c2); --on-note:var(--ink)}
.sq{display:inline-grid; place-items:center; width:40px; height:40px; background:var(--note); color:var(--on-note); font-family:var(--display); font-weight:800; font-size:20px; flex:0 0 auto}
.rule{border:0; border-top:2px solid var(--rule); margin:0}
.small{font-size:15px; color:var(--mute)}
