:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --text: #1a1d23;
  --text-muted: #565d6b;
  --accent: #2f5fd9;
  --accent-contrast: #ffffff;
  --border: #e3e5ea;
  --max-width: 780px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12141a;
    --bg-alt: #1a1d24;
    --text: #eef0f4;
    --text-muted: #a3a9b7;
    --accent: #6b8fef;
    --accent-contrast: #0d1117;
    --border: #2a2e38;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  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);
}

.site-header {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

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

.hero {
  padding: 4rem 0 3rem;
}

.hero-photo {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: 2.75rem;
  margin: 0 0 0.25rem;
}

.title {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.hero-summary {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
}

.hero-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

.btn-primary:hover {
  opacity: 0.9;
}

.section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 1.6rem;
  margin: 0 0 1rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

.case-study {
  margin-bottom: 2.25rem;
}

.case-study:last-child {
  margin-bottom: 0;
}

.case-header h3 {
  margin: 0 0 0.15rem;
  font-size: 1.15rem;
}

.case-meta {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.case-study ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.case-study li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

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

.skill-group h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

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

.contact-section {
  text-align: left;
}

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media print {
  .site-header,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .btn {
    display: inline;
    padding: 0;
    border: none;
    color: #000;
    text-decoration: underline;
  }

  .hero-links {
    gap: 0.5rem 1.5rem;
  }

  .section {
    border-top: 1px solid #ccc;
    padding: 1rem 0;
    break-inside: avoid;
  }

  .case-study {
    break-inside: avoid;
  }

  main {
    max-width: 100%;
  }
}
