@font-face {
  font-family: Oswald;
  src: url("display.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: Oswald;
  src: url("display-cyr.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Golos;
  src: url("body.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: Golos;
  src: url("body-cyr.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
:root {
  color-scheme: dark;
  --ink: #151515;
  --paper: #f1efe8;
  --acid: #d9ff40;
  --muted: #a8a8a0;
  --rule: #383835;
  --display: Oswald, "Arial Narrow", sans-serif;
  --mono: ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 0; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 15px/1.4 Golos, system-ui, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:where(a, button, input, [tabindex]):focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
.skip-link:focus { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px; background: var(--acid); color: var(--ink); }
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 70px;
  padding-inline: clamp(20px, 3vw, 52px);
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}
.site-header a { text-decoration: none; }
.site-header :focus-visible { outline-color: var(--ink); }
.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  min-height: 44px;
  padding-block: 4px;
  font: 700 36px/.96 var(--display);
  letter-spacing: -.07em;
}
.wordmark span { font: 800 16px/1 Golos, sans-serif; margin-top: 2px; }
.site-nav { display: flex; gap: clamp(16px, 3vw, 46px); }
.site-nav a, .header-cta { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 650; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.header-cta { justify-self: end; gap: 12px; }
.header-cta span { font-size: 16px; }
.fitting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(356px, 35vw, 540px);
  min-height: max(680px, calc(100svh - 104px));
}
.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  container-type: size;
  color: #1c2310;
  background: radial-gradient(ellipse at 51% 31%, #e8ff84 0, #d6fc4e 38%, #c8ee2c 78%, #abd61b 100%);
}
.stage-grid, .landings { position: absolute; inset: 0; pointer-events: none; }
.stage-grid {
  background-image: linear-gradient(#33450913 1px, transparent 1px), linear-gradient(90deg, #33450913 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
  mask-image: linear-gradient(#000 62%, transparent 94%);
}
.stage-heading {
  position: absolute;
  z-index: 2;
  top: clamp(18px, 3.35cqw, 37px);
  left: clamp(18px, 4.35cqw, 50px);
}
.stage-caption, .stage-index, .stage-selection span, .site-footer {
  font: 600 10px/1.3 var(--mono);
  letter-spacing: .06em;
}
.stage-caption { display: block; margin-bottom: 9px; }
.stage-title {
  max-width: 14ch;
  margin: 0;
  font: 650 clamp(17px, 3.4cqw, 42px)/1.08 var(--display);
  text-transform: uppercase;
  letter-spacing: -.025em;
}
.stage-word {
  position: absolute;
  inset: 47% 0 auto;
  translate: 0 -50%;
  color: #2d410d22;
  text-align: center;
  font: 700 32cqw/.92 var(--display);
  letter-spacing: -.082em;
  text-indent: -.082em;
  user-select: none;
}
.stage-floor {
  position: absolute;
  width: min(48%, 520px);
  height: 7%;
  bottom: 3.6%;
  left: 50%;
  translate: -50%;
  background: radial-gradient(ellipse, #24320a4c 0%, #24320a21 39%, transparent 71%);
}
.figure {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 5.1%;
  width: min(80cqw, 40.95cqh);
  aspect-ratio: 690/1570;
  translate: -50%;
  pointer-events: none;
}
.model, .layer { display: block; position: absolute; }
.model { inset: 0; width: 100%; height: 100%; z-index: 3; }
.layer[data-slot="shoe"], .layer[data-garment^="shoe"] { z-index: 1; }
.layer[data-slot="bottom"], .layer[data-garment^="bottom"] { z-index: 2; }
.layer[data-slot="top"], .layer[data-garment^="top"] { z-index: 4; }
.layer[data-slot="hat"], .layer[data-garment^="hat"] { z-index: 5; }
.landings { z-index: 2; }
.landing {
  position: absolute;
  width: clamp(52px, 14cqw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #2b420d8c;
  box-shadow: 0 0 0 6px #eaff99aa, inset 0 0 0 4px #eaff99b0;
  translate: -50% -50%;
  pointer-events: none;
}
.stage-index, .stage-selection, .stage-sign { position: absolute; z-index: 2; bottom: clamp(15px, 3cqw, 35px); }
.stage-index { left: clamp(18px, 4.35cqw, 50px); display: flex; align-items: center; gap: 7px; }
.stage-index i { width: 7px; aspect-ratio: 1; border-radius: 50%; background: #263915; }
.stage-selection { right: clamp(18px, 4.35cqw, 50px); text-align: right; }
.stage-selection span { display: block; }
.stage-selection strong { display: block; margin-top: 2px; font: 600 clamp(14px, 2.5cqw, 25px)/1.1 var(--display); }
.stage-sign { right: clamp(18px, 4.35cqw, 50px); top: clamp(16px, 3.3cqw, 35px); bottom: auto; font: 600 clamp(26px, 4cqw, 55px)/1 Golos, sans-serif; }
.wardrobe {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vh, 24px);
  padding: clamp(21px, 3.4vh, 38px) clamp(20px, 3vw, 42px) clamp(22px, 3.4vh, 38px);
  min-width: 0;
}
.wardrobe-heading h1 {
  margin: 0 0 8px;
  font: 650 clamp(40px, 4vw, 67px)/1.05 var(--display);
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.wardrobe-heading h1 span { color: var(--acid); }
.wardrobe-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.category-tabs { display: none; }
.rack-list { display: grid; gap: clamp(11px, 1.65vh, 18px); }
.rack h2 {
  margin: 0 0 6px;
  color: var(--muted);
  font: 600 10px/1.2 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.pieces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.piece {
  position: relative;
  display: grid;
  grid-template-rows: clamp(38px, 6vh, 65px) auto;
  place-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 68px;
  padding: 5px 4px 7px;
  border: 1px solid #363634;
  border-radius: 3px;
  background: #262625;
  color: #e6e5db;
  font-size: clamp(9px, .73vw, 12px);
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
}
.piece img { display: block; width: 67%; height: 100%; min-height: 0; object-fit: contain; }
.piece .choice-mark {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border: 1px solid transparent;
  border-radius: 50%;
}
.piece[aria-pressed="true"] { border-color: var(--acid); background: #393d24; color: var(--acid); }
.piece[aria-pressed="true"] .choice-mark { background: var(--acid); }
.wardrobe-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}
.wardrobe-actions button, .share-dialog button {
  min-height: 47px;
  padding: 8px 10px;
  border: 1px solid #676961;
  border-radius: 3px;
  background: #222221;
  color: var(--paper);
  font-size: 13px;
  font-weight: 750;
}
.wardrobe-actions .shuffle { display: flex; align-items: center; justify-content: center; gap: 8px; border-color: var(--acid); background: var(--acid); color: var(--ink); }
.wardrobe-actions .shuffle span { display: inline-block; font-size: 19px; line-height: 1; }
.wardrobe-actions .share span { margin-left: 4px; }
.wardrobe-actions .share[data-copied="true"] { border-color: var(--acid); color: var(--acid); }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
  padding: 9px clamp(18px, 3vw, 52px);
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
.share-dialog {
  width: min(90vw, 460px);
  padding: 22px;
  background: #222221;
  color: var(--paper);
  border: 1px solid var(--acid);
}
.share-dialog::backdrop { background: #111b; }
.share-dialog form { display: grid; gap: 13px; }
.share-dialog label { font-weight: 700; }
.share-dialog input { padding: 10px; border: 1px solid var(--muted); background: var(--ink); color: var(--paper); }
.no-script { margin: 0; color: var(--muted); }
@media (hover: hover) {
  .piece:not([aria-pressed="true"]):hover { border-color: #b3b7a3; background: #33342f; }
  .wardrobe-actions .shuffle:hover { background: #eaff91; }
  .wardrobe-actions .share:hover { border-color: var(--paper); }
  .header-cta:hover span { color: #4e6509; }
}
@media (prefers-reduced-motion: no-preference) {
  .stage-word { animation: word-enter 560ms cubic-bezier(.2,.7,.15,1) both; }
  .figure { animation: figure-enter 290ms ease-out both; }
  .piece, .wardrobe-actions button { transition: background-color 150ms, border-color 150ms, transform 140ms ease-out; }
  .piece:active, .wardrobe-actions button:active { transform: scale(.965); }
}
@keyframes word-enter { from { opacity: 0; transform: translateY(9%) scale(.94); } }
@keyframes figure-enter { from { opacity: .15; } }

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto 1fr;
    gap: 0 19px;
    min-height: 58px;
    padding-inline: 16px;
  }
  .wordmark { align-items: center; font-size: 28px; }
  .wordmark span { align-self: center; margin-top: -12px; }
  .wordmark span { font-size: 12px; }
  .site-nav { justify-self: end; gap: clamp(10px, 3.2vw, 24px); }
  .site-nav a { font-size: clamp(10px, 2.8vw, 12px); white-space: nowrap; }
  .header-cta { display: none; }
  .fitting { display: block; min-height: 0; }
  .stage { min-height: 330px; height: min(53svh, 590px); }
  .stage-title { font-size: clamp(16px, 4.5cqw, 29px); }
  .stage-caption { margin-bottom: 6px; font-size: 8px; }
  .stage-word { font-size: 36cqw; }
  .stage-sign { font-size: 30px; }
  .stage-selection span, .stage-index { font-size: 8px; }
  .stage-index { gap: 4px; }
  .stage-index i { width: 5px; }
  .wardrobe { gap: 12px; padding: 16px; }
  .wardrobe-heading h1 { margin-bottom: 4px; font-size: clamp(30px, 7.7vw, 47px); }
  .wardrobe-heading p { font-size: 12px; }
  .category-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; border-bottom: 1px solid var(--rule); }
  .category-tabs button {
    min-height: 44px;
    padding: 4px 1px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
  }
  .category-tabs button[aria-pressed="true"] { color: var(--acid); border-color: var(--acid); }
  .rack:not(.is-active) { display: none; }
  .rack h2 { display: none; }
  .piece { grid-template-rows: 47px auto; min-height: 70px; font-size: 10px; }
  .pieces { gap: 6px; }
  .site-footer { font-size: 9px; }
}
@media (max-width: 340px) {
  .site-header { gap: 0 7px; padding-inline: 10px; }
  .site-nav { gap: 6px; }
  .site-nav a { font-size: 9px; }
  .wardrobe { padding-inline: 12px; }
}

.figure[data-footwear="boots"] .layer[data-garment^="bottom"] {
  scale: 1 .94;
  transform-origin: center top;
}

@media (min-width: 761px) and (min-height: 840px) {
  .rack-list { flex: 1; grid-template-rows: repeat(4, minmax(min-content, 1fr)); }
  .rack { display: flex; flex-direction: column; }
  .pieces { flex: 1; }
  .piece { grid-template-rows: minmax(53px, 1fr) auto; }
  .piece img { max-height: 68px; }
}

@media (prefers-reduced-motion: no-preference) {
  .layer[data-garment^="bottom"] {
    transform-origin: center top;
    transition: scale 190ms ease-out;
  }
}
