/* ACD-31: critical above-the-fold CSS for the landing hero (see vite/landing-lcp.js).
   Served same-origin (CSP style-src 'self'), linked ahead of the main stylesheet so the static hero
   placeholder paints before the ~330 KB entry bundle runs. Dark theme (document default).

   The selectors and values mirror the real hero rules in src/styles/visitor-home.css (.vh, .vh-hero,
   .vh-lead; ACD-280) so the
   placeholder's box geometry is IDENTICAL to the React hero once the main stylesheet applies. That keeps
   the Largest Contentful Paint element (the hero subtitle) from shifting or re-registering when React
   mounts. Below-the-fold (hero mock panel, hero__note, actions) is intentionally omitted.

   COLOURS COME FROM THE THEME TOKENS (var(--bg)/--text/--text-2/--font-body/--fs-md from
   src/styles/tokens.css), NOT hardcoded dark values. This file is linked AFTER the main stylesheet, so a
   hardcoded `body { background:#070b16; color:#eef2ff }` would WIN over `body { background:var(--bg) }`
   and force the dark palette even under data-theme="light": the whole page then renders dark backgrounds
   under light-theme text and fails WCAG colour-contrast (the e2e accessibility.spec.js axe scan runs "/"
   in BOTH schemes). Using the tokens keeps the placeholder theme-correct and never overrides the live app
   after React mounts. The dark literals remain only as var() fallbacks for the instant before the token
   stylesheet parses (both links are render-blocking in <head>, so in practice the tokens are already set). */
/* Inter 400 (latin) from the file index.html preloads, so the hero text paints in its real font from the
   first frame. Without this the preload went unused (the bundle's @font-face points at its own hashed copy of
   the same file), the static hero painted in a fallback font, and React's hero, painted later in Inter, came
   out larger and became the LCP element, with the whole bundle counted against it. Same file and
   descriptors as @fontsource/inter's latin 400 face; this rule comes later, so the browser uses it. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/inter-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body,
#root {
  min-height: 100%;
}
body {
  margin: 0;
  background: var(--bg, #070b16);
  color: var(--text, #eef2ff);
  font-family: var(--font-body, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  font-size: var(--fs-md, 1rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
#root {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
/* The visitor home hero (ACD-280): mirrors src/styles/visitor-home.css (.vh, .vh-hero, .vh-lead). */
.vh {
  container: vh / inline-size;
  width: min(100% - 2 * clamp(16px, 4vw, 32px), 1180px);
  margin-inline: auto;
}
.vh-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 48px 0;
}
@container vh (min-width: 1001px) {
  .vh-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    padding-top: 64px;
  }
}
.vh-hero h1 {
  margin: 16px 0 0;
  font-family: var(--font-display, "Space Grotesk", "Inter", system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.2cqi, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.vh-hero h1 em {
  font-style: normal;
  color: var(--accent, #8b7dff);
}
.vh-lead {
  margin: 16px 0 0;
  max-width: 50ch;
  font-size: clamp(1rem, 1.6cqi, 1.125rem);
  line-height: 1.55;
  color: var(--text-2, #b6bfd6);
}
