/* Руки · база: сброс, типографика, утилиты */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 12% -8%, var(--bg-glow-a), transparent 70%),
    radial-gradient(760px 520px at 100% 0%, var(--bg-glow-b), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font: 400 14.5px/1.55 var(--font-ui);
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1 { font: 600 clamp(26px, 2.4vw + 14px, 38px)/1.12 var(--font-display); letter-spacing: -.02em; }
h2 { font: 600 19px/1.3 var(--font-ui); letter-spacing: -.012em; }
h3 { font: 600 15.5px/1.35 var(--font-ui); letter-spacing: -.006em; }
h4 { font: 600 13px/1.4 var(--font-ui); }

a { color: var(--gold-text); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; }

img, svg { display: block; max-width: 100%; }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: .9em; }
code {
  background: var(--s3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .08em .4em;
  color: var(--text);
  overflow-wrap: anywhere;
}
kbd {
  background: var(--s3);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: .05em .45em;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

::selection { background: var(--gold-soft); color: var(--text); }

/* тонкие полосы прокрутки */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }

/* утилиты */
.hidden { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--font-mono); font-size: .92em; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.stack-lg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i--lg { width: 22px; height: 22px; }
.i--xl { width: 28px; height: 28px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
