:root {
  --bg: #ffffff;
  --surface: #f6f6f7;
  --text: #18181b;
  --muted: #52525b;
  --border: #e4e4e7;
  --accent: #c2410c;
  --accent-bg: #f97316;
  --on-accent: #0a0a0a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a;
    --surface: #18181b;
    --text: #fafafa;
    --muted: #a1a1aa;
    --border: #27272a;
    --accent: #fb923c;
  }
}

* { box-sizing: border-box; }

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

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

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  border-bottom: 1px solid var(--border);
}

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

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
  font-size: 15px;
}

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

main { padding: 40px 0 56px; }

h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 36px 0 8px; }
h3 { font-size: 16px; margin: 22px 0 4px; }

p, li { color: var(--text); }
ul { padding-left: 22px; }
li { margin: 4px 0; }

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

.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }

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

.card p { margin: 6px 0; }

.btn {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
}

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

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

th { color: var(--muted); font-weight: 600; }

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

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

footer.site .wrap { padding-top: 20px; padding-bottom: 28px; }
footer.site a { color: var(--muted); margin-right: 14px; }
