/* Velora Sports, the shop as a walkable collection.
   Pitch-night green for the boots, chalk for measuring and the shelf, Velora orange for the ball and every action. */
html { background: #0D0C0B; }   /* dark from the very first frame, before anything else loads */
:root {
  --sc-canvas:     #0D0C0B;
  --sc-surface:    #171512;
  --sc-ink:        #F2F1EA;
  --sc-ink-soft:   #ABA397;
  --sc-accent:     #FF6A00;
  --sc-accent-ink: #1A0B00;
  --sc-font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --sc-font-text:    "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --sc-shadow-color: 30 14% 3%;

  --volt: #D8F23C;
  --chalk: #EEEBE3;
  --chalk-2: #E2DED3;
  --pitch-ink: #14110E;
  --pitch-ink-soft: #5A534A;
  --in: #5BD69A;
  --few: #FFB547;
  --wa: #25D366;
  --bar-h: 64px;
}
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display {
  font-family: var(--sc-font-display); font-weight: 400; text-transform: uppercase;
  line-height: 0.92; letter-spacing: -0.005em; text-wrap: balance;
}
h2.display { font-size: var(--sc-t-3xl); }
.kicker { font-size: var(--sc-t-sm); font-weight: 600; letter-spacing: 0.02em; color: var(--sc-ink-soft); }

/* Grounds. The ink is restated with the token so the text really changes colour. */
.ground-chalk { --sc-ink: var(--pitch-ink); --sc-ink-soft: var(--pitch-ink-soft); --in: #00774A; --few: #8A5300; background: var(--chalk); color: var(--sc-ink); }
.ground-orange { --sc-ink: #1A0B00; --sc-ink-soft: #4A2300; --in: #0F4D2E; --few: #1A0B00; background: var(--sc-accent); color: var(--sc-ink); }
.ground-orange :focus-visible { outline-color: #1A0B00; }

/* Pills: every action is round, a press shrinks it a little */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 var(--sc-t-base)/1 var(--sc-font-text); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out);
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.pill:active { transform: scale(0.97); }
.pill-accent { background: var(--sc-accent); color: var(--sc-accent-ink); }
.pill-ink { background: var(--sc-ink); color: var(--chalk); }
.ground-orange .pill-ink { color: var(--sc-accent); }
.pill-line { background: transparent; color: var(--sc-ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.pill-soft { background: #EEECE6; color: var(--pitch-ink); }
.pill-wa { background: var(--wa); color: #06210F; }
.pill-wide { width: 100%; }
.pill[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .pill-accent:hover { background: #FF8126; }
  .pill-ink:hover { background: color-mix(in oklab, var(--sc-ink) 82%, var(--sc-accent)); }
  .pill-line:hover { background: var(--sc-ink); color: var(--sc-canvas); box-shadow: inset 0 0 0 1.5px var(--sc-ink); }
  .ground-chalk .pill-line:hover { color: var(--chalk); }
  .ground-orange .pill-line:hover { color: var(--sc-accent); }
  .pill-soft:hover { background: #E2DFD6; }
  .pill-wa:hover { background: #3BE07A; }
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------------- bar -- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: var(--sc-z-chrome); height: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: env(safe-area-inset-top, 0px) max(var(--sc-gutter), env(safe-area-inset-right, 0px)) 0 max(var(--sc-gutter), env(safe-area-inset-left, 0px));
  background: color-mix(in oklab, #0D0C0B 86%, transparent); color: #F2F1EA;
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 color-mix(in oklab, #F2F1EA 10%, transparent);
}
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.mark img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.mark small { font-weight: 500; color: #ABA397; margin-left: 4px; font-size: var(--sc-t-sm); }
.index { display: flex; gap: clamp(16px, 2.4vw, 32px); }
.index a { text-decoration: none; font-weight: 500; padding: 10px 0; }
.bar-end { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.size-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, #F2F1EA 40%, transparent); font-weight: 600; white-space: nowrap;
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.size-pill__k { font-weight: 500; color: #ABA397; }
body[data-uk] .size-pill { background: var(--volt); color: var(--pitch-ink); box-shadow: none; }
body[data-uk] .size-pill__k { color: var(--pitch-ink-soft); }
.basket-btn { min-height: 44px; padding: 0 16px; }
.count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--sc-accent-ink); color: var(--sc-accent); font-size: var(--sc-t-xs); font-weight: 600; }
.basket-btn.bump { animation: bump 450ms var(--sc-ease-out); }
@keyframes bump { 40% { transform: scale(1.07); } }
@media (hover: hover) and (pointer: fine) {
  .index a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
  .size-pill:hover { box-shadow: inset 0 0 0 1.5px #F2F1EA; }
}

/* --------------------------------------------------------------- hero -- */
/* The wall (3 Nov, owner's sketch): one wide frame at the top for the boot-wall photo. Until it comes: the dark ground,
   one orange glow and the name. Nothing is pinned or scrolled here. */
.hero--wall { padding: calc(var(--bar-h) + 14px) var(--sc-gutter) 0; background: var(--sc-canvas); }
.hero__stage {
  position: relative; overflow: hidden; height: min(72svh, 760px); min-height: 420px; border-radius: 28px;
  background: radial-gradient(120% 90% at 50% 0%, #1A1612 0%, #0B0A09 70%); box-shadow: inset 0 0 0 1px rgb(242 241 234 / 0.07);
}
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__stage:has(.hero__photo) .hero__mark { display: none; }
.hero__stage:has(.hero__photo)::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(to top, rgb(11 10 9 / 0.85), transparent); }
.hero__glow {
  position: absolute; z-index: 1; pointer-events: none; width: 110%; aspect-ratio: 1; left: 30%; top: 35%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 106 0 / 0.34), rgb(255 106 0 / 0.1) 45%, rgb(255 106 0 / 0) 72%);
}
.hero__mark {
  position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -56%; margin: 0; pointer-events: none;
  font: 400 clamp(7rem, 24vw, 26rem)/0.8 var(--sc-font-display); text-transform: uppercase; letter-spacing: 0.01em; white-space: nowrap;
  color: #F2F1EA; text-shadow: 0 30px 80px rgb(0 0 0 / 0.5);
}
.hero__kicker {
  position: absolute; z-index: 3; left: 28px; top: 26px; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 999px; background: rgb(11 10 9 / 0.55); box-shadow: inset 0 0 0 1px rgb(242 241 234 / 0.16);
  font: 600 var(--sc-t-sm)/1 var(--sc-font-text); letter-spacing: 0.04em; text-transform: uppercase; color: #E9E4DA;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sc-accent); }
.hero__foot {
  position: absolute; z-index: 3; left: 28px; right: 28px; bottom: 24px;
  display: flex; flex-wrap: wrap; gap: 10px 44px; padding-top: 16px; border-top: 1px solid rgb(242 241 234 / 0.14);
  font-size: var(--sc-t-sm); color: #E9E4DA;
}
.hero__foot li { display: flex; flex-direction: column; gap: 4px; }
.hero__foot span { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #8C8478; }
.hero__foot a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .hero__foot a:hover { color: var(--sc-accent); } }

/* --------------------------------------------------- hey champion (home) -- */
.home { background: var(--sc-canvas); color: var(--sc-ink); padding: clamp(3rem, 8vh, 5.5rem) var(--sc-gutter) clamp(3.5rem, 9vh, 6rem); }
.home__in { max-width: 1180px; margin: 0 auto; display: grid; gap: clamp(2.2rem, 5vh, 3.4rem); }
.home__hi h2 { font-size: clamp(3.6rem, 9vw, 7.5rem); color: #F2F1EA; }
.home__hi p { margin-top: 10px; font-size: clamp(1.25rem, 2.4vw, 1.75rem); color: var(--sc-accent); font-weight: 600; letter-spacing: -0.01em; }
.home__label { margin-bottom: 16px; font: 600 12px/1 var(--sc-font-text); letter-spacing: 0.16em; text-transform: uppercase; color: #8C8478; }
.home__picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.home__chips + .home__chips { margin-top: 10px; }
.hchip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgb(242 241 234 / 0.07); color: #F2F1EA; box-shadow: inset 0 0 0 1px rgb(242 241 234 / 0.14);
  font: 600 var(--sc-t-base)/1 var(--sc-font-text); text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color 160ms ease, transform 140ms ease, box-shadow 160ms ease;
}
.hchip:active { transform: scale(0.97); }
.hchip--kind { background: transparent; box-shadow: inset 0 0 0 1.5px var(--sc-accent); color: #FFD9BF; }
.hchip--more { color: #ABA397; }
.hchip--icon { width: 52px; padding: 0; }
.hchip--icon svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) {
  .hchip:hover { background: rgb(242 241 234 / 0.14); }
  .hchip--kind:hover { background: var(--sc-accent); color: #1A0B00; }
}
.home__size {
  justify-self: start; display: inline-flex; align-items: center; gap: 18px; padding: 16px 26px 16px 18px; border: 0; border-radius: 20px; cursor: pointer;
  background: #1C1814; color: #F2F1EA; box-shadow: inset 0 0 0 1px rgb(242 241 234 / 0.1); text-align: left;
}
.home__size svg { width: 64px; height: 24px; fill: none; stroke: var(--sc-accent); stroke-width: 1.8; stroke-linecap: round; }
.home__size b { display: block; font: 400 1.6rem/1 var(--sc-font-display); text-transform: uppercase; letter-spacing: 0.01em; }
.home__size small { display: block; margin-top: 5px; font-size: var(--sc-t-sm); color: #ABA397; }
@media (hover: hover) and (pointer: fine) { .home__size:hover { box-shadow: inset 0 0 0 1.5px var(--sc-accent); } }
/* the top picks reuse the shop's product card; on the dark ground it sits on its own light tile */
/* the top picks: three small cards side by side, on one screen even on a phone */
.home__label span { letter-spacing: 0.02em; text-transform: none; font-weight: 500; }
.home__picks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 18px); max-width: 760px; }
.home__picks .pcard { border-radius: 16px; overflow: hidden; background: #F4F2EC; color: #14110E; --sc-ink: #14110E; --sc-ink-soft: #5A534A; --in: #00774A; --few: #8A5300; }
.home__picks .pcard__body { padding: 10px 10px 12px; gap: 2px; }
.home__picks .pcard__brand, .home__picks .pcard__meta { display: none; }
.home__picks .pcard__name { font-size: clamp(0.8rem, 1.6vw, 1rem); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home__picks .pcard__state { font-size: 0.72rem; }
.home__picks .pcard__foot { flex-direction: column; align-items: stretch; gap: 8px; margin-top: auto; }
.home__picks .pcard__price { font-size: clamp(0.85rem, 1.7vw, 1.05rem); }
.home__picks .pcard__price s { display: none; }
.home__picks .pcard .pill { min-height: 36px; padding: 0 10px; font-size: 0.85rem; width: 100%; }

/* the displays: see the block at the end of this file */

/* ---------------------------------------------------- fitting (peak) -- */
.fit__stage {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 72px);
  padding: calc(var(--bar-h) + 3vh) var(--sc-gutter) 4vh;
}
.fit__drawing svg { width: 100%; height: auto; overflow: visible; }
.fit__foot, .fit__toe {
  fill: none; stroke: var(--pitch-ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - min(1, var(--sc-p, 0) * 2.2));
}
.fit__toe { stroke-width: 2; stroke-dashoffset: calc(1 - min(1, max(0, var(--sc-p, 0) * 2.2 - 0.8))); }
/* on a touch screen the fitting scrolls normally, so the foot is simply drawn whole */
.fit[data-sc-act="flow"] .fit__foot, .fit[data-sc-act="flow"] .fit__toe { stroke-dashoffset: 0; }
.fit__foot, .fit__toe { transition: d 420ms var(--sc-ease-out); }
.fit__ruler line { stroke: var(--pitch-ink); stroke-width: 1.5; }
.fit__ruler .major { stroke-width: 2.5; }
.fit__ruler text { fill: var(--pitch-ink-soft); font: 600 13px var(--sc-font-text); font-variant-numeric: tabular-nums; }
.fit__ruler .base { stroke-width: 2.5; }
.fit__dimline, .fit__dimend { stroke: var(--sc-accent); stroke-width: 2.5; }
.fit__dimline, .fit__dimend, .fit__dimtext { transition: x 420ms var(--sc-ease-out), x1 420ms var(--sc-ease-out), x2 420ms var(--sc-ease-out); }
.fit__dimtext { fill: var(--pitch-ink); font: 400 28px var(--sc-font-display); letter-spacing: 0.01em; }
.fit__copy { display: flex; flex-direction: column; gap: var(--sc-5); }
.fit__how { color: var(--sc-ink-soft); max-width: 40ch; }
.fit__form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: var(--sc-4) var(--sc-6); }
.fit__field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: var(--sc-t-sm); }
.fit__input { display: inline-flex; align-items: center; gap: 8px; min-height: 64px; padding: 0 18px; border-radius: var(--sc-r-md); background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--pitch-ink); }
.fit__input:focus-within { box-shadow: inset 0 0 0 3px var(--sc-accent); }
.fit__input input { width: 4.2ch; border: 0; padding: 0; background: transparent; outline: none; font: 400 2.2rem/1 var(--sc-font-display); color: var(--pitch-ink); -moz-appearance: textfield; }
.fit__input input::-webkit-outer-spin-button, .fit__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fit__input > span { font-weight: 600; color: var(--pitch-ink-soft); }
.fit__answer { font: 400 var(--sc-t-2xl)/1 var(--sc-font-display); text-transform: uppercase; padding-bottom: 10px; }
.fit__answer.is-quiet { font: 500 var(--sc-t-base)/1.4 var(--sc-font-text); text-transform: none; color: var(--sc-ink-soft); padding-bottom: 20px; }
.fit__pick { display: flex; flex-direction: column; gap: var(--sc-3); }
.fit__pick p { font-weight: 600; font-size: var(--sc-t-sm); }
.fit__small { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); max-width: 46ch; }

/* chips, shared by the fitting and the shelf */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-width: 48px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--chalk-2); color: var(--pitch-ink); font: 600 var(--sc-t-base)/1 var(--sc-font-text);
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), transform 140ms var(--sc-ease-out); touch-action: manipulation;
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--pitch-ink); color: var(--volt); }
/* "Kids" / "Adults (UK)" above each row of boot sizes */
.chips__group { flex-basis: 100%; margin-top: 4px; font-size: var(--sc-t-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sc-ink-soft); }
.chips__group:first-child { margin-top: 0; }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: #D5D0C3; } .chip[aria-pressed="true"]:hover { background: var(--pitch-ink); }
  .catpage .chip:hover { background: rgb(242 241 234 / 0.16); } .catpage .chip[aria-pressed="true"]:hover { background: #F2F1EA; color: var(--sc-canvas); } }

/* ------------------------------------------------------------- spec list -- */
.spec { display: flex; flex-direction: column; border-top: 1px solid color-mix(in oklab, var(--sc-ink) 22%, transparent); }
.spec div { display: grid; grid-template-columns: minmax(8rem, 0.5fr) minmax(0, 1fr); gap: var(--sc-4); padding: 12px 0; border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 22%, transparent); }
.spec dt { font-weight: 600; }
.spec dd { color: var(--sc-ink); font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- shelf -- */
.shelf { padding: var(--sc-section) var(--sc-gutter) 0; }
.shelf-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: var(--sc-7); max-width: var(--sc-maxw); margin-inline: auto; }
.shelf-head p { color: var(--sc-ink-soft); max-width: 46ch; justify-self: end; }
.shelf-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; max-width: var(--sc-maxw); margin-inline: auto; }
.filters { position: sticky; top: calc(var(--bar-h) + 24px); display: flex; flex-direction: column; gap: 28px; }
.filter-label { font-weight: 600; margin-bottom: 10px; }
.list-count { color: var(--sc-ink-soft); margin-bottom: 14px; }
.rows { display: flex; flex-direction: column; gap: 6px; }
.row {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 12px 28px;
  padding: 16px 20px; background: #F8F7F3; border-radius: var(--sc-r-md); box-shadow: var(--sc-e1);
}
.row-pic { width: 112px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--chalk-2); }
.row-pic-none { display: grid; place-items: center; font-size: var(--sc-t-sm); font-weight: 600; color: var(--sc-ink-soft); }
.row-name { font-size: var(--sc-t-lg); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.row-note { color: var(--sc-ink-soft); margin-top: 4px; }
.row-side { display: flex; align-items: center; gap: 20px; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price s { color: var(--sc-ink-soft); font-weight: 400; margin-left: 8px; }
.state { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-width: 96px; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state-in { color: var(--in); }
.state-few { color: var(--few); }
.state-out { color: var(--sc-ink-soft); }
.row .pill { min-width: 104px; }
.row .pill-ink { color: var(--chalk); }
.row.enter { animation: rise 500ms var(--sc-ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.shelf-empty { margin-top: 24px; }
.more-btn { margin-top: 14px; }
/* the folded filters (phone only, see below) */
.filters-btn { display: none; justify-self: start; gap: 10px; }
.filters-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.filters-btn__now { font-weight: 500; color: var(--sc-ink-soft); }

/* the menu button (phone and tablet, see below) */
.menu-btn {
  display: none; place-items: center; width: 44px; height: 44px; margin-left: -10px; padding: 0; border: 0; border-radius: 12px;
  background: transparent; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.menu-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; overflow: visible; }
.menu-btn path { transition: transform 220ms var(--sc-ease-out), opacity 160ms var(--sc-ease-out); transform-origin: 12px 12px; }
.menu-open .menu-btn__top { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn__mid { opacity: 0; }
.menu-open .menu-btn__bot { transform: translateY(-5px) rotate(-45deg); }
.menu-btn:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- how -- */
.how { padding: var(--sc-section) var(--sc-gutter); }
.how > h2 { max-width: var(--sc-maxw); margin: 0 auto var(--sc-7); }
.how__steps { max-width: var(--sc-maxw); margin-inline: auto; border-top: 2px solid var(--sc-ink); }
.how__steps li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--sc-4) var(--sc-7); padding: var(--sc-6) 0; border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 22%, transparent); }
.how__steps h3 { font: 400 var(--sc-t-2xl)/1 var(--sc-font-display); text-transform: uppercase; }
.how__steps p { color: var(--sc-ink-soft); max-width: 48ch; }

/* -------------------------------------------------------------- close -- */
.close { background: #0D0C0B; padding: var(--sc-section) var(--sc-gutter) 0; }
.close__plates { max-width: var(--sc-maxw); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); }
.plate { display: flex; flex-direction: column; gap: var(--sc-5); padding: clamp(24px, 3vw, 44px); border-radius: var(--sc-r-lg); background: var(--sc-surface); box-shadow: var(--sc-edge), var(--sc-e2); }
.plate h3.display { font-size: var(--sc-t-2xl); }
.plate--order { background: #1C1814; box-shadow: inset 0 0 0 1px rgb(242 241 234 / 0.08); }
.plate .actions { margin-top: auto; }
.foot { padding: var(--sc-9) 0 calc(28px + env(safe-area-inset-bottom, 0px)); max-width: var(--sc-maxw); margin-inline: auto; }
.foot-name { font: 400 clamp(2rem, 6vw, 4.5rem)/0.9 var(--sc-font-display); text-transform: uppercase; color: var(--sc-accent); white-space: nowrap; letter-spacing: -0.01em; }
.imprint { margin-top: var(--sc-5); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }

/* ------------------------------------------------------------- sheets -- */
.sheet {
  border: 0; border-radius: 24px; padding: 0; width: min(520px, calc(100vw - 32px)); max-height: min(88svh, 860px);
  background: #FFFFFF; color: var(--pitch-ink); box-shadow: 0 30px 90px rgb(6 5 4 / 0.4);
  --sc-ink: var(--pitch-ink); --sc-ink-soft: var(--pitch-ink-soft); --few: #8A5300;
}
.sheet::backdrop { background: rgb(8 7 6 / 0.6); }
.sheet[open] { animation: sheet-in 280ms var(--sc-ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.sheet-in { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.sheet h2 { font-size: var(--sc-t-lg); }
.sheet-brand { color: var(--sc-ink-soft); }
.sheet-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.sheet-photo { width: 100%; height: clamp(180px, 32svh, 300px); object-fit: cover; border-radius: 16px; background: #EEECE6; }
.pick { border: 0; margin: 0; padding: 0; }
.pick legend { font-weight: 600; padding: 0; margin-bottom: 10px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.opt {
  min-height: 60px; border: 0; border-radius: 14px; cursor: pointer; background: #EEECE6; color: var(--pitch-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 600 var(--sc-t-base)/1.1 var(--sc-font-text);
  transition: background-color 150ms var(--sc-ease-out), transform 140ms var(--sc-ease-out); touch-action: manipulation;
}
.opt small { font-size: var(--sc-t-xs); font-weight: 500; }
.opt:active { transform: scale(0.96); }
.opt[aria-pressed="true"] { background: var(--pitch-ink); color: #FFFFFF; }
.opt:disabled { opacity: 0.35; cursor: not-allowed; }
.opt .few { color: var(--few); }
.opt[aria-pressed="true"] .few { color: #FFC266; }
.sheet-actions { display: flex; gap: 8px; padding-top: 8px; }
.sheet-actions .pill-accent { flex: 1; }
.basket { margin: 0 0 0 auto; height: 100svh; max-height: none; border-radius: 0; width: min(460px, 100vw); }
.basket .sheet-in { height: 100%; }
.basket-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lines { display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; background: #F3F1EB; padding: 16px; border-radius: 16px; }
.line-name { font-weight: 600; }
.line-note { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.line-price { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }
.qty { display: flex; align-items: center; gap: 4px; grid-column: 1 / -1; }
.qty button { width: 44px; height: 44px; border: 0; border-radius: 999px; background: #FFFFFF; color: var(--pitch-ink); font-size: var(--sc-t-lg); cursor: pointer; }
.qty button:active { transform: scale(0.94); }
.qty output { min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; }
.basket-empty { color: var(--sc-ink-soft); }
.basket-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--sc-t-lg); }
.total strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: var(--sc-t-sm); font-weight: 600; }
.fields .wide { grid-column: 1 / -1; }
.fields input, .fields textarea { border: 0; border-radius: 12px; padding: 0 14px; background: #F3F1EB; color: var(--pitch-ink); font: 400 var(--sc-t-base) var(--sc-font-text); }
.fields input { min-height: 48px; }
.fields textarea { min-height: 84px; padding: 12px 14px; line-height: 1.4; resize: vertical; }
.fields [aria-invalid="true"] { outline: 2px solid #B42318; outline-offset: 0; }
.help { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.credit-list { padding-left: 20px; list-style: disc; display: flex; flex-direction: column; gap: 8px; font-size: var(--sc-t-sm); }

/* ------------------------------------------------------------ tablet -- */
@media (max-width: 1000px) {
  .index { display: none; }
  .bar { grid-template-columns: auto 1fr auto; gap: 10px; }
  .menu-btn { display: grid; }
  /* the links open as a panel under the bar */
  .menu-open .index {
    display: flex; flex-direction: column; gap: 0; position: fixed; left: 0; right: 0; top: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
    padding: 6px var(--sc-gutter) 18px; background: #0D0C0B; box-shadow: 0 1px 0 color-mix(in oklab, #F2F1EA 10%, transparent), 0 24px 40px rgb(0 0 0 / 0.45);
  }
  .menu-open .index a { padding: 15px 2px; min-height: 48px; font: 400 var(--sc-t-xl)/1 var(--sc-font-display); text-transform: uppercase; letter-spacing: 0.01em; }
  .menu-open .index a + a { box-shadow: 0 -1px 0 color-mix(in oklab, #F2F1EA 10%, transparent); }
  .shelf-body { grid-template-columns: 1fr; }
  .filters { position: static; flex-direction: row; flex-wrap: wrap; gap: 20px 32px; }
  .shelf-head { grid-template-columns: 1fr; }
  .shelf-head p { justify-self: start; }
}

/* ------------------------------------------------------------- phone -- */
@media (max-width: 700px) {
  :root { --bar-h: 58px; }
  .mark small { display: none; }
  .mark span { font-size: var(--sc-t-sm); }
  .size-pill { padding: 0 12px; }
  .size-pill__k { display: none; }
  .basket-btn { padding: 0 12px; }
  /* the list's filters fold behind one button */
  .filters-btn { display: inline-flex; }
  .shelf:not(.is-filtering) .filters { display: none; }



  .fit__stage { grid-template-columns: 1fr; align-content: center; gap: 14px; padding-top: calc(var(--bar-h) + 10px); padding-bottom: 12px; }
  .fit__drawing { max-width: 440px; }
  .fit__copy { gap: 12px; }
  .fit__copy h2.display { font-size: var(--sc-t-2xl); }
  .fit__how { font-size: var(--sc-t-sm); }
  .fit__input { min-height: 56px; }
  .fit__answer { font-size: var(--sc-t-xl); }
  .fit__small { display: none; }
  .chip { min-width: 44px; padding: 0 12px; }

  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .row { grid-template-columns: 84px minmax(0, 1fr); padding: 14px; }
  .row-pic { width: 84px; height: 63px; }
  .row-side { grid-column: 1 / -1; flex-wrap: wrap; gap: 10px 16px; }
  .row .pill { flex: 1 0 100%; }
  .how__steps li { grid-template-columns: 1fr; }
  .close__plates { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  /* the wall on a phone: a shorter frame, the date on top, the foot in one short row */
  .hero--wall { padding-top: calc(var(--bar-h) + 10px); }
  .hero__stage { height: 58svh; min-height: 360px; border-radius: 22px; }
  .hero__mark { font-size: 30vw; }
  .hero__kicker { left: 16px; top: 16px; font-size: 11px; }
  .hero__foot { left: 18px; right: 18px; bottom: 16px; gap: 10px 22px; padding-top: 12px; }
  .hero__foot li:first-child { display: none; }
  .hchip { min-height: 48px; padding: 0 20px; }
  .hchip--icon { width: 48px; }
  .home__size { justify-self: stretch; }
}
@media (max-width: 700px) and (max-height: 700px) {
  .fit__how { display: none; }
  .fit__drawing { max-width: 340px; }
}

/* ---------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .fit__foot, .fit__toe { stroke-dashoffset: 0; }
  .fit__foot, .fit__toe, .fit__dimline, .fit__dimend, .fit__dimtext { transition: none; }
  .row.enter, .sheet[open] { animation: none; }
}

/* ------------------------------------------------- shop by category -- */
/* shop.js: a search, a box for each kind of thing we sell, and a category's page of cards (a full-screen dialog) */
.cats { padding: var(--sc-section) var(--sc-gutter) var(--sc-section); }
.search { position: relative; display: flex; align-items: center; gap: 8px; max-width: var(--sc-maxw); margin: 0 auto 28px; }
.search svg { position: absolute; left: 18px; width: 20px; height: 20px; fill: none; stroke: var(--sc-ink-soft); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input {
  flex: 1; min-width: 0; height: 54px; padding: 0 18px 0 48px; border: 0; border-radius: 999px; background: #FFFFFF; color: var(--pitch-ink);
  font: 500 16px/1 var(--sc-font-text); box-shadow: inset 0 0 0 1.5px var(--chalk-2), 0 10px 30px -18px rgb(0 0 0 / 0.35);
}
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--pitch-ink); }
.search .pill { height: 54px; padding: 0 22px; }
.cat-boxes { max-width: var(--sc-maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; }
.cat-box {
  --bg: var(--pitch-ink); --fg: #F2F1EA;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px; width: 100%; aspect-ratio: 4 / 3.4;
  padding: 16px 16px 14px; border: 0; border-radius: 18px; overflow: hidden; cursor: pointer; text-align: left; isolation: isolate;
  background: var(--bg); color: var(--fg); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform 220ms var(--sc-ease-out), box-shadow 220ms var(--sc-ease-out);
}
.cat-box:active { transform: scale(0.98); }
.cat-box:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .cat-box:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgb(0 0 0 / 0.55); } }
.cat-box__name { position: relative; z-index: 2; font: 400 clamp(1.5rem, 2.6vw, 2.2rem)/0.95 var(--sc-font-display); text-transform: uppercase; letter-spacing: 0.01em; }
.cat-box__n { position: relative; z-index: 2; font-size: var(--sc-t-sm); font-weight: 600; opacity: 0.8; }
.cat-box__art { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.cat-box__art.has-img { display: grid; place-items: center; padding: 10% 10% 34%; }
.cat-box__art img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 14px 14px rgb(0 0 0 / 0.4)); transition: transform 300ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .cat-box:hover .cat-box__art img { transform: scale(1.05) rotate(-2deg); } }
.cat-box[data-tone="photo"]::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 35%, rgb(0 0 0 / 0.72)); }
.cat-box[data-tone="pitch"] { --bg: #221C16; }
.cat-box[data-tone="wood"] { --bg: #2A1A10; }
.cat-box[data-tone="orange"] { --bg: var(--sc-accent); --fg: #1A0B00; }
.cat-box[data-tone="volt"] { --bg: var(--volt); --fg: var(--pitch-ink); }
.cat-box[data-tone="red"] { --bg: #B3202B; }
.cat-box[data-tone="blue"] { --bg: #1F4FB8; }
.cat-box[data-tone="sea"] { --bg: #0D7C86; }
.cat-box[data-tone="ink"] { --bg: #1C1C1E; }
.cat-box[data-tone="sand"] { --bg: #D9CBB0; --fg: var(--pitch-ink); }

/* a category's page: full screen, scrolls on its own */
.catpage {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; overflow-y: auto; overscroll-behavior: contain;
  background: var(--sc-canvas); color: #F2F1EA; --sc-ink: #F2F1EA; --sc-ink-soft: #ABA397; --in: #5BD69A; --few: #FFB547;
}
.catpage .pcard { color: #14110E; --sc-ink: #14110E; --sc-ink-soft: #5A534A; --in: #00774A; --few: #8A5300; }
.catpage .chip { background: rgb(242 241 234 / 0.08); color: #F2F1EA; }
.catpage .chip[aria-pressed="true"] { background: #F2F1EA; color: var(--sc-canvas); }
.catpage__empty a { color: var(--sc-accent) !important; }
.catpage__show { max-width: var(--sc-maxw); margin: 0 auto; padding: 8px var(--sc-gutter) 0; }
.catpage__show > * { display: block !important; }
.catpage__show .store__wall, .catpage__show .jr, .catpage__show .rack--pegs { margin: 0; border-radius: 20px; overflow: hidden; }
.catpage__show[hidden] { display: none; }
.catpage[open] { animation: catpage-in 300ms var(--sc-ease-out); }
@keyframes catpage-in { from { opacity: 0; transform: translateY(24px); } }
.catpage::backdrop { background: rgb(8 7 6 / 0.6); }
.catpage__bar {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 14px; padding: max(12px, env(safe-area-inset-top, 0px)) var(--sc-gutter) 12px;
  background: rgb(13 12 11 / 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgb(242 241 234 / 0.08);
}
.catpage__back { min-height: 44px; padding: 0 16px 0 10px; gap: 4px; }
.catpage__back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.catpage__title { min-width: 0; }
.catpage__title h2 { font: 400 var(--sc-t-xl)/1 var(--sc-font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.catpage__title h2:focus { outline: none; }
.catpage__title p { margin-top: 3px; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.catpage__tools { max-width: var(--sc-maxw); margin: 0 auto; padding: 18px var(--sc-gutter) 6px; display: flex; flex-direction: column; gap: 14px; }
.search--page { margin: 0; max-width: none; }
.search--page input { height: 48px; }
.catpage__subs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--sc-gutter) * -1); padding: 2px var(--sc-gutter); }
.catpage__subs::-webkit-scrollbar { display: none; }
.catpage__subs .chip { flex: none; }
.catpage__subs[hidden] { display: none; }
.pgrid { max-width: var(--sc-maxw); margin: 0 auto; padding: 12px var(--sc-gutter) 48px; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.catpage__empty { max-width: var(--sc-maxw); margin: 0 auto; padding: 24px var(--sc-gutter) 64px; color: var(--sc-ink-soft); }
.catpage__empty a { color: var(--pitch-ink); font-weight: 600; }

/* a card: the picture on top, the details under it */
.pcard { min-width: 0; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #FFFFFF; box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 12px 28px -22px rgb(0 0 0 / 0.4); }
.pcard__pic { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0; border: 0; cursor: pointer; overflow: hidden; background: #F4F2EC; -webkit-tap-highlight-color: transparent; }
.pcard__pic img { width: 100%; height: 100%; object-fit: cover; }
.pcard__pic.is-cut { background: radial-gradient(80% 70% at 50% 45%, #FFFFFF, #E9E5DA); }
.pcard__pic.is-cut img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 12px 10px rgb(0 0 0 / 0.22)); }
.pcard__pic.is-shirt { background: #2A1A10; }
.pcard__pic.is-shirt img { width: 74%; height: 84%; object-fit: contain; filter: drop-shadow(0 10px 12px rgb(0 0 0 / 0.5)); }
.pcard__pic.is-none { align-content: center; gap: 6px; padding: 12px; text-align: center; background: #ECE8DF; }
.pcard__pic.is-none span { font: 400 var(--sc-t-lg)/1 var(--sc-font-display); text-transform: uppercase; color: #6F6A60; overflow-wrap: anywhere; }
.pcard__pic.is-none small { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #9A958B; }
.pcard__pic:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: -3px; }
.pcard__body { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.pcard__brand { font-size: 0.75rem; font-weight: 600; color: var(--sc-ink-soft); min-height: 1em; }
.pcard__name { font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.pcard__meta { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); line-height: 1.35; overflow-wrap: anywhere; }
.pcard__state { display: inline-flex; align-items: center; gap: 6px; font-size: var(--sc-t-sm); font-weight: 600; }
.pcard__state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pcard__state.state-in { color: var(--in); }
.pcard__state.state-few { color: var(--few); }
.pcard__state.state-out { color: var(--sc-ink-soft); }
.pcard[data-state="out"] .pcard__pic img { filter: grayscale(1) opacity(0.6); }
.pcard__foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pcard__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.pcard__price s { margin-left: 4px; font-weight: 400; color: var(--sc-ink-soft); }
.pcard .pill { min-height: 40px; padding: 0 16px; font-size: var(--sc-t-sm); }

@media (max-width: 1000px) { .cat-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .cat-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-box { padding: 12px 12px 11px; border-radius: 14px; }
  .search .pill { display: none; }   /* the phone keyboard has its own search key */
  /* two cards side by side */
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-inline: 12px; }
  .pcard { border-radius: 14px; }
  .pcard__body { padding: 10px 10px 12px; }
  .pcard__name { font-size: var(--sc-t-sm); }
  .pcard__meta, .pcard__state { font-size: 0.75rem; }
  .pcard__foot { flex-direction: column; align-items: stretch; }
  .pcard .pill { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .catpage[open] { animation: none; } .cat-box, .cat-box__art img { transition: none; } }

/* ---------------------------------------------------- the size finder -- */
/* page.js: a full-screen pop-up with two tabs, football boots (foot on a ruler) and jerseys (chest) */
.finder {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0 0 48px; border: 0; overflow-y: auto; overscroll-behavior: contain;
}
.finder[open] { animation: catpage-in 300ms var(--sc-ease-out); }
.finder::backdrop { background: rgb(8 7 6 / 0.6); }
.finder__bar {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 14px; padding: max(12px, env(safe-area-inset-top, 0px)) var(--sc-gutter) 12px;
  background: rgb(238 235 227 / 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--chalk-2);
}
.finder__title { font: 400 var(--sc-t-xl)/1 var(--sc-font-display); text-transform: uppercase; }
.finder__title:focus { outline: none; }
.finder__tabs { display: flex; gap: 6px; max-width: var(--sc-maxw); margin: 20px auto 0; padding: 0 var(--sc-gutter); }
.finder__tabs button {
  flex: 0 1 auto; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--chalk-2); color: var(--pitch-ink); font: 600 var(--sc-t-base)/1 var(--sc-font-text); -webkit-tap-highlight-color: transparent;
}
.finder__tabs button[aria-selected="true"] { background: var(--pitch-ink); color: var(--volt); }
.finder__tabs button:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: 2px; }
.finder__panel { max-width: var(--sc-maxw); margin: 0 auto; padding: 28px var(--sc-gutter) 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.finder__panel[hidden] { display: none; }
.finder__h { font-size: var(--sc-t-2xl); }
/* the drawing is simply whole here (no scrolling to draw it) */
.finder .fit__foot, .finder .fit__toe { stroke-dashoffset: 0; }
.finder__go { align-self: flex-start; min-height: 52px; padding: 0 24px; }
.finder__shirt { max-width: 340px; justify-self: center; width: 100%; }
.finder__shirt svg { width: 100%; height: auto; overflow: visible; }
.finder__shirt-shape { fill: #FFFFFF; stroke: var(--pitch-ink); stroke-width: 3; stroke-linejoin: round; }
.finder__shirt-collar { fill: none; stroke: var(--pitch-ink); stroke-width: 3; stroke-linecap: round; }
.finder__shirt .fit__dimline { fill: none; }
.finder__shirt .fit__dimtext { font-size: 34px; }
/* the size finder's box, last among the categories: a ruler along its bottom */
.cat-box[data-tone="size"] { --bg: #FFFFFF; --fg: var(--pitch-ink); box-shadow: inset 0 0 0 2px var(--pitch-ink); }
.cat-box[data-tone="size"] .cat-box__art {
  inset: auto 0 0 0; height: 30%;
  background: repeating-linear-gradient(90deg, var(--sc-accent) 0 2px, transparent 2px 12px) bottom left / 100% 40% no-repeat,
              repeating-linear-gradient(90deg, var(--sc-accent) 0 3px, transparent 3px 60px) bottom left / 100% 80% no-repeat;
  opacity: 0.9;
}
.cat-box[data-tone="size"] .cat-box__name, .cat-box[data-tone="size"] .cat-box__n { margin-bottom: 0; }
.cat-box[data-tone="size"] { justify-content: flex-start; }
@media (max-width: 700px) {
  .finder__panel { grid-template-columns: 1fr; gap: 14px; padding-top: 18px; }
  .finder__tabs button { flex: 1; padding: 0 12px; }
  .finder .fit__drawing { max-width: 440px; }
  .finder__shirt { max-width: 200px; }
  .finder__h { font-size: var(--sc-t-xl); }
  .finder__go { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { .finder[open] { animation: none; } }
/* in the finder the how-to and the note always show (the old page section hid them on small screens) */
.finder .fit__how, .finder .fit__small { display: block; }

/* ----------------------------------------------- premium ground (3 Nov) --
   The light sections join the one warm onyx ground; the pop-ups (finder, sheets, category page) stay light. */
section.ground-chalk { --sc-ink: #F2F1EA; --sc-ink-soft: #ABA397; --in: #5BD69A; --few: #FFB547; background: var(--sc-canvas); color: var(--sc-ink); }
section.ground-chalk + section.ground-chalk { border-top: 1px solid rgb(242 241 234 / 0.07); }
section.ground-chalk .pill-ink { color: var(--sc-canvas); }
section.ground-chalk .chip { background: rgb(242 241 234 / 0.08); color: #F2F1EA; }
section.ground-chalk .chip[aria-pressed="true"] { background: #F2F1EA; color: var(--sc-canvas); }
@media (hover: hover) and (pointer: fine) {
  section.ground-chalk .pill-line:hover { color: var(--sc-canvas); }
  section.ground-chalk .chip:hover { background: rgb(242 241 234 / 0.14); }
}

/* live stock: "prices or stock just changed" with a Refresh button, bottom centre */
.live-note {
  position: fixed; z-index: 90; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); translate: -50% 0;
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px); padding: 8px 8px 8px 18px; border-radius: 999px; white-space: nowrap;
  background: #1C1814; color: #F2F1EA; box-shadow: inset 0 0 0 1px rgb(242 241 234 / 0.12), 0 18px 50px rgb(0 0 0 / 0.5);
  font-size: var(--sc-t-sm); animation: live-in 360ms var(--sc-ease-out, ease-out) both;
}
.live-note .pill { min-height: 40px; padding: 0 18px; }
@keyframes live-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .live-note { animation: none; } }

/* category pages (3 Nov): the page's own search and filters work the boxes, so the rail's filter row stays home,
   the wall's "see all" note is the boxes themselves, and a tall wall is kept to most of a screen */
.catpage__show .jr-filters, .catpage__show [data-rack-note] { display: none !important; }
.catpage__show #ball-wall .store__wall-scroll { max-height: 64svh; overflow-y: auto; overscroll-behavior: contain; }

/* ------------------------------------------------ audit fixes (3 Nov) --
   Impeccable audit: tap targets 44px, no text under 12px, no glow halo, the home lined up with the wall above it. */
.hero__dot { box-shadow: none; }
.hero__short { display: none; }
.hero__foot span { font-size: 12px; }
.hero__foot a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
.home__label { font-size: 12px; }
.home__in { max-width: none; }
.home__picks .pcard__state { font-size: 0.75rem; }
.home__picks .pcard .pill { min-height: 44px; }
.catpage .pcard .pill, .store__wall-head .pill { min-height: 44px; }
@media (max-width: 700px) {
  .hero__stage { height: 42svh; min-height: 300px; }
  .hero__mark { font-size: 27vw; }
  .hero__long { display: none; }
  .hero__short { display: inline; }
  .hchip--icon { padding: 0; }
}
.pcard__pic.is-none span { color: #4F4A42; }
.pcard__pic.is-none small { color: #6B655B; }
.catpage__show .store__wall-head .pill { min-height: 44px; }
@media (max-width: 700px) { .hero__kicker { font-size: 12px; } }

/* ======================================================= home v3 (3 Nov) ==
   Owner's screenshots: one centred column. "Hey champion!" on one line, the picks, one row of sports with search last,
   one row of kinds, then the shop's items on the page itself. */
.home { padding-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.home__in { max-width: 1100px; margin: 0 auto; justify-items: center; text-align: center; gap: clamp(1.8rem, 4.5vh, 3rem); }
.home__hi h2 { white-space: nowrap; font-size: clamp(2.5rem, 12.4vw, 7.5rem); }
.home__block--picks { width: 100%; max-width: 860px; }
.home__label { text-align: center; }
.home__picks { margin-inline: auto; max-width: 860px; text-align: left; }
.home__nav { width: 100%; display: grid; gap: 12px; }
.home__row {
  display: flex; flex-wrap: nowrap; gap: 10px; justify-content: safe center; overflow-x: auto; overscroll-behavior-x: contain;
  margin-inline: calc(var(--sc-gutter) * -1); padding: 2px var(--sc-gutter); scrollbar-width: none;
}
.home__row::-webkit-scrollbar { display: none; }
.home__row .hchip { flex: none; }
.hchip[aria-pressed="true"] { background: var(--sc-accent); color: #1A0B00; box-shadow: none; }
.hchip--size { gap: 10px; background: transparent; box-shadow: inset 0 0 0 1px rgb(242 241 234 / 0.2); }
.hchip--size svg { width: 34px; height: 14px; flex: none; fill: none; stroke: var(--sc-accent); stroke-width: 1.6; stroke-linecap: round; }

/* the items on the page (not a pop-up any more) */
.catpage--inline { position: static; width: auto; height: auto; max-height: none; overflow: visible; display: block; animation: none;
  padding-bottom: clamp(2rem, 6vh, 4rem); scroll-margin-top: var(--bar-h); }
.catpage--inline .catpage__bar { position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); justify-content: space-between; padding-top: 12px; }
.catpage--inline .catpage__title h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.catpage--inline .catpage__back { padding: 0 18px; }
.catpage__more { display: flex; margin: 8px auto 0; min-height: 48px; padding: 0 28px; }
.catpage__more[hidden] { display: none; }
/* the jersey rail: the whole width of the screen */
.catpage__show.is-wide { max-width: none; padding-inline: 0; }
.catpage__show.is-wide .jr { border-radius: 0; }
/* jersey boxes: the shirt on its own team-coloured wallpaper (shirt.js) */
.pcard__pic.is-shirt { background-color: #2A1A10; background-size: 120px 120px; background-position: center; }

/* ---------------------------------------------------------- light / dark switch */
.theme-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; cursor: pointer; background: transparent; color: inherit;
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, currentColor 30%, transparent); -webkit-tap-highlight-color: transparent; }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn__moon { display: none; }
:root[data-theme="light"] .theme-btn__sun { display: none; }
:root[data-theme="light"] .theme-btn__moon { display: block; }
@media (max-width: 700px) { .theme-btn { width: 40px; height: 40px; } }

/* ============================================================ the light colours ==
   Warm paper white, near-black ink, the same Velora orange (a deeper orange for orange text, so it stays readable).
   The displays (boot wall, rail, ball wall) stay dark: they are the shop's lit walls, framed by the page. */
:root[data-theme="light"] {
  --sc-canvas: #F5F2EC; --sc-surface: #FFFFFF; --sc-ink: #16130F; --sc-ink-soft: #5E574D;
  --sc-shadow-color: 30 18% 40%; --in: #00774A; --few: #8A5300; --orange-text: #B84300;
  color-scheme: light;
}
:root[data-theme="light"] body { background: var(--sc-canvas); color: var(--sc-ink); }
:root[data-theme="light"] .bar { background: color-mix(in oklab, #F5F2EC 88%, transparent); color: #16130F; box-shadow: 0 1px 0 rgb(22 19 15 / 0.08); }
:root[data-theme="light"] .mark small, :root[data-theme="light"] .size-pill__k { color: #6B645A; }
:root[data-theme="light"] .size-pill { box-shadow: inset 0 0 0 1.5px rgb(22 19 15 / 0.25); }
:root[data-theme="light"] .menu-open .index { background: #F5F2EC; box-shadow: 0 1px 0 rgb(22 19 15 / 0.08), 0 24px 40px rgb(22 19 15 / 0.12); }
:root[data-theme="light"] .sc-grain { opacity: 0.35; }

:root[data-theme="light"] .hero--wall { background: var(--sc-canvas); }
:root[data-theme="light"] .hero__stage { background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, #EDE7DD 72%); box-shadow: inset 0 0 0 1px rgb(22 19 15 / 0.08), 0 30px 60px -40px rgb(60 40 20 / 0.35); }
:root[data-theme="light"] .hero__glow { background: radial-gradient(closest-side, rgb(255 106 0 / 0.22), rgb(255 106 0 / 0.06) 45%, rgb(255 106 0 / 0) 72%); }
:root[data-theme="light"] .hero__mark { color: #16130F; text-shadow: none; }
:root[data-theme="light"] .hero__kicker { background: rgb(255 255 255 / 0.75); color: #16130F; box-shadow: inset 0 0 0 1px rgb(22 19 15 / 0.12); }
:root[data-theme="light"] .hero__foot { color: #16130F; border-top-color: rgb(22 19 15 / 0.14); }
:root[data-theme="light"] .hero__foot span { color: #6B645A; }

:root[data-theme="light"] .home { background: var(--sc-canvas); color: var(--sc-ink); }
:root[data-theme="light"] .home__hi h2 { color: #16130F; }
:root[data-theme="light"] .home__hi p { color: var(--orange-text); }
:root[data-theme="light"] .home__label { color: #6B645A; }
:root[data-theme="light"] .home__picks .pcard, :root[data-theme="light"] .pcard { background: #FFFFFF; box-shadow: 0 1px 2px rgb(22 19 15 / 0.06), 0 14px 30px -22px rgb(60 40 20 / 0.45); }
:root[data-theme="light"] .hchip { background: #FFFFFF; color: #16130F; box-shadow: inset 0 0 0 1px rgb(22 19 15 / 0.14); }
:root[data-theme="light"] .hchip--kind { background: transparent; color: var(--orange-text); box-shadow: inset 0 0 0 1.5px var(--sc-accent); }
:root[data-theme="light"] .hchip--size { background: transparent; box-shadow: inset 0 0 0 1px rgb(22 19 15 / 0.2); }
:root[data-theme="light"] .hchip[aria-pressed="true"] { background: var(--sc-accent); color: #1A0B00; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  :root[data-theme="light"] .hchip:hover { background: #EFEAE2; }
  :root[data-theme="light"] .hchip--kind:hover { background: var(--sc-accent); color: #1A0B00; }
}

:root[data-theme="light"] .catpage { background: var(--sc-canvas); color: #16130F; --sc-ink: #16130F; --sc-ink-soft: #5E574D; --in: #00774A; --few: #8A5300; }
:root[data-theme="light"] .catpage__bar { background: rgb(245 242 236 / 0.92); box-shadow: 0 1px 0 rgb(22 19 15 / 0.08); }
:root[data-theme="light"] .catpage .chip { background: #FFFFFF; color: #16130F; box-shadow: inset 0 0 0 1px rgb(22 19 15 / 0.12); }
:root[data-theme="light"] .catpage .chip[aria-pressed="true"] { background: #16130F; color: #F5F2EC; box-shadow: none; }
:root[data-theme="light"] .search input { box-shadow: inset 0 0 0 1.5px rgb(22 19 15 / 0.12), 0 10px 30px -20px rgb(60 40 20 / 0.35); }
:root[data-theme="light"] .catpage__empty a { color: var(--orange-text) !important; }
@media (hover: hover) and (pointer: fine) {
  :root[data-theme="light"] .catpage .chip:hover { background: #EFEAE2; }
  :root[data-theme="light"] .catpage .chip[aria-pressed="true"]:hover { background: #16130F; color: #F5F2EC; }
}

:root[data-theme="light"] section.ground-chalk { --sc-ink: #16130F; --sc-ink-soft: #5E574D; --in: #00774A; --few: #8A5300; background: var(--sc-canvas); color: #16130F; }
:root[data-theme="light"] section.ground-chalk + section.ground-chalk { border-top-color: rgb(22 19 15 / 0.08); }
:root[data-theme="light"] .close { background: var(--sc-canvas); }
:root[data-theme="light"] .plate, :root[data-theme="light"] .plate--order { background: #FFFFFF; box-shadow: 0 1px 2px rgb(22 19 15 / 0.05), 0 24px 50px -36px rgb(60 40 20 / 0.4); }
:root[data-theme="light"] .live-note { background: #FFFFFF; color: #16130F; box-shadow: inset 0 0 0 1px rgb(22 19 15 / 0.1), 0 18px 50px rgb(60 40 20 / 0.25); }

/* v3 fixes: the sports row fits one line on a laptop; on a narrow phone the bar keeps the logo without the name */
.home__in { max-width: 1320px; }
.home__row { gap: 8px; }
.home__row .hchip { padding: 0 18px; font-size: 0.95rem; }
.home__row .hchip--icon { padding: 0; }
.catpage__title p { margin-top: 3px; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
@media (max-width: 430px) { .mark span { display: none; } }

/* light colours: the displays are dark scenes, so their own words stay light */
:root[data-theme="light"] .catpage__show .store__wall, :root[data-theme="light"] .catpage__show .jr, :root[data-theme="light"] .catpage__show .rack--pegs {
  color: #F2F1EA; --sc-ink: #F2F1EA; --sc-ink-soft: #ABA397; --in: #5BD69A; --few: #FFB547;
}
:root[data-theme="light"] .foot-name { color: var(--orange-text); }
@media (max-width: 700px) { .theme-btn { width: 44px; height: 44px; } }
