:root {
  color-scheme: dark;
  --ground: #190f0e;
  --accent: #ffc394;
  --print: #f1dbca;
  --soft: #be9e8c;
  --bronze: #78503c;
  --hairline: #5c3b2e;
  --micro: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 81% 26%, #341a13, var(--ground) 55%);
  color: var(--print);
  font: 400 16px/1.6 var(--sans);
}
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
.page { width: min(1320px, 100%); padding-inline: clamp(20px, 5vw, 80px); margin-inline: auto; }
.micro {
  font-family: var(--micro);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.mast {
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 70px;
  color: var(--soft);
}
.mast a { text-decoration: none; white-space: nowrap; }
.mast-mark { margin: 0 5px; color: var(--accent); }
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 27%);
  gap: 22px;
  align-items: end;
  padding: clamp(40px, 6vw, 85px) 0 34px;
}
.accession { margin: 0 0 10px; color: var(--soft); }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: #ef975a; border-radius: 50%; }
.slash { color: #b46d4c; margin-inline: .45em; }
h1, .notes h2 {
  margin: 0;
  color: var(--accent);
  font: 300 clamp(4rem, 9vw, 8rem)/.89 var(--serif);
  letter-spacing: -.055em;
}
h1 em { font-weight: 300; }
.intro-note {
  margin: 0 0 1px;
  color: var(--soft);
  max-width: 32ch;
  font-size: clamp(.9rem, 1.4vw, 1.08rem);
}
.exhibit {
  display: grid;
  grid-template-columns: minmax(250px, .88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(22px, 4vw, 50px);
  border: 1px solid var(--hairline);
  background: linear-gradient(120deg, #210f0c, #231211 44%, #3d1e13);
  box-shadow: 0 26px 75px -45px #0d0705;
}
figure { margin: 0; }
.instrument { display: flex; flex-direction: column; justify-content: space-between; }
.controls h2 { margin: 0 0 14px; color: var(--soft); }
.segmented { margin: 0; padding: 3px; border: 1px solid var(--bronze); display: inline-flex; gap: 3px; }
.segmented label { cursor: pointer; position: relative; }
.segmented span { display: block; padding: 8px 17px; font-size: .85rem; line-height: 1.3; }
.segmented input, .sr-only {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
}
.segmented input:checked + span { background: #f0b287; color: #24100b; }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.geometry { width: 100%; margin-top: 22px; }
.geometry svg { display: block; width: 100%; max-height: 340px; }
.geometry text { fill: #d5ac94; font: 11px var(--micro); letter-spacing: 1px; }
.geometry-caption, .projection-caption {
  color: var(--soft);
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.projection { min-width: 0; align-self: center; }
.projection-image { position: relative; background: #1b0d09; box-shadow: 0 4px 25px #150905; }
.projection-image img { display: block; width: 100%; height: auto; }
.projection-caption { margin-top: 12px; }
.raw-toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.raw-toggle input { accent-color: #f0b287; margin: 0; }
.bracket { position: absolute; width: 17px; height: 17px; border: solid #f5be92; border-width: 0; pointer-events: none; }
.top { top: -4px; border-top-width: 1px; }
.bottom { bottom: -4px; border-bottom-width: 1px; }
.left { left: -4px; border-left-width: 1px; }
.right { right: -4px; border-right-width: 1px; }
.measurements { display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0 0; }
.measurements div { padding: 3px 17px 0; border-left: 1px solid var(--bronze); }
.measurements dt { color: var(--soft); }
.measurements dd { color: var(--accent); margin: 3px 0 0; font: 300 clamp(1.75rem, 4vw, 3.5rem)/1.1 var(--serif); }
.notes {
  display: grid;
  grid-template-columns: minmax(190px, .68fr) minmax(0, 1.32fr);
  gap: clamp(22px, 5vw, 85px);
  margin-top: clamp(52px, 8vw, 102px);
  padding-top: 25px;
  border-top: 1px solid var(--hairline);
}
.notes-heading > p:first-child { color: var(--soft); margin: 0 0 14px; }
.notes h2 { font-size: clamp(2.45rem, 4.5vw, 4.7rem); }
.notes-heading > p { color: var(--soft); }
.notes-heading h2 + p { margin-top: 17px; }
.references { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: .83rem; }
.plate-set { display: grid; align-items: start; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plate-set figure { min-width: 0; }
.plate-art { aspect-ratio: 1; overflow: hidden; position: relative; background: #34231a; }
.plate-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plate-art.source img { width: 241%; max-width: none; height: auto; position: absolute; top: -28%; left: -67.5%; }
.plate-set figcaption { color: var(--soft); display: flex; gap: 9px; margin-top: 10px; }
.plate-set figcaption span { color: var(--print); }
footer {
  margin-top: 45px;
  min-height: 75px;
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  color: var(--soft);
  border-top: 1px solid var(--hairline);
}

@media (max-width: 760px) {
  .intro { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .intro-note { max-width: 40ch; }
  .exhibit { grid-template-columns: 1fr; gap: 21px; }
  .instrument { display: contents; }
  .geometry { grid-row: 3; max-width: 430px; margin: 0 auto; }
  .notes { grid-template-columns: 1fr; }
}
@media (max-width: 410px) {
  .micro { font-size: 9px; }
  .mast { min-height: 60px; }
  .measurements div { padding-inline: 8px; }
  .projection-caption { align-items: start; }
  .plate-set { gap: 7px; }
  .plate-set figcaption { gap: 4px; }
}
