:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --text: #101828;
  --muted: #475467;
  --primary: #2e90fa;
  --border: #d0d5dd;
  --chip: #eef4ff;
  --shadow: 0 8px 28px rgba(16, 24, 40, 0.08);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f172a;
  --surface: #111827;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --primary: #60a5fa;
  --border: #334155;
  --chip: #1e293b;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

main {
  padding: 8px 0 48px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 18px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
}

.hero-theme-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.hero-content {
  padding-right: min(200px, 28vw);
}

.hero-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid var(--border);
}

.eyebrow {
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--muted);
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 8px;
}

h2 {
  margin-top: 0;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.75;
}

.list .list {
  margin-top: 8px;
  margin-bottom: 4px;
}

.experience-list > li + li {
  margin-top: 20px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips span {
  background: var(--chip);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 28px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-photo {
    margin-top: 8px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
