:root {
  --text: #4c4f69;
  --muted: #6c6f85;
  --base: #ffffff;
  --surface: #f8f9fb;
  --line: #dce0e8;
  --accent: #1e66f5;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--base); font-family: var(--sans); }
button { font: inherit; }
.shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

.intro { padding: 80px 0 24px; }
.intro h1 { margin-bottom: 20px; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 600; line-height: 1.2; }
.hero-copy { max-width: 680px; margin-bottom: 0; color: var(--text); font-size: 1rem; line-height: 1.7; }
h1, h2, h3, p { margin-top: 0; font-family: var(--sans); }

.section { padding: 48px 0 80px; }
.section-heading { margin-bottom: 32px; }
h2 { max-width: 520px; margin-bottom: 0; font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 600; line-height: 1.2; }
.wardrobe-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr); gap: 48px; align-items: start; }
.image-wrap { position: relative; overflow: hidden; background: var(--surface); }
.image-wrap img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.item-count { position: absolute; right: 16px; bottom: 16px; padding: 6px 9px; color: var(--base); background: rgb(76 79 105 / 85%); font-size: .72rem; }
.viewer-controls { display: flex; align-items: center; gap: 18px; padding-top: 17px; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); color: var(--text); background: transparent; cursor: pointer; font-size: 1.2rem; }
.icon-button:hover, .icon-button:focus-visible { color: var(--base); background: var(--accent); border-color: var(--accent); }
.item-progress { display: flex; flex: 1; gap: 5px; }
.item-progress span { height: 2px; flex: 1; background: var(--line); }
.item-progress span.is-active { background: var(--accent); }
.item-details { padding-top: 18px; }
.item-note { min-height: 80px; max-width: 410px; color: var(--muted); line-height: 1.7; }
.thumbnail-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 32px; }
.thumbnail { padding: 0; border: 2px solid transparent; background: transparent; cursor: pointer; }
.thumbnail.is-active { border-color: var(--accent); }
.thumbnail img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumbnail:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 560px); }
  .intro { padding: 56px 0 16px; }
  .section { padding: 40px 0 56px; }
  .wardrobe-layout { display: block; }
  .item-details { padding-top: 32px; }
  .thumbnail-list { margin-top: 28px; }
}
