:root {
  --color-bg: #f6f8fb;
  --color-surface: #ffffff;
  --color-text: #1d2733;
  --color-text-muted: #5b6675;
  --color-border: #e3e8ef;
  --color-accent: #2f6df6;
  --color-accent-soft: #eaf1ff;
  --radius: 14px;
  --maxw: 860px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
}

.brand:hover {
  text-decoration: none;
}

.brand__logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-accent), #6aa3ff);
  display: inline-block;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.site-nav a {
  color: var(--color-text-muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-accent);
  text-decoration: none;
}

/* ---------- Document ---------- */
.document {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.document__header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.document__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.document h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.document__meta {
  color: var(--color-text-muted);
  font-size: 15px;
  margin: 0;
}

.document h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  scroll-margin-top: 80px;
}

.document h3 {
  font-size: 18px;
  margin: 28px 0 10px;
  scroll-margin-top: 80px;
}

.document p {
  margin: 0 0 16px;
}

.document ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

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

.document .lead {
  font-size: 17px;
  color: var(--color-text-muted);
}

.document .placeholder {
  color: #9aa4b2;
}

/* Tables */
.document .table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
}

.document table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.document th,
.document td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.document thead th {
  background: var(--color-accent-soft);
  font-weight: 600;
  color: var(--color-text);
}

.document tbody tr:last-child td {
  border-bottom: none;
}

.callout {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 16px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 14px;
}

.site-footer__links {
  display: flex;
  gap: 20px;
}

/* ---------- Simple hero (placeholder home) ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 40px;
  margin: 0 0 16px;
}

.hero p {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero__links {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.btn:hover {
  text-decoration: none;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

@media (max-width: 600px) {
  .document h1 { font-size: 26px; }
  .hero h1 { font-size: 30px; }
  .site-nav { gap: 14px; font-size: 14px; }
}
