/* ==========================================================================
   VENUS — BASE
   Reset-light, root elements, typography defaults, accessibility primitives.
   Loads AFTER Bootstrap + tokens, so it can set brand defaults on top of BS.
   ========================================================================== */

/* --- Self-hosted type ------------------------------------------------------
   Manrope (variable, 200–800) is the single site typeface — self-hosted, and
   the SAME face the homepage hero uses, so the whole site reads as one system
   (headings + body) instead of the earlier unloaded Space-Grotesk/Inter stack.
   Swap the token values in tokens.css to change faces globally. */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Guard against the off-canvas mobile panel (parked off-screen right)
     extending the page width. `clip` (not `hidden`) prevents horizontal
     scroll WITHOUT creating a scroll container, so the sticky header still
     works. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  color: var(--color-text);
  margin: 0 0 var(--space-4);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--space-4); max-width: var(--measure); }

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--dur-micro) var(--ease-out);
}
a:hover { color: var(--color-link-hover); }
a:not(.btn):not(.nav-link):not(.card-link):hover { text-decoration: underline; }

img, svg { max-width: 100%; height: auto; vertical-align: middle; }

ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-6); }

hr {
  border: 0;
  border-top: var(--border-hairline);
  margin: var(--space-8) 0;
  opacity: 1;
}

/* --- Accessibility primitives --- */

/* Visible focus everywhere (never remove without replacement) */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-2);
  top: var(--space-2);
  z-index: var(--z-skiplink);
  padding: var(--space-2) var(--space-4);
  background: var(--ink-900);
  color: var(--text-on-dark);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform var(--dur-standard) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); color: var(--text-on-dark); }

/* Screen-reader-only, still focusable when needed */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Utility: constrained reading measure */
.measure { max-width: var(--measure); }

/* Eyebrow / small-caps label */
.eyebrow {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
  margin: 0 0 var(--space-2);
}

/* Container aligned to token max-width */
.container, .container-fluid { --bs-gutter-x: var(--space-8); }
@media (min-width: 1400px) {
  .container { max-width: var(--container-max); }
}
