/* ==========================================================================
   Go!Gosling — Base: reset, document defaults, primitives
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg-start);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  overflow-x: hidden;
}

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

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
}
button { background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 { line-height: var(--lh-snug); font-weight: 700; }

::selection { background: var(--brand-100); color: var(--text-primary); }

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

/* --- Layout primitives --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 720px) {
  .container { padding-inline: var(--space-8); }
}

.section { padding-block: var(--section-y); position: relative; }

.measure { max-width: 56ch; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* --- Type primitives ----------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-muted);
}
.eyebrow--brand { color: var(--brand-ink); }

.display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  font-weight: 600;
}
.section-title {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 600;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-secondary);
}
.muted { color: var(--text-secondary); }
.faint { color: var(--text-muted); }

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Accessibility helpers ---------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -120px;
  z-index: 200; background: var(--surface-strong); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top var(--dur-standard) var(--ease-standard);
}
.skip-link:focus { top: var(--space-4); }

[hidden] { display: none !important; }
