:root {
  color: #263934;
  background: #eeece3;
  font: 15px/1.5 "DM Sans", system-ui, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
.top {
  background: #243b35;
  padding: 16px max(24px, (100vw - 1360px) / 2);
}
.top a { color: #f6ebd6; font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.studio-nav { display: flex; gap: 22px; flex-wrap: wrap; }
main { max-width: 1408px; margin: 0 auto; padding: 24px clamp(14px, 3vw, 42px) 40px; }
h1 { font: normal clamp(35px, 5vw, 63px)/1.08 Georgia, serif; letter-spacing: -.04em; margin: 0 0 18px; }
.controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.picker, .angles { display: flex; align-items: center; gap: 6px; }
.angles { flex-wrap: wrap; }
.girdle-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 15px; margin-top: 12px; font-size: 13px; }
#shoulder-bones { margin: 0 4px 0 0; accent-color: #2f5348; vertical-align: middle; }
#shoulder-key span { display: inline-block; padding: 1px 6px; margin: 0 2px 0 0; border-radius: 3px; }
.clavicle-key { background: #ffd18d; }
.scapula-key { background: #b0e7e3; }
.socket-key { background: #fff3ea; }
label { font-weight: 700; padding-right: 6px; }
button, select {
  min-height: 42px;
  font: inherit;
  color: inherit;
  background: #f7f3e8;
  border: 1px solid #839087;
  border-radius: 4px;
  padding: 7px 12px;
}
button { cursor: pointer; }
button:hover, select:hover { background: #e6e9dd; }
button[aria-pressed="true"] { background: #2f5348; color: #fff9ea; border-color: #2f5348; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid #a95f4c; outline-offset: 3px; }
#previous, #next { font-size: 23px; line-height: 1; width: 42px; }
#pose { min-width: min(292px, 60vw); max-width: min(415px, 73vw); }
#status { margin: 13px 0 0; }
.comparison { margin-top: 19px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
figure { margin: 0; min-width: 0; }
figcaption { margin: 0 0 7px; font: 23px Georgia, serif; }
figcaption span { color: #56645a; font: 12px system-ui, sans-serif; padding-left: 6px; }
.frame { border: 1px solid #9aa79a; border-radius: 5px; overflow: hidden; background: #d4dad0; aspect-ratio: 1 / 1.08; }
img, canvas { width: 100%; height: 100%; display: block; }
img { object-fit: contain; background: #e0e1d8; }
@media(max-width: 780px) {
  .comparison { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 8px; }
  .reference { grid-column: 1 / -1; }
  .reference .frame { aspect-ratio: auto; height: min(39vh, 320px); }
  figcaption { font-size: 21px; }
  #pose { max-width: calc(100vw - 178px); min-width: 0; }
}
@media(max-width: 380px) {
  .angles button { font-size: 13px; padding: 7px 8px; }
}
