/* cl-site.css: ION Wheels's tokens, fonts, reset and chrome (the header and its menu, the footer, the primary
   button), on every page, written from the measurements of their home (review/pages/home.json) and the shots.
   cl-shop.css reads only these tokens, so the title band and the cart follow; the kit's shop pages take the
   3 --parts-* tokens below and nothing else (storefront-kit ADRs 0006 and 0007).

   The cascade: `@layer base, kit, site;` sets the order; the tokens and @font-face sit outside any layer, the
   reset in @layer base, every other rule in @layer site, and no rule names a kit class.

   Two layouts: the desktop bar from 980px, and below 980px their phone layout (a 390 stage): the bar with the
   name, the cart and the toggle, the menu and the search in an opaque panel under it (cl-site.js). */
@layer base, kit, site;

@font-face { font-family: "adelle-sans"; src: url("fonts/adelle-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "adelle-sans"; src: url("fonts/adelle-sans-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "adelle-sans"; src: url("fonts/adelle-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "adelle-sans"; src: url("fonts/adelle-sans-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "bebas-neue"; src: url("fonts/bebas-neue-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* colours, measured on their home */
  --site-bg: #FFFAFA;
  --site-fg: #000000;
  --site-muted: #3A3737;
  --site-line: #D1CDCD;
  --site-band: #F0EBEB;
  --site-card: #F5F0F0;
  --site-accent: #1F2533;
  --site-accent-fg: #FFFFFF;
  --site-red: #A81F24;
  --site-pink: #D38C8F;
  --site-field-bg: #FFFFFF;
  --site-button-bg: #1F2533;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #A81F24;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E0E0;
  --site-disabled-fg: #4A4747;

  /* the chrome: the header's black (fading into the page) and the black footer, the same in both themes */
  --site-chrome-bg: #000000;
  --site-chrome-fg: #FFFAFA;
  --site-chrome-white: #FFFFFF;
  --site-chrome-line: #3A3A3A;

  /* the home: the black on the pink parallelogram, a plate under the transparent wheel shots, the heading image's tint */
  --site-pink-fg: #000000;
  --site-photo-plate: transparent;
  --site-heading-filter: none;
  --site-red-text: var(--site-red);   /* the red as words (the home's "Fitment") */

  /* fonts: adelle-sans for the text, bebas-neue for the menu, the headings and the buttons */
  --site-font-body: "adelle-sans", "Roboto Slab", Georgia, serif;
  --site-font-heading: "bebas-neue", "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --site-font-button: var(--site-font-heading);

  /* shape and layout */
  --site-radius: 0;
  --site-max: 1348px;
  --site-gutter: 46px;

  /* the phone layout's unit cl-shop.css draws in: one pixel of their 390 stage, scaled to the screen */
  --mx: calc(100vw / 390);
  --u: 1px;
}
/* the kit's shop pages and vehicle band: only the brand tokens a site owns (storefront-kit ADR 0007) */
:root {
  --parts-accent: var(--site-accent);
  --parts-accent-strong: var(--site-red);
  --parts-font: var(--site-font-body);
}
@media (max-width: 979.98px) {
  :root { --site-gutter: 23px; --u: var(--mx); }
}

/* the dark theme (the kit's data-parts-theme="dark" on <html>: Site(dark="night") sets it from 21:30 to 04:30 or
   on the shopper's pick): the near-white page turns the kit's warm near black, text near white, rules a dark grey,
   the cart's cards and summary a step up. The header's black still fades into the page and the footer stays black.
   The navy accent lifts so a filled button shows on the dark, the red stays, the red as text lifts to read.
   The wheel shots, drawn on transparency, sit on white plates; the black "Recent styles" heading image turns light. */
:root[data-parts-theme="dark"] {
  color-scheme: dark;
  --site-bg: #121110;
  --site-fg: #F6F3EF;
  --site-muted: #EBE6E0;
  --site-line: #3D3833;
  --site-band: #1C1A18;
  --site-card: #1C1A18;
  --site-accent: #3A4560;
  --site-field-bg: #121110;
  --site-button-bg: #3A4560;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #EBE6E0;
  --site-photo-plate: #FFFFFF;
  --site-heading-filter: invert(.96) hue-rotate(180deg);
  --site-red-text: #EE5A5F;
  --cs-accent: #EE5A5F;
  --parts-band-bg: #24201C;
  --parts-band-ink: #F6F3EF;
  --parts-band-edge: #3D3833;
}

@layer base {

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--site-bg); }
body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-fg);
  font: 400 17px/1.7 var(--site-font-body);
  letter-spacing: .01em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; }
ul, ol { list-style: none; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

}

@layer site {

/* ---------- the primary button: their small red bebas button ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 22px;
  background: var(--site-red); color: var(--site-button-fg); border: 0; border-radius: var(--site-radius);
  font: 400 20px/1 var(--site-font-button); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  transition: background-color .2s ease;
}
.cl-btn:hover { background: var(--site-accent); }
.cl-btn:focus-visible { outline: 2px solid var(--site-fg); outline-offset: 2px; }

.cl-skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--site-chrome-bg); color: var(--site-chrome-white); font: 400 16px/1 var(--site-font-body); }
.cl-skip:focus { top: 16px; }

/* ---------- header: black fading into the page, the Orbital Parts mark left (white, on the line of the white menu), the menu, search and cart right ---------- */
.cl-hd { position: relative; z-index: 50; background: linear-gradient(var(--site-chrome-bg), transparent) var(--site-bg); color: var(--site-chrome-fg); }
.cl-hd__in { height: 147px; padding: 0 var(--site-gutter); display: flex; align-items: center; gap: 24px; }
.cl-hd__logo { flex: none; display: flex; }
.cl-hd__logo img { width: auto; height: 52px; }
.cl-hd__nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.cl-hd__list { display: flex; gap: 18px; }
.cl-hd__link { display: block; font: 400 25px/45px var(--site-font-heading); text-transform: uppercase; color: var(--site-chrome-fg); }
.cl-hd__link:hover, .cl-hd__link.is-current { background: linear-gradient(var(--site-chrome-fg), var(--site-chrome-fg)) 0 calc(100% - 2.5px) / 1px 1px repeat-x; }
.cl-search { display: flex; align-items: center; width: 220px; border-bottom: 1px solid var(--site-chrome-fg); }
.cl-search__input { flex: 1; min-width: 0; height: 36px; padding: 0 4px; border: 0; background: transparent; color: var(--site-chrome-fg); font: 400 16px/1 var(--site-font-body); outline: none; }
.cl-search__input::placeholder { color: var(--site-chrome-fg); opacity: 1; }
.cl-search__btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--site-chrome-fg); }
.cl-hd__cart { flex: none; position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; color: var(--site-chrome-fg); }
.cl-hd__cart-count { position: absolute; top: 0; right: -4px; min-width: 18px; padding: 0 4px; font: 700 13px/18px var(--site-font-body); text-align: center; background: var(--site-red); color: var(--site-accent-fg); }
.cl-hd__cart-count:empty { display: none; }
.cl-hd__toggle { display: none; }

/* ---------- footer: their black band, centred: the links, the copyright ---------- */
.cl-ft { background: var(--site-chrome-bg); color: var(--site-chrome-white); text-align: center; }
.cl-ft__in { max-width: var(--site-max); margin: 0 auto; padding: 15px var(--site-gutter) 31px; font: 400 17px/28.9px var(--site-font-body); letter-spacing: .01em; }
.cl-ft__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 11px; }
.cl-ft__links a { color: var(--site-chrome-fg); text-decoration: underline; text-underline-offset: 3px; }
.cl-ft__links a:hover { text-decoration: none; }
.cl-ft__small { margin-top: 68px; color: var(--site-chrome-white); }

/* ---------- phones: the 84px bar, the menu and the search in an opaque panel under it ---------- */
@media (max-width: 979.98px) {
  .cl-hd__in { height: 84px; gap: 8px; }
  .cl-hd__logo { margin-right: auto; }
  .cl-hd__logo img { height: 32px; }
  .cl-hd__toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -4px; color: var(--site-chrome-fg); }
  .cl-hd__nav { position: absolute; top: 84px; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 8px var(--site-gutter) 24px; background: var(--site-chrome-bg); }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__list { flex-direction: column; gap: 0; }
  .cl-hd__link { padding: 4px 0; border-bottom: 1px solid var(--site-chrome-line); font-size: 28px; }
  .cl-hd__link:hover, .cl-hd__link.is-current { background: none; color: var(--site-chrome-white); }
  .cl-search { width: 100%; }
  .cl-search__input { height: 44px; }
  .cl-search__btn { width: 44px; height: 44px; }
  .cl-ft__in { padding: 25px var(--site-gutter) 25px; font-size: 16px; line-height: 27.2px; }
  .cl-ft__links a { display: inline-block; min-height: 27px; }
  .cl-ft__small { margin-top: 47px; }
}

/* ---------- the 404 (templates/404.html) ---------- */
.cl-404 { padding: 72px var(--site-gutter) 120px; text-align: center; }
.cl-404__h { font: 400 64px/1 var(--site-font-heading); letter-spacing: .06em; text-transform: uppercase; }
.cl-404__p { margin-top: 16px; }
.cl-404__home { margin-top: 32px; }

/* the footer's trademark line: "owner" links the client's site in the line's own colour, underlined (Greg 2026-10-01) */
.cl-owner, .cl-owner:visited { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cl-owner:hover { opacity: .8; }

}

/* the cart's Check out in the dark: cl-shop.css's `.cl-shop a { color: inherit }` outranks .cl-btn, so the label
   took the page's ink, near white on the dark; it takes the button's own words colour */
@layer site {
:root[data-parts-theme="dark"] .cl-shop .cl-btn { color: var(--site-button-fg); }
}
