:root {
  --bg: #f4f4f2;
  --card: #ffffff;
  --text: #17181a;
  --text-muted: #6b6d72;
  --border: #e3e3e0;
  --accent: #17181a;
  --accent-text: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 700px;
}

:root[data-theme="dark"] {
  --bg: #121212;
  --card: #1a1a1a;
  --text: #f1f1f0;
  --text-muted: #9b9b9d;
  --border: #2c2c2c;
  --accent: #f1f1f0;
  --accent-text: #121212;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 80px;
}

a { color: inherit; }

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 40px;
}

.name {
  font-weight: 700;
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.role {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
}

.toggle-track {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  display: inline-block;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}

:root[data-theme="dark"] .toggle-thumb { transform: translateX(16px); }

.toggle-icon { font-size: 0.9rem; line-height: 1; }

.btn-pill {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.btn-pill:hover { opacity: 0.85; }

/* Intro */
.intro p {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1.02rem;
}

.intro strong { font-weight: 600; }

/* Links row */
.links-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 48px;
}

.icon-link {
  color: var(--text-muted);
  display: inline-flex;
}

.icon-link:hover { color: var(--text); }

.tag-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
}

.tag-pill:hover { color: var(--text); border-color: var(--text-muted); }

/* Blocks */
.block { margin-bottom: 48px; }

.block-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 18px;
  text-transform: none;
}

/* Project cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

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

.chevron {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

/* Career */
.career-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
}

.career-year {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-top: 1px;
}

.career-row:first-child .career-year {
  color: var(--text);
  font-weight: 600;
}

.career-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.96rem;
}

.career-desc {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Footer */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.foot-email {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.foot-email:hover { color: var(--text); }

/* Responsive */
@media (max-width: 560px) {
  .page { padding: 40px 20px 56px; }
  .card-grid { grid-template-columns: 1fr; }
  .career-row { grid-template-columns: 1fr; gap: 4px; }
  .top { flex-wrap: wrap; }
}

.resume-link {
  margin: 18px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.resume-link a { text-decoration: none; }
.resume-link a:hover { text-decoration: underline; }

/* Recommendations */
.quote-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-item {
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

.quote-item p {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.55;
}

.quote-item footer {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: normal;
}

.headshot {
  float: right;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 0 16px 32px;
  shape-outside: circle(50%);
}

.intro::after {
  content: "";
  display: table;
  clear: both;
}
@media (max-width: 560px) {
  .headshot { float: none; display: block; margin: 0 auto 20px; }
}
