:root {
  color-scheme: light;
  --paper: #f4f1e8;
  --ink: #172e44;
  --muted: #495e6c;
  --line: #bcc3bd;
  --blue: #164d80;
  --night: #102b4b;
  --serif: Fraunces, Georgia, serif;
  --sans: Inter, sans-serif;
  --mono: ui-monospace, 'SF Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 0.95rem/1.6 var(--sans);
}
a { color: var(--blue); text-underline-offset: 0.24em; }
button, input { font: inherit; }
button:not(:disabled), input:not(:disabled) { cursor: pointer; }
figure, p { margin: 0; }
.wrap { width: min(100% - 96px, 1300px); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.eyebrow, .index-note, .readout, .proof-dose {
  font: 500 0.69rem/1.4 var(--mono);
  letter-spacing: 0.095em;
  text-transform: uppercase;
}
.mast {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.79rem;
}
.mast a { min-height: 44px; display: inline-flex; align-items: center; gap: 0.35em; }
.index-note { color: var(--muted); text-align: right; }
.index-note span { margin-inline: 0.38em; }
.introduction {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: end;
  gap: 3rem;
  margin: 38px 0 34px;
}
.introduction .eyebrow { color: var(--blue); }
.sun-dot {
  display: inline-block;
  width: 0.62rem;
  aspect-ratio: 1;
  margin-right: 0.38rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: #477eb2;
  vertical-align: -0.04em;
}
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); }
h1 {
  margin-top: 0.06em;
  font-size: clamp(4rem, 8vw, 7.8rem);
  line-height: 0.98;
  letter-spacing: -0.072em;
}
h1 em, h2 em { color: var(--blue); font-weight: inherit; }
.intro-note {
  max-width: 25rem;
  margin-bottom: 0.12rem;
  padding-left: 1.25rem;
  border-left: 1px solid #7290a2;
  color: var(--muted);
  font: 400 clamp(1.05rem, 1.65vw, 1.35rem)/1.42 var(--serif);
}
.darkroom {
  display: grid;
  grid-template-columns: 1.64fr 1fr;
  align-items: start;
  gap: clamp(1.9rem, 4.6vw, 5.2rem);
}
.exhibit { min-width: 0; }
.wall {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  padding: clamp(0.75rem, 2.2vw, 1.45rem);
  color: #f6f4e8;
  background: radial-gradient(ellipse at 40% 37%, #355777 0, #203f5d 48%, #142b45 98%);
  box-shadow: inset 0 0 0 1px #122d49;
}
.wall::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: repeating-linear-gradient(101deg, transparent 0 3px, #a6c2df0b 3px 4px);
  opacity: 0.53;
  pointer-events: none;
}
.wall-top, .wall-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.wall-top { min-height: 44px; }
.wall-bottom { padding-block: 0.4rem 0.25rem; }
.wall-top .eyebrow, .wall-bottom { color: #e1e8e8; }
.views {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.views button {
  padding: 0.4rem 0.65rem;
  min-height: 44px;
  border: 1px solid #a9c3df5c;
  color: #fffef7;
  background: transparent;
  font-size: 0.72rem;
  line-height: 1.1;
}
.views button[aria-pressed='true'] { color: #153451; background: #f4f2e7; border-color: #f4f2e7; }
.views button:hover:not([aria-pressed='true']) { background: #b3d4f22a; }
.mat {
  position: relative;
  width: min(100%, 380px);
  margin: 19px auto 23px;
  aspect-ratio: 745 / 1040;
  background: #f7f6e8;
  box-shadow: 2px 4px 6px #101e33b3, 14px 20px 40px -12px #071426d9;
  transform: rotate(-1.1deg);
}
.mat > * {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mat #negative {
  position: absolute;
  inset: 2.7885% 3.2215%;
  width: 93.557%;
  height: 94.423%;
  box-shadow: 0 0 0 1px #8093a2;
}
.plate-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.3rem 1rem;
  flex-wrap: wrap;
  padding-top: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.plate-caption a { min-height: 44px; display: inline-flex; align-items: center; gap: 0.35em; }
.workbench { min-width: 0; padding-top: 0.8rem; }
.bench-index { color: var(--blue); }
.workbench h2, .notes h2 {
  margin: 0.46rem 0 0.62rem;
  font-size: clamp(2.2rem, 3.55vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.052em;
}
.bench-intro { color: var(--muted); max-width: 31rem; }
.controls {
  padding: 0;
  margin: 1.35rem 0 0;
  min-inline-size: 0;
  border: 0;
}
.control-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}
.control-heading label { font-weight: 600; }
.readout { color: var(--blue); white-space: nowrap; }
#exposure-number { font-size: 1.38rem; letter-spacing: -0.08em; font-variant-numeric: tabular-nums; }
.readout abbr { text-decoration: none; }
#exposure {
  --range-position: 23.333%;
  appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
}
#exposure::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, #245884 var(--range-position), #a3afb7 var(--range-position));
}
#exposure::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, #245884 var(--range-position), #a3afb7 var(--range-position));
}
#exposure::-webkit-slider-thumb {
  appearance: none;
  width: 21px;
  height: 21px;
  margin-top: -8.5px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  outline: 1px solid var(--blue);
  background: var(--blue);
}
#exposure::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  outline: 1px solid var(--blue);
  background: var(--blue);
}
.range-scale { display: flex; justify-content: space-between; gap: 0.5rem; color: var(--muted); }
.mask-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.15rem;
  min-height: 52px;
  padding: 0.48rem 0.64rem;
  border: 1px solid #a5b4bf;
  background: #e9ece7;
  cursor: pointer;
  color: var(--ink);
  line-height: 1.3;
}
.mask-option:has(:checked) { border-color: var(--blue); background: #dbe6ed; }
.mask-option:has(:disabled) { cursor: default; }
.mask-option input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: var(--blue); }
.mask-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 29px;
  aspect-ratio: 1;
  border: 1px solid #507493;
  background: repeating-linear-gradient(45deg, transparent 0 3px, #a4bcc8 3px 4px);
}
.mask-icon i { width: 20px; aspect-ratio: 1; border-radius: 50%; background: #e9ede3ca; border: 1px solid #507493; }
.mask-option strong, .mask-option small { display: block; }
.mask-option strong { font-size: 0.83rem; font-weight: 600; }
.mask-option small { margin-top: 0.19rem; color: var(--muted); font-size: 0.75rem; }
.static-note, #interactive-note { color: var(--muted); margin-top: 0.5rem; }
.contact { margin-top: 1.45rem; }
.contact-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  margin-bottom: 0.65rem;
}
.contact h3, .response h3 { font-weight: 600; font-size: 0.92rem; }
.contact-heading .eyebrow { text-align: right; color: var(--muted); }
.proofs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.36rem, 1vw, 0.75rem);
}
.proof {
  min-width: 0;
  display: grid;
  justify-items: center;
  padding: 0.48rem 0.31rem;
  border: 1px solid #b5bfbe;
  color: var(--ink);
  background: transparent;
  line-height: 1.28;
}
.proof img {
  width: 100%;
  height: auto;
  max-width: 94px;
  box-shadow: 1px 2px 4px #152d4542;
}
.proof[aria-pressed='true'] { border-color: #205587; box-shadow: inset 0 -2px #205587; background: #e0e8e9; }
.proof:hover:not(:disabled) { border-color: var(--blue); }
.proof-label { margin-top: 0.44rem; font-size: 0.8rem; font-weight: 600; }
.proof-dose { margin-top: 0.18rem; color: var(--muted); letter-spacing: 0.025em; }
.proof-note { margin-top: 0.6rem; color: var(--muted); font-size: 0.78rem; }
.notes {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 9vw, 9rem);
  padding: 2.4rem 0 3.4rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.notes .eyebrow { color: var(--blue); }
.notes p:not(.eyebrow) { max-width: 34rem; color: var(--muted); margin-top: 0.7rem; }
.note-links { display: flex; gap: 0.35rem 1.25rem; flex-wrap: wrap; margin-top: 0.9rem; font-size: 0.81rem; }
.response {
  padding: 1.2rem 1.4rem;
  border: 1px solid #a2b7c3;
  background: #e5ebea;
  align-self: start;
}
.response p { font-size: 0.81rem; }
#dose-chart { display: block; width: 100%; height: auto; margin-top: 0.35rem; overflow: visible; }
#dose-chart text { font: 9px var(--mono); fill: #40566a; }
.chart-grid { fill: none; stroke: #aebdc3; stroke-width: 0.75; }
#curve { fill: none; stroke: #236297; stroke-width: 2; }
#curve-guide { stroke: #3f6c8d; stroke-width: 1; stroke-dasharray: 3 3; }
#curve-dot { fill: #17568e; }
#mask-dot { fill: #e5ebea; stroke: #17568e; stroke-width: 1.5; }
.chart-legend { min-height: 1.7em; color: var(--muted); font-size: 0.71rem; }
.chart-legend span { margin-left: 0.72rem; }
.negative-download { display: inline-flex; min-height: 44px; align-items: center; gap: 0.45rem; margin-top: 0.45rem; font-size: 0.85rem; font-weight: 600; }
.notes .download-note { margin-top: 0; font-size: 0.71rem; }
footer.mast { border-top: 1px solid var(--line); border-bottom: 0; }

@media (max-width: 1000px) {
  .wrap { width: min(100% - 56px, 1300px); }
  .darkroom { grid-template-columns: 1.36fr 1fr; }
  .mat { width: min(100% - 12px, 340px); }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 38px, 600px); }
  .introduction { grid-template-columns: 1fr; gap: 0.85rem; margin: 1.45rem 0 1.55rem; }
  .intro-note { padding-left: 0.85rem; }
  .darkroom, .notes { grid-template-columns: 1fr; }
  .workbench { padding-top: 0; }
  .mat { width: min(80%, 345px); }
  .notes { margin-top: 1.8rem; padding: 1.9rem 0 2.4rem; }
}
@media (max-width: 400px) {
  .mast { gap: 0.7rem; }
  .index-note, .wall .eyebrow { font-size: 0.61rem; }
  .wall-top { gap: 0.3rem; }
  .views button { padding-inline: 0.47rem; }
  .mat { margin-block: 15px 18px; }
  .plate-caption { font-size: 0.71rem; }
}
