/* =====================================================================
   WE US — Worth Everything U See
   Bold / high-contrast streetwear store. Black · Gray · Gold · White.
   ===================================================================== */

:root {
  --ink:        #0A0A0A;   /* near-black base            */
  --ink-soft:   #141414;   /* raised surfaces            */
  --ink-line:   #262626;   /* hairline borders on dark   */
  --paper:      #F6F4EF;   /* warm off-white             */
  --paper-line: #E2DED4;   /* hairline borders on light  */
  --orange:     #5E6166;   /* accent — slate gray (on light) */
  --orange-700: #45474B;   /* darker gray (hover/border)     */
  --gold:       #C9A33B;   /* crest / premium accent     */
  --gold-soft:  #E4C97A;
  --white:      #FFFFFF;
  --muted-d:    #A3A3A3;   /* muted text on dark         */
  --muted-l:    #57534E;   /* muted text on light        */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shell: 88rem; /* 1408px max content */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--ink); }

/* ---- typography helpers ------------------------------------------- */
.font-display { font-family: "Archivo", sans-serif; font-weight: 900; }
.font-mono    { font-family: "Space Mono", ui-monospace, monospace; }

.display {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 3rem); }

/* ---- buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: "Space Mono", monospace;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-orange { background: var(--ink); color: var(--paper); }
.btn-orange:hover { background: var(--gold); color: var(--ink); }
.btn-light  { background: var(--ink); color: var(--paper); }
.btn-light:hover { background: var(--gold); color: var(--ink); }
.btn-ghost  { background: transparent; color: var(--ink); border-color: #C9C4B8; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-l { background: transparent; color: var(--ink); border-color: var(--paper-line); }
.btn-ghost-l:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* focus visibility for keyboard nav */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ---- announcement marquee ----------------------------------------- */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track {
  display: inline-flex; gap: 3rem; padding-block: 0.7rem;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee__item {
  font-family: "Space Mono", monospace; font-size: 0.78rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 3rem;
}

/* ---- scroll reveal (driven by IntersectionObserver fallback / GSAP) */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ---- product card ------------------------------------------------- */
.card { position: relative; cursor: pointer; }
.card__media {
  position: relative; overflow: hidden;
  background: #FFFFFF;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--paper-line);
}
.card__media svg, .card__media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media svg, .card:hover .card__media img { transform: scale(1.04); }
.card__tag {
  position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2;
  font-family: "Space Mono", monospace; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--orange); color: #fff; padding: 0.28rem 0.55rem;
}
.card__add {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  transform: translateY(101%); transition: transform .3s var(--ease);
  border: 0; width: 100%;
}
.card:hover .card__add, .card:focus-within .card__add { transform: none; }
.swatch { width: 14px; height: 14px; border-radius: 999px; border: 1px solid rgba(0,0,0,.25); }

/* ---- cart drawer -------------------------------------------------- */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.drawer-scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(28rem, 100vw); background: var(--paper);
  border-left: 1px solid var(--paper-line);
  transform: translateX(100%); transition: transform .38s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }

/* ---- nav ---------------------------------------------------------- */
.nav-desktop { display: flex; gap: 2rem; align-items: center; }
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* ---- ticker number badge ------------------------------------------ */
.count-badge {
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--orange); color: #fff; border-radius: 999px;
  font-family: "Space Mono", monospace; font-size: 0.62rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---- section divider rule ----------------------------------------- */
.rule { height: 1px; background: var(--paper-line); border: 0; }

/* ---- reduced motion ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
