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

:root {
  --accent: #2563EB;
  --text: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #E5E7EB;
  -webkit-font-smoothing: antialiased;
  font-size: 13px;
}

/* ─── Page shell ──────────────────────────── */
.page {
  max-width: 900px;
  margin: 28px auto;
  background: #fff;
  padding: 36px 40px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  border-radius: 4px;
}

/* ─── Header ──────────────────────────────── */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.header-left {
  flex: 1;
}

.header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.header-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
  margin-bottom: 10px;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.contacts a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.contacts a:hover {
  color: var(--accent);
}

.contacts a i {
  font-size: 11px;
  color: var(--accent);
}

/* ─── Header right (avatar + download btn) ── */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 24px;
}

/* ─── Download button ─────────────────────── */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  padding: 5px 11px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}

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

.btn-download i {
  font-size: 10px;
}

/* ─── Avatar ──────────────────────────────── */
.avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 1px;
}

/* ─── Two-column layout ───────────────────── */
.columns {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: start;
}

.col-left,
.col-right {
  min-width: 0;
}

/* ─── Sections ────────────────────────────── */
section {
  margin-bottom: 22px;
}

/* ─── Section headings ────────────────────── */
h2 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 12px;
}

/* ─── Experience ──────────────────────────── */
.exp-item {
  margin-bottom: 16px;
}

.exp-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.exp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 14px;
  margin-bottom: 6px;
}

.exp-company {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}

.exp-detail {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.exp-detail i {
  font-size: 10px;
  color: var(--accent);
}

/* ─── Lists ───────────────────────────────── */
ul {
  list-style: disc;
  padding-left: 16px;
}

ul li {
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 3px;
  color: #374151;
}

/* ─── Summary paragraph ───────────────────── */
.col-right p {
  font-size: 12px;
  line-height: 1.65;
  color: #374151;
}

/* ─── Education ───────────────────────────── */
.edu-degree {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.edu-school {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 3px;
}

.edu-location {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.edu-location i {
  font-size: 10px;
  color: var(--accent);
}

/* ─── Skills pills ────────────────────────── */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-pill {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  padding: 3px 9px;
  background: #F9FAFB;
  white-space: nowrap;
}

/* ─── Plain list (Languages / Citizenships / Projects) */
ul.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.plain-list li {
  font-size: 12px;
  margin-bottom: 3px;
  color: #374151;
}

ul.plain-list a {
  color: var(--accent);
  text-decoration: none;
}

ul.plain-list a:hover {
  text-decoration: underline;
}

/* ─── Print ───────────────────────────────── */
@media print {
  body { background: #fff; }

  .page {
    margin: 0;
    box-shadow: none;
    max-width: 100%;
    padding: 24px 32px 32px;
    border-radius: 0;
  }
}

/* ─── Responsive ──────────────────────────── */
@media (max-width: 680px) {
  .columns {
    grid-template-columns: 1fr;
  }

  .header {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .avatar {
    margin-left: 0;
    margin-bottom: 12px;
  }
}
