:root {
  --bg: #0d0f14;
  --bg-elev: #14171f;
  --border: #232733;
  --text: #e8eaf0;
  --muted: #9aa1b1;
  --accent: #e8b13a;
  --accent-dim: #b9862a;
  --radius: 12px;
  --maxw: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(13, 15, 20, 0.9);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.brand:hover { text-decoration: none; }
.mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--accent), var(--accent-dim));
  flex: none;
}
nav a {
  color: var(--muted);
  font-size: 15px;
  margin-left: 22px;
}
nav a:first-child { margin-left: 0; }
nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 76px 0 56px; }
.hero h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  font-weight: 700;
}
.hero p {
  font-size: 19px;
  color: var(--muted);
  margin: 0;
  max-width: 58ch;
}

/* Sections */
section { padding: 40px 0; border-top: 1px solid var(--border); }
section h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 20px;
}
section h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
section p { margin: 0 0 16px; color: #c6ccda; }
section p:last-child { margin-bottom: 0; }

/* Cards */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card .meta {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}

/* Definition list */
dl.facts {
  margin: 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px 20px;
}
dl.facts dt { color: var(--muted); font-size: 15px; }
dl.facts dd { margin: 0; }
@media (max-width: 540px) {
  dl.facts { grid-template-columns: 1fr; gap: 2px 0; }
  dl.facts dd { margin-bottom: 12px; }
}

/* Content pages */
.page { padding: 48px 0 8px; }
.page h1 {
  font-size: clamp(26px, 5vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.page .updated { color: var(--muted); font-size: 15px; margin: 0; }
.prose h2 {
  font-size: 19px;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 32px 0 10px;
  font-weight: 650;
}
.prose ul { margin: 0 0 16px; padding-left: 22px; color: #c6ccda; }
.prose li { margin-bottom: 7px; }
.prose section { border-top: none; padding: 0; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 15px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
