:root {
  --bg: #0e1016;
  --surface: #161a24;
  --border: #262c3a;
  --text: #e7eaf0;
  --muted: #99a1b3;
  --accent: #ffcc33;
  --red: #ff5c5c;
  --green: #45d483;
  --blue: #4aa8ff;
  --yellow: #ffcc33;
  --radius: 14px;
  --maxw: 760px;
}

* { 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", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
}

.brand-logo {
  width: 28px;
  height: 28px;
  display: block;
  flex: none;
}

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

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

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

/* Content */
main {
  padding: 48px 0 72px;
}

h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

h2 {
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 4px;
}

h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}

p, li { color: var(--text); }

a { color: var(--accent); }

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

.lede {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 32px;
}

ul, ol { padding-left: 22px; }

li { margin: 6px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

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

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-scroll { overflow-x: auto; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0;
}

.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.cards .card { margin: 0; }

.cards h3 { margin-top: 0; }

.cards p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #14161c;
  font-weight: 650;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 10px;
  margin-top: 8px;
}

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

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

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

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  main { padding: 32px 0 56px; }
}
