@font-face { font-family: 'SK Modernist'; src: url('../fonts/SKModernist-Regular.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/Geist-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/Geist-Medium.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --surface: #FAFAFB;
  --border: #EBEBEF;
  --border-strong: #DCDCE2;
  --ink: #0B0B0F;
  --ink-2: #3F3F46;
  --muted: #6B6B76;
  --accent: #2E5CE6;
  --accent-hover: #2A55D4;
  --fail: #DC2626;
  --fail-ink: #B91C1C;
  --display: 'SK Modernist', 'Geist', system-ui, sans-serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 720px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
h1, h2 { color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.9em; }

.skip { position: absolute; left: -9999px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { left: 16px; top: 12px; color: #fff; }
#main:focus { outline: none; }

.nav { position: sticky; top: 0; z-index: 50; height: 72px; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav .container, .container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.nav .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--display); font-size: 1.18rem; letter-spacing: 0.02em; line-height: 1; }
.logo:hover { color: var(--ink); }
.logo svg { width: 24px; height: 19px; }
.logo .eye { fill: var(--bg); }
.nav__cta { margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #26262D; color: #fff; }
.btn--sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn--block { width: 100%; }

.doc { padding: 56px 0 88px; }
.doc .container { max-width: var(--max); }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.03em; line-height: 1.1; }
.updated { margin-top: 12px; color: var(--muted); font-size: 15px; }
.doc h2 { margin-top: 36px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.doc p, .doc li { margin-top: 12px; }
.doc ul { margin-top: 8px; padding-left: 1.2em; }
.doc li { margin-top: 6px; }
.doc a:focus-visible, .doc .linkish:focus-visible { border-radius: 2px; }
.doc .linkish { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-size: inherit; }
.doc .linkish:hover { color: var(--accent-hover); }

.form { display: grid; gap: 16px; margin-top: 28px; max-width: 420px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field input {
  width: 100%; height: 42px; padding: 0 12px; background: var(--bg); color: var(--ink);
  border: 1px solid #8E8E98; border-radius: 8px; font-size: 15px;
}
.field input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 92, 230, 0.18); }
.err { font-size: 13px; color: var(--fail-ink); }
.is-bad { border-color: var(--fail) !important; }
.form-status { font-size: 15px; color: var(--ink-2); }

.foot { padding: 32px 0; border-top: 1px solid var(--border); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot__links a, .foot__links .linkish { font-size: 14px; color: var(--muted); }
.foot__links a:hover, .foot__links .linkish:hover { color: var(--ink); }
.foot__links .linkish { background: none; border: 0; padding: 0; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
