:root {
  color-scheme: dark;
  --bg: #111318;
  --surface: #1a1c22;
  --surface-2: #20232a;
  --surface-3: #2a2d35;
  --text: #e4e2e9;
  --muted: #c6c5d0;
  --muted-2: #9294a0;
  --line: #3f424a;
  --line-strong: #5b5f6a;
  --accent: #ffffff;
  --accent-on: #111318;
  --accent-2: #9ad5ca;
  --danger: #ffb4ab;
  --shadow: 0 1px 2px rgba(0, 0, 0, .32), 0 8px 24px rgba(0, 0, 0, .24);
  --radius: 8px;
  font-family: Inter, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .58);
  outline-offset: 3px;
}

.wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.wide-wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 19, 24, .92);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0;
}

.links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color .18s ease, background .18s ease;
  padding: 9px 10px;
  border-radius: var(--radius);
}

.links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-on);
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .32);
  background: #f3f4f7;
}

.button.secondary {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--surface-3);
  border-color: var(--line-strong);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

footer {
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-row a {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 560px) {
  .wrap,
  .wide-wrap {
    width: min(100% - 28px, 1160px);
  }

  .links {
    gap: 12px;
  }
}
