:root {
  --ink: #20221f;
  --dim: #626762;
  --line: #d9dcd4;
  --accent: #b33d23;
  color: var(--ink);
  background: #fafbf8;
  font-family: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main,
footer {
  margin-inline: clamp(20px, 4vw, 76px);
}
header {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -1.15px;
}
.brand svg {
  width: 32px;
  height: 32px;
}
.edition,
.plate,
.figure,
.maker,
.index-title,
.part-num,
footer,
.callout span {
  font:
    10px/1.3 ui-monospace,
    "DejaVu Sans Mono",
    monospace;
  letter-spacing: 0.055em;
}
.edition {
  border-left: 1px solid var(--line);
  padding-left: 20px;
  color: var(--dim);
}
.plate {
  margin-left: auto;
  text-transform: uppercase;
}
.plate b {
  color: var(--accent);
}
main {
  display: grid;
  grid-template-columns: clamp(235px, 23vw, 350px) minmax(0, 1fr);
  min-height: 520px;
  height: calc(100svh - 148px);
  max-height: 1100px;
}
aside {
  padding: clamp(24px, 5vh, 55px) clamp(20px, 3vw, 54px) 12px 0;
  display: flex;
  flex-direction: column;
  align-self: start;
}
.maker {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}
.maker i {
  width: 17px;
  height: 4px;
  background: var(--accent);
}
.maker span,
.slash {
  color: #91958d;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.09em;
  font-size: clamp(71px, 7.4vw, 126px);
  line-height: 1.03;
  margin: 12px 0 10px -0.045em;
}
h1 span {
  color: var(--accent);
}
.intro {
  font:
    italic clamp(18px, 1.65vw, 26px) / 1.27 Georgia,
    serif;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 245px;
}
dl {
  margin: 24px 0 28px;
  font-size: 12px;
}
dl div {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
dt {
  color: var(--dim);
}
dd {
  margin: 0;
  font-weight: 600;
}
.index-title {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 7px;
}
.index-title span {
  color: var(--dim);
  font-weight: 400;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
button:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.component {
  border-bottom: 1px solid var(--line);
}
.component:first-child {
  border-top: 1px solid var(--line);
}
.component button {
  padding: 10px 2px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
.part-num {
  color: var(--dim);
  font-size: 10px;
}
.hint-arrow {
  font-size: 14px;
  color: var(--dim);
  margin-left: auto;
}
.component button:hover,
.component button[aria-expanded="true"],
.component button[aria-expanded="true"] span {
  color: var(--accent);
}
.component p {
  margin: 0 4px 12px 30px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--dim);
}
#stage {
  position: relative;
  isolation: isolate;
  background: #fff;
  border-left: 1px solid var(--line);
  overflow: hidden;
}
#view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
#view:active {
  cursor: grabbing;
}
.figure,
.viewmodes,
.tools,
.axis,
.callout {
  position: absolute;
  z-index: 1;
}
.figure {
  top: 20px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--dim);
  text-transform: uppercase;
}
.cross {
  font: 20px/1 monospace;
  color: var(--ink);
  margin-right: 4px;
}
.figure b {
  color: var(--ink);
}
.viewmodes {
  top: 16px;
  right: 16px;
  display: flex;
  border: 1px solid var(--line);
  padding: 2px;
  background: #fff;
}
.viewmodes button {
  padding: 6px 10px;
  font-size: 11px;
}
.viewmodes button[aria-pressed="true"],
#spin[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.tools {
  bottom: 16px;
  left: 20px;
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
}
.tools button {
  height: 33px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-right: 1px solid var(--line);
  font-size: 18px;
}
.tools button:hover,
.viewmodes button:not([aria-pressed="true"]):hover {
  background: #efefeb;
}
.tools button:last-child {
  border: 0;
  padding: 0 10px;
  font-size: 11px;
}
.tools svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}
.axis {
  bottom: 10px;
  right: 18px;
  width: 44px;
  color: #6a6e66;
}
.callout {
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  transform: translateY(-50%);
  background: white;
  padding: 6px 9px;
  border: 1px solid var(--line);
  font-size: 11px;
  white-space: nowrap;
}
.callout span {
  color: var(--accent);
}
.callout:before {
  content: "";
  position: absolute;
  width: 25px;
  height: 1px;
  background: var(--accent);
  right: 100%;
  top: 50%;
}
.callout:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--accent);
  right: calc(100% + 24px);
  top: calc(50% - 2px);
  border-radius: 50%;
}
[hidden] {
  display: none !important;
}
#unavailable {
  position: absolute;
  inset: 48% 10% auto;
  text-align: center;
  color: var(--dim);
}
footer {
  border-top: 1px solid var(--ink);
  min-height: 78px;
  display: flex;
  align-items: flex-start;
  padding-top: 18px;
  color: var(--dim);
  font-size: 10px;
}
footer strong {
  color: var(--ink);
  font-weight: 700;
  margin-right: 16px;
  text-transform: uppercase;
}
footer i {
  font-style: normal;
  margin: 0 5px;
}
@media (max-height: 710px) and (min-width: 701px) {
  header {
    height: 53px;
  }
  main {
    height: calc(100svh - 133px);
    min-height: 475px;
  }
  aside {
    padding-top: 26px;
  }
  dl {
    margin: 15px 0 20px;
  }
  .component button {
    padding: 8px 2px;
  }
  h1 {
    margin-top: 8px;
    font-size: clamp(70px, 6.6vw, 100px);
  }
}
@media (max-width: 900px) {
  .edition {
    display: none;
  }
  .figure {
    left: 12px;
    gap: 4px;
  }
  .viewmodes {
    right: 10px;
  }
  .tools {
    left: 12px;
  }
}
@media (max-width: 700px) {
  header,
  main,
  footer {
    margin-inline: 16px;
  }
  header {
    height: 52px;
  }
  .brand {
    font-size: 18px;
  }
  .brand svg {
    width: 25px;
  }
  .plate {
    font-size: 9px;
  }
  main {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    min-height: 0;
  }
  aside {
    display: contents;
  }
  .maker {
    order: 0;
    margin-top: 18px;
  }
  h1 {
    order: 1;
    margin: 2px 0;
    font-size: 60px;
  }
  .intro {
    order: 2;
    max-width: none;
    font-size: 17px;
    line-height: 1.2;
    margin-bottom: 14px;
  }
  #stage {
    order: 3;
    border: 1px solid var(--line);
    height: clamp(320px, 53svh, 540px);
    flex: none;
  }
  .figure {
    top: 12px;
    font-size: 8px;
  }
  .viewmodes {
    top: 9px;
  }
  .viewmodes button {
    font-size: 10px;
    padding: 6px;
  }
  .tools {
    bottom: 9px;
  }
  .axis {
    bottom: 5px;
    right: 7px;
    width: 38px;
  }
  dl {
    order: 6;
    margin: 14px 0 20px;
  }
  .index-title {
    order: 4;
    margin: 20px 0 8px;
  }
  nav {
    order: 5;
  }
  .component button {
    min-height: 43px;
  }
  footer {
    padding: 12px 28px 30px 0;
    line-height: 1.7;
  }
}
@media (max-width: 365px) {
  .figure .slash,
  #viewname {
    display: none;
  }
}
@media (max-height: 390px) {
  .edition,
  .plate,
  aside,
  footer,
  .viewmodes,
  .tools,
  .axis {
    display: none;
  }
  main {
    display: block;
    margin: 0;
    height: calc(100svh - 40px);
    min-height: 0;
  }
  header {
    height: 40px;
  }
  #stage {
    height: 100%;
    border: 0;
  }
}
.pointer {
  position:absolute; z-index:1; padding:8px 0; transform:translateY(-50%);
  color:#55594f; font:11px/1.3 ui-monospace,monospace; white-space:nowrap;
}
.pointer small {color:var(--accent);margin-right:7px;font-size:9px}
.pointer:before {content:'';position:absolute;right:calc(100% + 7px);top:50%;width:42px;border-top:1px solid #a9aca2}
.pointer:after {content:'';position:absolute;right:calc(100% + 48px);top:calc(50% - 2px);width:5px;height:5px;border-radius:50%;background:var(--accent)}
.pointer.left {transform:translate(-100%,-50%)}
.pointer.left:before {left:calc(100% + 7px);right:auto}
.pointer.left:after {left:calc(100% + 48px);right:auto}
.pointer:hover {color:var(--accent);text-decoration:underline}
@media(min-width:701px) and (min-height:391px) {
  main {height:auto;min-height:max(475px,calc(100svh - 148px));max-height:none}
}
@media(min-width:701px) and (max-height:710px) and (min-height:391px) {
  main {min-height:max(475px,calc(100svh - 133px))}
  .intro {font-size:18px}
  .component button {padding-block:7px}
}
@media(max-width:700px) and (min-height:391px) {
  .tools button {min-width:44px;height:44px}
  .viewmodes button {min-height:36px}
}
