/* 24laws base: reset, типографика, ссылки, фокус, layout-примитивы. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--space-4)); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1 { font-family: var(--font-serif); font-weight: 700; font-size: var(--text-h1); line-height: 1.12; letter-spacing: -0.015em; }
h2 { font-family: var(--font-serif); font-weight: 600; font-size: var(--text-h2); line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-h3); line-height: 1.3; }
h4 { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-body); line-height: 1.4; }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25em; }
li { margin-bottom: var(--space-2); }
li::marker { color: var(--ink-3); }
strong, b { font-weight: 600; }
small { font-size: var(--text-small); }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: var(--space-7) 0; }

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--ink-3); transition: color 0.15s ease, text-decoration-color 0.15s ease; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); color: var(--ink); }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: var(--space-3) var(--space-4); text-decoration: none; }
.skip-link:focus { top: var(--space-4); color: var(--paper); }

.icon { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.icon--sm { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
