/* ============================================================
   morgunov.tech design system — v1 — base.css
   Reset, body defaults, base typography, and accessibility primitives
   (sr-only, skip-link). Depends on tokens.css for colour/type variables.
   Reusable across all morgunov.tech services.
   ============================================================ */

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

button, input, select, textarea {
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--v4-bg);
  color: var(--v4-fg);
  transition: background 0.3s ease, color 0.3s ease;
}

body.no-transition {
  transition: none !important;
}

body.v4-page {
  font-family: var(--v4-sans);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

[data-theme="high-contrast"] body.v4-page {
  font-size: 16px;
}

.v4-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.v4-page .skip-link {
  position: fixed;
  top: -10rem;
  left: 16px;
  background: var(--v4-orange);
  color: var(--v4-on-accent);
  padding: 6px 12px;
  z-index: 100;
  text-decoration: none;
  font-size: 13px;
  transition: top 0.2s;
}

.v4-page .skip-link:focus {
  top: 8px;
}
