/* ============================================================
   Reset + shared baseline.
   Shared by / and /tsvetok. Surface treatment lives elsewhere.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-prose);
  font-size: var(--type-body-m);
  line-height: 1.55;
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}

p { margin: 0; }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

/* Space Grotesk has no native italic — never apply. */
em, i, cite { font-style: normal; }

/* Visually hidden — keeps content for screen readers */
.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;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ============================================================
   S272 — skip-to-content link (shared; every page adds
   <a class="skip-link" href="#main"> + id="main" on <main>).
   Off-screen until focused, then high-contrast on the dark band.
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--deep-void);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  text-decoration: none;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  outline: 2px solid var(--neon-gold);
}
