/* BBMc base - fonts, reset, ground, typography, CTA, footer. Owner: FOUNDATION */

/* ---- self-hosted Poppins (latin), fallback system stack ---- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/poppins-300.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/poppins-600.woff2") format("woff2");
}

/* ---- self-hosted Space Mono (latin) — alethia data-layer/mono font ---- */
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/space-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/space-mono-700.woff2") format("woff2");
}

/* ---- reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---- ground: one dark theme, locked ---- */
body {
  font-family: var(--font-sans);
  font-weight: var(--w-regular);
  font-size: var(--step-body);
  line-height: 1.65;
  color: var(--pale);
  background-color: var(--ink-deep);
  background-image: linear-gradient(
    170deg,
    var(--ink-deep) 0%,
    var(--ink) 45%,
    var(--navy) 100%
  );
  background-attachment: fixed;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ---- typography ---- */
h1,
h2,
h3 {
  font-weight: var(--w-light);
  letter-spacing: var(--track-tight);
  line-height: 1.12;
  color: var(--pale);
  text-wrap: balance;
}
h1 { font-size: var(--step-hero); }
h2 { font-size: var(--step-h2); }
h3 {
  font-size: var(--step-h3);
  line-height: 1.3;
}
p {
  color: var(--text-2);
  max-width: 62ch;
}
a {
  color: var(--steel);
  text-decoration: none;
}
strong { font-weight: var(--w-accent); }

/* one sky accent word per heading */
.accent,
em.accent {
  font-style: normal;
  font-weight: var(--w-accent);
  color: var(--sky);
}

/* labels: uppercase, letter-spaced, sky */
.label {
  font-size: var(--step-label);
  font-weight: var(--w-accent);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--sky);
}

/* tabular numerals for figures */
.num { font-variant-numeric: tabular-nums; }

/* ---- the one CTA ---- */
.cta {
  display: inline-block;
  padding: 0.85em 1.9em;
  border: 0;
  border-radius: 999px;
  background: var(--sky);
  color: var(--ink-deep);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: var(--w-accent);
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  transition: transform var(--dur) var(--ease-out), background 0.25s ease,
    box-shadow var(--dur) var(--ease-out);
}
.cta:hover {
  background: var(--steel);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(94, 154, 200, 0.25);
}
.cta:active { transform: scale(0.98); }
@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
  .cta:hover { transform: none; }
}

/* ---- section defaults ---- */
section {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--space-section) var(--gutter);
}

/* ---- focus + selection ---- */
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--sky);
  color: var(--ink-deep);
}

/* ---- media defaults ---- */
img,
canvas,
svg,
video {
  max-width: 100%;
  display: block;
}

/* ---- footer ---- */
.site-footer {
  border-top: var(--hairline);
  text-align: center;
  padding: 2.5rem var(--gutter) 3rem;
  color: var(--steel);
  font-size: 0.875rem;
}
.site-footer img { margin: 0 auto 1rem; }
.site-footer a { color: var(--steel); }
.site-footer a:hover { color: var(--pale); }
