/* Simple, modern, mobile-first CV layout */
:root {
  --bg: #0b0c0f;
  --card: #12141a;
  --text: #e7e9ee;
  --muted: #98a2b3;
  --brand: #6ea8fe;
  --accent: #22c55e;
  --stroke: #232634;
}

:root.light {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0b0c0f;
  --muted: #475569;
  --brand: #2563eb;
  --accent: #16a34a;
  --stroke: #e5e7eb;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 12px;
}

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

.nav-actions { display: flex; gap: 8px; }

.btn {
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .1s ease, background .2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.ghost { background: transparent; }

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--stroke);
}

.hero-text h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin: 0 0 4px;
}
.subtitle { color: var(--muted); margin: 0 0 6px; }
.tagline { margin: 6px 0 12px; }

.quick-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .9rem;
  color: var(--muted);
}

.cta-row { display: flex; gap: 8px; flex-wrap: wrap; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
}
@media (min-width: 820px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

h2 { margin: 6px 0 10px; font-size: 1.25rem; }

.kv { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kv li { display: grid; grid-template-columns: 140px 1fr; gap: 8px; padding: 8px; border: 1px dashed var(--stroke); border-radius: 12px; }
.kv span:first-child { color: var(--muted); }

.list { margin: 0; padding-left: 18px; }
.list.check li { list-style: none; padding-left: 22px; position: relative; }
.list.check li::before { content: '✔'; position: absolute; left: 0; color: var(--accent); }
.list.dash li { list-style: none; padding-left: 18px; position: relative; }
.list.dash li::before { content: '—'; position: absolute; left: 0; color: var(--muted); }

.role { margin-bottom: 16px; }
.role-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.role-head h3 { margin: 0; font-size: 1.05rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 700px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px;
  text-decoration: none;
  color: var(--text);
}
.contact-item:hover { background: rgba(255,255,255,.03); }
.emoji { font-size: 22px; }
.label { font-size: .9rem; color: var(--muted); }
.value { font-weight: 600; }

.note { color: var(--muted); margin-top: 10px; }

.footer {
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  padding: 20px 0 40px;
}

/* Print styles for clean PDF export */
@media print {
  body { background: #fff; color: #000; }
  .card, .btn, .nav { box-shadow: none !important; }
  .btn, #themeToggle { display: none !important; }
  .container { max-width: none; padding: 0; }
  .hero { grid-template-columns: 100px 1fr; }
  .chip { border-color: #999; color: #000; }
}
