:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5b5b5b;
  --accent: #2454ff;
  --border: #e5e5e5;
  --card-bg: #f7f7f8;
  --code-bg: #f0f0f2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --fg: #eaeaea;
    --muted: #a3a3a3;
    --accent: #6f92ff;
    --border: #2a2d33;
    --card-bg: #1b1e24;
    --code-bg: #1f232a;
  }
}

* {
  box-sizing: border-box;
}

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

.wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

header.site-header a.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  text-decoration: none;
}

nav.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

nav.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

nav.breadcrumb a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 1.9rem;
  margin-bottom: 0.3rem;
}

h2 {
  font-size: 1.25rem;
  margin-top: 2.2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

p.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}

@media (min-width: 560px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

code {
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

footer.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

ul {
  padding-left: 1.3rem;
}

li {
  margin-bottom: 0.4rem;
}
