/* ── Reset & Base ─────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
  background: #fafafa;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ──────────────────────────────────────────── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Hero / Header ───────────────────────────────────── */
.hero {
  background: #111;
  color: #fff;
  padding: 4rem 0 3.5rem;
  margin-bottom: 5%;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.hero .tagline {
  font-size: 1.1rem;
  font-weight: 400;
  color: #ccc;
  margin-bottom: 0.15rem;
}

.hero .subtitle {
  font-size: 0.95rem;
  color: #999;
  margin-bottom: 1.25rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.9rem;
}

.hero-links a {
  color: #7db8ff;
  text-decoration: none;
  transition: color 0.2s;
}

.hero-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.hero-links .sep {
  color: #555;
  margin: 0 0.15rem;
}

/* ── Sections ────────────────────────────────────────── */
main {
  padding: 2.5rem 0 3rem;
}

section {
  margin-bottom: 2.75rem;
}

section:last-child {
  margin-bottom: 0;
}

h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

/* ── About ───────────────────────────────────────────── */
#about p {
  font-size: 1rem;
  color: #333;
}

/* ── Tags / Competencies ─────────────────────────────── */
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  background: #f0f0f0;
  color: #333;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
}

/* ── Experience ──────────────────────────────────────── */
.job {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.job:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.job-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
}

.period {
  font-size: 0.82rem;
  color: #999;
  white-space: nowrap;
}

.role {
  font-weight: 500;
  font-size: 0.95rem;
  color: #222;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.sub-period {
  font-weight: 400;
  font-size: 0.8rem;
  color: #999;
  margin-left: 0.25rem;
}

.job p:not(.role) {
  font-size: 0.9rem;
  color: #555;
}

/* ── Certifications ──────────────────────────────────── */
.cert-list {
  list-style: none;
}

.cert-list li {
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  color: #333;
}

.cert-list li strong {
  font-weight: 600;
}

.cert-org {
  display: inline;
  color: #888;
  font-size: 0.82rem;
  margin-left: 0.25rem;
}

.cert-org::before {
  content: '·';
  margin-right: 0.25rem;
}

/* ── Languages ───────────────────────────────────────── */
.lang-list {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.lang-list li {
  font-size: 0.92rem;
  color: #333;
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  border-top: 1px solid #e0e0e0;
  padding: 1.5rem 0;
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: #aaa;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 600px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .job-header {
    flex-direction: column;
    gap: 0.15rem;
  }

  .lang-list {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ── Print ───────────────────────────────────────────── */
@media print {
  .hero {
    background: #fff;
    color: #111;
    padding: 1rem 0;
  }

  .hero .tagline,
  .hero .subtitle {
    color: #333;
  }

  .hero-links a {
    color: #111;
  }

  body {
    font-size: 11pt;
    background: #fff;
  }

  section {
    break-inside: avoid;
  }
}
