.studio-main {
  max-width: 1240px;
  padding-top: clamp(45px, 7vw, 100px);
  padding-bottom: 64px;
}

.studio-intro {
  margin-bottom: clamp(28px, 4vw, 56px);
}

.studio-intro h1 {
  font-size: clamp(50px, 9vw, 114px);
}

.studio-intro .eyebrow {
  margin-bottom: 15px;
}

.studio-intro .lede {
  max-width: 600px;
}

.studio-studies-link {
  margin-top: 16px;
}

.studio-studies {
  margin-top: 18px;
  border: 1px solid var(--line);
  padding: clamp(18px, 3vw, 32px);
  scroll-margin-top: 92px;
}

.studio-studies p {
  margin: 8px 0 16px;
  color: #ced7c7;
}

.studio-study-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(125px, 1fr));
  gap: 10px;
  padding: 4px;
  margin: 0 -4px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.studio-study-list li {
  min-width: 0;
  scroll-snap-align: start;
}

.studio-study-list a {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
}

.studio-study-list a:is(:hover, :focus-visible) {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.studio-study-list img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f6f3ea;
}

.studio-study-list span {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.studio-study-list strong {
  font-variant-numeric: tabular-nums;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: 18px;
}

.studio-controls,
.studio-workspace,
.studio-merch {
  min-width: 0;
  border: 1px solid var(--line);
  padding: clamp(18px, 3vw, 32px);
}

.studio-controls {
  background: var(--paper);
  color: var(--ink);
}

.studio-main h2 {
  font-size: clamp(25px, 3vw, 37px);
  letter-spacing: -0.045em;
}

.studio-controls p,
.studio-merch p {
  font-size: 15px;
  margin-top: 12px;
}

.studio-controls .fine {
  color: #435247;
  font-size: 13px;
  margin-top: 9px;
}

.studio-file-label {
  display: block;
  margin: 22px 0 7px;
  font-weight: 700;
}

.studio-controls input[type=file] {
  width: 100%;
  border: 1px solid #819084;
  border-radius: 2px;
  padding: 8px;
  background: #fffdf5;
  font-size: 14px;
  color: var(--ink);
}

.studio-controls input[type=file]::file-selector-button {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 7px 10px;
  margin-inline-end: 8px;
  cursor: pointer;
}

.studio-link,
.studio-text-button {
  display: inline-block;
  margin-top: 8px;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.studio-settings {
  min-width: 0;
  margin: 20px 0 16px;
  padding: 12px 14px;
  border: 1px solid #879685;
}

.studio-settings legend {
  padding-inline: 5px;
  font-weight: 700;
}

.studio-graphite {
  background: #e9eed8;
  border-color: #65754f;
}

.studio-graphite label {
  margin-top: 10px;
}

.studio-graphite .studio-primary {
  margin-top: 12px;
}

.studio-sketch-pay {
  border-block: 1px solid #a5ae95;
  padding-block: .5rem;
  margin-block: .75rem;
}

.studio-sketch-pay p:empty {
  display: none;
}

.studio-settings label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.studio-settings input[type=range] {
  width: 100%;
  margin: 4px 0 6px;
  accent-color: var(--ink);
}

.studio-settings select {
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  border: 1px solid #879685;
  background: #fffdf5;
  color: var(--ink);
  padding: 5px 7px;
  font: inherit;
  font-size: 14px;
}

.studio-settings select:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.studio-faces {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.studio-face {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.studio-face canvas {
  width: 48px;
  height: 48px;
  border: 1px solid #879685;
  border-radius: 50%;
}

.studio-face output {
  font-size: 13px;
  color: #435247;
  font-variant-numeric: tabular-nums;
}

.studio-framing {
  margin-bottom: 14px;
}

.studio-style.studio-choices {
  flex-wrap: wrap;
}

.studio-style input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.studio-style input:disabled + span {
  opacity: 0.54;
  cursor: default;
}

.studio-cutout {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.studio-cutout input {
  accent-color: var(--ink);
}

.studio-controls .studio-cutout-status {
  margin-bottom: 0;
}

.studio-settings .studio-check {
  justify-content: flex-start;
}

.studio-merch .studio-settings input {
  accent-color: var(--lime);
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.studio-primary {
  margin-top: 16px;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 14px;
  font-weight: 700;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 14px;
}

.studio-primary:disabled {
  color: #545e55;
  background: #e0e5d7;
  border-color: #a3ada2;
  cursor: default;
}

.studio-controls .studio-feedback:empty {
  display: none;
}

.studio-feedback.studio-error {
  color: #842d22;
  font-weight: 700;
}

.studio-workspace {
  background: #19231b;
}

.studio-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.studio-play {
  min-height: 36px;
  padding: 6px 11px;
  background: transparent;
  border: 1px solid #a8b6a5;
  border-radius: 2px;
  color: var(--paper);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.studio-play:hover:not(:disabled) {
  background: var(--paper);
  color: var(--ink);
}

.studio-play:disabled {
  opacity: 0.6;
}

.studio-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.studio-image-frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #465747;
  background: #111713;
}

.studio-image-frame.studio-ink-stage {
  background: #eae3d4;
}

.studio-image-frame p {
  color: var(--muted);
  margin: 0;
  padding: 8px;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}

.studio-image-frame img,
.studio-image-frame canvas {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.studio-proof figcaption {
  color: #ced7c7;
  margin-top: 8px;
  font-size: 13px;
}

.studio-yawn-options {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 22px 0 0;
}

.studio-yawn-options legend {
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}

.studio-yawn-strip {
  position: relative;
}

.studio-option-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(125px, 27%);
  gap: 8px;
  padding: 8px 3px 10px;
  overflow-x: auto;
  scrollbar-color: #738572 #202c22;
  scroll-snap-type: x proximity;
}

.studio-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
  scroll-snap-align: start;
}

.studio-option > input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.studio-option > span {
  display: grid;
  border: 1px solid #667763;
  background: #111713;
  color: var(--paper);
  font-size: 12px;
  text-align: center;
}

.studio-option-caption {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 5px 7px;
  font-variant-numeric: tabular-nums;
}

.studio-option canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #e5dccd;
}

.studio-option input:checked + span {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.studio-option input:focus-visible + span {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.studio-option-arrow {
  position: absolute;
  top: 29%;
  width: 33px;
  height: 33px;
  border: 1px solid #a8b6a5;
  border-radius: 50%;
  color: var(--paper);
  background: #111713ee;
  font-size: 25px;
  line-height: 1;
}

#studio-options-back { left: 6px; }
#studio-options-next { right: 6px; }

.studio-merch {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(18px, 5vw, 60px);
  align-items: center;
  margin-top: 18px;
  background: #202c22;
}

.studio-merch-copy {
  max-width: 420px;
}

#studio-merch-title {
  scroll-margin-top: 92px;
}

.studio-studies #studio-use-sequence {
  margin-top: 15px;
}

.studio-choices {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
}

.studio-choices legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.studio-choices label {
  position: relative;
  cursor: pointer;
}

.studio-choices input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

.studio-choices span {
  display: block;
  border: 1px solid #788774;
  padding: 7px 18px;
  font-size: 14px;
}

.studio-choices input:checked + span {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.studio-choices input:focus-visible + span {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.studio-choices input:disabled + span {
  opacity: 0.52;
}

.studio-custom-frames {
  min-width: 0;
  margin: 20px 0 0;
  padding: 13px;
  border: 1px solid #788774;
}

.studio-custom-frames legend,
.studio-frame-inputs strong {
  font-size: 14px;
  font-weight: 700;
}

.studio-custom-frames p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #dce6d7;
}

.studio-frame-inputs {
  display: grid;
  gap: 7px;
}

.studio-frame-inputs label {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.studio-frame-inputs input {
  min-width: 0;
  width: 100%;
  font-size: 13px;
}

.studio-frame-inputs input::file-selector-button,
.studio-custom-levels button {
  border: 1px solid #788774;
  padding: 4px 7px;
  min-height: 32px;
  background: #111713;
  color: #fffdf6;
  cursor: pointer;
}

.studio-custom-frames #studio-custom-status {
  margin: 13px 0 0;
}

.studio-custom-player {
  margin-top: 10px;
}

.studio-custom-player img {
  width: 100%;
  height: 148px;
  object-fit: contain;
  background: #e6e4da;
}

.studio-custom-player figcaption {
  margin: 7px 0;
  font-size: 14px;
  font-weight: 700;
}

.studio-custom-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.studio-custom-levels button {
  font-size: 13px;
}

.studio-custom-levels button:disabled {
  cursor: default;
  opacity: 0.5;
}

.studio-custom-actions > .studio-text-button {
  margin-inline-end: 12px;
}

.studio-merch .studio-commerce {
  color: #cad5c5;
  margin-top: 20px;
  font-size: 13px;
}

.studio-lock-button {
  margin-top: 2px;
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.studio-locked {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid #879685;
}

.studio-locked img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  background: #111713;
}

.studio-locked[data-color=white] img {
  background: #fffdf6;
}

.studio-locked-size {
  display: block;
  font-variant-numeric: tabular-nums;
}

.studio-download {
  display: block;
  width: fit-content;
  color: var(--lime);
}

.studio-custom-order {
  margin-top: 10px;
  font-size: 13px;
}

.studio-custom-order p {
  margin: 0 0 6px;
}

.studio-product {
  display: grid;
  place-items: center;
  gap: 14px;
  margin: 0;
  background: #e6e4da;
  color: var(--ink);
  padding: clamp(18px, 3vw, 30px);
  min-height: 300px;
}

.studio-tee-preview {
  position: relative;
  width: 100%;
}

.studio-tee-preview > img {
  display: block;
  width: 100%;
  height: auto;
}

.studio-tee-preview > canvas {
  position: absolute;
  left: 60.245%;
  top: 18.862%;
  width: 24.327%;
  height: auto;
  aspect-ratio: 1;
}

.studio-product[data-layout=sequence] .studio-tee-preview > canvas {
  left: 54%;
  top: 26%;
  width: 37%;
  aspect-ratio: auto;
}

.studio-product:is([data-layout=custom-sequence], [data-layout=artist-sequence]) .studio-tee-preview > canvas {
  left: 58.2%;
  top: 18.5%;
  width: 28.4%;
  aspect-ratio: auto;
}

.studio-tee-views {
  position: absolute;
  inset: auto 0 2% 0;
  display: flex;
  justify-content: space-around;
  color: #202721;
  font-size: 12px;
  font-weight: 700;
}

.studio-product-drawing {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 230px);
  aspect-ratio: 1.1;
}

.studio-product-drawing::before,
.studio-product-drawing::after {
  position: absolute;
  content: '';
}

.studio-product[data-format=mug] .studio-product-drawing::before {
  inset: 13% 24% 10% 13%;
  background: linear-gradient(90deg, #d1d4c5, #fffdf3 28%, #fffcf2 70%, #e5e6d9 97%);
  border: 1px solid #a2ac94;
  border-radius: 9% 9% 22% 22%;
  box-shadow: 0 10px 20px #3f543133;
  z-index: 1;
}

.studio-product[data-format=mug] .studio-product-drawing::after {
  top: 30%;
  left: 67%;
  width: 25%;
  height: 39%;
  border: 11px solid #e7e8da;
  border-radius: 40% 55% 55% 40%;
}

.studio-merch-art {
  position: absolute;
  z-index: 2;
  width: 31%;
  top: 31%;
  left: 34.5%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.studio-product[data-format=mug] .studio-merch-art {
  width: 37%;
  left: 26%;
  top: 30%;
}

.studio-product[data-format=mug][data-layout=sequence] .studio-product-drawing {
  width: min(100%, 310px);
}

.studio-product[data-format=mug][data-layout=sequence] .studio-merch-art {
  width: 55%;
  left: 17%;
  top: 35%;
  aspect-ratio: 18 / 7;
}

.studio-merch-art img,
.studio-merch-art canvas {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.studio-merch-art img:last-child {
  width: 38%;
  opacity: 0.69;
}

.studio-product figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 16px;
  font-size: 13px;
}

.studio-product figcaption span:first-child {
  font-weight: 700;
}

.studio-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  border-top: 1px solid var(--line);
  color: #ced7c7;
  padding-block: 28px;
  font-size: 14px;
}

@media (max-width: 760px) {
  .studio-layout,
  .studio-merch {
    grid-template-columns: 1fr;
  }

  .studio-product {
    min-height: 230px;
  }
}
