:root {
  color-scheme: light dark;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #1a2233;
  --text-muted: #4b5567;
  --border: #e3e6ee;
  --brand: #192b49;
  --brand-accent: #3d5a99;
  --link: #2f5fd6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1420;
    --surface: #151d2e;
    --text: #eef1f8;
    --text-muted: #a7b0c3;
    --border: #253150;
    --brand: #7f9cdb;
    --brand-accent: #a9bdf0;
    --link: #8fb0ff;
  }
}

* {
  box-sizing: border-box;
}

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

header.site {
  background: var(--brand);
  color: #fff;
}

.header-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--brand);
}

nav.site {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav.site a {
  color: #dfe6ff;
  text-decoration: none;
  font-size: 0.95rem;
}

nav.site a:hover {
  color: #fff;
  text-decoration: underline;
}

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(20px, 4vw, 40px);
}

h1 {
  font-size: 1.7rem;
  margin: 0 0 6px;
}

.updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 32px;
}

h2 {
  font-size: 1.15rem;
  margin: 32px 0 10px;
  color: var(--brand-accent);
}

h2:first-of-type {
  margin-top: 0;
}

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

ul {
  padding-left: 22px;
}

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

.callout {
  background: color-mix(in srgb, var(--brand-accent) 12%, transparent);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.95rem;
  margin: 20px 0;
}

footer.site {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 48px;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

footer.site a {
  color: var(--text-muted);
}

.home-hero {
  text-align: center;
  padding: 24px 0 8px;
}

.home-hero p {
  color: var(--text-muted);
  max-width: 46ch;
  margin: 8px auto 0;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

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

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

.link-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-accent);
}

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