/* cl-site.css: Rigid's tokens, the reset and the chrome (the header and its menu, the footer, the
   primary button) on every page, from their measurements (review/pages/*.json).
   Their type is Helvetica, Arial: system faces, so no font file ships (static/fonts/FONTS.md).
   The cascade (the kit's static/parts/tokens.css): `@layer base, kit, site;` below sets the order; the tokens sit
   on :root outside any layer, the reset in @layer base, every other rule in @layer site. The kit's shop pages and
   vehicle band take the brand colour and font from the 3 --parts-* tokens below alone: no rule here names a kit
   class. From 980px the desktop layout, below it their phone layout. */
@layer base, kit, site;

:root {
  /* colours: their shop pages' light grey ground and near-black text, their near-black bands, buttons and footer,
     their red for a hover */
  --site-bg: #F8F8F8;
  --site-fg: #121010;
  --site-muted: #121010;
  --site-line: #CCCCCC;
  --site-band: #EEEEEE;
  --site-card: #FFFFFF;
  --site-dark: #121010;
  --site-black: #000000;
  --site-on-dark: #FFFFFF;
  --site-red: #EC0C09;
  --site-accent: #121010;
  --site-accent-strong: #EC0C09;
  --site-accent-fg: #FFFFFF;
  --site-dark-line: #3A3636;   /* a rule on the black header and the near-black footer */

  /* fonts */
  --site-font-body: Helvetica, Arial, sans-serif;
  --site-font-heading: var(--site-font-body);
  --site-font-button: var(--site-font-body);

  /* shape and layout: square boxes everywhere (the shop pages' rule), their 1400px content between 20px gutters */
  --site-radius: 0;
  --site-max: 1440px;
  --site-gutter: 20px;
}
/* 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-accent-strong);
  --parts-font: var(--site-font-body);
}
/* the dark page (data-parts-theme="dark" on <html>: the kit's night pick or the shopper's switch): the header,
   the footer and the home are black in both themes and stay so; the light grey page turns the kit's warm near
   black, text near white, rules dark grey, cards a step up; the near-black buttons turn near white with dark
   words (the kit's filled buttons do the same), their red hover kept */
:root[data-parts-theme="dark"] {
  color-scheme: dark;
  --site-bg: #121110;
  --site-fg: #F6F3EF;
  --site-muted: #EBE6E0;
  --site-line: #3D3833;
  --site-band: #24201C;
  --site-card: #1C1A18;
  --site-dark: #121010;
  --site-black: #000000;
  --site-on-dark: #FFFFFF;
  --site-red: #EC0C09;
  --site-accent: #F6F3EF;
  --site-accent-strong: #EC0C09;
  --site-accent-fg: #121110;
  --site-dark-line: #3A3636;
  --parts-cta-ink: #121110;
  --parts-band-go-ink: #121110;
  --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 16px/1.625 var(--site-font-body);
  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 black Add to Cart ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 40px;
  background: var(--site-accent); color: var(--site-accent-fg); border: 1px solid var(--site-accent); border-radius: var(--site-radius);
  font: 700 16px/22px var(--site-font-button); text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.cl-btn:hover { background: var(--site-accent-strong); border-color: var(--site-accent-strong); }
:root[data-parts-theme="dark"] .cl-btn:hover { color: var(--site-on-dark); }  /* white words on the red hover, as the light page has them */
.cl-btn:focus-visible { outline: 2px solid var(--site-fg); outline-offset: 2px; }

/* ---------- header: their 140px black bar (30px over a 110px row) ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-black); color: var(--site-on-dark); }
.cl-hd__in { max-width: var(--site-max); margin: 0 auto; padding: 30px var(--site-gutter) 0; height: 140px; display: flex; align-items: center; }
.cl-hd__toggle { display: none; }
.cl-hd__logo { flex: 0 0 169px; font: italic 900 40px/44px var(--site-font-heading); letter-spacing: 1px; color: var(--site-on-dark); }
.cl-hd__nav { flex: 1; min-width: 0; margin-left: 89px; }
.cl-hd__list { display: flex; flex-wrap: wrap; gap: 0 40px; }
.cl-hd__link { display: block; font: 700 16px/26px var(--site-font-body); text-transform: uppercase; color: var(--site-on-dark); }
.cl-hd__link:hover, .cl-hd__link.is-current { color: var(--site-red); }
.cl-hd__search { position: relative; flex: 0 0 292px; margin-right: 233px; }
.cl-hd__q {
  width: 100%; height: 55px; padding: 0 48px 0 20px; background: transparent; color: var(--site-on-dark);
  border: 1px solid var(--site-on-dark); border-radius: var(--site-radius); font: 400 16px/22px var(--site-font-body);
}
.cl-hd__q::placeholder { color: var(--site-on-dark); opacity: 1; }
.cl-hd__q:focus { outline: 2px solid var(--site-on-dark); outline-offset: 1px; }
.cl-hd__go { position: absolute; top: 0; right: 0; width: 48px; height: 55px; display: flex; align-items: center; justify-content: center; color: var(--site-on-dark); }
.cl-hd__cart { flex: none; position: relative; display: inline-flex; align-items: center; gap: 8px; height: 30px; font: 700 16px/30px var(--site-font-body); color: var(--site-on-dark); }
.cl-hd__cart:hover { color: var(--site-red); }
.cl-hd__cart-count { position: absolute; top: -8px; left: 10px; min-width: 18px; padding: 0 4px; font: 700 12px/18px var(--site-font-body); text-align: center; border-radius: 9px; background: var(--site-red); color: var(--site-on-dark); }
.cl-hd__cart-count:empty { display: none; }
/* the kit's theme switch (parts/theme_switch.html, shown at night): white on the black bar, red on hover, beside Cart */
.parts-theme-switch { margin-right: 12px; color: var(--site-on-dark); }
.parts-theme-switch:hover { color: var(--site-red); }

/* ---------- footer: their near-black three columns, then the copyright bar ---------- */
.cl-ft { background: var(--site-dark); color: var(--site-on-dark); }
.cl-ft__in { max-width: var(--site-max); margin: 0 auto; padding: 40px var(--site-gutter) 0; height: 395px; display: grid; grid-template-columns: 442px 442px 1fr; column-gap: 25px; align-items: start; }
.cl-ft__h { display: flex; align-items: center; justify-content: space-between; font: 700 24px/30px var(--site-font-heading); text-transform: uppercase; list-style: none; }
.cl-ft__h::-webkit-details-marker { display: none; }
.cl-ft__chev { display: none; }
.cl-ft__btn { display: inline-flex; align-items: center; justify-content: center; width: 186px; height: 44px; margin-top: 20px; border: 1px solid var(--site-on-dark); border-radius: var(--site-radius); font: 700 16px/22px var(--site-font-button); text-transform: uppercase; }
.cl-ft__btn:hover { background: var(--site-on-dark); color: var(--site-dark); }
.cl-ft__word { display: inline-block; margin-top: 35px; font: italic 900 48px/53px var(--site-font-heading); letter-spacing: 1px; }
.cl-ft__links { margin-top: 30px; }
.cl-ft__links a { display: inline-block; font: 400 16px/30px var(--site-font-body); }
.cl-ft__links a:hover { text-decoration: underline; }
.cl-ft__small { padding: 75px var(--site-gutter) 40px; text-align: center; font: 400 13px/30px var(--site-font-body); }

/* ---------- phones: their 127px bar, the menu behind the bars, the footer's lists behind their headings ---------- */
@media (max-width: 979.98px) {
  .cl-hd__in { flex-wrap: wrap; align-items: center; height: auto; padding: 12px 15px 15px; }
  .cl-hd__toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -8px; color: var(--site-on-dark); }
  .cl-hd__logo { flex: 1; text-align: center; font-size: 30px; line-height: 32px; }
  .parts-theme-switch { order: 2; margin-right: 0; }
  .cl-hd__cart { order: 2; width: 40px; height: 40px; justify-content: center; margin-right: -6px; }
  .cl-hd__label { display: none; }
  .cl-hd__nav { order: 3; flex: 1 1 100%; margin: 0; }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__nav.is-open { margin: 10px -15px 0; padding: 0 15px; background: var(--site-black); }
  .cl-hd__list { flex-direction: column; gap: 0; }
  .cl-hd__link { padding: 12px 0; border-top: 1px solid var(--site-dark-line); }
  .cl-hd__search { order: 4; flex: 1 1 100%; margin: 5px 20px 0; }
  .cl-hd__q { font-size: 16px; }

  .cl-ft__in { display: block; height: auto; padding: 40px 15px 5px; }
  .cl-ft__h { font-size: 20px; line-height: 24px; }
  .cl-ft__btn { margin-top: 20px; }
  .cl-ft__word { margin-top: 20px; font-size: 44px; line-height: 53px; }
  .cl-ft__fold { border-bottom: 1px solid var(--site-dark-line); }
  .cl-ft__fold:first-of-type { margin-top: 23px; border-top: 1px solid var(--site-dark-line); }
  .cl-ft__fold .cl-ft__h { min-height: 64px; cursor: pointer; font-size: 20px; }
  .cl-ft__chev { display: block; transition: transform .2s; }
  .cl-ft__fold[open] .cl-ft__chev { transform: rotate(180deg); }
  .cl-ft__links { margin: 0 0 16px; }
  .cl-ft__links a { line-height: 40px; }
  .cl-ft__small { padding: 35px 15px 50px; line-height: 24px; }
}

/* ---------- the 404 (templates/404.html) ---------- */
.cl-404__home { text-align: center; padding: 0 20px 80px; }

/* 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; }

}
