/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --accent:    #2563EB;   /* strong blue — the one bold choice */
  --ink:       #111318;
  --ink-soft:  #4B5263;
  --ink-muted: #8B93A1;
  --surface:   #F7F8FA;
  --sidebar-bg:#111318;
  --sidebar-fg:#E8EAF0;
  --border:    #E2E5EC;
  --radius:    6px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ── Base ────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 32px 16px 48px;
}

/* ── Layout ──────────────────────────────────────────── */
.cv-wrap {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  display: grid;
  grid-template-columns: 240px 1fr;
  box-shadow: 0 4px 32px rgba(0,0,0,.10);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────────── */
.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-fg);
  padding: 16px 0 32px;
}

.sidebar-section {
  padding: 24px 24px 0;
}

.sidebar-heading {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Skills */
.skill-list li {
  font-size: 13px;
  font-weight: 500;
  color: var(--sidebar-fg);
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.skill-list li:last-child { border-bottom: none; }

/* Languages */
.lang-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}
.lang-name { font-size: 13px; font-weight: 500; }
.lang-level {
  font-size: 11px;
  font-weight: 600;
  background: rgba(37,99,235,.25);
  color: #93B8FF;
  padding: 1px 7px;
  border-radius: 20px;
}

/* Contacts */
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
}
.contact-icon {
  font-size: 12px;
  color: var(--accent);
  width: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  font-style: normal;
}
.contact-list a,
.contact-list span {
  font-size: 12px;
  color: #93B8FF;
  word-break: break-all;
  line-height: 1.4;
}
.contact-list a:hover { text-decoration: underline; }

/* ── Main ────────────────────────────────────────────── */
.main {
  padding: 40px 36px 40px 36px;
}

/* Hero */
.hero { margin-bottom: 36px; }

.name {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}

.title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.summary {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 520px;
}

/* Sections */
.section { margin-bottom: 32px; }

.section-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Job */
.job { margin-bottom: 24px; }
.job:last-child { margin-bottom: 0; }

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.job-company {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.job-company a:hover { color: var(--accent); }

.job-role {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 2px;
}

.job-meta {
  text-align: right;
  flex-shrink: 0;
}

.job-period {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
}
.job-location {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.job-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 10px;
}

.job-points {
  margin-bottom: 12px;
}
.job-points li {
  position: relative;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-left: 14px;
  margin-bottom: 5px;
}
.job-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.job-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.job-stack li {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(37,99,235,.07);
  border: 1px solid rgba(37,99,235,.18);
  padding: 2px 9px;
  border-radius: 20px;
  letter-spacing: .02em;
}

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 640px) {
  body { padding: 0; }

  .cv-wrap {
    grid-template-columns: 1fr;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
  }

  /* on mobile the name and summary come first, skills and contacts after */
  .main { order: -1; }

  .main { padding: 28px 20px 40px; }

  .name { font-size: 26px; }

  .job-header { flex-direction: column; gap: 2px; }
  .job-meta { text-align: left; }
}

@page { size: A4; margin: 8mm; }

@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; padding: 0; line-height: 1.5; }
  .cv-wrap { box-shadow: none; max-width: 100%; border-radius: 0; }
  .sidebar { padding: 8px 0 20px; }
  .sidebar-section { padding: 18px 20px 0; }
  .main { padding: 20px 26px; }
  .hero { margin-bottom: 14px; }
  .name { font-size: 30px; }
  .title { margin-bottom: 10px; }
  .summary { font-size: 12.5px; line-height: 1.5; max-width: none; }
  .section { margin-bottom: 10px; }
  .section-title { margin-bottom: 12px; padding-bottom: 6px; }
  .job { margin-bottom: 10px; }
  .job-points { margin-bottom: 6px; }
  .job-points li { font-size: 12px; line-height: 1.42; margin-bottom: 1px; }
  .job-desc { font-size: 12.5px; line-height: 1.5; }
}