:root { color-scheme: light; --ink: #182824; --paper: #f5f1e7; --console: #1c3731; --amber: #f1d887; --line: #c7c9b8; font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.top, main { max-width: 54rem; margin: auto; padding: 0 clamp(1rem, 4vw, 3rem); }
.top { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; padding-top: 1.25rem; padding-bottom: 1rem; font-size: .84rem; }
a { color: inherit; text-underline-offset: .18em; }
.top a:first-child { font-weight: 700; text-decoration: none; }
main { padding-bottom: 4rem; }
h1 { margin: 2.2rem 0 .5rem; font: 500 clamp(2.55rem, 8vw, 4.8rem)/1.05 "Instrument Serif", Georgia, serif; letter-spacing: -.055em; }
h2 { margin: 0 0 1rem; font-size: clamp(1.15rem, 3vw, 1.43rem); font-weight: 600; }
.intro { font-size: 1.1rem; line-height: 1.5; max-width: 53ch; margin: 0 0 1.55rem; }
.console, .audio { padding: clamp(1rem, 3.5vw, 1.8rem); border-radius: 1rem; }
.console { background: var(--console); color: #fff9e9; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.receivers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.receivers label { position: relative; cursor: pointer; }
.receivers input, .sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.card { border: 1px solid #879b85; border-radius: .7rem; padding: .8rem; display: grid; grid-template-rows: 2rem auto auto auto; row-gap: .2rem; height: 100%; }
.card span:not(.mouth) { font-weight: 600; }
.card strong { font: 500 clamp(1.4rem, 4.7vw, 2.35rem)/1.1 "Instrument Serif", Georgia, serif; font-variant-numeric: tabular-nums; }
.card small { color: #dcdfcb; font-size: .8rem; }
.mouth { border: 2px solid currentColor; align-self: center; justify-self: start; }
.square { width: 1.1rem; height: 1.1rem; }
.horizontal { width: 2.2rem; height: .55rem; }
.vertical { width: .55rem; height: 2.2rem; }
.receivers input:checked + .card { border-color: var(--amber); background: var(--amber); color: #29352a; }
.receivers input:checked + .card small { color: #384530; }
button, select { font: inherit; min-height: 2.65rem; }
button, select, input[type=file]::file-selector-button { border-radius: .44rem; border: 1px solid currentColor; color: inherit; background: transparent; padding: .45rem .75rem; }
button, select, input[type=file]::file-selector-button { cursor: pointer; }
button:disabled { opacity: .52; cursor: default; }
button:not(:disabled):hover, select:hover { text-decoration: underline; }
:focus-visible, .receivers input:focus-visible + .card { outline: 3px solid #dd8841; outline-offset: 3px; }
.controls { margin-top: 1.5rem; }
.angle-label, .axis-labels { display: flex; justify-content: space-between; }
.angle-label { font-weight: 600; }
#angle-value { font-variant-numeric: tabular-nums; }
#angle { width: 100%; accent-color: var(--amber); min-height: 2rem; margin: 0; }
.axis-labels { font-size: .8rem; color: #dcdfcb; }
.tools, .source { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.tools { margin: .9rem 0 1.15rem; }
.tools button { font-size: .9rem; }
.bearing { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
select { color: #182824; background: #f5f1e7; }
.relation { margin: 1rem 0 0; line-height: 1.4; font-size: .95rem; }
.audio { margin: 1rem 0; background: #e8e7d9; border: 1px solid var(--line); }
.source { gap: .4rem 1.2rem; }
.source label { min-height: 2.6rem; display: flex; align-items: center; gap: .4rem; }
.source input { accent-color: var(--console); }
#file-controls label { display: block; margin: .7rem 0 .4rem; }
#clip { width: 100%; min-width: 0; font: inherit; }
input[type=file]::file-selector-button { font: inherit; margin-right: .6rem; }
.hint { font-size: .92rem; line-height: 1.45; }
#play { color: white; background: var(--console); }
#audio-status { display: inline-block; margin: .5rem; line-height: 1.45; }
details { border-top: 1px solid var(--line); padding-top: .9rem; }
summary { cursor: pointer; font-weight: 600; }
details p { max-width: 65ch; line-height: 1.55; }
@media (max-width: 425px) {
  .receivers { gap: .3rem; }
  .card { padding: .55rem .35rem; }
  .card span:not(.mouth) { font-size: .84rem; }
  .card small { font-size: .72rem; }
  .top { font-size: .76rem; }
  h1 { margin-top: 1.4rem; }
}
