:root {
  --bg: #1a1a1a;
  --surface: #222222;
  --surface-hover: #282828;
  --text: #ededed;
  --muted: #666666;
  --line: #2e2e2e;
  --accent: #c9a84c;
  --accent-dark: #a88930;
  --mono: 'SF Mono', 'JetBrains Mono', 'Fira Code', 'Fira Mono', monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f0f0f0;
    --surface: #ffffff;
    --surface-hover: #f5f5f5;
    --text: #1a1a1a;
    --muted: #888888;
    --line: #e0e0e0;
  }

  .cv-row span {
    color: #1a1a1a !important;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  min-height: 100vh;
  background: var(--bg);
}

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vh, 40px) 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── CARD ─── */

.card {
  width: 100%;
  max-width: 600px;
  animation: in 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── HEADER ─── */

.initials {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
}

.name {
  margin: 0 0 7px;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  font-family: var(--mono);
}

.bio {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ─── CONTACT LIST ─── */

.contact-list {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row:not(.cv-row):hover {
  background: var(--surface-hover);
}

.contact-row span:first-child {
  font-weight: 600;
  font-size: 14px;
}

.contact-row span:last-child {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cv-row {
  background: var(--accent);
}

.cv-row span {
  color: var(--bg) !important;
}

.cv-row:hover {
  background: var(--accent-dark);
}

/* ─── DIVIDER ─── */

.divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

/* ─── EXPERIENCE ─── */

.exp-item {
  margin-bottom: 22px;
}

.exp-item:last-child {
  margin-bottom: 0;
}

.exp-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 4px;
}

.exp-company {
  font-weight: 700;
  font-size: 15px;
}

.exp-date {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  white-space: nowrap;
}

.exp-role {
  margin: 0 0 5px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.exp-summary {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── SKILLS ─── */

.skills-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skills-inline span {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  font-family: var(--mono);
}

/* ─── RESPONSIVE ─── */

@media (max-width: 480px) {
  body {
    padding: 32px 16px 48px;
  }

  .initials {
    margin-bottom: 20px;
  }

  .name {
    margin-bottom: 5px;
  }

  .bio {
    font-size: 14px;
    margin-bottom: 22px;
  }

  .contact-row {
    padding: 13px 14px;
  }

  .exp-meta {
    flex-direction: column;
    gap: 2px;
  }

  .skills-inline {
    gap: 6px;
  }

  .skills-inline span {
    font-size: 11px;
    padding: 4px 9px;
  }
}