/* ==========================================================================
   Stratovia — tokens, reset, typography, layout primitives
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-tint: #eef2f8;
  --border: #e3e8ef;
  --border-strong: #cfd8e3;

  /* Text */
  --ink: #0d2338;
  --text: #42546b;
  --muted: #5f7086;

  /* Accent */
  --accent: #2c5bd8;
  --accent-dark: #1f43ab;
  --accent-soft: #eef3fe;
  --positive: #0f7b5f;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --h1: clamp(2rem, 1.45rem + 2.35vw, 3.25rem);
  --h2: clamp(1.5rem, 1.26rem + 1.05vw, 2.125rem);
  --h3: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --lede: clamp(1.0625rem, 1.01rem + 0.24vw, 1.1875rem);
  --sm: 0.9375rem;
  --xs: 0.8125rem;

  /* Space */
  --gutter: clamp(1.25rem, 1rem + 1vw, 2rem);
  --section-y: clamp(3.5rem, 2.6rem + 3vw, 5.75rem);
  --container: 1100px;

  /* Shape */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(13, 35, 56, 0.06);
  --shadow-md: 0 4px 14px rgba(13, 35, 56, 0.08);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 64px;

  color-scheme: light;
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100svh;
}

body.is-locked { overflow: hidden; }

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

input,
button,
textarea,
select { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

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

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

::selection { background: #cfdcfb; }

hr { border: 0; border-top: 1px solid var(--border); }

/* Typography -------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.018em;
}

h1 { font-size: var(--h1); line-height: 1.15; letter-spacing: -0.024em; }
h2 { font-size: var(--h2); line-height: 1.25; }
h3 { font-size: var(--h3); line-height: 1.4; letter-spacing: -0.012em; }
h4 { font-size: 1rem; line-height: 1.5; letter-spacing: -0.008em; }

p { max-width: 68ch; }

.lede {
  font-size: var(--lede);
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
}

.eyebrow {
  display: block;
  font-size: var(--xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.small { font-size: var(--sm); }
.muted { color: var(--muted); }
.ink { color: var(--ink); }

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


.section { padding-block: var(--section-y); }
.section--sm { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section--soft { background: var(--bg-soft); }
.section--line { border-top: 1px solid var(--border); }
.section--flush-top { padding-top: 0; }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.section-head p { margin-top: 0.75rem; }

.section-head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.section-head--row > div { max-width: 40rem; }

.grid { display: grid; gap: clamp(1rem, 0.8rem + 0.7vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  align-items: start;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  font-size: var(--sm);
  font-weight: 500;
}

.skip-link:focus { top: 0.75rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
