body {
  background: radial-gradient(ellipse at 82% 8%, #415543, transparent 57%), #1e3234;
}
.studio-hero {
  margin: 20px 0;
  min-height: clamp(330px, 34vw, 450px);
  display: flex;
  align-items: flex-end;
  border: 2px solid #b1a782;
  border-radius: 16px;
  background:
    linear-gradient(
      90deg,
      rgba(24, 44, 41, 0.96) 0%,
      rgba(30, 52, 44, 0.81) 32%,
      rgba(29, 47, 39, 0.08) 65%
    ),
    url(assets/costume-workshop.webp) 54% 34% / cover;
}
.studio-hero > div {
  width: min(50%, 520px);
  padding: clamp(20px, 3vw, 44px);
}
.studio-hero h1 {
  font: 700 clamp(46px, 5.5vw, 84px)/0.93 var(--pixel);
  color: #fff4c9;
  margin: 8px 0;
}
.studio-hero p {
  margin: 15px 0 20px;
}
.studio-doors,
.cloth-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.studio-doors a,
.sewing-notes {
  border: 1px solid #83a494;
  background: #2a4945;
  padding: 14px;
  border-radius: 11px;
}
.studio-doors a {
  text-decoration: none;
  color: #fff4d6;
  border-top: 4px solid #cda387;
}
.studio-doors p,
.sewing-notes p {
  margin: 5px 0;
}
.studio-doors h2,
.sewing-notes h2,
.tailor-desk h2,
.tailor-desk h3 {
  font: 700 26px/1.08 var(--pixel);
  margin: 5px 0;
}
.tailor-desk h3 {
  font-size: 21px;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  align-items: start;
  gap: 16px;
}
.tailor-desk {
  background: #f6edda;
  color: #30443e;
  border: 3px solid #b69980;
  border-radius: 13px;
  padding: clamp(12px, 1.7vw, 23px);
  box-shadow: 0 5px 0 #72685b;
}
.sewing-notes h2 {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sewing-notes h2::before {
  content: '';
  width: 38px;
  height: 38px;
  background: url(assets/koko-idle.webp) 0 0/400% 100% no-repeat;
  image-rendering: pixelated;
}
.sewing-notes details,
.host-handbook {
  margin: 10px 0;
}
.sewing-notes li {
  margin: 5px 0;
}
.tailor-desk summary,
.sewing-notes summary {
  cursor: pointer;
  font-weight: 900;
}
.switches,
.controls,
.fields {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.controls {
  margin: 9px 0;
}
.tailor-desk button,
.tailor-desk select,
.tailor-desk input,
.tailor-desk textarea {
  background: #fff9e8;
  color: #30453b;
  border: 1px solid #aa9a7f;
  border-radius: 6px;
  padding: 7px 9px;
  font: inherit;
  font-weight: 800;
}
.tailor-desk button[aria-pressed='true'] {
  background: #366b58;
  color: #fff7de;
  border-color: #254e44;
}
.tailor-desk button.action {
  background: #eeb58d;
  border: 2px solid #a86f4b;
  color: #3a332f;
}
.tailor-desk button:focus-visible,
.tailor-desk input:focus-visible,
.tailor-desk select:focus-visible,
.tailor-desk textarea:focus-visible {
  outline: 3px solid #945b2e;
  outline-offset: 2px;
}
.order-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin: 10px 0;
  border: 1.5px dashed #b69a7d;
  background: #fff8e7;
  border-radius: 6px;
}
.order-panel p {
  margin: 4px 0;
}
.ink-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 950;
}
.spool {
  margin: 10px 0;
}
.spool label,
.spool progress {
  display: block;
  width: 100%;
}
.spool progress {
  height: 12px;
  accent-color: #39735b;
}
.cloth-tags .tag {
  text-align: left;
  box-shadow: inset 3px 0 #c19578;
  border-radius: 3px 9px 9px 3px;
}
.booklet,
.swatch-test,
.host-handbook,
.booth-receipts > div {
  margin: 10px 0;
  padding: 11px;
  background: #e6e9d8;
  border: 1px solid #a1af99;
  border-radius: 7px;
}
.booklet p {
  margin: 7px 0;
}
.drawers {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.drawers li {
  padding: 4px 0;
  border-top: 1px dashed #a5a899;
}
.drawers button,
.tailor-desk fieldset button {
  margin: 2px;
}
.receipt {
  border-left: 3px solid #597d66;
  padding-left: 8px;
}
.tailor-desk fieldset {
  border: 1px solid #bdad96;
  border-radius: 7px;
  margin: 10px 0;
  padding: 7px;
}
.tailor-desk legend,
.fields label {
  font-weight: 900;
}
.reply {
  border-top: 1px dashed #a89b82;
  padding-top: 9px;
  margin: 10px 0 2px;
}
.rosette {
  background: #e0ebc8;
  padding: 9px;
  border-radius: 5px;
}
.rosette a {
  color: #28543d;
}
.fields {
  align-items: stretch;
}
.fields label {
  display: flex;
  flex: 1 1 160px;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 4px;
}
.fields input,
.fields select,
.fields textarea {
  width: 100%;
  min-width: 0;
}
.fields textarea {
  resize: vertical;
}
.pockets,
.booth-receipts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.pockets .pocket {
  min-height: 56px;
  text-align: left;
  border: 2px dashed #91a895;
  background: #eceedd;
  overflow-wrap: anywhere;
}
.swatch-test p,
.booth-receipts p {
  margin: 3px 0;
}
.booth-receipts > div {
  margin: 4px 0;
}
.host-handbook code {
  overflow-wrap: anywhere;
}
.fitting-sample {
  margin: 0;
  flex: 0 0 104px;
  text-align: center;
  font-weight: 900;
  font-size: 0.8rem;
}
.fitting-sample figcaption {
  margin-top: 1px;
}
.dress-form {
  width: 82px;
  height: 75px;
  position: relative;
  margin: auto;
  --cloth: #c9bea4;
  --trim: #8b806b;
  --width: 54px;
}
.rack,
.hanger,
.garment,
.embroidery {
  position: absolute;
  display: block;
}
.rack {
  border-bottom: 4px solid #996a42;
  width: 40px;
  left: 21px;
  bottom: 0;
}
.rack::before {
  content: '';
  height: 68px;
  width: 5px;
  background: #987f5f;
  position: absolute;
  left: 17px;
  bottom: 0;
}
.hanger {
  background: #ad8052;
  width: 37px;
  height: 11px;
  left: 23px;
  top: 10px;
  clip-path: polygon(0% 100%, 45% 0, 55% 0, 100% 100%);
}
.garment {
  left: 50%;
  transform: translateX(-50%);
  width: var(--width);
  top: 17px;
  height: 46px;
  background:
    repeating-linear-gradient(92deg, transparent 0 9px, #3b503117 10px 11px), var(--cloth);
  border-bottom: 5px solid var(--trim);
  clip-path: polygon(
    34% 0,
    50% 12%,
    66% 0,
    80% 10%,
    100% 95%,
    78% 100%,
    52% 94%,
    28% 100%,
    0 95%,
    20% 10%
  );
}
.embroidery {
  font-size: 14px;
  left: 45%;
  top: 27px;
  color: var(--trim);
}
.mint .dress-form {
  --cloth: #8ebfa6;
  --trim: #9a77b2;
}
.plum .dress-form {
  --cloth: #785874;
  --trim: #efb66d;
}
.teal .dress-form {
  --cloth: #5c9f9d;
  --trim: #b3c6cd;
}
.medium .dress-form,
.small .dress-form,
.large .dress-form {
  --cloth: #9ab2d2;
  --trim: #48638b;
}
.small .dress-form {
  --width: 41px;
}
.large .dress-form {
  --width: 65px;
}
.star .dress-form,
.leaf .dress-form,
.bell .dress-form {
  --cloth: #608399;
  --trim: #f6d47d;
}
@media (max-width: 800px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .studio-doors {
    grid-template-columns: 1fr;
  }
  .studio-hero {
    min-height: 395px;
    background:
      linear-gradient(0deg, #1d3630 2%, #1d3630e8 36%, transparent 74%),
      url(assets/costume-workshop.webp) 68% 22% / cover;
  }
  .studio-hero > div {
    width: 100%;
    max-width: 34rem;
  }
  .tailor-desk button {
    min-height: 40px;
  }
  .cloth-tags {
    grid-template-columns: 1fr;
  }
  .order-panel {
    padding: 8px;
  }
  .fitting-sample {
    flex-basis: 84px;
  }
  .booth-receipts > div {
    font-size: 0.88rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .garment {
    animation: hang 0.24s ease-out;
    transform-origin: 50% 0;
  }
  @keyframes hang {
    from {
      transform: translateX(-50%) rotate(-5deg);
    }
    to {
      transform: translateX(-50%) rotate(0);
    }
  }
}

@media (min-width: 801px) {
  .studio-hero {
    background:
      linear-gradient(90deg, #203c34 0%, #203c34 30%, #203c34e6 36%, #203c3400 50%),
      url(assets/costume-workshop.webp) right 45% / 66% auto no-repeat,
      #203c34;
  }
  .studio-hero > div {
    width: 40%;
    padding: clamp(18px, 2.8vw, 40px);
  }
}
