:root {
  --bg: #fbfaf7;
  --fg: #111110;
  --muted: #6b6b67;
  --border: #e4e2dc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #f4f3ef;
    --muted: #8a8a86;
    --border: #232322;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 80px 24px 56px;
  transition: background 0.2s ease, color 0.2s ease;
}

.container {
  width: 100%;
  max-width: 560px;
}

/* Kicker / eyebrow labels */

.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

/* Header */

.profile {
  margin-bottom: 56px;
}

.name {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 8vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.bio {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
  margin: 0;
}

/* Dividers */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.section {
  padding: 40px 0;
}

/* Links */

.links {
  display: flex;
  flex-direction: column;
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  margin: 0 -18px;
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.link-row:hover {
  background: var(--fg);
  color: var(--bg);
}

.link-row:hover .arrow {
  color: var(--bg);
  transform: translateX(2px);
}

.arrow {
  color: var(--muted);
  font-size: 15px;
  transition: transform 0.15s ease, color 0.15s ease;
}

/* AI section */

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ai-button {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ai-button:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* CV */

.cv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cv-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.cv-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cv-role {
  font-size: 15px;
  font-weight: 500;
}

.cv-org {
  font-size: 13px;
  color: var(--muted);
}

.cv-meta {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.cv-dates {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Footer */

.site-footer {
  margin-top: 40px;
  text-align: left;
  font-size: 12px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  background: var(--fg);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Responsive */

@media (max-width: 400px) {
  .cv-item { flex-direction: column; gap: 4px; }
  .link-row { margin: 0 -12px; padding: 16px 12px; }
}
