/*
Theme Name: LBX Vnzla
Theme URI: https://example.com/lbx-vnzla
Author: Leadbox
Description: Marketing theme shipping the durable site chrome — header and footer — plus design tokens and base styles. Page content is built in WordPress.
Version: 0.9.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: lbx-vnzla
*/

/* -------------------------------------------------------------------------
   Design tokens
   Light palette, matching the reference microsite: white page, near-black
   text, Ford Blue for brand accents, and a dark footer block.
   ---------------------------------------------------------------------- */
:root {
  /* Page */
  --color-bg: #ffffff;
  --color-bg-alt: #e8e8e8;
  --color-surface: #ffffff;
  --color-border: #e2e2df;
  --color-text: #000000;
  --color-text-muted: #6b6b6b;

  /* Immersive dark bands. Warm near-black, sampled off the reference — a
     neutral #000 block reads colder than the photography sitting in it. */
  --color-dark: #0a0605;
  --color-dark-text: #ffffff;
  --color-dark-muted: #a8a29c;

  /* Brand.
     Ford Blue stays for chrome affordances (focus rings, prose links) but is
     deliberately absent from the page design — the reference has no blue. */
  --color-primary: #00095b;
  --color-primary-contrast: #ffffff;
  --color-accent: #ff9800;

  /* Footer block (dark) */
  --color-footer-bg: #0a0605;
  --color-footer-text: #f2f3f4;
  --color-footer-muted: #8f959e;
  --color-footer-border: #24272c;

  /* Typography.
     Inter stands in for the reference's Helvetica Now / Neue Haas grotesque;
     Archivo Narrow covers the one condensed run (the spec strip). */
  --font-heading: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-condensed: "Archivo Narrow", "Helvetica Neue", Impact, sans-serif;

  /* Display scale, derived from the reference. Hero H1 and every section H2
     share one size there — that single display step is what keeps the page
     feeling editorial rather than shouty, so it is one token, not two. */
  --fs-display: clamp(2rem, 1.15rem + 2.6vw, 3.125rem);
  --fs-lead: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  --fs-numeral: clamp(2.5rem, 1.8rem + 2.2vw, 4.25rem);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 7rem;

  /* Layout.
     The reference alternates two widths and that alternation is its main
     rhythm: photography runs near-full-bleed while text pulls further in.
     Measured off the reference at 2.5% and 7.7% side gutters. */
  --container-max: 1280px;
  --container-wide: 95%;
  --container-text: 84.6%;
  --container-pad: var(--space-4);
  --radius-sm: 4px;
  --radius-md: 10px;

  /* Header height — generous by default, tightened once scrolled.
     The header is fixed and a spacer reserves `--header-h`, so changing
     these never shifts page content. */
  --header-h: 76px;
  --header-h-scrolled: 60px;

  /* Logo cap, kept below the header height so it can never force it taller. */
  --logo-h: 40px;
  --logo-h-scrolled: 32px;
  --footer-logo-h: 44px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 220ms var(--ease-out);

  /* Small caps label treatment used across the chrome */
  --label-size: 0.72rem;
  --label-tracking: 0.13em;
}

/* -------------------------------------------------------------------------
   Reset / base
   ---------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep in-page anchor targets clear of the fixed header. */
  scroll-padding-top: var(--header-h);
}

/* No `overflow-x` clamp here on purpose: the off-canvas drawer is
   `position: fixed`, so it never contributes to the document's scrollable
   overflow, and setting overflow on the root or body turns them into
   clip/scroll containers that break the sticky header. */
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.55;
}

img,
svg,
iframe,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
}

p {
  margin: 0 0 var(--space-3);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* -------------------------------------------------------------------------
   Accessibility helpers (WordPress conventions)
   ---------------------------------------------------------------------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-3);
  z-index: 999;
  padding: var(--space-2) var(--space-3);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-3);
}

/* -------------------------------------------------------------------------
   Layout primitives
   ---------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.label {
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background var(--transition-base), color var(--transition-base);
}

/* Inline icons inside buttons need an explicit box: an unsized SVG in a
   flex item stretches to fill the button. */
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: color-mix(in srgb, var(--color-primary) 82%, white);
}

/* =========================================================================
   SITE HEADER
   Three zones on desktop (nav / brand / utility), matching the reference
   microsite. Sticky, with generous vertical padding that tightens on scroll.
   ====================================================================== */
/* Fixed rather than sticky, with a same-height spacer reserving its space in
   flow. A sticky header that changes its own height shifts every element
   below it, which reads as a jump right as you approach the top of the page
   (and can fight scroll anchoring into a flicker). Fixed + spacer keeps the
   reserved space constant, so the shrink is purely visual. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: height var(--transition-base), border-color var(--transition-base),
    background var(--transition-base);
}

.site-header[data-scrolled="true"] {
  height: var(--header-h-scrolled);
  border-bottom-color: var(--color-border);
}

/* Reserves the header's full height in flow, always — never the shrunk one. */
/* Hidden on purpose: the header overlays the first section rather than
   reserving space above it, so a full-bleed hero starts at the very top of the
   viewport — the way the reference microsite does it. `scroll-padding-top` on
   the root still keeps in-page anchor targets clear of the header. */
.site-header-spacer {
  display: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
}

/* --- Brand --- */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.site-brand__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  white-space: nowrap;
}

.site-brand__text em {
  font-style: normal;
  color: var(--color-primary);
}

/* Sized off a token so the logo shrinks with the header instead of forcing it
   taller than `--header-h-scrolled`. */
.site-brand img,
.custom-logo {
  max-height: var(--logo-h);
  width: auto;
  transition: max-height var(--transition-base);
}

.site-header[data-scrolled="true"] .site-brand img,
.site-header[data-scrolled="true"] .custom-logo {
  max-height: var(--logo-h-scrolled);
}

/* --- Menus shared --- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  position: relative;
  display: inline-block;
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-text-muted);
  padding-block: var(--space-1);
  transition: color var(--transition-base);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu .current-menu-item > a {
  color: var(--color-text);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu .current-menu-item > a::after {
  transform: scaleX(1);
}

/* --- Submenus: desktop dropdown panel --- */
.nav-menu li {
  position: relative;
}

/* Chevron marks the parents that have a submenu. */
.site-nav .menu-item-has-children > a {
  padding-right: 14px;
}

.site-nav .menu-item-has-children > a::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}

/* Hoverable bridge across the gap between the trigger and the panel, so
   moving the pointer down does not close the dropdown mid-travel. */
.site-nav .menu-item-has-children::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: var(--space-3);
}

.site-nav .sub-menu {
  position: absolute;
  top: calc(100% + var(--space-3));
  left: calc(-1 * var(--space-3));
  min-width: 210px;
  margin: 0;
  padding: var(--space-2) 0;
  list-style: none;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 36px -18px rgba(12, 14, 18, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-base), transform var(--transition-base),
    visibility 0s linear var(--transition-base);
  z-index: 10;
}

/* `focus-within` opens the panel for keyboard users without extra JS. */
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility 0s;
}

.site-nav .sub-menu a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text);
}

.site-nav .sub-menu a::after {
  display: none;
}

.site-nav .sub-menu a:hover,
.site-nav .sub-menu a:focus-visible {
  background: var(--color-bg-alt);
}

/* --- Primary nav (desktop left zone / mobile drawer) --- */
.site-nav {
  display: none;
}

/* --- Utility zone --- */
.site-utility {
  display: none;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.site-utility__divider {
  width: 1px;
  height: 18px;
  background: var(--color-border);
}

.site-utility__contact {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text);
}

.site-utility__contact svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --- Mobile toggle: three CSS bars that morph into a close cross --- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  margin-right: calc(-1 * var(--space-2));
}

/* Scoped to the decorative spans so the visually-hidden label is untouched. */
.nav-toggle span[aria-hidden] {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile drawer --- */
.site-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 340px);
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-5) var(--space-6);
  box-shadow: -24px 0 48px -24px rgba(12, 14, 18, 0.35);
  transform: translateX(100%);
  /* Closed: hidden from the tab order too, so off-canvas links are not
     focusable. `visibility` is delayed so the slide-out stays visible. */
  visibility: hidden;
  transition: transform var(--transition-base), visibility 0s linear var(--transition-base);
  z-index: 200;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.site-drawer[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--transition-base), visibility 0s;
}

.site-drawer .nav-menu {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

/* Direct children only, so submenu rows do not pick up the divider. The second
   selector carries the rule across the seam between the two menus, which are
   separate <ul>s that `li + li` cannot reach across. */
.site-drawer .nav-menu > li + li,
.site-drawer__nav > nav + nav .nav-menu > li:first-child {
  border-top: 1px solid var(--color-border);
}

.site-drawer .nav-menu a {
  display: block;
  padding-block: var(--space-4);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--color-text);
}

.site-drawer .nav-menu a::after {
  display: none;
}

/* --- Submenus: drawer accordion --- */
.site-drawer .menu-item-has-children {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.site-drawer .menu-item-has-children > .sub-menu {
  grid-column: 1 / -1;
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: calc(-1 * var(--space-2));
  color: var(--color-text-muted);
}

.submenu-toggle span[aria-hidden] {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--transition-base);
}

.site-drawer [data-open="true"] > .submenu-toggle {
  color: var(--color-primary);
}

.site-drawer [data-open="true"] > .submenu-toggle span[aria-hidden] {
  transform: translateY(2px) rotate(-135deg);
}

.site-drawer .sub-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-3) var(--space-3);
  border-left: 1px solid var(--color-border);
}

.site-drawer [data-open="true"] > .sub-menu {
  display: block;
}

.site-drawer .sub-menu a {
  padding-block: var(--space-3);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Drawer head mirrors the header row it replaces: brand left, close right. */
.site-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
  margin-top: calc(-1 * var(--space-2));
}

.site-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: calc(-1 * var(--space-2));
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.site-drawer__close:hover,
.site-drawer__close:focus-visible {
  color: var(--color-text);
}

/* Utility links sit below the primary list and are styled identically to it:
   on a phone the drawer is the whole menu, so a demoted second tier just reads
   as two inconsistent link designs. `.site-drawer .nav-menu a` above covers
   both lists — nothing to override here. */

.site-drawer .btn {
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 14, 18, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  z-index: 150;
}

.drawer-backdrop[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  :root {
    --header-h: 96px;
    --header-h-scrolled: 64px;
    --logo-h: 52px;
    --logo-h-scrolled: 38px;
  }

  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .site-nav {
    display: block;
    justify-self: start;
  }

  .site-brand {
    justify-self: center;
  }

  .site-utility {
    display: flex;
    justify-self: end;
  }

  .nav-toggle,
  .site-drawer,
  .drawer-backdrop {
    display: none;
  }
}

/* =========================================================================
   SITE FOOTER
   Dark block: social row, brand statement + contact/link columns, legal bar.
   ====================================================================== */
/* No top margin: page sections set their own bottom spacing, and the footer
   butts straight up against the last one. */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  margin-top: 0;
}

.site-footer a {
  transition: color var(--transition-base);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffffff;
}

/* --- Social row --- */
.footer-social {
  border-block: 1px solid var(--color-footer-border);
}

.footer-social__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social__list li {
  border-bottom: 1px solid var(--color-footer-border);
}

.footer-social__list li:nth-child(odd) {
  border-right: 1px solid var(--color-footer-border);
}

.footer-social__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding-block: var(--space-4);
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-footer-muted);
}

.footer-social__list svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* --- Main footer body --- */
.footer-main {
  /* Tighter on mobile, where the bands stack into a tall column. */
  padding-block: var(--space-6);
  display: grid;
  gap: var(--space-5);
}

.footer-statement {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 22ch;
}

.footer-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.footer-logo__img {
  max-height: var(--footer-logo-h);
  width: auto;
}

/* Nothing to fill the column area — no address, no contact details, no footer
   menus. The statement is then the entire band, so it centres instead of
   hugging the left edge with a wide empty gutter beside it. */
.footer-main--solo {
  justify-items: center;
  text-align: center;
}

.footer-main--solo .footer-intro {
  align-items: center;
}

.footer-main--solo .footer-statement {
  max-width: 30ch;
}

/* The track count follows how many blocks actually rendered. A fixed count
   leaves dead gutters whenever the client fills fewer of them — two link menus
   in a four-track grid is half an empty footer. Starts at one and steps up,
   so the no-`:has()` fallback is a plain readable stack rather than a hole. */
.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5) var(--space-4);
}

/* Two-up on mobile so four blocks do not become an endless stack. */
.footer-cols:has(.footer-col:nth-child(2)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-col__title {
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-footer-muted);
  margin: 0 0 var(--space-3);
  font-weight: 500;
}

.footer-col__body,
.footer-col .nav-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--color-footer-text);
}

.footer-col__body p {
  margin: 0;
  color: var(--color-footer-text);
}

.footer-col .nav-menu a {
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-footer-text);
  padding-block: 0;
}

.footer-col .nav-menu a::after {
  background: currentColor;
}

/* Footer submenus stay a plain indented list — no dropdown down here. */
.footer-col .sub-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  padding: 0 0 0 var(--space-3);
  border-left: 1px solid var(--color-footer-border);
}

.footer-col .sub-menu a {
  color: var(--color-footer-muted);
}

/* --- Legal bar --- */
.footer-legal {
  border-top: 1px solid var(--color-footer-border);
  padding-block: var(--space-4) var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  font-size: 0.8rem;
  color: var(--color-footer-muted);
}

/* `margin-left: auto` rather than `justify-content: flex-end`, so this block
   stays right-aligned whether or not a legal menu sits beside it. */
/* One line: copyright and credit sit side by side, wrapping only if the
   viewport is too narrow for both. `margin-left: auto` rather than
   `justify-content: flex-end`, so this block stays right-aligned whether or not
   a legal menu sits beside it. */
.footer-legal__meta {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: var(--space-1) var(--space-4);
}

.footer-legal__credit a:hover,
.footer-legal__credit a:focus-visible {
  color: #ffffff;
}

@media (min-width: 640px) {
  .footer-legal__meta {
    text-align: right;
  }
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .footer-social__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-social__list li {
    border-bottom: 0;
  }

  .footer-social__list li:nth-child(odd) {
    border-right: 0;
  }

  .footer-social__list li + li {
    border-left: 1px solid var(--color-footer-border);
  }
}

@media (min-width: 900px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
    gap: var(--space-7);
    padding-block: var(--space-7);
  }

  /* Must follow .footer-main: same specificity, so source order decides. */
  .footer-main--solo {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Three and four blocks get their own tracks; two stay two. Ordered
     ascending so the highest matching count wins on source order. */
  .footer-cols:has(.footer-col:nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-cols:has(.footer-col:nth-child(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-legal {
    padding-block: var(--space-4);
  }
}

/* =========================================================================
   CONTENT AREA
   Deliberately minimal — enough for readable pages/posts while the real
   page content is built in WordPress.
   ====================================================================== */
.site-main {
  padding-block: var(--space-6);
}

@media (min-width: 900px) {
  .site-main {
    padding-block: var(--space-7);
  }
}

.entry-header {
  margin-bottom: var(--space-5);
}

.entry-title {
  font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.25rem);
}

.entry-meta {
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.entry-content > * + * {
  margin-top: var(--space-4);
}

.entry-content a:not(.btn) {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content img {
  border-radius: var(--radius-md);
}

.page-hint {
  color: var(--color-text-muted);
  max-width: 60ch;
}
