:root {
  --paper: #f7f3e9;
  --panel: #fffcf5;
  --type: #302c26;
  --muted: #60594e;
  --rule: #c4b9a6;
  --dye: #8e3429;
  --wash: #f1dfd0;
  --contrast: #fffaf3;
}
body { background: var(--paper); color: var(--type); font-family: var(--font-sans); }
main { max-width: 75rem; margin: auto; padding: clamp(.85rem, 3.8vw, 3.3rem); }
.mast { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .6rem 2rem; padding: .4rem 0 1.45rem; }
.overline, legend { font-size: .875rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--dye); }
.overline { margin: 0 0 .35rem; }
h1, h2, figcaption, summary { font-family: var(--font-reading); font-weight: 500; }
h1 { font-size: clamp(2.55rem, 7vw, 6.2rem); letter-spacing: -.055em; line-height: 1; margin: 0; }
.intro { font-size: 1.04rem; max-width: 34ch; margin: 0; line-height: 1.48; }
.exhibit { background: var(--panel); border: 1px solid var(--rule); }
.frame { position: relative; width: 100%; aspect-ratio: 5/3; background: var(--paper); }
.frame > * { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
[hidden], .frame > [hidden] { display: none !important; }
fieldset { min-inline-size: 0; margin: .95rem 0 0; border: 0; padding: 0 clamp(.75rem, 2.7vw, 2rem); }
legend { float: left; padding: .6rem 1rem .6rem 0; }
.viewpoints { display: flex; gap: .18rem; flex-wrap: wrap; }
button { min-height: 2.75rem; max-width: 100%; padding: .52rem .75rem; border: 1px solid var(--rule); color: var(--type); background: var(--panel); border-radius: .2rem; font-size: .9375rem; line-height: 1.3; overflow-wrap: anywhere; cursor: pointer; }
button:hover, summary:hover { background: var(--wash); }
button[aria-pressed="true"], #work { background: var(--dye); color: var(--contrast); border-color: var(--dye); }
:is(button, a, summary):focus-visible { outline: 3px solid var(--dye); outline-offset: 3px; }
.station, .readout, footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem 1.35rem; }
.station { clear: both; padding: 1rem 0; }
.station h2 { font-size: 1.65rem; margin-bottom: .17rem; line-height: 1.15; }
.station p, .readout p { margin: 0; line-height: 1.45; }
.readout { border-top: 1px solid var(--rule); padding: .55rem clamp(.75rem, 2.7vw, 2rem); color: var(--muted); }
#reset { text-decoration: underline; text-underline-offset: .2em; background: none; border-color: transparent; padding-inline: 0; }
.plates { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.8rem, 2.7vw, 2rem); margin: clamp(1.4rem, 3.6vw, 3rem) 0; }
a { color: var(--dye); }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; }
figcaption { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--rule); font-size: 1.35rem; }
.plates a { color: var(--type); text-decoration: none; }
.native { border-block: 1px solid var(--rule); }
.native summary { cursor: pointer; padding-block: .8rem; font-size: 1.48rem; }
.native p { max-width: 60ch; }
.native .spatial-visual { width: min(100%, 32rem); aspect-ratio: 5/3; margin-bottom: .9rem; justify-self: start; }
footer { padding: .85rem 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 40rem) {
  .mast { padding-bottom: .85rem; }
  .intro { max-width: 48ch; }
  legend { float: none; }
  .plates { grid-template-columns: 1fr; }
}
