:root {
    color-scheme: light;
    --ink: #1f2921;
    --leaf: #d4f775;
    --paper: #f6f5eb;
    --line: #c7cbbc;
    --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --mono: "IBM Plex Mono", "Courier New", monospace;
    font: 100%/1.5 var(--sans);
    background: var(--paper);
    color: var(--ink);
}
* { box-sizing: border-box; }
body, h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 4px solid #c75816; outline-offset: 4px; }
.wrap { width: min(calc(100% - 7rem), 79rem); margin-inline: auto; }
.skip { position: fixed; z-index: 10; left: 1rem; top: -6rem; padding: .65rem 1rem; background: white; color: black; }
.skip:focus { top: 1rem; }
.mast, footer { color: #f5f3e7; background: #202820; }
.mast-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.6rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; font: bold 1.27rem/1 var(--mono); letter-spacing: -.065em; text-decoration: none; white-space: nowrap; }
.brand img { margin-right: .6rem; border-radius: 3px; }
.brand span { color: var(--leaf); }
nav { display: flex; align-items: center; gap: 1.9rem; }
nav a, .footer-inner > a:last-child { font: bold .86rem/1.4 var(--mono); text-underline-offset: .28rem; }
nav a { text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.hero {
    background-color: #e8ecda;
    background-image: radial-gradient(#69775c33 .8px, transparent .9px);
    background-size: 7px 7px;
    border-bottom: 1px solid #939e84;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1rem,5vw,6rem); padding-block: clamp(3.8rem,6.4vw,7rem); }
.intro { position: relative; }
.eyebrow { display: flex; align-items: center; gap: .65rem; font: bold .82rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .105em; }
.rule { display: inline-block; flex: 0 0 1.9rem; height: 4px; background: currentColor; }
.intro h1 {
    font: 900 clamp(5.8rem,9.8vw,9.1rem)/.82 var(--sans);
    letter-spacing: -.091em;
    margin: 1.45rem 0 1.7rem -.045em;
}
.period { color: #61832a; }
.lede { max-width: 30rem; font-size: clamp(1.16rem,1.9vw,1.48rem); line-height: 1.4; letter-spacing: -.03em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.65rem; margin-top: 1.65rem; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; padding: .87rem 1.25rem; border: 2px solid var(--ink); border-radius: 3px; font-weight: 750; text-align: center; text-decoration: none; line-height: 1.25; }
.button.primary { background: var(--leaf); box-shadow: 3px 3px 0 var(--ink); }
.button.primary:hover { background: #e0ffa0; transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--ink); }
.play-icon { width: .8rem; height: .9rem; background: currentColor; clip-path: polygon(0 0,100% 50%,0 100%); }
.text-link { font-size: .94rem; font-weight: bold; text-underline-offset: 4px; }
.board-wrap { display: grid; justify-items: center; padding: .25rem .6rem .6rem; }
.board {
    width: min(100%,31rem); padding: clamp(.9rem,2vw,1.35rem); background: #414b40; color: #f6f3df;
    border: 2px solid #252e26; border-radius: .85rem;
    box-shadow: inset 1px 2px 0 #929983, inset -2px -3px 0 #242d24, 6px 8px 0 #263328,
                11px 16px 0 #52604f32; transform: rotate(1.6deg);
}
.board-top, .board-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.board-top { margin-bottom: .8rem; }
.board-top h2 { font: bold 1.25rem/1.15 var(--mono); letter-spacing: -.07em; }
.board-top > span { font: .76rem/1.4 var(--mono); color: #dce2d1; }
.pads { display: grid; grid-template-columns: 1fr 1fr; gap: .63rem; background: #283127; border: 1px solid #20271f; border-radius: .36rem; padding: .6rem; }
.pad {
    position: relative; cursor: pointer; color: #242a21; overflow: hidden; background: #eae8d9; padding: 0; border: 0; border-radius: 3px;
    box-shadow: 0 2px 0 #151b14, inset 0 1px #fcfbf1; display: grid; width: 100%; text-align: left;
}
.pad:hover, .pad:focus-visible { box-shadow: 0 0 0 2px var(--leaf); z-index: 1; }
.pad:active, .pad.playing { transform: translateY(1px); box-shadow: 0 0 0 2px var(--leaf); }
.pad img { display: block; width: 100%; height: clamp(5rem,8.4vw,7.25rem); object-fit: contain; mix-blend-mode: multiply; background: #fff; }
.label { display: flex; flex-direction: column; padding: .4rem .65rem .5rem; border-top: 1px solid #a4a68f; background: #e1e3c9; }
.pad:nth-child(2) .label { background: #e9d0af; }
.pad:nth-child(3) .label { background: #cddbc7; }
.pad:nth-child(4) .label { background: #d8d2e3; }
.label small { font: bold .64rem/1.1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.label strong { font-size: 1.05rem; line-height: 1.35; letter-spacing: -.03em; }
.board-foot { margin-top: .8rem; }
.board-foot > span:last-child { font: .74rem/1.35 var(--mono); }
.meter { width: 4.5rem; height: .6rem; background: repeating-linear-gradient(90deg,#a0c067 0 5px,transparent 5px 7px); opacity: .75; }
.board.playing .meter { background: repeating-linear-gradient(90deg,var(--leaf) 0 5px,transparent 5px 7px); opacity: 1; }
#audio-error { margin-top: .5rem; font-size: .9rem; }
.editor-section { padding-block: clamp(3.8rem,7vw,7rem); }
.editor-inner { display: grid; align-items: center; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem,5.5vw,6rem); }
.editor-shot { padding: clamp(.7rem,2.1vw,1.85rem); background: #ccd2ba; border: 1px solid #abb29d; border-radius: 3px; }
.editor-shot a, .editor-shot img { display: block; }
.editor-shot img { width: 100%; height: auto; box-shadow: 2px 4px 8px #313d3048; }
.editor-copy > h2, .downloads h2 { margin: .8rem 0 1.1rem; font-size: clamp(2.65rem,4.8vw,4.6rem); line-height: .95; letter-spacing: -.074em; }
.features > div { padding-block: .8rem; border-top: 1px solid var(--line); }
.features dt { font-size: 1.15rem; font-weight: 750; letter-spacing: -.025em; }
.features dd { margin-top: .18rem; color: #475046; }
.downloads { padding-block: clamp(2.7rem,5.5vw,5.5rem); background: #e4e8d7; border-block: 1px solid #b3bca6; }
.download-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: start; }
.download-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #9ca68e; }
.download-list a { display: flex; align-items: center; justify-content: space-between; gap: .8rem; text-decoration: none; padding: 1rem .3rem; border-bottom: 1px solid #9ca68e; }
.download-list a:hover strong { text-decoration: underline; }
.download-list strong { font-size: 1.17rem; }
.download-list span { font: .82rem var(--mono); }
.footer-inner { min-height: 5.5rem; }
.try-page { background: #e8ecdf; }
.player-main { width: min(calc(100% - 3rem), 106rem); margin: 1.4rem auto; }
.player-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.player-heading h1 { margin-bottom: .3rem; font-size: clamp(2rem,3.2vw,3rem); line-height: 1.1; letter-spacing: -.065em; }
.player-heading p { font-size: 1rem; }
.plain { background: var(--paper); font-size: .87rem; flex-shrink: 0; }
.plain:hover { background: var(--leaf); }
.instrument { display: block; width: 100%; height: clamp(640px,calc(100dvh - 12rem),1200px); border: 2px solid var(--ink); background: #d9ddce; }
.narrow-hint { display: none; }
@media (max-width: 960px) {
    .wrap { width: calc(100% - 3rem); }
    .hero-inner { gap: 1.5rem; }
    .intro h1 { font-size: clamp(4.8rem,10vw,6.2rem); }
    .board-wrap { padding-left: 0; }
    .narrow-hint { display: block; font-size: .9rem; margin-bottom: .65rem; }
}
@media (max-width: 680px) {
    .wrap, .player-main { width: calc(100% - 2.25rem); }
    .mast-inner { min-height: 4rem; }
    .brand { font-size: 1.12rem; }
    .brand img { width: 26px; height: 26px; margin-right: .4rem; }
    nav { gap: 1rem; }
    nav a { font-size: .78rem; }
    .hero-inner, .editor-inner, .download-inner { grid-template-columns: 1fr; }
    .hero-inner { gap: 2rem; padding-block: 2.6rem 2.8rem; }
    .intro h1 { font-size: clamp(4.5rem,16vw,6.7rem); line-height: .88; margin: .95rem 0 1.15rem; }
    .intro h1 br { display: none; }
    .intro h1 br::after { content: " "; }
    .intro h1 br + * { margin-left: 0; }
    .lede { font-size: 1.15rem; }
    .actions { gap: 1.2rem; margin-top: 1.25rem; }
    .board-wrap { padding: 0 .45rem .5rem .2rem; }
    .board { transform: rotate(1deg); }
    .pad img { height: 5.7rem; }
    .editor-section { padding-block: 2.8rem; }
    .editor-inner { gap: 1.6rem; }
    .editor-shot { order: 2; }
    .editor-copy > h2 br { display: none; }
    .downloads h2 { margin-bottom: 0; }
    .download-inner { gap: 1.5rem; }
    .download-list a { padding-inline: 0; }
    .footer-inner { min-height: 4.4rem; }
    .player-heading { align-items: flex-start; flex-direction: column; gap: .65rem; }
    .player-heading .button { padding: .6rem .8rem; }
    .instrument { height: 82dvh; min-height: 510px; }
}
@media (max-width: 370px) {
    .mast-inner { gap: .6rem; }
    nav { gap: .65rem; }
    .text-link { font-size: .88rem; }
    .button.primary { padding-inline: .85rem; }
}
