/* base.css — токены, сброс, типографика, ссылки, фокус */
:root {
  --bg-primary: #F7F5F0;
  --text-primary: #1C1B18;
  --accent: #A84310;
  --bg-secondary: #EAE6DD;
  --btn-bg: #8F350A;
  --border: #D5CFC2;
  --space-unit: 8px;
  --font-head: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  text-align: left;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* немецкие составные слова — переносим по слогам */
:lang(de) { hyphens: auto; }
:lang(de) :is(h1, h2) { hyphens: manual; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  margin: 0;
}
/* моно-заголовки: вес на ступень мягче, чуть плотнее трекинг — отличаются от Inter, но не давят */
h1 { font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
p, ul, ol, dl, dd { margin: 0; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
