/* "trades": a sturdy child theme on the Fluid base v2, for contractors,
   hardscapes and roofing. Sign-painter capitals over a plain public-works
   sans, a safety-orange action colour, 2px edges, hard offset shadows on
   elevated cards like stamped steel, a heavy rule over each section. Fonts:
   themes/fonts/trades.css. Link after the base: fluid.min.css, then this
   file. */
@layer reset, tokens, base, layouts, components, themes, utilities;

@layer themes {
  :root {
    --font-heading: "Oswald Variable", "Bebas Neue", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --font-body: "Public Sans Variable", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --accent: oklch(54% 0.16 55);           /* safety orange, deepened so white on it clears 4.5:1 (≈ 5.3:1) */
    --neutral-tint: oklch(50% 0.012 60);    /* concrete: greys lean warm, like poured stone */
    --type-ratio: 1.333;
    --weight-display: 600;
    --weight-heading: 600;
    --display-max: 9rem;
    --measure: 64ch;
    --radius-card: 0;
    --radius-control: 3px;
    --border-width: 2px;
    --shadow-style: 2;                      /* hard offset, no blur */
    --shadow-offset: 4px;
    --container-content: 80rem;
    --space-section: clamp(4rem, 2.8rem + 5.333vi, 8rem);   /* 64 → 128: a working pace */
    --nav-tracking: 0.06em;
    --nav-tracking-min: 0.02em;
    --toc-marker: decimal-leading-zero;
    --section-rule: 6px;                    /* a heavy rule over each section head */
  }

  /* Capitals throughout the heads: condensed, so even a long trade name fits. */
  :is(h1, h2, h3, .display, .hero__headline, .card__title, .feature__title, .cta__title) {
    text-transform: uppercase;
    letter-spacing: 0.005em;
  }
  .display, .hero__headline, h1 { line-height: 0.98; }
  :is(h1, h2, h3, .display, .hero__headline, .card__title, .feature__title, .cta__title) em { font-style: normal; color: var(--accent-ink); }   /* no italic file: emphasis by colour */

  /* The label voice: bold sans capitals, ink not accent. */
  :is(.eyebrow, h5, h6, thead th, .plate, cite, legend, dt, .toc__label, .stat__label) {
    color: var(--color-text);
    font-weight: calc(700 + var(--_dark-weight));
    letter-spacing: 0.08em;
  }
  :is(button, .button, .nav__cta), :is(.nav__link, .nav__dropdown-link) {
    font-weight: calc(700 + var(--_dark-weight));
    text-transform: uppercase;
  }
  :is(button, .button, .nav__cta) { letter-spacing: 0.06em; }
  /* A long button label still fits a 320px screen. */
  @media (max-width: 24rem) {
    :is(button, .button, .nav__cta) { letter-spacing: 0.01em; }
  }
  /* A segmented button group cannot wrap: on a phone its capitals lose their
     tracking and some padding, so three labels still fit a 390px screen. */
  @media (max-width: 30rem) {
    .button-group > :is(button, .button) { letter-spacing: 0; padding-inline: 1em; }
  }
  .nav__brand { font-family: var(--font-heading); font-weight: calc(600 + var(--_dark-weight)); text-transform: uppercase; letter-spacing: 0.02em; }

  .lede { font-family: var(--font-body); font-weight: 400; }
  blockquote:not(.testimonial__quote) {
    font: calc(500 + var(--_dark-weight)) var(--step-2) / 1.2 var(--font-heading);
    border-inline-start-width: 6px;
    border-inline-start-color: var(--accent);
  }
  .stat__value { font-family: var(--font-heading); font-weight: calc(600 + var(--_dark-weight)); }
  .testimonial__quote p { font-weight: calc(450 + var(--_dark-weight)); }

  /* ---------- Layout signature (_docs/plans/2026-11-22-theme-differentiation.md) ----------
     The theme recomposes the default hero (one with no data-layout; an author's
     data-layout wins) and the bar; the markup stays the core's. */
  /* A light bar in the page's own colours, a hairline under it. */
  :root { --nav-bg: var(--color-background); --nav-ink: var(--color-text); }
  .nav:not([data-bg], [data-variant]) {
    color-scheme: inherit;
    --_dark-weight: inherit;
    border-block-end: 1px solid var(--color-border);
  }
  /* Split: the words beside the photo, the photo running to the screen's edge and the hero's full height. */
  @media (min-width: 60rem) {
    .hero:not([data-layout]):has(> .hero__plate) {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
      column-gap: var(--space-xl);
      align-content: center;
      padding-inline-end: 0;
    }
    .hero:not([data-layout]):has(> .hero__plate) > :not(.hero__plate) { grid-column: 1; }
    .hero:not([data-layout]):has(> .hero__plate) > .hero__plate {
      grid-column: 2;
      grid-row: 1 / span 5;
      margin: calc(-1 * min(var(--space-xl), var(--space-section))) 0;
      display: grid;
      grid-template-rows: 1fr auto;
    }
    .hero:not([data-layout]):has(> .hero__plate) > .hero__plate img { block-size: 100%; object-fit: cover; }
    .hero:not([data-layout]):has(> .hero__plate) > .hero__plate figcaption { margin-inline: var(--space-m); }
  }
}
