/* ==========================================================================
   OVERCAST SUPPLY — anti-design streetwear
   Acid green on black. Monospace metadata. No border-radius. Ever.
   ========================================================================== */

:root {
  --acid: #b6ff00;
  --black: #0a0a0a;
  --ink: #000000;
  --concrete: #2a2a2a;
  --concrete-light: #b3b3b3; /* passes contrast on black */
  --grey-mid: #8f8f8f;       /* large/secondary text on black */
  --white: #f2f2f2;
  --border: 2px solid var(--acid);
  --border-dim: 2px solid var(--concrete);
  --font-display: "Archivo Black", Impact, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important; /* commitment */
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.55;
  /* faint concrete grid */
  background-image:
    linear-gradient(var(--concrete) 1px, transparent 1px),
    linear-gradient(90deg, var(--concrete) 1px, transparent 1px);
  background-size: 120px 120px;
  background-position: -1px -1px;
}

.mono { font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
}

.header-bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: var(--border-dim);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  color: var(--acid);
  text-decoration: none;
  border-right: var(--border-dim);
}

.logo-mark { display: block; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--white);
}

.nav-toggle {
  display: none; /* small screens only, and only once JS adds html.js — never a dead button on desktop */
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  background: var(--ink);
  color: var(--acid);
  border: var(--border);
  margin: 0.6rem 1rem;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--acid);
  color: var(--ink);
}

.site-nav ul {
  display: flex;
  list-style: none;
  height: 100%;
}

.site-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1.1rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-left: var(--border-dim);
}

.site-nav a:hover {
  background: var(--acid);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Marquee — animated only when motion is OK; static strip otherwise
   -------------------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  background: var(--acid);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 0.45rem 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  padding-right: 2rem;
}

@media (prefers-reduced-motion: no-preference) {
  .marquee-track {
    animation: marquee 28s linear infinite;
  }

  @keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0 3rem;
  border-bottom: var(--border-dim);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 1.75rem;
  line-height: 1;
}

.index {
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 0.55em;
  vertical-align: 0.45em;
  margin-right: 0.35rem;
}

.section-intro {
  max-width: 56ch;
  color: var(--concrete-light);
  margin-bottom: 2.25rem;
}

h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

a { color: var(--acid); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 5rem 0 3.5rem;
  border-bottom: var(--border);
}

.meta-line {
  margin-bottom: 1.25rem;
}

.tag {
  display: inline-block;
  border: var(--border);
  color: var(--acid);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.7rem;
  margin-right: 0.4rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 12vw, 9rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.green-dot { color: var(--acid); }

.hero-sub {
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--concrete-light);
  border-top: var(--border-dim);
  border-bottom: var(--border-dim);
  padding: 0.7rem 0;
  margin-bottom: 2.5rem;
}

.hero-barcode {
  display: block;
  width: min(420px, 80%);
  height: 48px;
  color: var(--acid);
}

/* --------------------------------------------------------------------------
   Drop
   -------------------------------------------------------------------------- */

.drop-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.drop-main {
  border: var(--border);
  padding: 2rem 1.75rem 1.75rem;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 18px,
      rgba(182, 255, 0, 0.05) 18px 20px
    );
}

.drop-code {
  color: var(--acid);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
}

.drop-date {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.drop-countdown {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--acid);
}

.drop-rules p {
  color: var(--concrete-light);
  margin-bottom: 1.1rem;
  border-left: var(--border-dim);
  padding-left: 1.1rem;
}

/* --------------------------------------------------------------------------
   Product cards — spec sheets
   -------------------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.5rem;
}

/* deliberate asymmetry */
.product-card:nth-child(odd)  { transform: translateY(0.6rem); }
.product-card:nth-child(3)    { transform: translateY(-0.4rem); }

.product-card {
  border: var(--border);
  background: var(--ink);
  padding: 1.25rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.card-barcode {
  width: 70%;
  height: 20px;
  color: var(--white);
}

.product-card h3 {
  font-size: 1.15rem;
  line-height: 1.1;
}

.spec {
  border-top: var(--border-dim);
}

.spec > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: var(--border-dim);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.spec dt { color: var(--grey-mid); }
.spec dd { color: var(--white); }

.spec .price-row {
  border-bottom: var(--border);
}

.spec .price-row dd {
  color: var(--acid);
  font-weight: 700;
  font-size: 1.05rem;
}

.card-note {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--concrete-light);
}

/* --------------------------------------------------------------------------
   Sizing table
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }

.size-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 760px;
  font-size: 0.85rem;
}

.size-table th,
.size-table td {
  border: var(--border-dim);
  padding: 0.6rem 0.9rem;
  text-align: left;
}

.size-table thead th {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.size-table tbody th {
  color: var(--acid);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Shipping / returns / about / pop-ups / contact
   -------------------------------------------------------------------------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.policy-block {
  border: var(--border-dim);
  border-top: var(--border);
  padding: 1.5rem 1.5rem 1.25rem;
}

.policy-block h3 { margin-bottom: 1rem; }

.policy-block li {
  list-style: none;
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.7rem;
  font-size: 0.88rem;
  color: var(--concrete-light);
}

.policy-block li::before {
  content: "//";
  position: absolute;
  left: 0;
  color: var(--acid);
  font-weight: 700;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
}

.about-lede {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  line-height: 1.25;
  text-transform: uppercase;
}

.about-body p {
  color: var(--concrete-light);
  margin-bottom: 1.1rem;
  font-size: 0.92rem;
}

.popup-card {
  border: var(--border);
  padding: 2rem 1.75rem;
  background: var(--ink);
}

.popup-big {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  text-transform: uppercase;
  color: var(--acid);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.popup-card .spec > div {
  grid-template-columns: 6.5rem 1fr;
}

.popup-card .card-note { margin-top: 1rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-block {
  border: var(--border-dim);
  border-left: var(--border);
  padding: 1.4rem 1.4rem 1.2rem;
}

.contact-block h3 {
  margin-bottom: 0.9rem;
  color: var(--acid);
}

.contact-block address {
  font-style: normal;
}

.contact-block p,
.contact-block address {
  font-size: 0.9rem;
  color: var(--concrete-light);
}

.contact-block a { color: var(--acid); }

/* --------------------------------------------------------------------------
   FAQ — accordion enhanced by JS, fully readable without it
   -------------------------------------------------------------------------- */

.faq-list {
  max-width: 820px;
}

.faq-item {
  border: var(--border-dim);
  border-left: var(--border);
  margin-bottom: 0.9rem;
}

.faq-q {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  padding: 1rem 1.25rem;
}

/* JS-injected button takes over the heading's box */
.faq-q .faq-toggle {
  all: unset;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  cursor: pointer;
  box-sizing: border-box;
}

.faq-q .faq-toggle:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 3px;
}

.faq-toggle::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--acid);
  font-size: 1.3rem;
}

.faq-toggle[aria-expanded="true"]::after {
  content: "–";
}

.faq-a {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.9rem;
  color: var(--concrete-light);
}

.faq-a[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: var(--border);
  margin-top: 3rem;
  padding: 2.5rem 1.25rem 3rem;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.footer-barcode {
  display: block;
  width: min(320px, 70%);
  height: 28px;
  color: var(--acid);
  margin-bottom: 1.75rem;
}

.footer-grid p {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  color: var(--concrete-light);
  margin-bottom: 0.4rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .drop-grid,
  .two-col,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-card:nth-child(odd),
  .product-card:nth-child(3) {
    transform: none;
  }
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  /* no JS: the nav simply stays fully visible as a stacked list */
  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    border-left: none;
    border-top: var(--border-dim);
    padding: 0.85rem 1.25rem;
  }

  /* with JS (html.js): MENU button + brutal acid full-screen takeover.
     z-index 40 keeps it under the sticky header (z 50), so the barcode
     logo and the MENU/CLOSE button stay on top. the takeover itself is
     the backdrop — tapping off the list closes it. */
  html.js .nav-toggle {
    display: inline-block;
  }

  html.js .site-nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: var(--acid);
    padding: 6rem 1.25rem 2rem;
    overflow-y: auto;
    transform: translateY(100%);
    visibility: hidden;
  }

  html.js .site-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  html.js .site-nav ul {
    counter-reset: nav-index;
    height: auto;
  }

  html.js .site-nav li {
    counter-increment: nav-index;
  }

  /* oversized Archivo Black links with monospace index labels */
  html.js .site-nav a {
    align-items: baseline;
    gap: 1.25rem;
    height: auto;
    padding: 0.6rem 0.25rem;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 9vw, 3.25rem);
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--ink);
    border-top: 2px solid rgba(0, 0, 0, 0.3);
  }

  html.js .site-nav li:last-child a {
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  }

  html.js .site-nav a::before {
    content: "0" counter(nav-index, decimal-leading-zero); /* 001, 002, ... */
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
  }

  html.js .site-nav a:hover {
    background: var(--ink);
    color: var(--acid);
  }
}

/* takeover motion: instant-feel slide-up, links stamp in staggered.
   every transition is gated on no-preference, so reduced-motion users
   get an instant show/hide with no transforms. */
@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  html.js .site-nav {
    transition: transform 180ms cubic-bezier(0.2, 0, 0, 1), visibility 0s linear 180ms;
  }

  html.js .site-nav.is-open {
    transition: transform 180ms cubic-bezier(0.2, 0, 0, 1), visibility 0s linear;
  }

  html.js .site-nav li {
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 110ms ease-out, transform 110ms ease-out;
  }

  html.js .site-nav.is-open li {
    opacity: 1;
    transform: scale(1);
  }

  html.js .site-nav.is-open li:nth-child(1) { transition-delay: 60ms; }
  html.js .site-nav.is-open li:nth-child(2) { transition-delay: 95ms; }
  html.js .site-nav.is-open li:nth-child(3) { transition-delay: 130ms; }
  html.js .site-nav.is-open li:nth-child(4) { transition-delay: 165ms; }
  html.js .site-nav.is-open li:nth-child(5) { transition-delay: 200ms; }
  html.js .site-nav.is-open li:nth-child(6) { transition-delay: 235ms; }
}

/* Social links (fictional .example profiles) */
.social-links { display: flex; gap: 1.2rem; list-style: none; justify-content: center; padding: 0 1.5rem; margin: 1.5rem auto 0; }
.social-links a { display: inline-flex; color: inherit; opacity: 0.85; }
.social-links a:hover, .social-links a:focus-visible { opacity: 1; }
.social-links svg { width: 1.3rem; height: 1.3rem; }

/* ---------- Product pages & garment flats ---------- */

.garment-flat {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: auto;
  color: var(--acid, #b6ff00);
  background: #101010;
  border: 2px solid currentColor;
  padding: 1.25rem;
  box-sizing: border-box;
}

.garment-thumb {
  max-width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem;
}

.product-link { color: inherit; text-decoration: none; }
.product-link:hover, .product-link:focus-visible { color: var(--acid, #b6ff00); text-decoration: underline; }

.spec-link a { color: var(--acid, #b6ff00); text-decoration: none; }
.spec-link a:hover, .spec-link a:focus-visible { text-decoration: underline; }

.breadcrumb a { color: inherit; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  margin-top: 1.5rem;
}

@media (max-width: 800px) {
  .product-layout { grid-template-columns: 1fr; }
}

.flat-caption { margin-top: 0.6rem; opacity: 0.7; font-size: 0.75rem; }

.product-page h1 {
  font-family: 'Archivo Black', Arial Black, sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 0.95;
  margin: 0 0 0.5rem;
}

.product-price { font-size: 1.4rem; font-weight: 700; color: var(--acid, #b6ff00); margin: 0 0 1.5rem; }

.product-story { max-width: 38rem; margin: 1.5rem 0; }

.product-note { border: 1px dashed currentColor; padding: 0.7rem 0.9rem; opacity: 0.8; max-width: 38rem; }

.btn-acid {
  display: inline-block;
  background: var(--acid, #b6ff00);
  color: #101010;
  font-family: 'Archivo Black', Arial Black, sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border: 2px solid var(--acid, #b6ff00);
  margin-top: 0.5rem;
}

.btn-acid:hover, .btn-acid:focus-visible { background: transparent; color: var(--acid, #b6ff00); }

.measure-section { margin-top: 3.5rem; overflow-x: auto; }

.measure {
  border-collapse: collapse;
  width: 100%;
  max-width: 44rem;
  border: 2px solid currentColor;
}

.measure caption { text-align: left; padding-bottom: 0.5rem; font-weight: 700; }

.measure th, .measure td {
  border: 1px solid currentColor;
  padding: 0.55rem 0.8rem;
  text-align: left;
  font-size: 0.85rem;
}

.measure thead th { background: var(--acid, #b6ff00); color: #101010; }

.table-note, .care-note { margin-top: 0.8rem; opacity: 0.8; font-size: 0.8rem; }

.also-stock { margin-top: 3.5rem; border-top: 2px solid currentColor; padding-top: 1.5rem; }
.also-stock h2 { font-size: 0.95rem; letter-spacing: 0.1em; }
.also-stock ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.also-stock a { color: var(--acid, #b6ff00); text-decoration: none; }
.also-stock a:hover, .also-stock a:focus-visible { text-decoration: underline; }


/* Anchor targets clear the sticky header instead of sliding under it */
[id] {
  scroll-margin-top: 111px;
}

/* On phones the stock ticker clamps to the bottom edge and is tappable —
   the drop announcement follows you down the page. */
.marquee-link { display: block; text-decoration: none; }

@media (max-width: 720px) {
  .marquee-link {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 65;
  }

  body { padding-bottom: 2.4rem; }
}
