:root {
  --fc-bg: #f8f1e6;
  --fc-ink: #342b28;
  --fc-secondary: #6c5552;
  --fc-rose: #884f58;
  --fc-line: #dbcec3;
}
body { background: var(--fc-bg); color: var(--fc-ink); }
[hidden] { display: none !important; }
.masthead {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 3rem, 84rem);
  margin: auto;
  padding-block: 1rem;
  border-bottom: 1px solid var(--fc-line);
  color: var(--fc-secondary);
  font: 500 .66rem/1.4 var(--font-sans);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.study {
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) minmax(0, 2.8fr);
  gap: clamp(1rem, 4vw, 5.25rem);
  width: min(100% - 3rem, 84rem);
  margin: clamp(1rem, 3vw, 3rem) auto 1rem;
}
.introduction { padding-top: clamp(1rem, 5.2vw, 5rem); }
.overline, .plate-number {
  font: 500 .65rem/1.5 var(--font-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fc-rose);
}
.introduction .overline { margin: 0 0 .85rem; }
h1 {
  color: var(--fc-ink);
  font-size: clamp(3rem, 5.1vw, 5.45rem);
  letter-spacing: -.06em;
  line-height: .97;
}
h1 em { color: var(--fc-rose); font-weight: inherit; }
.lede {
  max-width: 23ch;
  margin: 1.25rem 0 0;
  font: 300 clamp(1.02rem, 1.6vw, 1.35rem)/1.5 var(--font-serif);
  color: var(--fc-secondary);
}
.folio {
  border-top: 1px solid var(--fc-line);
  width: min(100%, 14.5rem);
  padding-top: 1.1rem;
  margin-top: clamp(1.75rem, 4.5vw, 3.5rem);
}
.folio ol {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .77rem;
}
.folio li { display: flex; align-items: center; gap: .7rem; }
.folio li span { width: .62rem; height: .62rem; border-radius: 50%; background: var(--swatch); }
.viewer { margin: 0; min-width: 0; }
.image-well {
  position: relative;
  aspect-ratio: 11 / 10;
  min-height: 18rem;
  overflow: hidden;
  background: #c6a588;
  border: 1px solid #cbb19c;
}
.image-well img, .image-well canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.image-well[data-view="source"] { background: #aaaab0; }
.image-well[data-view="source"] img { object-fit: contain; }
.well-label {
  position: absolute;
  left: .72rem;
  top: .72rem;
  padding: .4rem .6rem;
  background: #faf3e9e8;
  border: 1px solid #fff8ed;
  font: 500 .65rem/1.2 var(--font-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fc-ink);
}
.mark {
  display: inline-block;
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  margin-right: .2rem;
  background: var(--fc-rose);
}
.controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem .9rem;
  margin-top: .65rem;
}
.presets { display: flex; flex-wrap: wrap; gap: .36rem; }
.controls button {
  border: 1px solid var(--fc-line);
  background: transparent;
  border-radius: 0;
  color: var(--fc-ink);
  padding: .45rem .7rem;
  min-height: 2.45rem;
  font: 500 .77rem/1.25 var(--font-sans);
  cursor: pointer;
}
.controls button:hover { border-color: var(--fc-rose); }
.controls button[aria-pressed="true"] { background: var(--fc-ink); color: var(--fc-bg); border-color: var(--fc-ink); }
.controls button:disabled { opacity: .6; cursor: default; }
.orbit span:first-child { color: var(--fc-rose); }
.angle {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr 3ch;
  align-items: center;
  gap: .85rem;
  color: var(--fc-secondary);
  font-size: .73rem;
  padding: .3rem 0;
}
.angle input { width: 100%; min-width: 0; accent-color: var(--fc-rose); margin: 0; }
.angle output { text-align: right; }
.caption {
  border-top: 1px solid var(--fc-line);
  margin: 0;
  padding: .62rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .6rem;
  color: var(--fc-secondary);
  font-size: .78rem;
}
.plate-number { flex: none; }
.study-footer {
  grid-column: 1 / -1;
  border-top: 1px solid var(--fc-line);
  padding: .75rem 0;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
  font-size: .72rem;
}
.study-footer p { margin: 0; color: var(--fc-secondary); }
.study-footer p span { padding: 0 .28rem; }
.study-footer nav { display: flex; flex-wrap: wrap; gap: .3rem .85rem; }
.study-footer a { text-decoration: underline; text-underline-offset: .15em; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--fc-rose);
  outline-offset: 3px;
}
@media (min-width: 47.001rem) {
  .viewer { width: min(100%, max(24rem, 84.7svh)); justify-self: end; }
}
@media (max-width: 47rem) {
  .masthead, .study { width: calc(100% - 2rem); }
  .study { grid-template-columns: 1fr; }
  .introduction { padding-top: .25rem; }
  .introduction h1 { line-height: 1; font-size: clamp(2.5rem, 9vw, 4.2rem); }
  h1 br { display: none; }
  .lede { max-width: 43ch; margin-top: .55rem; }
  .folio { display: none; }
  .study-footer { flex-direction: column; gap: .55rem; }
}
@media (max-width: 28rem) {
  .image-well { min-height: 0; }
  .well-label { top: .4rem; left: .4rem; font-size: .53rem; padding: .29rem .37rem; }
  .controls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
  .presets { display: contents; }
  .controls button { padding-inline: .35rem; }
}
