:root {
  --bg: #0f0b0a;
  --surface: #1c1614;
  --border: #2e2422;
  --text: #f7f5f4;
  --muted: #a89f9c;
  --accent: #ff5c4d;
  --accent-hover: #ff7a6d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 24px 20px 80px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

header.site {
  padding: 12px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

header.site .brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff5c4d, #ff8a5c);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

nav.top {
  margin-top: 16px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

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

nav.top a:hover { color: var(--text); }

h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

p, ul, ol { margin-bottom: 14px; color: var(--text); }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

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

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

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

.card h3 { margin-top: 0; }

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

footer.site {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

footer.site a { color: var(--muted); margin: 0 8px; }

@media (max-width: 480px) {
  body { padding: 20px 16px 60px; }
  h1 { font-size: 26px; }
  h2 { font-size: 19px; }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #fbf5f3;
    --border: #ecdfda;
    --text: #1c1614;
    --muted: #6a5f5c;
  }
}
