:root {
  color-scheme: dark;
  --background: #080809;
  --surface: #111113;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(185, 11, 14, 0.45);
  --text: #f5f5f5;
  --muted: #a3a3a8;
  --quiet: #77777f;
  --red-bright: #e12529;
  --red-soft: rgba(185, 11, 14, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #ff8688;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid rgba(225, 37, 41, 0.8);
  outline-offset: 4px;
}

.container {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 9, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 9px;
}

.brand-mark {
  color: #ff4d51;
}

.home-link {
  color: var(--muted);
  font-size: 0.86rem;
}

.doc {
  padding: 56px 0 90px;
}

.doc-kicker {
  margin-bottom: 12px;
  color: var(--red-bright);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.doc h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.doc-meta {
  margin: 0 0 40px;
  color: var(--quiet);
  font-size: 0.85rem;
}

.doc h2 {
  margin: 44px 0 12px;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.doc h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.doc p {
  margin: 0 0 14px;
  color: #d2d2d5;
}

.doc ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: #d2d2d5;
}

.doc li {
  margin-bottom: 6px;
}

.doc li strong {
  color: var(--text);
}

.callout {
  margin: 0 0 14px;
  padding: 16px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--red-soft);
  color: #ffd9da;
  font-size: 0.92rem;
}

.callout p {
  margin: 0;
  color: inherit;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.doc-links a {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.82rem;
}

.doc-links a:hover {
  border-color: var(--border-strong);
  background: var(--red-soft);
  color: #ffd0d1;
  text-decoration: none;
}

.site-footer {
  padding: 30px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--quiet);
  font-size: 0.8rem;
}
