:root {
  --ink: #162033;
  --text: #354158;
  --muted: #697386;
  --line: #dce5ef;
  --soft: #f6f9fc;
  --blue: #245c9f;
  --blue-dark: #153d70;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #eef5fb 0, #ffffff 420px),
    var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
}

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

.cv {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 86px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: end;
  min-height: 360px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 70px rgba(21, 61, 112, 0.12);
}

.updated {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(54px, 9vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.role {
  margin-bottom: 0;
  color: var(--blue-dark);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 750;
}

.contact {
  display: grid;
  gap: 10px;
  min-width: 260px;
  color: var(--muted);
  font-weight: 700;
}

.contact a:hover {
  color: var(--blue);
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 16px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
}

.section {
  margin-top: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.section h2 {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.summary p {
  max-width: 900px;
  margin-bottom: 0;
  font-size: 19px;
}

.job {
  position: relative;
  padding: 30px 0 30px 28px;
  border-top: 1px solid var(--line);
}

.job:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.job::before {
  content: "";
  position: absolute;
  left: 0;
  top: 38px;
  bottom: 30px;
  width: 3px;
  border-radius: 999px;
  background: var(--blue);
}

.job:first-of-type::before {
  top: 8px;
}

.job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 16px;
}

.job h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.job-head p {
  margin-bottom: 0;
  color: var(--blue);
  font-weight: 750;
}

.job-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.job ul {
  max-width: 900px;
  margin-bottom: 0;
  padding-left: 20px;
}

.job li + li {
  margin-top: 9px;
}

.job li::marker {
  color: var(--blue);
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.skill-list p {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.skill-list strong {
  color: var(--ink);
}

@media (max-width: 760px) {
  .cv {
    width: min(100% - 28px, 640px);
    padding-top: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 28px;
  }

  .updated {
    text-align: left;
  }

  .section {
    padding: 24px;
  }

  .job-head {
    display: block;
  }

  .job-head span {
    display: block;
    margin-top: 8px;
  }

  .skill-list {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .cv {
    width: auto;
    padding: 0;
  }

  .hero,
  .section {
    border-radius: 0;
    box-shadow: none;
  }
}
