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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets clear the sticky header */
  scroll-padding-top: calc(var(--header-h) + var(--space-md));
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% -12%, rgba(53, 212, 157, 0.2), transparent 34rem),
    linear-gradient(180deg, #0a1411 0, var(--ink-900) 36rem);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* 2026-09-12, дизайн-ревью (инкремент 001): заголовки здесь были вообще
   без тени/обводки, хотя на WordPress-стороне уже есть — читалось как
   два разных продукта. Те же значения, что в теме сайта, тот же
   paint-order: stroke fill (контур под заливкой, буквы не худеют).
   2026-09-12, инкремент 008: значения считались под старый плотный
   скрим — здесь заголовки крупнее, чем на WordPress-хиро, поэтому те же
   em-значения давали контур в разы толще (0.055em на местном h1 — это
   5.5px, против 1.2px у поднятого в 006 h1 темы). Ослаблено до тех же
   абсолютных пропорций, что и в theme WordPress (006). */
h1 { paint-order: stroke fill; -webkit-text-stroke: 0.02em rgba(4, 10, 8, 0.45);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85), 0 6px 18px rgba(0, 0, 0, 0.75), 0 0 40px rgba(0, 0, 0, 0.5); }
h2 { paint-order: stroke fill; -webkit-text-stroke: 0.015em rgba(4, 10, 8, 0.4);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6), 0 8px 22px rgba(0, 0, 0, 0.4); }
h3 { paint-order: stroke fill; -webkit-text-stroke: 0.012em rgba(4, 10, 8, 0.35);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }

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

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

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

table { border-collapse: collapse; width: 100%; }

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

::selection { background: var(--azure-deep); color: var(--paper); }

/* --- Focus: never removed, only replaced. --- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--azure-bright);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: 0;
  z-index: 200;
  transform: translateY(-130%);
  padding: var(--space-xs) var(--space-md);
  background: var(--azure-bright);
  color: var(--ink-900);
  font-size: var(--step--1);
  font-weight: 600;
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(var(--space-xs)); }

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

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
