:root {
  color: var(--ink);
  background: #f7f0e3;
  font-family: var(--sans);
  font-size: 16px;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 0.22em; }
button, input { font: inherit; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.masthead, main {
  width: min(100% - 2 * clamp(18px, 5vw, 76px), 1320px);
  margin-inline: auto;
}

.masthead, .eyebrow {
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}
.masthead a { text-decoration: none; }
.masthead a:hover { text-decoration: underline; }

.introduction {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  align-items: end;
  column-gap: clamp(26px, 4.8vw, 64px);
  padding-block: clamp(24px, 4vw, 56px) clamp(19px, 3vw, 35px);
}
.introduction .eyebrow, .proofs > header .eyebrow { color: #75463b; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
}
h1 {
  font-size: clamp(3rem, 7.8vw, 7.1rem);
  line-height: 0.98;
  margin-top: 0.12em;
  letter-spacing: -0.065em;
}
h1 em { color: #8b493b; font-weight: inherit; }
.lede {
  max-width: 32ch;
  font-size: clamp(0.99rem, 1.3vw, 1.18rem);
  line-height: 1.55;
  color: #46534a;
  padding-bottom: 0.11em;
}

.stage {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #b9987f;
}
.stage > * {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.lamp-controls, .camera-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.controls button {
  min-height: 44px;
  padding: 0.38em 0.87em;
  border: 1px solid #bca994;
  color: var(--ink);
  background: transparent;
  font-size: 0.81rem;
  cursor: pointer;
}
.controls button:hover { background: #ece0ce; }
.controls button[aria-pressed="true"] { background: #493830; color: #fff7eb; border-color: #493830; }
.camera-controls label, .camera-controls output { font-size: 0.79rem; }
.camera-controls input {
  width: clamp(75px, 11vw, 142px);
  min-height: 44px;
  margin: 0 2px;
  accent-color: #835445;
  cursor: ew-resize;
}
.camera-controls output { min-width: 2.3rem; text-align: center; font-variant-numeric: tabular-nums; }
#reset-angle { border-color: transparent; padding-inline: 0.55em; }

.caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  line-height: 1.5;
  color: #46534a;
}
.caption span { text-align: end; flex: 0 0 auto; }

.proofs { padding-block: clamp(38px, 7vw, 85px) 30px; }
.proofs h2 { margin-top: 0.14em; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.043em; }
.proofs > header p:last-child {
  max-width: 55ch;
  margin-top: 0.45rem;
  line-height: 1.55;
  color: #46534a;
}

.plates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 64px);
  margin-top: clamp(18px, 3vw, 30px);
}
.plate { border-top: 1px solid var(--line); padding-top: 13px; }
.plate header { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.plate h3 { font-size: clamp(1.45rem, 3vw, 2.25rem); }
.plate-images {
  display: grid;
  grid-template-columns: 1fr 0.86fr 0.86fr;
  gap: clamp(4px, 0.7vw, 11px);
  margin-block: 12px;
}
.plate-images a { display: block; }
.plate-images img {
  display: block;
  width: 100%;
  height: clamp(105px, 15vw, 190px);
  background: #eee3d4;
  object-fit: contain;
}
.plate-images .painting { object-fit: cover; }
.plate-images figcaption { font-size: 0.73rem; margin-top: 0.35em; }
.plate p { color: #46534a; font-size: 0.88rem; line-height: 1.5; }
.still-link { display: inline-block; margin-top: 0.55em; font-size: 0.83rem; }

.study-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6em 1.3em;
  border-top: 1px solid var(--line);
  color: #46534a;
  font-size: 0.78rem;
  line-height: 1.55;
  padding-block: 18px 32px;
}
.study-footer nav { display: flex; flex-wrap: wrap; gap: 0.4em 1.25em; }

@media (max-width: 720px) {
  .introduction { grid-template-columns: 1fr; row-gap: 0.8rem; }
  .stage { aspect-ratio: 4 / 3; }
  .stage .poster { object-fit: contain; }
  .caption { flex-wrap: wrap; gap: 4px 12px; }
  .plates { grid-template-columns: minmax(0, 1fr); }
  .plate-images img { height: clamp(110px, 33vw, 225px); }
}
