:root {
  color-scheme: light dark;
  --brand: #2e66f6;
  --brand-muted: rgba(46, 102, 246, 0.12);
  --text: #1a1d26;
  --text-secondary: #5c6370;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --max-width: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #eef1f7;
    --text-secondary: #a8b0bf;
    --bg: #0f1218;
    --surface: #171b24;
    --border: rgba(255, 255, 255, 0.1);
    --brand-muted: rgba(46, 102, 246, 0.2);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: none;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.hero {
  margin-bottom: 28px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.meta {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  line-height: 1.35;
}

.prose h2:first-child {
  margin-top: 0;
}

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

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.card-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.card-link {
  display: block;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  border-color: var(--brand);
  background: var(--brand-muted);
}

.card-link strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.card-link span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 40px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}
