/* ==========================================================================
   THE MATCHDAY LOOK
   Brand system:
     - the logo is only ever black or white
     - club colour lives in backgrounds, never in the mark
     - hairline rules are "seams", borrowed from the ball panels
   Each club page sets --club, --club-2 and --club-ink on <body>.
   Each kit section sets --c1 and --c2 for its own swatch pair.
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --seam: #e4e4e4;
  --muted: #6f6f6f;
  --wrap: 1180px;

  --club: #0a0a0a;
  --club-2: #ffffff;
  --club-ink: #ffffff;
  --bar: #0a0a0a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

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

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

/* --- club colour bar ----------------------------------------------------- */
.clubbar { height: 6px; background: var(--bar); }

/* --- header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--seam);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
.site-header img { height: 28px; width: auto; }

.nav { display: flex; gap: 22px; }
.nav a {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 520px) { .nav a:nth-child(3) { display: none; } }

/* --- display type -------------------------------------------------------- */
.display {
  font-weight: 900; text-transform: uppercase;
  line-height: 0.92; letter-spacing: -0.005em;
  font-size: clamp(2.4rem, 8vw, 5.6rem);
}
.display .stop {
  display: inline-block;
  width: 0.72em; height: 0.72em;
  margin-left: 0.2em;
  vertical-align: -0.04em;
  background: currentColor;
  -webkit-mask: url("assets/logo-mark.svg") no-repeat center / contain;
  mask: url("assets/logo-mark.svg") no-repeat center / contain;
}

.eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}
.lede { font-size: clamp(1rem, 2.2vw, 1.15rem); max-width: 52ch; color: #333; }

/* --- hero ---------------------------------------------------------------- */
.hero { padding: 70px 0 60px; border-bottom: 1px solid var(--seam); }
.hero .eyebrow { margin-bottom: 20px; }
.hero .lede { margin-top: 24px; }

.hero--club {
  background: var(--club); color: var(--club-ink);
  border-bottom: 8px solid var(--club-2);
}
.hero--club .eyebrow { color: var(--club-ink); opacity: 0.72; }
.hero--club .lede { color: var(--club-ink); opacity: 0.92; }

/* jump links to the three kit edits */
.kitnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.kitnav a {
  border: 1px solid currentColor; padding: 9px 15px; text-decoration: none;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.kitnav a:hover { background: var(--club-ink); color: var(--club); }

/* --- sections ------------------------------------------------------------ */
.section { padding: 60px 0; border-bottom: 1px solid var(--seam); }
.section-head { margin-bottom: 30px; }
.section-head h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 900; text-transform: uppercase; line-height: 1; margin-top: 8px;
}

/* kit sections carry their own swatch pair */
.kit-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.chips { display: flex; gap: 6px; flex-shrink: 0; }
.chip { display: block; width: 34px; height: 34px; border: 1px solid var(--seam); }
.chip-1 { background: var(--c1); }
.chip-2 { background: var(--c2); }

/* --- filter -------------------------------------------------------------- */
.filter { margin-bottom: 26px; }
.filter input {
  width: 100%; max-width: 420px;
  font: inherit; font-size: 1rem;
  padding: 13px 15px;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  border-radius: 0; -webkit-appearance: none;
}
.filter input::placeholder { color: #9a9a9a; }
.filter-count {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-top: 10px; min-height: 1em;
}

/* --- divisions and the wall of colour ------------------------------------ */
.division { margin-bottom: 44px; }
.division[hidden] { display: none; }
.division-head {
  font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--seam);
  display: flex; justify-content: space-between; align-items: baseline;
}
.division-head b { color: var(--muted); font-weight: 800; }

.clubs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 2px; background: var(--seam); border: 1px solid var(--seam);
}
@media (max-width: 420px) {
  .clubs { grid-template-columns: repeat(2, 1fr); }
}

.club {
  position: relative; overflow: hidden;
  background: var(--c); color: var(--i);
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px; text-decoration: none;
  transition: transform 0.18s ease;
}
.club[hidden] { display: none; }
.club:hover, .club:focus-visible { transform: scale(0.955); }
.club span {
  font-size: 11px; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; line-height: 1.2; position: relative; z-index: 2;
}
.club .ball { width: 26px; height: 26px; position: relative; z-index: 2; }
/* not-yet-live clubs: colour drained, no link, no hover */
.club--soon {
  filter: grayscale(1);
  opacity: 0.38;
  cursor: default;
}
.club--soon:hover { transform: none; }
.club--soon .soon {
  position: relative; z-index: 2;
  font-size: 8.5px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; opacity: 0.9;
}

/* second kit colour, shown as a corner flash */
.club .trim {
  position: absolute; right: -22px; top: -22px;
  width: 58px; height: 58px; transform: rotate(45deg);
  background: var(--c2); z-index: 1;
}

/* --- steps --------------------------------------------------------------- */
.steps { display: grid; gap: 2px; background: var(--seam); border: 1px solid var(--seam); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--paper); padding: 28px 24px 32px; }
.step b { display: block; font-size: 11px; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 12px; }
.step h3 { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.step p { color: #444; font-size: 0.94rem; }

/* --- products ------------------------------------------------------------ */
.products {
  display: grid; gap: 2px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  background: var(--seam); border: 1px solid var(--seam);
}
.product { background: var(--paper); padding: 18px 18px 22px; display: flex; flex-direction: column; }
.product .shot {
  aspect-ratio: 1 / 1; background: #f4f4f4; margin-bottom: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: 0.16em; color: #b3b3b3; text-transform: uppercase;
}
.product .shot img { width: 100%; height: 100%; object-fit: cover; }
.product .brand { font-size: 10px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
.product h3 { font-size: 0.98rem; font-weight: 800; margin: 6px 0 10px; }
.product .why { font-size: 0.87rem; color: #444; padding-left: 16px; position: relative; margin-bottom: 18px; }
.product .why::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 9px; height: 9px; background: var(--c1, var(--club));
  -webkit-mask: url("assets/pentagon.svg") no-repeat center / contain;
  mask: url("assets/pentagon.svg") no-repeat center / contain;
}
.product .foot { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product .paid {
  font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
}

.btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  text-decoration: none; padding: 11px 16px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.btn:hover { background: var(--club); color: var(--club-ink); }

/* --- affiliate disclosure: sits above the first link, not just the footer -- */
.disclosure {
  font-size: 0.82rem; color: #3d3d3d; max-width: 74ch;
  border-left: 3px solid var(--club); padding-left: 15px; margin-bottom: 30px;
}
.disclosure b { font-weight: 800; }

/* --- notices ------------------------------------------------------------- */
.notice {
  font-size: 0.82rem; color: var(--muted); max-width: 74ch;
  border-left: 2px solid var(--seam); padding-left: 16px;
}

/* --- footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #fff; padding: 54px 0 40px; }
.site-footer img { height: 70px; width: auto; margin-bottom: 24px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h4 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px; opacity: 0.6; }
.site-footer li { list-style: none; margin-bottom: 7px; font-size: 0.9rem; }
.small { font-size: 0.78rem; opacity: 0.55; line-height: 1.65; }
.rule { height: 1px; background: rgba(255,255,255,0.16); margin: 32px 0 22px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
