/* ============================================================
   Ethical Clothing — Redesign base
   Reset, typography, layout primitives. NO Bootstrap.
   ============================================================ */

/* --------- reset --------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { height: 100%; }
/* min-height, not height: a body only one screen tall ends the sticky header after one screen. */
body { min-height: 100%; }
img, svg, video { display: block; max-width: 100%; }
button {
  font: inherit; color: inherit;
  background: none; border: none;
  cursor: pointer;
  padding: 0;
}
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --------- body defaults --------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}

/* --------- layout primitives --------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--space-10) 0;
}
.section-tight { padding: var(--space-8) 0; }

.hairline   { border-top:    1px solid var(--line); }
.hairline-b { border-bottom: 1px solid var(--line); }

/* --------- typography utilities --------- */
.h-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  font-weight: 400;
}
.h-1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--tracking-h1);
  font-weight: 500;
}
.h-2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--tracking-h2);
  font-weight: 500;
}
.h-3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 500;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* --------- buttons --------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: background var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
  cursor: pointer;
}
.btn:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn-sm { padding: 8px 14px; font-size: 12px; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}
.btn-link:hover { color: var(--sage); }

/* --------- focus visibility for keyboard --------- */
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

/* --------- utility: visually-hidden (screen-reader only) --------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Let form fields shrink inside flex rows (their default width is about
   170px), so search and email rows fit narrow phones. */
input, select, textarea { min-width: 0; }

/* The cookie-consent library sets overflow-x: hidden !important on html
   and body for good (html.force--consent). With both hidden, body becomes
   its own scroll container and nothing sticks: not the header, not the
   phone filters bar. clip hides sideways overflow without that; the
   doubled class outranks the library's stylesheet, which loads later. */
html.force--consent.force--consent,
html.force--consent.force--consent body { overflow-x: clip !important; }


/* -------------------- cookie banner --------------------
   The consent library (assets/js/cookieconsent.js, shared with v1) in the
   site's look: paper background, ink buttons, sharp corners, Manrope.
   Scoped to #cc--main so it outranks the library's stylesheet, which
   loads later. */
#cc--main {
  --cc-bg: var(--bg);
  --cc-text: var(--ink);
  --cc-btn-primary-bg: var(--ink);
  --cc-btn-primary-text: var(--bg);
  --cc-btn-primary-hover-bg: var(--sage-deep);
  --cc-btn-secondary-bg: transparent;
  --cc-btn-secondary-text: var(--ink);
  --cc-btn-secondary-hover-bg: var(--sage-tint);
  --cc-toggle-bg-off: var(--line-2);
  --cc-toggle-bg-on: var(--sage);
  --cc-toggle-bg-readonly: var(--sage-tint);
  --cc-toggle-knob-bg: var(--surface);
  --cc-toggle-knob-icon-color: var(--surface);
  --cc-cookie-category-block-bg: var(--bg-alt);
  --cc-cookie-category-block-bg-hover: var(--sage-tint);
  --cc-section-border: var(--line);
  --cc-cookie-table-border: var(--line);
  --cc-overlay-bg: rgba(31, 36, 25, 0.45);
  --cc-webkit-scrollbar-bg: var(--line-2);
  --cc-webkit-scrollbar-bg-hover: var(--ink-3);
}
#cc--main .cc_div { font-family: var(--font-sans); color: var(--ink); }
#cc--main #cm {
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 16px 48px rgba(31, 36, 25, 0.18);
  padding: 28px 32px;
}
#cc--main #c-ttl,
#cc--main #s-ttl {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
#cc--main #c-ttl { font-size: 22px; margin-bottom: 10px; }
#cc--main #s-ttl { font-size: 20px; }
#cc--main #s-c-bn { border: none; padding: 0; }
#cc--main #c-txt { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
#cc--main .c-bn {
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 20px;
  text-align: center;
  border: 1px solid var(--ink);
}
#cc--main .c-bn:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
#cc--main #s-inr { border-radius: 0; box-shadow: 0 16px 48px rgba(31, 36, 25, 0.22); }
#cc--main #s-hdr, #cc--main #s-bns { border-color: var(--line); }
#cc--main #s-bl .c-bl { border-radius: 0; }
#cc--main #s-bl .b-tl { font-weight: 500; border-radius: 0; }
#cc--main #s-bl .p, #cc--main #s-bl td { color: var(--ink-2); }
#cc--main .cc-link { color: var(--sage-deep); border-color: var(--sage-deep); }
@media (max-width: 688px) {
  #cc--main #cm { padding: 24px var(--gutter) 20px; border-left: none; border-right: none; border-bottom: none; }
  #cc--main #c-ttl { font-size: 20px; }
}
