:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(3.25rem, 0.5rem + 7.5vw, 8.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-12: 3rem; --space-16: 4rem; --space-24: 6rem; --space-32: 8rem;

  --font-display: 'Archivo', 'Arial Narrow', sans-serif;
  --font-body: 'Archivo', 'Helvetica Neue', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 180ms var(--ease);

  --color-bg: oklch(0.945 0.012 85);
  --color-surface: oklch(0.975 0.008 85);
  --color-surface-2: oklch(0.91 0.012 85);
  --color-text: oklch(0.19 0.006 80);
  --color-muted: oklch(0.44 0.012 80);
  --color-border: oklch(0.19 0.006 80 / 0.14);
  --color-primary: oklch(0.19 0.006 80);
  --color-on-primary: oklch(0.96 0.01 85);
  --color-accent: oklch(0.74 0.12 182);
  --ink: oklch(0.15 0.004 80);
  --bone: oklch(0.94 0.012 85);
  --shadow-lg: 0 24px 60px oklch(0.2 0.02 80 / 0.22);
  color-scheme: light;
}
[data-theme='dark'] {
  --color-bg: oklch(0.155 0.004 80);
  --color-surface: oklch(0.195 0.005 80);
  --color-surface-2: oklch(0.235 0.006 80);
  --color-text: oklch(0.93 0.012 85);
  --color-muted: oklch(0.7 0.012 85);
  --color-border: oklch(0.93 0.012 85 / 0.14);
  --color-primary: oklch(0.93 0.012 85);
  --color-on-primary: oklch(0.16 0.004 80);
  --shadow-lg: 0 24px 60px oklch(0 0 0 / 0.5);
  color-scheme: dark;
}

body { font-weight: 400; overflow-x: hidden; }
.wrap { width: min(100% - 2 * clamp(1rem, 4vw, 3rem), 1320px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--color-primary); color: var(--color-on-primary); padding: var(--space-2) var(--space-4); z-index: 100; }
.skip:focus { left: var(--space-4); top: var(--space-4); }
a { color: inherit; text-decoration: none; }

.kicker { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted); margin-bottom: var(--space-3); }
.kicker--light { color: oklch(0.85 0.01 85); }
.section-title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 900; font-stretch: 75%; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.95; }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: oklch(from var(--color-bg) l c h / 0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); }
.mark { width: 20px; height: auto; flex: none; }
.brand__word { font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; letter-spacing: 0.02em; }
.nav { display: flex; gap: var(--space-8); font-size: var(--text-sm); font-weight: 500; }
.nav a { padding-block: var(--space-2); border-bottom: 2px solid transparent; }
.nav a:hover { border-color: currentColor; }
.header__tools { display: flex; align-items: center; gap: var(--space-2); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; color: var(--color-text); }
.icon-btn:hover { background: var(--color-surface-2); }
.cart-btn { display: inline-flex; align-items: center; gap: var(--space-2); height: 44px; padding-inline: var(--space-4); border-radius: 999px; background: var(--color-primary); color: var(--color-on-primary); font-size: var(--text-sm); font-weight: 600; }
.cart-btn:hover { opacity: 0.88; }
.cart-count { min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 999px; background: var(--color-accent); color: var(--ink); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; display: grid; place-items: center; }
.cart-count.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-6); border-radius: 999px; font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.02em; border: 1.5px solid transparent; }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn--primary:hover { opacity: 0.88; }
.btn--ghost { border-color: currentColor; }
.btn--ghost:hover { background: oklch(from currentColor l c h / 0.1); }
.btn--block { width: 100%; }

/* Hero (always dark) */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--ink); color: var(--bone); min-height: calc(100dvh - 64px); overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__copy { align-self: center; padding: clamp(2rem, 6vw, 6rem); padding-bottom: calc(clamp(2rem, 6vw, 6rem) + 48px); }
.hero .kicker { color: oklch(0.78 0.012 85); }
.hero__title { font-family: var(--font-display); font-size: var(--text-hero); font-weight: 900; font-stretch: 68%; text-transform: uppercase; line-height: 0.86; letter-spacing: -0.015em; margin-bottom: var(--space-6); hyphens: manual; }
.hero__lede { font-size: var(--text-base); color: oklch(0.86 0.01 85); max-width: 46ch; margin-bottom: var(--space-8); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero .btn--primary { background: var(--bone); color: var(--ink); }
.hero__ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; border-top: 1px solid oklch(0.94 0.012 85 / 0.18); background: var(--ink); overflow: hidden; display: flex; align-items: center; }
.ticker__track { display: flex; align-items: center; gap: var(--space-6); white-space: nowrap; animation: tick 40s linear infinite; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.2em; padding-left: var(--space-6); }
.ticker__track .mark { width: 12px; color: var(--color-accent); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Shop */
.shop { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-12); }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filters button { min-height: 40px; padding: 0 var(--space-4); border-radius: 999px; border: 1px solid var(--color-border); font-size: var(--text-sm); font-weight: 500; }
.filters button:hover { border-color: var(--color-text); }
.filters button[aria-selected='true'] { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(var(--space-4), 2vw, var(--space-8)) clamp(var(--space-4), 2vw, var(--space-6)); }
.card { animation: rise 0.6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.card button { display: block; width: 100%; text-align: left; }
.card__img { position: relative; aspect-ratio: 760 / 840; border-radius: var(--radius-lg); overflow: hidden; background: #e8e6e2; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.45s var(--ease), transform 0.6s var(--ease); }
.card__img .back { opacity: 0; }
.card button:hover .card__img img { transform: scale(1.03); }
.card button:hover .card__img .back { opacity: 1; }
.card__tag { position: absolute; top: var(--space-3); left: var(--space-3); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; background: oklch(0.15 0.004 80 / 0.85); color: var(--bone); padding: 4px 10px; border-radius: 999px; }
.card__row { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-3); }
.card__name { font-weight: 700; font-size: var(--text-base); line-height: 1.3; }
.card__color { font-size: var(--text-xs); color: var(--color-muted); }
.card__price { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 700; }

/* Band */
.band { position: relative; height: clamp(360px, 60vw, 720px); background: var(--ink); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band__copy { position: absolute; left: clamp(1rem, 5vw, 5rem); bottom: clamp(1.5rem, 5vw, 4.5rem); color: var(--bone); max-width: 20ch; }
.band__quote { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 900; font-stretch: 72%; text-transform: uppercase; line-height: 0.95; text-shadow: 0 2px 24px oklch(0 0 0 / 0.6); }

/* Story */
.story { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }
.story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(var(--space-8), 6vw, var(--space-24)); align-items: center; }
.story__badge { color: var(--color-text); max-width: 460px; justify-self: center; width: 100%; }
.badge-svg { width: 100%; height: auto; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.story__copy p { margin-top: var(--space-4); color: var(--color-muted); }
.story__copy .kicker { margin-top: 0; }
.story__copy h2 { margin-bottom: var(--space-2); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.facts dt { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); }
.facts dd { font-weight: 700; margin-top: var(--space-1); }

/* Drop */
.drop { background: var(--color-surface-2); padding-block: clamp(var(--space-16), 7vw, var(--space-24)); }
.drop__inner { text-align: center; display: grid; justify-items: center; gap: var(--space-3); }
.drop__inner > p { color: var(--color-muted); }
.drop__form { display: flex; gap: var(--space-2); width: min(100%, 480px); margin-top: var(--space-4); }
.drop__form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--space-4); border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); }
.drop__form input:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.form-msg { font-size: var(--text-sm); min-height: 1.4em; color: var(--color-muted); }
.form-msg.err { color: oklch(0.55 0.18 28); }

/* Footer */
.footer { border-top: 1px solid var(--color-border); padding-block: var(--space-8); font-size: var(--text-sm); color: var(--color-muted); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.footer .brand { color: var(--color-text); }
.footer nav { display: flex; gap: var(--space-6); }
.footer nav a:hover { color: var(--color-text); }

/* Product dialog */
.pdp { margin: auto; width: min(100% - 2rem, 980px); max-height: min(92dvh, 760px); border: none; border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-lg); padding: 0; overflow: auto; }
.pdp::backdrop { background: oklch(0.1 0 0 / 0.55); backdrop-filter: blur(4px); }
.pdp[open] { animation: pop 0.35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.pdp__close { position: absolute; top: var(--space-3); right: var(--space-3); z-index: 2; background: var(--color-surface); }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pdp__media { background: #e8e6e2; position: relative; }
.pdp__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 760/840; }
.pdp__views { position: absolute; bottom: var(--space-3); left: 50%; transform: translateX(-50%); display: flex; gap: var(--space-2); }
.pdp__views button { min-height: 36px; padding: 0 var(--space-4); border-radius: 999px; background: oklch(0.15 0.004 80 / 0.8); color: var(--bone); font-size: var(--text-xs); font-weight: 600; }
.pdp__views button[aria-pressed='true'] { background: var(--bone); color: var(--ink); }
.pdp__info { padding: clamp(var(--space-6), 4vw, var(--space-12)); display: flex; flex-direction: column; gap: var(--space-3); }
.pdp__name { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 900; font-stretch: 80%; text-transform: uppercase; line-height: 1; padding-right: var(--space-8); }
.pdp__price { font-family: var(--font-mono); font-weight: 700; font-size: var(--text-lg); }
.pdp__info > p#pdpDesc { color: var(--color-muted); }
.pdp__meta { font-size: var(--text-sm); }
.sizes { border: none; margin-top: var(--space-2); }
.sizes legend { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); margin-bottom: var(--space-2); }
#sizes { display: flex; flex-wrap: wrap; gap: var(--space-2); }
#sizes button { min-width: 52px; min-height: 44px; border-radius: var(--radius-md); border: 1px solid var(--color-border); font-weight: 600; font-size: var(--text-sm); }
#sizes button:hover { border-color: var(--color-text); }
#sizes button[aria-pressed='true'] { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary); }
#addBtn { margin-top: var(--space-4); }

/* Drawer */
.drawer { position: fixed; top: 0; right: 0; height: 100dvh; width: min(100%, 420px); z-index: 60; background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(105%); transition: transform 0.45s var(--ease); }
.drawer.open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--color-border); }
.drawer__head h3 { font-size: var(--text-lg); }
.drawer__items { flex: 1; overflow: auto; padding: var(--space-4) var(--space-6); display: grid; align-content: start; gap: var(--space-4); }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: var(--space-3); align-items: center; }
.line img { width: 72px; height: 80px; object-fit: cover; border-radius: var(--radius-md); background: #e8e6e2; }
.line__name { font-weight: 700; font-size: var(--text-sm); }
.line__meta { font-size: var(--text-xs); color: var(--color-muted); }
.qty { display: inline-flex; align-items: center; gap: var(--space-1); margin-top: var(--space-1); }
.qty button { width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--color-border); font-weight: 700; }
.qty button:hover { border-color: var(--color-text); }
.qty span { min-width: 20px; text-align: center; font-family: var(--font-mono); font-size: var(--text-sm); }
.line__price { font-family: var(--font-mono); font-weight: 700; font-size: var(--text-sm); }
.empty { text-align: center; padding-block: var(--space-16); color: var(--color-muted); }
.empty .mark { width: 36px; margin: 0 auto var(--space-4); opacity: 0.5; }
.drawer__foot { border-top: 1px solid var(--color-border); padding: var(--space-4) var(--space-6) var(--space-6); display: grid; gap: var(--space-3); }
.drawer__total { display: flex; justify-content: space-between; font-weight: 700; }
.drawer__total span:last-child { font-family: var(--font-mono); }
.scrim { position: fixed; inset: 0; z-index: 55; background: oklch(0.1 0 0 / 0.45); animation: fade 0.3s var(--ease); }
@keyframes fade { from { opacity: 0; } }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__media { height: 62vh; }
  .hero__copy { padding-top: var(--space-8); }
  .story__grid { grid-template-columns: 1fr; }
  .story__badge { max-width: 300px; }
  .pdp__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__row { flex-direction: column; gap: 2px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .drop__form { flex-direction: column; }
}
