:root {
  color-scheme: light;
  color: #101010;
  background: #fff;
  font-family: 'Courier New', monospace;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; display: grid; align-items: center; }
.masthead { padding: .75rem clamp(.75rem, 3vw, 2rem); }
.masthead h1 { margin: 0; width: clamp(104px, 16vw, 150px); }
.masthead img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lookbook { width: min(calc(100% - 2rem), 820px); margin: auto; padding-bottom: 1.5rem; }
.slide { margin: 0; }
.slide img {
  display: block;
  width: 100%;
  height: clamp(240px, 65svh, 690px);
  object-fit: contain;
  background: #fff;
}
.slide figcaption {
  padding: .75rem .25rem;
  color: #333;
  font-size: .875rem;
  font-weight: bold;
  letter-spacing: .025em;
  text-align: center;
  text-transform: uppercase;
}
.controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.controls button {
  min-width: 4.5rem;
  min-height: 44px;
  border: 1px solid #575757;
  background: transparent;
  color: inherit;
  font: bold .875rem 'Courier New', monospace;
  text-transform: uppercase;
  cursor: pointer;
}
.controls button:first-child { justify-self: start; }
.controls button:last-child { justify-self: end; }
.controls button:hover { color: #fff; background: #101010; }
.controls button:focus-visible { outline: 2px solid #101010; outline-offset: 3px; }
.controls output { color: #333; font-size: .875rem; }

.mockup-stage {
  --frame-height: clamp(240px, 65svh, 690px);
  display: grid;
  place-items: center;
  height: var(--frame-height);
  background: #fff;
}
.mockup-stage > img, .mockup-crop {
  width: min(100%, var(--frame-height));
  height: auto;
  aspect-ratio: 1;
  border: 0;
}
.mockup-crop { position: relative; overflow: hidden; clip-path: inset(1% 0); }
.mockup-crop img {
  position: absolute;
  top: 50%;
  height: auto;
  border: 0;
  transform: translateY(-50%);
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding-inline: clamp(.75rem, 3vw, 2rem);
  background: #171717;
  color: #fff;
}
.topbar summary {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 46px;
  padding-inline: .25rem;
  font-size: .875rem;
  font-weight: bold;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.topbar summary::-webkit-details-marker { display: none; }
.topbar summary:focus-visible, .topbar a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.menu-icon {
  width: .9rem;
  height: .65rem;
  border-block: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
.cart-count { border: 1px solid #888; padding: .1rem .35rem; }
.topbar-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  max-width: min(310px, 100%);
  padding: 1rem;
  background: #fff;
  color: #171717;
  border: 1px solid #ccc;
}
.topbar details:last-child .topbar-panel { left: auto; right: 0; }
.topbar-panel a { color: inherit; }
.topbar-panel p { margin: 0; line-height: 1.5; }

.menu-panel {
  width: min(22rem, 100%);
  max-width: 100%;
  margin: 0;
  padding: .4rem;
  list-style: none;
  background: #171717;
  color: #fff;
  border: 1px solid #424242;
}
.menu-panel a, .menu-panel button {
  display: block;
  width: 100%;
  padding: .9rem 1rem;
  background: transparent;
  border: 0;
  color: inherit;
  font: bold .9375rem/1.25 'Courier New', monospace;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.menu-panel a:hover, .menu-panel button:hover { background: #363636; }
.menu-panel button:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.menu-dialog { width: min(26rem, calc(100% - 2rem)); padding: 1.5rem; border: 1px solid #171717; }
.menu-dialog::backdrop { background: #0008; }
.menu-dialog h2 { margin-top: 0; font-size: 1.125rem; }
.menu-dialog p { line-height: 1.5; }
.menu-dialog button { padding: .5rem .85rem; cursor: pointer; }

.social-links { display: flex; justify-content: center; gap: 1rem; margin-top: .75rem; }
.social-links a { display: inline-flex; align-items: center; min-height: 44px; color: #333; font-size: .875rem; text-transform: uppercase; text-underline-offset: .2em; }
.social-links a:hover { color: #101010; }
