/* cl-site.css: the site's tokens, fonts, reset and chrome on every page, in the look of the brand's owner
   (realtruck.com, measured on its home at 1440 and in the 390 phone stage): near-black bars, the yellow
   accent, Roboto (PlatformFont) for the words and the condensed AllTerrain (PlatformBrandFont) for headings.

   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 take only --parts-accent, --parts-accent-strong and --parts-font from here (kit ADRs 0006 and
   0007), and no rule here names a kit class.
   From 980px the desktop layout; below it the phone layout, with the menu in an opaque drawer (cl-site.js). */
@layer base, kit, site;

@font-face { font-family: "PlatformFont"; src: url("fonts/platformfont-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PlatformFont"; src: url("fonts/platformfont-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "PlatformFont"; src: url("fonts/platformfont-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "PlatformBrandFont"; src: url("fonts/platformbrandfont-900.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }

:root {
  /* colours */
  --site-bg: #FFFFFF;
  --site-fg: #1E1E1E;
  --site-muted: #2A2A2A;
  --site-line: #D6D6D6;
  --site-band: #F2F2F2;
  --site-card: #F6F6F6;
  --site-dark: #1E1E1E;
  --site-on-dark: #FFFFFF;
  --site-yellow: #FFC600;
  --site-accent: #0077A2;
  --site-accent-strong: #005F82;
  --site-accent-fg: #FFFFFF;
  --site-field-bg: #FFFFFF;
  --site-field-line: #D5D5D5;
  --site-button-bg: #FFC600;
  --site-button-fg: #1E1E1E;
  --site-button-hover-bg: #E6B200;
  --site-button-hover-fg: #1E1E1E;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #4A4A4A;
  --site-field-hint: #5A5A5A;

  /* fonts */
  --site-font-body: "PlatformFont", Roboto, "Helvetica Neue", Arial, sans-serif;
  --site-font-heading: "PlatformBrandFont", "Oswald", "Arial Narrow", Impact, sans-serif;
  --site-font-button: var(--site-font-body);

  /* shape and layout */
  --site-radius: 0;
  --site-max: 1320px;
  --site-wide: 1280px;
  --site-gutter: 16px;

  --mx: calc(100vw / 390);
  --u: 1px;
}
:root {
  --parts-accent: var(--site-accent);
  --parts-accent-strong: var(--site-accent-strong);
  --parts-font: var(--site-font-body);
}
@media (max-width: 979.98px) {
  :root { --u: var(--mx); }
}
/* the dark theme (kit 0.10.0, Site(dark="night")): the page a warm near black in the kit's family, the
   header, footer and dark bands kept at the brand's #1E1E1E a step above it, text near white, the yellow
   kept with its dark ink, product photos on their white plates */
: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-dark: #1E1E1E;
  --site-on-dark: #FFFFFF;
  --site-yellow: #FFC600;
  --site-accent: #0077A2;
  --site-accent-strong: #0A8AB9;
  --site-accent-fg: #FFFFFF;
  --site-field-bg: #1C1A18;
  --site-field-line: #5A524A;
  --site-field-hint: #D9D3CC;
  --site-button-bg: #FFC600;
  --site-button-fg: #1E1E1E;
  --site-button-hover-bg: #E6B200;
  --site-button-hover-fg: #1E1E1E;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #EBE6E0;
  --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.5 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; }
input, select { font: inherit; }
[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 button: their yellow block, dark bold capitals ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 32px;
  background: var(--site-button-bg); color: var(--site-button-fg); border: 0; border-radius: var(--site-radius);
  font: 700 16px/24px var(--site-font-button); text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.cl-btn:hover { background: var(--site-button-hover-bg); color: var(--site-button-hover-fg); }
.cl-btn:focus-visible { outline: 2px solid var(--site-fg); outline-offset: 2px; }

/* ---------- the wordmark: the brand's name in their heading face ---------- */
.cl-mark { display: inline-flex; align-items: baseline; gap: 8px; font: 900 44px/36px var(--site-font-heading); text-transform: uppercase; color: var(--site-on-dark); white-space: nowrap; }
.cl-mark__a { color: var(--site-yellow); }

/* ---------- header: the dark notice bar, the logo and search bar, the menu bar ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-dark); color: var(--site-on-dark); }
.cl-hd__top { height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--site-gutter); font: 700 14px/21px var(--site-font-body); }
.cl-hd__mail { font-weight: 400; }
.cl-hd__mail:hover, .cl-hd__link:hover { text-decoration: underline; }
.cl-hd__main { height: 68px; display: flex; align-items: center; gap: 32px; padding: 0 var(--site-gutter); }
.cl-hd__logo { flex: none; width: 240px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.cl-hd__tag { color: var(--site-on-dark); font: 700 13px/1 var(--site-font-body); letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.cl-hd__toggle { display: none; }
.cl-hd__search { flex: 0 1 744px; display: flex; height: 36px; }
.cl-hd__search input { flex: 1; min-width: 0; height: 36px; padding: 0 12px; background: var(--site-field-bg); color: var(--site-fg); border: 1px solid var(--site-field-line); border-right: 0; border-radius: 0; font-size: 16px; }
.cl-hd__search input::placeholder { color: var(--site-field-hint); }
.cl-hd__search button { flex: none; width: 40px; display: grid; place-items: center; background: var(--site-yellow); color: var(--site-button-fg); border: 1px solid var(--site-yellow); }
.cl-hd__cart { margin-left: auto; position: relative; display: grid; place-items: center; width: 40px; height: 40px; color: var(--site-on-dark); }
.cl-hd__cart-count { position: absolute; top: 0; right: 0; min-width: 18px; padding: 0 3px; font: 700 13px/18px var(--site-font-body); text-align: center; background: var(--site-yellow); color: var(--site-button-fg); }
.cl-hd__cart-count:empty { display: none; }
/* the box round the kit's theme switch (kit 0.10), before the cart in the logo bar: the switch takes the header's
   ink by itself (no rule here names a kit class), the cart 8px after it */
.cl-hd__theme { flex: none; display: flex; margin-left: auto; }
.cl-hd__theme + .cl-hd__cart { margin-left: -24px; }
.cl-hd__bar { height: 52px; display: flex; align-items: stretch; }
.cl-hd__nav { flex: 1; min-width: 0; }
.cl-hd__list { display: flex; height: 100%; }
.cl-hd__link { display: flex; align-items: center; height: 100%; padding: 0 16px; font: 700 14px/21px var(--site-font-body); border-bottom: 2px solid transparent; }
.cl-hd__link.is-current { border-bottom-color: var(--site-yellow); }
.cl-hd__pick { flex: none; width: 214px; display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--site-yellow); color: var(--site-button-fg); font: 700 14px/21px var(--site-font-body); }
.cl-hd__pick:hover { background: var(--site-button-hover-bg); }

/* ---------- footer: the dark block, the wordmark, four link columns, the small line ---------- */
.cl-ft { background: var(--site-dark); color: var(--site-on-dark); }
.cl-ft__in { max-width: var(--site-wide); margin: 0 auto; padding: 40px 0 32px; }
.cl-ft__cols { display: grid; grid-template-columns: 320px repeat(4, 1fr); gap: 0 80px; }
.cl-ft__brand .cl-mark { font-size: 44px; }
.cl-ft__lead { margin-top: 32px; font: 700 18px/24px var(--site-font-body); text-transform: uppercase; }
.cl-ft__text { margin-top: 4px; font: 400 16px/24px var(--site-font-body); }
.cl-ft__text a { text-decoration: underline; }
.cl-ft__title { font: 700 16px/21px var(--site-font-body); text-transform: uppercase; margin-bottom: 20px; }
.cl-ft__list li + li { margin-top: 19px; }
.cl-ft__list a { font: 400 14px/21px var(--site-font-body); }
.cl-ft__list a:hover { text-decoration: underline; }
.cl-ft__col + .cl-ft__col .cl-ft__title { margin-top: 0; }
.cl-ft__small { margin-top: 80px; text-align: center; font: 400 13px/20px var(--site-font-body); }

/* ---------- phones ---------- */
@media (max-width: 979.98px) {
  .cl-hd__top { justify-content: center; }
  .cl-hd__mail { display: none; }
  .cl-hd__main { height: 104px; flex-wrap: wrap; align-content: flex-start; gap: 0 8px; padding: 0 16px; }
  .cl-hd__toggle { display: grid; place-items: center; width: 40px; height: 40px; margin: 4px 0 0 -6px; color: var(--site-on-dark); }
  .cl-hd__logo { width: auto; margin-top: 4px; display: flex; align-items: flex-start; justify-content: center; height: 40px; gap: 3px; }
  .cl-hd__tag { letter-spacing: 1px; }
  .cl-hd__logo .cl-mark { font-size: 28px; line-height: 24px; gap: 6px; }
  .cl-hd__cart { margin-top: 4px; }
  .cl-hd__theme { margin-top: 4px; }
  .cl-hd__theme + .cl-hd__cart { margin-left: 0; }
  .cl-hd__search { order: 5; flex: 1 1 100%; margin-top: 4px; }
  .cl-hd__bar { height: 52px; }
  .cl-hd__nav { position: absolute; left: 0; right: 0; top: 136px; z-index: 60; background: var(--site-dark); border-top: 1px solid #3A3A3A; }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__list { flex-direction: column; height: auto; }
  .cl-hd__link { height: auto; min-height: 48px; padding: 12px 16px; border-bottom: 1px solid #3A3A3A; font-size: 16px; }
  .cl-hd__pick { width: 100%; }
  .cl-ft__in { padding: 32px 16px; }
  .cl-ft__cols { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .cl-ft__brand { grid-column: 1 / -1; text-align: center; }
  .cl-ft__brand .cl-mark { font-size: 34px; }
  .cl-ft__list li + li { margin-top: 0; }
  .cl-ft__list a { display: flex; align-items: center; min-height: 40px; }
  .cl-ft__small { margin-top: 40px; }
}

/* ---------- the 404 ---------- */
.cl-404 { max-width: var(--site-wide); margin: 0 auto; padding: 64px var(--site-gutter) 96px; text-align: center; }
.cl-404__title { font: 900 72px/72px var(--site-font-heading); text-transform: uppercase; }
.cl-404__text { margin: 16px 0 32px; font: 400 16px/24px var(--site-font-body); }
@media (max-width: 979.98px) { .cl-404__title { font-size: 48px; line-height: 48px; } }

/* the footer's trademark line: "owner" links the brand's owner 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; }

}
