main {
  max-width: 78rem;
  margin: auto;
  padding: 0 clamp(1rem,4vw,4rem);
}
.intro,.platehead,figcaption,.sample,.total,.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.intro {
  padding: clamp(1.2rem,3vw,3rem) 0 1.4rem;
}
.intro h1 {
  margin: .25rem 0 .5rem;
}
.intro p,.work p {
  color: var(--ff-muted);
  margin: .4rem 0 1rem;
}
.intro .ff-eyebrow {
  margin: 0;
}
.quiet {
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: .25em;
  color: #c9dae4;
  cursor: pointer;
  font-size: .85rem;
  min-height: 44px;
}
nav {
  display: flex;
  border-bottom: 1px solid var(--ff-line);
  margin-bottom: 1.3rem;
  gap: 1rem;
}
nav button {
  cursor: pointer;
  color: #bbcad4;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: .65rem .3rem;
  font-weight: 700;
}
nav button[aria-current=step] {
  color: var(--ff-ice);
  border-color: currentColor;
}
.workspace {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1rem,4vw,4.5rem);
  align-items: start;
}
.drawing {
  margin: 0;
  background: #dad6c9;
  color: #20302f;
  overflow: hidden;
}
.platehead,figcaption {
  padding: 1rem 1.4rem;
}
.platehead {
  font-size: .75rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  border-bottom: 1px solid #b5b6aa;
}
.platehead b {
  font-variant-numeric: tabular-nums;
}
.board {
  container-type: size;
  height: clamp(235px,27vw,360px);
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(0deg,transparent 0 23px,#9faaa542 23px 24px),repeating-linear-gradient(90deg,transparent 0 23px,#9faaa542 23px 24px),linear-gradient(123deg,#dedfd4,#eae6d6 60%,#cbc6ae);
}
.frame {
  position: relative;
  width: min(62cqw,calc(62cqh * var(--ratio,1.27)));
  aspect-ratio: var(--ratio,1.27);
  border: 6px solid #4b514d;
  background: #acb7b0;
  box-shadow: 6px 9px #807d6d4d,13px 18px 12px #8b83673d;
}
.glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,transparent 48%,#6a7774 48% 51%,transparent 51%),linear-gradient(132deg,#afbdb8,#dae6dd 40%,#9caaa3 40%,#bdd0ca 70%,#e2e7da 70%);
}
.fabric {
  position: absolute;
  inset: 0 0 25%;
  transform-origin: top;
  background-color: var(--cloth,#d7be94);
  background-image: repeating-linear-gradient(90deg,transparent 0 2px,#47392425 2px 3px),repeating-linear-gradient(0deg,transparent 0 2px,#fff4df80 2px 3px);
  border-bottom: 5px solid #414742;
  box-shadow: 0 4px 6px #2224;
  animation: roll .8s ease-out both;
}
.fold .fabric {
  background-image: repeating-linear-gradient(0deg,transparent,#fff7 5px,#20282055 7px,transparent 12px);
}
.cassette {
  position: absolute;
  top: -6px;
  left: -8px;
  right: -8px;
  height: 10px;
  background: linear-gradient(#616663,#333c39);
  border-radius: 2px;
}
.frame span {
  position: absolute;
  font: 600 .75rem var(--ff-sans);
  text-align: center;
  white-space: nowrap;
}
.frame #horizontal {
  bottom: -29px;
  left: 0;
  right: 0;
  border-top: 1px solid #475950;
}
.frame #vertical {
  top: 50%;
  left: calc(100% + 8px);
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  border-left: 1px solid #475950;
  padding-left: 3px;
}
.drawing small,.drawing strong {
  display: block;
}
.drawing strong {
  font: italic 2.5rem/1.15 var(--ff-serif);
}
.drawing small {
  font-weight: 700;
}
.sample {
  font-size: .85rem;
  gap: .5rem;
}
.sample i {
  width: 20px;
  height: 20px;
  border: 1px solid #606558;
  border-radius: 50%;
}
h2 {
  font-size: clamp(1.6rem,3vw,2.3rem);
  letter-spacing: -.045em;
  margin: 0;
}
.work label {
  display: grid;
  gap: .25rem;
  margin: .7rem 0;
  font-size: .9rem;
  font-weight: 700;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ff-input {
  min-width: 0;
  width: 100%;
}
.note,footer {
  font-size: .84rem;
  color: var(--ff-muted);
}
footer {
  border-top: 1px solid var(--ff-line);
  margin-top: 2rem;
  padding: 1rem 0 2rem;
}
.total {
  border-top: 1px solid var(--ff-line);
  padding: 1rem 0;
}
.total strong {
  font-size: 1.8rem;
  color: var(--ff-ice);
}
dl {
  margin: .8rem 0;
}
dl div,.finding {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--ff-line);
}
dt {
  color: var(--ff-muted);
}
dd {
  margin: 0;
  text-align: right;
}
.actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.finding {
  display: block;
}
.finding small {
  display: block;
  color: var(--ff-muted);
}
.finding b {
  color: var(--ff-ice);
}
.finding.diff b {
  color: #ffd3ad;
}
#verdict {
  font-weight: bold;
  color: var(--ff-text);
  margin: 1rem 0 0;
}
#back {
  margin-top: 1rem;
}
dialog {
  border: 1px solid var(--ff-control);
  background: var(--ff-surface);
  color: var(--ff-text);
  max-width: min(28rem,90%);
  padding: 1.5rem;
}
dialog::backdrop {
  background: #040a10cf;
}
@keyframes roll {
  from {
    transform: scaleY(.07);
  }
  to {
    transform: scaleY(1);
  }
}
@media (max-width:720px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .board {
    height: 150px;
  }
  .platehead,figcaption {
    padding: .45rem .8rem;
  }
  .drawing strong {
    font-size: 1.65rem;
  }
  .intro {
    flex-wrap: wrap;
    gap: 0;
    padding-bottom: .25rem;
  }
  .intro p {
    margin-bottom: .1rem;
  }
  .intro .quiet {
    margin-left: auto;
  }
  .work h2 {
    font-size: 1.6rem;
  }
  .frame {
    max-width: 54%;
  }
  nav {
    margin-bottom: .75rem;
  }
  .ff-brand span {
    display: inline-block;
    font-size: .65rem;
  }
  .intro .ff-eyebrow {
    font-size: .65rem;
  }
  .actions {
    gap: .5rem;
  }
  .total {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion:reduce) {
  .fabric {
    animation: none;
  }
}
