:root {
  --bg: #0e1116;
  --surface: #161b22;
  --surface-2: #1f2630;
  --border: #2a313c;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #2ea043;
  --accent-2: #58a6ff;
  --warning: #f0883e;
  --danger: #f85149;
  --max-width: 760px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--font-mono); }
pre { background: var(--surface); padding: 14px 16px; border-radius: 8px; overflow-x: auto; border: 1px solid var(--border); }
code { background: var(--surface); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
pre code { background: transparent; padding: 0; }

header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header.site-header .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
header.site-header .brand {
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
}
header.site-header nav a {
  margin-left: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
header.site-header nav a:hover { color: var(--text); }

.disclaimer-bar {
  background: #3a2a14;
  color: #f0d8b8;
  border-bottom: 1px solid #5c4220;
  padding: 10px 20px;
  font-size: 0.85rem;
  text-align: center;
}
.disclaimer-bar strong { color: #f0883e; }
.disclaimer-bar a { color: #f0d8b8; text-decoration: underline; }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 64px;
}
main h1 { font-size: 2rem; line-height: 1.25; margin: 8px 0 12px; }
main h2 { font-size: 1.4rem; margin-top: 36px; }
main h3 { font-size: 1.15rem; margin-top: 28px; }
main p { margin: 14px 0; }
main ul, main ol { padding-left: 22px; }
main li { margin: 6px 0; }
main blockquote {
  border-left: 3px solid var(--accent);
  margin: 16px 0;
  padding: 4px 16px;
  color: var(--text-muted);
  background: var(--surface);
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.tag {
  display: inline-block;
  background: var(--surface-2);
  color: var(--text-muted);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-right: 6px;
}

.post-list { list-style: none; padding: 0; }
.post-list li {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.post-list h3 { margin: 0 0 6px; font-size: 1.1rem; }
.post-list .excerpt { color: var(--text-muted); font-size: 0.95rem; margin: 4px 0 0; }

.disclaimer-block {
  margin: 36px 0 24px;
  padding: 16px 18px;
  background: #2a1d10;
  border: 1px solid #5c4220;
  border-radius: 8px;
  color: #f0d8b8;
  font-size: 0.9rem;
}
.disclaimer-block strong { color: #f0883e; }

footer.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 48px;
}
footer.site-footer a { color: var(--text-muted); margin: 0 10px; }
footer.site-footer .compliance {
  margin-top: 14px;
  font-size: 0.8rem;
  color: #8b949e;
  line-height: 1.55;
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  main h1 { font-size: 1.6rem; }
  header.site-header .wrap { flex-direction: column; align-items: flex-start; }
  header.site-header nav a { margin-left: 0; margin-right: 16px; }
}
