:root {
  --bg: #f5f7fb;
  --text: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --border: #dbe3ef;
  --accent: #0f766e;
  --accent-contrast: #ffffff;
  --accent-soft: #ccfbf1;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --card: #1e293b;
  --border: #334155;
  --accent: #2dd4bf;
  --accent-contrast: #0f172a;
  --accent-soft: #134e4a;
}

* {
  box-sizing: border-box;
}

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

.container {
  width: min(100% - 2rem, 980px);
  margin-inline: auto;
}

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

[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.88);
}

.nav-wrap {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
}

.site-title {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-list a {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  transition: all 160ms ease;
}

.nav-list a:hover,
.nav-list a.active {
  background: #ecfeff;
  color: #155e75;
}

[data-theme="dark"] .nav-list a:hover,
[data-theme="dark"] .nav-list a.active {
  background: #134e4a;
  color: #5eead4;
}

main {
  padding: 2rem 0 3rem;
}

.hero {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: linear-gradient(155deg, #ffffff 0%, #f0fdfa 100%);
  box-shadow: 0 14px 35px -28px rgba(15, 23, 42, 0.45);
  margin-bottom: 2rem;
}

[data-theme="dark"] .hero {
  background: linear-gradient(155deg, #1e293b 0%, #134e4a 100%);
  box-shadow: 0 14px 35px -28px rgba(0, 0, 0, 0.6);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.headshot {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--border);
}

.hero-text {
  flex: 1;
}

@media (max-width: 720px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .headshot {
    width: 140px;
    height: 140px;
  }
}

.kicker {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.button {
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.6rem 0.9rem;
  border-radius: 0.55rem;
  font-weight: 600;
}

.button.secondary {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme="dark"] .button.secondary {
  background: #334155;
  color: #e2e8f0;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1rem;
  box-shadow: 0 10px 24px -24px rgba(2, 6, 23, 0.45);
}

.list-clean {
  padding-left: 1.1rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 1rem 0;
  color: var(--muted);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  transition: all 160ms ease;
}

.theme-toggle:hover {
  background: var(--accent-soft);
}

@media (max-width: 720px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
