/* ==========================================================================
   STARS 29 — base.css
   Design tokens, reset, typography, utilities.
   Author: Stars 29 web team
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Typeface
   Inter Tight is self-hosted rather than pulled from Google Fonts. It saves a
   third-party round trip on every page, and it is the only way the face loads
   at all under a `font-src 'self'` Content-Security-Policy — which is what
   forge.co.zw serves. One variable file covers weights 300-700.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — white theme with grey structural blocks */
  --page:        #e8e8e8;   /* outside the shell, visible on wide screens */
  --shell:       #ffffff;   /* the site canvas */
  --soft:        #efefef;   /* hero + testimonial blocks */
  --mute:        #f6f6f6;   /* cards, inputs */
  --black:       #111111;   /* footer, logo bar */

  /* Ink */
  --ink:         #0d0d0d;
  --ink-2:       #4f4f4f;
  --ink-3:       #8c8c8c;
  --ink-4:       #b9b9b9;
  --on-black:    #f4f4f4;
  --on-black-2:  #8d8d8d;

  /* Lines */
  --line:        #e3e3e3;
  --line-2:      #d3d3d3;
  --line-dark:   #2a2a2a;

  /* Brand accents */
  --accent:      #f9b233;   /* main   — amber  */
  --accent-2:    #ea5b0c;   /* second — burnt orange */
  --accent-3:    #f8ea1b;   /* third  — highlighter yellow */

  /* Type */
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --gutter: clamp(18px, 3.4vw, 60px);
  --shell-max: 1720px;
  --shell-radius: 26px;
  --section-y: clamp(72px, 9vw, 150px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.6s;

  /* Signature geometry — chamfered corners, lifted from the brand's
     varsity lettering. Used on every photographic frame on the site. */
  --chamfer: 34px;
  --clip-chamfer: polygon(
    var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer)
  );
  --clip-chamfer-br: polygon(
    0 0, 100% 0, 100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%, 0 100%
  );
  --clip-chamfer-tl: polygon(
    var(--chamfer) 0, 100% 0, 100% 100%, 0 100%, 0 var(--chamfer)
  );
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums tabular-nums;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  margin: 0;
}
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* --------------------------------------------------------------------------
   3. Typography scale
   -------------------------------------------------------------------------- */

/* Display — the oversized grotesk headline from the hero */
.t-display {
  font-size: clamp(3rem, 8.6vw, 10.4rem);
  line-height: 0.85;
  letter-spacing: -0.045em;
  font-weight: 500;
}

/* Section heading */
.t-h2 {
  font-size: clamp(2.2rem, 4.9vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.038em;
  font-weight: 500;
}

/* Sub heading / large list rows */
.t-h3 {
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.t-h4 {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
}

/* Small caps label — "//STREETWEAR", "[TESTIMONIAL]", "[01]" */
.t-label {
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 500;
}

.t-meta {
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink-2);
}

.t-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}

.t-lead {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.012em;
}

/* --------------------------------------------------------------------------
   4. Utilities
   -------------------------------------------------------------------------- */
.u-ink   { color: var(--ink); }
.u-ink-2 { color: var(--ink-2); }
.u-ink-3 { color: var(--ink-3); }
.u-accent   { color: var(--accent); }
.u-accent-2 { color: var(--accent-2); }

.u-right { text-align: right; }
.u-center { text-align: center; }

.u-hide { display: none !important; }

.u-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.u-skip {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.u-skip:focus-visible { transform: none; }

/* Layout helpers ---------------------------------------------------------- */
.wrap {
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 28px);
}

/* Dashed rule used above/below the ticker rows */
.rule-dashed {
  height: 1px;
  background-image: linear-gradient(to right, var(--line-2) 0 6px, transparent 6px 12px);
  background-size: 12px 1px;
  background-repeat: repeat-x;
}

.rule { height: 1px; background: var(--line); }

/* --------------------------------------------------------------------------
   5. Scroll reveal — the blur-in entrance used throughout the reference
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease),
    filter 0.9s var(--ease),
    transform 1s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, filter, transform;
}
[data-reveal].is-in {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* Per-character / per-word headline reveal */
.split-line { display: block; overflow: hidden; }
.split-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.is-in .split-line > span,
.split-line.is-in > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; filter: none; transform: none; }
  .split-line > span { transform: none; }
}
