@import url("fonts.css");

/* ==========================================================================
   ORGANIC ACTIVEWEAR — est. 2020, Vancouver BC
   Small-run organic activewear. Hard edges, expanded grotesque, ink on bone.
   ========================================================================== */

:root {
  --ink: #0f100c;
  --ink-soft: #23251d;
  --bone: #efeae0;
  --bone-warm: #e6e0d3;
  --sand: #d9d2c2;
  --clay: #c1502e;
  --steel: #6f766b;
  --line: rgba(15, 16, 12, 0.16);
  --line-bone: rgba(239, 234, 224, 0.22);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --fs-body: clamp(0.95rem, 0.4vw + 0.86rem, 1.05rem);
  --fs-label: 0.68rem;
  --fs-h1: clamp(2.4rem, 8.2vw, 7.4rem);
  --fs-h2: clamp(1.9rem, 4.6vw, 4rem);
  --fs-h3: clamp(1.1rem, 1.4vw, 1.45rem);

  --gutter: clamp(1.1rem, 3.4vw, 2.75rem);
  --wrap: 1320px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--clay); color: var(--bone); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  font-stretch: 118%;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.022em;
  font-variation-settings: "wght" 800, "wdth" 118;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: 0.9; }
h3 { font-size: var(--fs-h3); font-weight: 700; font-stretch: 112%; line-height: 1.02; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-stretch: 105%;
  color: var(--steel);
  margin: 0 0 1rem;
  display: block;
}
.on-dark .label, .label--bone { color: rgba(239, 234, 224, 0.62); }

.lead { font-size: clamp(1.05rem, 0.8vw + 0.9rem, 1.3rem); line-height: 1.5; }

/* ---------- structure ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 900px; }

.section { padding-block: clamp(3.25rem, 7vw, 7rem); }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.section--ink { background: var(--ink); color: var(--bone); }
.section--sand { background: var(--bone-warm); }
.section--ink h2, .section--ink h3 { color: var(--bone); }

.hair-top { border-top: 1px solid var(--line); }
.section--ink .hair-top { border-top-color: var(--line-bone); }

/* ---------- ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding-block: 0.55rem;
}
.ticker__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: slide 42s linear infinite;
}
.ticker span { display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap; }
.ticker span::after { content: "✳"; color: var(--clay); font-size: 0.7rem; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand img { width: 30px; height: auto; }
.brand__type { display: grid; gap: 1px; line-height: 1; }
.brand__name {
  font-weight: 800;
  font-stretch: 118%;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand__est { font-size: 0.54rem; letter-spacing: 0.24em; color: var(--steel); text-transform: uppercase; }

.nav { display: none; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.1rem); }
.nav a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-block: 0.5rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav a.is-shop { color: var(--clay); }

.header-tools { display: flex; align-items: center; gap: 0.75rem; }
.header-cta { display: block; }
.header-cta .btn { padding: 0.62rem 0.9rem; font-size: 0.62rem; letter-spacing: 0.12em; }
.header-tools { display: flex; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn--bone { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn--bone:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn--ghost-bone { background: transparent; border-color: var(--line-bone); color: var(--bone); }
.btn--ghost-bone:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }

.nav-toggle {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); cursor: pointer;
}
.nav-toggle i { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
.nav-toggle i::before, .nav-toggle i::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle i::before { top: -5px; }
.nav-toggle i::after { top: 5px; }
body.nav-open .nav-toggle i { background: transparent; }
body.nav-open .nav-toggle i::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle i::after { top: 0; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: calc(var(--header-h)) 0 0 0; z-index: 790;
  background: var(--bone);
  padding: 1.5rem var(--gutter) 2.5rem;
  display: grid; align-content: start; gap: 1.5rem;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  overflow-y: auto;
}
body.nav-open .drawer { opacity: 1; transform: none; visibility: visible; }
.drawer nav { display: grid; }
.drawer nav a {
  font-size: 1.5rem; font-weight: 800; font-stretch: 118%; text-transform: uppercase;
  padding-block: 0.85rem; border-bottom: 1px solid var(--line);
}
body.nav-open { overflow: hidden; }

@media (min-width: 880px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .drawer { display: none; }
}

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--bone); position: relative; overflow: hidden; }
.hero__grid {
  max-width: var(--wrap); margin-inline: auto; padding: clamp(2.25rem, 6vw, 4.5rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
  display: grid; gap: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.22fr 0.78fr; align-items: end; }
}
.hero h1 { color: var(--bone); }
.hero h1 em {
  font-style: normal;
  color: var(--clay);
  font-stretch: 100%;
}
.hero__lede {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  max-width: 44ch;
  color: rgba(239, 234, 224, 0.78);
  font-size: clamp(0.98rem, 0.6vw + 0.85rem, 1.18rem);
}
.hero__actions { margin-top: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero__badge { justify-self: start; }
@media (min-width: 900px) { .hero__badge { justify-self: end; } }
.hero__badge img { width: clamp(160px, 24vw, 340px); height: auto; opacity: 0.96; }
.hero__foot {
  border-top: 1px solid var(--line-bone);
  margin-top: clamp(1.75rem, 4vw, 3rem);
  padding-top: 1rem;
  display: flex; flex-wrap: wrap; gap: 0.45rem 2rem;
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(239, 234, 224, 0.55);
}

/* interior page hero */
.page-hero {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.25rem, 5vw, 4rem);
}
.page-hero h1 { max-width: 16ch; }
.page-hero p { margin-top: 1.1rem; max-width: 54ch; color: var(--ink-soft); }

/* ---------- section head ---------- */
.head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2rem; padding-bottom: clamp(1.25rem, 2.4vw, 2rem);
  border-bottom: 1px solid var(--line); margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
}
.section--ink .head { border-bottom-color: var(--line-bone); }
.head h2 { max-width: 20ch; }
.head p { max-width: 38ch; color: var(--steel); font-size: 0.92rem; margin: 0; }
.section--ink .head p { color: rgba(239, 234, 224, 0.6); }

/* ---------- collection tiles ---------- */
.tiles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  background: var(--bone);
  padding: clamp(1.25rem, 2.2vw, 1.85rem);
  display: grid; gap: 0.75rem; align-content: start;
  min-height: 210px;
  position: relative;
  transition: background 0.3s var(--ease);
}
.tile:hover { background: var(--bone-warm); }
.tile__idx { font-size: 0.6rem; letter-spacing: 0.24em; font-weight: 700; color: var(--steel); }
.tile h3 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
.tile p { font-size: 0.88rem; color: var(--steel); margin: 0; max-width: 26ch; }
.tile__go {
  margin-top: 0.5rem; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; display: inline-flex; gap: 0.4rem; align-items: center;
}
.tile:hover .tile__go { color: var(--clay); }

/* ---------- figures ---------- */
.figures { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.head + .figures { border-top: 0; }
@media (min-width: 760px) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figure { padding: clamp(1.1rem, 2.2vw, 1.6rem) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) {
  .figure { border-bottom: 0; border-right: 1px solid var(--line); padding-right: 1rem; padding-left: 1rem; }
  .figure:first-child { padding-left: 0; }
  .figure:last-child { border-right: 0; }
}
.figure b {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 800; font-stretch: 118%; letter-spacing: -0.02em; line-height: 1;
  margin-bottom: 0.4rem;
}
.figure span { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); font-weight: 700; }
.section--ink .figure { border-color: var(--line-bone); }
.section--ink .figure span { color: rgba(239, 234, 224, 0.55); }

/* ---------- product grid ---------- */
.products { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .products { grid-template-columns: repeat(3, 1fr); } }
/* two-product sections: keep the grid full and the cards from going billboard-size */
@media (min-width: 760px) { .products--duo { grid-template-columns: repeat(2, 1fr); max-width: 980px; } }
.product { background: var(--bone); display: flex; flex-direction: column; }
.product__media {
  aspect-ratio: 1 / 1;
  background: var(--bone-warm);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
/* fabric swatch treatment: texture multiplied over the bone field so every tile
   reads as the same family of cloth rather than a photo we don't have */
.product__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  opacity: 0.46;
  mix-blend-mode: multiply;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.product:hover .product__media img { opacity: 0.62; }
.product__media::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 16, 12, 0.06);
  pointer-events: none;
}
.product__colour {
  position: absolute; left: 0.6rem; bottom: 0.55rem;
  font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  color: rgba(15, 16, 12, 0.5);
}
.product:hover .product__media img { transform: scale(1.03); }
.product__tag {
  position: absolute; top: 0; left: 0;
  background: var(--ink); color: var(--bone);
  font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  padding: 0.4rem 0.6rem;
}
.product__body { padding: 1.1rem 0.95rem 1.25rem; display: grid; gap: 0.4rem; }
.product__name { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.product__name h3 { font-size: 1.02rem; }
.product__price { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.product__meta { font-size: 0.72rem; color: var(--steel); letter-spacing: 0.04em; }
.product__sizes { display: flex; gap: 0.3rem; margin-top: 0.35rem; flex-wrap: wrap; }
.product__sizes span {
  border: 1px solid var(--line); padding: 0.12rem 0.34rem;
  font-size: 0.6rem; letter-spacing: 0.1em; font-weight: 700;
}

/* ---------- band ---------- */
.band { position: relative; overflow: hidden; color: var(--bone); background: var(--ink); }
.band img { width: 100%; height: clamp(300px, 48vw, 560px); object-fit: cover; opacity: 0.42; }
.band__over {
  position: absolute; inset: 0; display: flex; align-items: center;
}
.band blockquote {
  margin: 0; max-width: 24ch;
  font-size: clamp(1.5rem, 3.4vw, 3rem);
  font-weight: 800; font-stretch: 112%; text-transform: uppercase; line-height: 0.95;
  letter-spacing: -0.02em;
}
.band cite {
  display: block; margin-top: 1.25rem; font-style: normal;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(239,234,224,.6);
}

/* ---------- split ---------- */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (min-width: 860px) { .split { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.split h2 { max-width: 14ch; }
.split__media { border: 1px solid var(--line); overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }

/* ---------- list blocks ---------- */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bone); padding: clamp(1.15rem, 2vw, 1.6rem); display: grid; gap: 0.55rem; align-content: start; }
.card h3 { font-size: 1rem; letter-spacing: 0.02em; }
.card p { font-size: 0.86rem; color: var(--steel); margin: 0; }
.card b { font-size: 1.6rem; font-weight: 800; font-stretch: 118%; letter-spacing: -0.02em; }

/* ---------- table ---------- */
.table-wrap { border: 1px solid var(--line); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.88rem; }
thead th {
  text-align: left; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; padding: 0.85rem 0.95rem; border-bottom: 1px solid var(--line);
  background: var(--bone-warm); color: var(--steel); white-space: nowrap;
}
tbody td { padding: 0.9rem 0.95rem; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { font-weight: 700; }
td.num { font-variant-numeric: tabular-nums; }

@media (max-width: 700px) {
  .table-wrap { border: 0; overflow: visible; }
  table:not(.table--simple) { min-width: 0; }
  table:not(.table--simple) thead { position: absolute; left: -9999px; }
  table:not(.table--simple) tbody tr {
    display: block; border: 1px solid var(--line); margin-bottom: 0.75rem; background: var(--bone-warm);
  }
  table:not(.table--simple) tbody td {
    display: flex; justify-content: space-between; gap: 1rem; border: 0;
    padding: 0.4rem 0.9rem; text-align: right;
  }
  table:not(.table--simple) tbody td::before {
    content: attr(data-label); flex: none; font-size: 0.6rem; letter-spacing: 0.16em;
    text-transform: uppercase; font-weight: 700; color: var(--steel); text-align: left;
  }
  table:not(.table--simple) tbody td:first-child {
    display: block; text-align: left; font-size: 1rem; padding: 0.7rem 0.9rem 0.55rem;
    border-bottom: 1px solid var(--line);
  }
  table:not(.table--simple) tbody td:first-child::before { content: none; }
}

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1.25rem;
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--clay); font-weight: 700; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 0.7rem; font-size: 0.9rem; color: var(--steel); max-width: 64ch; }

/* ---------- form ---------- */
.form { display: grid; gap: 0.9rem; }
@media (min-width: 640px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; } }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--steel); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bone); border: 1px solid var(--line); padding: 0.8rem 0.85rem;
  font: inherit; font-size: 0.94rem; color: var(--ink); border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field--full { grid-column: 1 / -1; }
.form__note { font-size: 0.74rem; color: var(--steel); }
.form__status { display: none; font-size: 0.84rem; border: 1px solid var(--line); padding: 0.8rem 0.9rem; }
.form__status.is-visible { display: block; }

/* ---------- cta ---------- */
.cta { background: var(--ink); color: var(--bone); padding-block: clamp(2.75rem, 6vw, 5rem); }
.cta__inner { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 880px) { .cta__inner { grid-template-columns: 1.25fr 0.75fr; } }
.cta h2 { color: var(--bone); max-width: 20ch; }
.cta p { color: rgba(239, 234, 224, 0.7); margin-top: 1rem; max-width: 44ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
@media (min-width: 880px) { .cta__actions { justify-content: flex-end; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(239, 234, 224, 0.7); padding-top: clamp(2.5rem, 5vw, 4rem); }
.site-footer__top { display: grid; gap: 2rem; padding-bottom: 2.25rem; }
@media (min-width: 860px) { .site-footer__top { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h4 {
  font-size: 0.6rem; letter-spacing: 0.22em; color: rgba(239, 234, 224, 0.45);
  margin: 0 0 0.9rem; font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; font-size: 0.86rem; }
.site-footer a:hover { color: var(--bone); }
.footer-brand { display: grid; gap: 1rem; max-width: 32ch; }
.footer-brand img { width: 52px; }
.footer-brand p { font-size: 0.86rem; margin: 0; }
.site-footer__bottom {
  border-top: 1px solid var(--line-bone); padding-block: 1.15rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(239, 234, 224, 0.45);
}

/* ---------- motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bone); padding: 0.7rem 1.1rem; z-index: 999; }
.skip-link:focus { left: 0.75rem; top: 0.75rem; }
