:root {
  --bg: #f4f6fb;
  --bg-accent: #e8eef9;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-ring: rgba(37, 99, 235, 0.25);
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 10px 24px -4px rgba(15, 23, 42, 0.08);
  --max: 52rem;
  --profile-size: 7.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text-secondary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 10% -5%, rgba(37, 99, 235, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 10%, rgba(99, 102, 241, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #eef2f7 100%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: 0.35rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-nav .brand {
  margin-right: auto;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Profile image — swap src to /images/profile.jpg when ready */
.profile-wrap {
  flex-shrink: 0;
}

.profile-photo {
  width: var(--profile-size);
  height: var(--profile-size);
  border-radius: var(--radius-lg);
  object-fit: cover;
  display: block;
  background: var(--surface-muted);
  border: 3px solid var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
  outline: 2px solid var(--accent-ring);
}

.profile-caption {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  max-width: var(--profile-size);
  line-height: 1.35;
}

.profile-caption code {
  font-size: 0.68rem;
  background: var(--accent-soft);
  padding: 0.12em 0.35em;
  border-radius: 4px;
  color: var(--text-secondary);
}

.hero {
  margin-bottom: 2.75rem;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .hero-panel {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 2.25rem;
  }

  .profile-caption {
    text-align: left;
  }
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero .eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.hero h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
  line-height: 1.2;
  color: var(--text);
}

.hero .tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0 0 1rem;
  max-width: 42ch;
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  padding: 0.6rem 0.85rem;
  background: var(--accent-soft);
  border-radius: var(--radius);
  border: 1px solid #bfdbfe;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.social-row a {
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--muted);
}

.social-row a:hover {
  color: var(--accent);
  border-color: #93c5fd;
  background: var(--accent-soft);
}

.page-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-hero .profile-photo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius);
}

.page-hero-text {
  min-width: 0;
}

section {
  margin-bottom: 2.25rem;
}

section h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 1rem;
  font-weight: 600;
}

.lead {
  font-size: 1.05rem;
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

.card-grid {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow);
}

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

.card h3 a {
  text-decoration: none;
  color: var(--text);
}

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

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

.card .meta {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.topics li {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.page-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.page-intro {
  color: var(--muted);
  margin: 0;
  max-width: 42ch;
}

ul.plain {
  margin: 0;
  padding-left: 1.2rem;
}

ul.plain li {
  margin-bottom: 0.45rem;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer-inner {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
