:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --border: #d0d7de;
  --text: #1f2328;
  --muted: #59636e;
  --accent: #b3261e;
  --accent-text: #ffffff;
  --link: #0969da;
  --code-bg: #eff1f3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #161b22;
    --border: #30363d;
    --text: #e6edf3;
    --muted: #9198a1;
    --accent: #e5534b;
    --accent-text: #ffffff;
    --link: #4493f8;
    --code-bg: #1c2128;
  }
}

* { 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", "Noto Sans",
    Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px 96px;
}

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

header.site .wrap {
  padding-top: 28px;
  padding-bottom: 28px;
}

header.site .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 6px;
}

header.site h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

header.site p.sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

nav.crumbs {
  margin: 22px 0 0;
  font-size: 14px;
}

nav.crumbs a { color: var(--link); text-decoration: none; }
nav.crumbs a:hover { text-decoration: underline; }
nav.crumbs span { color: var(--muted); }

main h2 {
  margin: 44px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-size: 22px;
}

main h3 { margin: 28px 0 8px; font-size: 18px; }

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

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

ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}

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

th { background: var(--surface); font-weight: 600; }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 15px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 32px 0;
}

@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

.card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { margin: 0 0 6px; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

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

footer.site .wrap { padding-top: 24px; padding-bottom: 40px; }
footer.site a { color: var(--link); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }

.updated {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
