:root {
  color-scheme: light;
  --paper: #f7f4ea;
  --ink: #242b28;
  --muted: #575a4e;
  --pine: #2d584f;
  --red: #943a26;
  --rule: #b8b5a1;
  font-family: "STIX Two Text", "Iowan Old Style", Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 73rem; padding: 0 clamp(1.25rem, 5vw, 4rem); margin: auto; }
button, a { font: inherit; color: inherit; }
button { cursor: pointer; }
a { text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
.mast, footer { color: var(--muted); }
.mast { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  border-bottom: 1px solid var(--rule); padding: 1.65rem 0 1rem; }
.mast > span { font-size: 1.22rem; font-style: italic; color: var(--ink); }
nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
nav a { font-size: 1rem; }
.cover { display: grid; grid-template-columns: .91fr 1.09fr; align-items: center;
  gap: 2%; padding: clamp(1.4rem, 3.2vw, 2.8rem) 0; }
h1, h2, p, figure { margin: 0; }
h1 { font-size: clamp(3.8rem, 7vw, 6.45rem); font-weight: 400; letter-spacing: -.055em; line-height: .99; }
h1 em { display: block; font-weight: 400; }
.title-block p { margin-top: 1.25rem; font-size: clamp(1.12rem, 2.3vw, 1.43rem); }
.cover img { display: block; justify-self: end; width: 100%; height: auto; }
.instrument { border-top: 1px solid var(--rule); padding-top: clamp(1.4rem, 2.9vw, 2.4rem); }
.desk { display: grid; grid-template-columns: 1fr minmax(14rem, 19rem); gap: 2.25rem; align-items: center; }
h2 { color: var(--pine); font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-style: italic; font-weight: 400; line-height: 1.12; }
.bow h2, .both h2 { color: var(--red); }
.directions p { max-width: 33rem; margin-top: .48rem; font-size: 1.15rem; line-height: 1.45; }
.key-bed { display: grid; justify-items: center; align-items: center; gap: .65rem; }
.music-key { width: 100%; min-height: 3.9rem; display: flex; justify-content: center; align-items: center; gap: 1.25rem;
  padding: .65rem 1rem; border: 1px solid #29463f; border-radius: .36rem; color: #fffaf0;
  background: var(--pine); box-shadow: 0 3px 0 #243e37; font-size: 1.45rem; line-height: 1.2;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.bow .music-key { background: var(--red); border-color: #813724; box-shadow: 0 3px 0 #642d20; }
.both .music-key { background: var(--ink); border-color: var(--ink); box-shadow: 0 3px 0 #101912; }
.music-key.down, .music-key:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.music-key:disabled { cursor: default; opacity: .6; }
kbd { padding: .12rem .5rem .17rem; border: 1px solid #ffffff77; border-radius: .2rem;
  font: .81rem/1.25 ui-monospace, monospace; }
#count { font-size: .97rem; color: var(--muted); font-variant-numeric: tabular-nums; }
figure { margin-top: clamp(1rem, 2.3vw, 1.85rem); }
#staff { display: block; width: 100%; height: 10.8rem; }
figcaption { color: var(--muted); font-style: italic; font-size: 1.05rem; line-height: 1.45; margin-top: .35rem; }
#sill { display: block; max-width: 43rem; color: var(--ink); font-size: 1.15rem; margin-bottom: .4rem; }
.actions { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.actions:has(button:not([hidden])) { margin-top: .6rem; }
.actions button { background: transparent; border: none; padding: .5rem .05rem; text-decoration: underline;
  text-underline-offset: .25em; color: var(--ink); font-size: 1rem; }
footer { margin-top: 1.7rem; padding: .9rem 0 1.5rem; border-top: 1px solid var(--rule);
  font-size: .88rem; letter-spacing: .035em; }
footer span { padding: 0 .3rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 641px) and (max-height: 850px) {
  .mast { padding: 1rem 0 .7rem; }
  .cover { padding: 1rem 0; }
  .cover img { width: auto; max-width: 100%; max-height: clamp(9rem, 27vh, 14rem); }
  h1 { font-size: clamp(3.6rem, 9vh, 5rem); }
  .title-block p { margin-top: .65rem; }
  .instrument { padding-top: 1.3rem; }
  figure { margin-top: 1.1rem; }
  #staff { height: 9.4rem; }
  footer { margin-top: 1rem; }
}
@media (max-width: 640px) {
  .mast { padding-top: 1.05rem; padding-bottom: .75rem; }
  .mast > span { font-size: 1.05rem; }
  .cover { grid-template-columns: 1fr .94fr; gap: .4rem; padding: 1.55rem 0; }
  h1 { font-size: clamp(2.6rem, 9.3vw, 3.8rem); }
  .title-block p { margin-top: .65rem; font-size: 1.03rem; line-height: 1.3; }
  .desk { grid-template-columns: 1fr; gap: 1rem; }
  .directions p { font-size: 1.08rem; }
  .key-bed { grid-template-columns: minmax(9.8rem, 15rem) 1fr; gap: .8rem; }
  .music-key { min-height: 3.4rem; gap: .65rem; font-size: 1.25rem; }
  #staff { height: 9.8rem; }
  figcaption { font-size: 1rem; }
  footer { margin-top: 1.25rem; }
}
@media (max-width: 355px) {
  main { padding: 0 .85rem; }
  .key-bed { grid-template-columns: 1fr; }
}
@media (pointer: coarse) { kbd { display: none; } }
