:root {
  color-scheme: light;
  --ink: #162b37;
  --muted: #4d5e62;
  --paper: #f6f1e5;
  --line: #c5c0b1;
  --rust: #8c3e2c;
  --mono: ui-monospace, 'Liberation Mono', monospace;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font: 1rem/1.5 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .25em; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
.skip { position: absolute; z-index: 2; inset: 10px auto auto 10px; padding: .7em; background: var(--paper); transform: translateY(-160%); }
.skip:focus { transform: none; }
.mast, main, footer { width: min(1100px, calc(100% - 3rem)); margin-inline: auto; }
.mast { display: flex; align-items: center; justify-content: space-between; gap: .8rem; border-bottom: 1px solid var(--line); padding: 1rem 0; }
.brand { font-family: Georgia, serif; font-weight: bold; font-size: 1.25rem; text-decoration: none; }
.brand-mark { margin-right: .2em; color: var(--rust); }
nav { display: flex; gap: clamp(.6rem, 3vw, 2rem); font: .78rem var(--mono); }
nav a:not(:hover) { text-decoration: none; }
.hero { padding: clamp(2.3rem, 5vw, 4.3rem) 0 clamp(1.8rem, 4vw, 3rem); }
.kicker, .plate-label, .plate-foot, legend, footer { font: .72rem/1.5 var(--mono); letter-spacing: .105em; text-transform: uppercase; }
.kicker { margin: 0; color: var(--rust); }
.kicker span { display: inline-block; width: .65em; height: .65em; margin-right: .4em; border-radius: 50%; background: currentColor; }
.hero h1 { margin: .12em 0 .18em; font: 400 clamp(3.05rem, 8.8vw, 7.2rem)/.89 Georgia, serif; letter-spacing: -.064em; }
.hero em { color: var(--rust); font-weight: normal; }
.dek { max-width: 34em; margin: 0; font-size: clamp(1rem, 2vw, 1.21rem); color: var(--muted); }
.exhibit { display: grid; grid-template-columns: minmax(0, 1.43fr) minmax(0, 1fr); border: 1px solid var(--ink); }
.plate { background: #102632; color: #d6e4df; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; }
.plate-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .1rem .6rem; }
.diagram { width: 100%; height: auto; display: block; margin: .7rem 0; border-block: 1px solid #45646e; }
.plate-foot { color: #a8c5c2; margin: 0; }
.component { transform-box: fill-box; transform-origin: center; }
.component.is-out > * { fill: none; stroke: #9bb4b5; stroke-width: 1.5; stroke-dasharray: 4 6; opacity: .55; }
.component.hit { animation: shake .34s ease-out; }
#part-glass.hit { animation-name: glint; }
#part-pin.hit { animation-name: knock; }
@keyframes shake { 22% { transform: scaleX(.87); } 48% { transform: scaleX(1.07); } 72% { transform: scaleX(.96); } }
@keyframes glint { 22% { filter: brightness(1.55); transform: rotate(-3deg); } 65% { transform: rotate(2deg); } }
@keyframes knock { 30% { transform: translateX(-14px); filter: brightness(1.45); } 65% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .component.hit { animation: none; } }
.controls { padding: clamp(1.2rem, 3vw, 2.2rem); background: #fffaf0; }
h2 { margin: .14em 0; font: 400 clamp(1.8rem, 4vw, 2.8rem)/1.02 Georgia, serif; letter-spacing: -.04em; }
.controls > p:not(.kicker), .notes p:not(.kicker) { color: var(--muted); margin: .58rem 0 1rem; max-width: 48ch; }
fieldset { padding: 0; margin: 0; border: 0; min-inline-size: 0; }
legend { padding: 0; margin: 0 0 .45rem; }
.part-options, .strike-row { display: flex; gap: .42rem; flex-wrap: wrap; align-items: center; }
.part-options label { display: flex; align-items: center; gap: .3rem; cursor: pointer; border: 1px solid var(--line); padding: .42rem; font-size: .85rem; }
.part-options label:has(:checked) { border-color: #71867e; background: #e8ece0; }
label b { color: var(--rust); font: .68rem var(--mono); }
input { accent-color: #305e55; margin: 0; }
.strike-row { margin-top: .9rem; gap: 1rem; }
.sound { display: inline-flex; align-items: center; gap: .4em; cursor: pointer; font-size: .85rem; }
button { border: 1px solid var(--ink); background: var(--ink); color: #fffaf0; cursor: pointer; padding: .5em .8em; font: 600 .95rem system-ui, sans-serif; }
button span { margin-left: .45em; color: #d5eb78; }
button:enabled:hover { background: #274653; }
button:disabled { opacity: .6; cursor: not-allowed; }
.controls #status { margin-bottom: 0; min-block-size: 3em; font-size: .86rem; }
.notes { display: grid; grid-template-columns: clamp(4rem, 14vw, 7.5rem) 1fr; align-items: center; gap: clamp(.8rem, 3vw, 2rem); border-block: 1px solid var(--line); padding: 1.2rem 0; margin-top: clamp(1.8rem, 5vw, 3.7rem); }
.notes img { display: block; width: 100%; height: auto; }
.notes h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.notes p:not(.kicker) { margin-bottom: 0; }
footer { color: var(--muted); padding: 1.25rem 0 1.8rem; }
footer span { color: var(--rust); }
@media (max-width: 760px) { .exhibit { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .mast, main, footer { width: calc(100% - 1.5rem); }
  .brand { font-size: 1.05rem; }
  .hero-break { display: none; }
  .plate { padding: .65rem; }
}
