:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --text: #131c28;
  --muted: #55606f;
  --accent: #1f5a7a;
  --border: #d9e0e8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1020;
    --surface: #161933;
    --text: #d6dcea;
    --muted: #96a0b8;
    --accent: #8890ff;
    --border: #2a2e52;
  }
}

* { box-sizing: border-box; }

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

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

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: var(--text);
}
.wordmark:hover { text-decoration: none; }

nav a { margin-left: 20px; }

main { padding: 48px 0 64px; }

h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.08em;
}

p.lead { margin: 0 0 32px; color: var(--muted); font-size: 1.1rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 28px 24px;
}

.card img { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 0 20px; }

.card p { margin: 0 0 16px; }

.links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }

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