:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --border: #e3e6ea;
  --text: #16181d;
  --muted: #5c6370;
  --accent: #1f5fd8;
  --accent-soft: #eef3fd;
  --radius: 12px;
  --maxw: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #191c22;
    --border: #2a2f38;
    --text: #e8eaee;
    --muted: #9aa1ad;
    --accent: #79a6f6;
    --accent-soft: #1b2434;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

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

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: baseline;
  justify-content: space-between;
}

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

/* The mark sits on its own white tile so it stays legible in dark mode. */
.brand .mark {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 18px;
}

nav a:first-child { margin-left: 0; }

nav a:hover, a:hover { color: var(--accent); }

main { padding: 40px 0 64px; }

h1 {
  font-size: 1.95rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 36px 0 10px;
}

h3 {
  font-size: 1rem;
  margin: 24px 0 6px;
}

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

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 0;
}

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

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

ul { padding-left: 1.25rem; }

li { margin: 6px 0; }

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

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

.card h2 { margin: 0 0 4px; font-size: 1.1rem; }

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

.note {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 24px 0;
}

.note p { margin: 0; }

.contact {
  font-size: 1.05rem;
  font-weight: 600;
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

footer.site p { margin: 4px 0; }
