:root {
  --bg: #0f1115;
  --surface: #181b22;
  --text: #e8eaf0;
  --muted: #9aa1ad;
  --accent: #4f8cff;
  --accent-soft: rgba(79, 140, 255, 0.12);
  --border: #262a33;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  max-width: 860px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--accent); }

.nav-links a {
  margin-left: 1.25rem;
  color: var(--muted);
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }

main { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; }

.hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
}
.hero h1 { font-size: 2.4rem; line-height: 1.2; margin-bottom: 1rem; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin: 0 auto; }

.features { padding: 2rem 0; }
.features h2, .cta h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

.cta {
  text-align: center;
  padding: 3rem 0 4rem;
}
.cta p { color: var(--muted); }

.content-page { padding: 2.5rem 0 4rem; }
.content-page h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.content-page h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.content-page h3 { font-size: 1.05rem; margin: 1.25rem 0 0.3rem; }
.content-page p, .content-page li { color: var(--muted); }
.content-page strong { color: var(--text); }
.content-page ol, .content-page ul { padding-left: 1.4rem; margin: 0.5rem 0; }
.content-page li { margin-bottom: 0.35rem; }

.contact-email { font-size: 1.15rem; margin: 0.5rem 0; }
.muted { color: var(--muted); font-size: 0.9rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---- Personal page (root) ---- */
body.me { display: flex; flex-direction: column; min-height: 100vh; }
.me-main { max-width: 620px; width: 100%; margin: 0 auto; padding: 5rem 1.25rem 3rem; flex: 1; }
.me-header { margin-bottom: 2rem; }
.me-header h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.01em; }
.me-tagline { color: var(--muted); font-size: 1.1rem; margin-top: 0.25rem; }
.me-section { margin-bottom: 2.25rem; }
.me-section p { color: var(--muted); }
.me-section h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.me-list { list-style: none; }
.me-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}
.me-list li:last-child { border-bottom: none; }
.me-role { color: var(--text); font-weight: 500; }
.me-org { color: var(--muted); }
.me-when { color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.me-list-plain li { display: block; color: var(--muted); border-bottom: none; padding: 0.25rem 0; }

@media (max-width: 520px) {
  .hero { padding: 3rem 0 2rem; }
  .hero h1 { font-size: 1.8rem; }
  .me-main { padding-top: 3rem; }
  .me-when { margin-left: 0; width: 100%; }
}
