:root {
  color-scheme: light;
  --ink: #202b39;
  --muted: #687586;
  --accent: #168c82;
  --accent-dark: #116e68;
  --line: #e7ecef;
  --sidebar: #f3f7f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 42px 20px;
  background: #eaf0f1;
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

.resume {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  max-width: 1000px;
  min-height: 1120px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(33, 52, 61, 0.13);
}

.sidebar {
  padding: 46px 30px;
  background: var(--sidebar);
}

.avatar {
  display: grid;
  width: 142px;
  height: 142px;
  margin: 0 auto 44px;
  place-items: center;
  border: 7px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #b9e3d8, #3da99a);
  box-shadow: 0 8px 20px rgba(22, 140, 130, 0.18);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -4px;
}

.sidebar-section {
  margin-top: 34px;
}

.sidebar-section h2 {
  margin: 0 0 17px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.15px;
  text-transform: uppercase;
}

.contact {
  margin-top: 0;
}

.contact-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.contact-list a {
  color: inherit;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--accent-dark);
}

.contact-icon {
  display: inline-grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  background: #e0efeb;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.skill {
  margin-bottom: 15px;
}

.skill-label,
.language-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #44515e;
  font-size: 12px;
}

.skill-label span:last-child {
  color: var(--muted);
  font-size: 11px;
}

.skill-track {
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 5px;
  background: #dce6e4;
}

.skill-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.language-row {
  margin: 11px 0;
}

.language-level {
  color: var(--muted);
  text-align: right;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tags span {
  padding: 4px 9px;
  border: 1px solid #dce9e5;
  border-radius: 20px;
  color: #51615f;
  font-size: 11px;
}

.main-content {
  padding: 52px 54px 34px;
}

.intro {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
}

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

h1 {
  margin-bottom: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.2;
}

h1 span {
  color: var(--accent);
}

.job-title {
  margin: 8px 0 16px;
  color: var(--accent-dark);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.summary {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.content-section {
  margin-top: 30px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.section-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: #e7f4f1;
  color: var(--accent);
  font-size: 14px;
}

.timeline-item {
  position: relative;
  margin-left: 12px;
  padding: 0 0 20px 21px;
  border-left: 1px solid #dce8e5;
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-item::before {
  position: absolute;
  top: 5px;
  left: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px #a8d2c9;
  content: "";
}

.item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.item-heading h3 {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
}

.organization {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
}

.date {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 5px;
  background: #f1f6f5;
  color: #667771;
  font-size: 10px;
  font-weight: 600;
}

.timeline-item ul {
  display: grid;
  gap: 5px;
  margin: 11px 0 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12px;
}

.timeline-item li::marker {
  color: var(--accent);
}

.detail {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.project-card {
  margin: 0 0 12px 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.project-card:last-child {
  margin-bottom: 0;
}

.project-card .item-heading {
  align-items: center;
}

.project-card .item-heading h3 {
  margin: 0;
}

.project-card > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.project-card .project-tech {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 600;
}

.project-tech span {
  padding: 0 4px;
  color: #a7b1b7;
}

.resume-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #89949f;
  font-size: 10px;
}

@media (max-width: 720px) {
  body {
    padding: 16px 10px;
  }

  .resume {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
    padding: 28px 26px;
  }

  .avatar {
    grid-column: 1 / -1;
    margin-bottom: 14px;
  }

  .sidebar-section,
  .contact {
    margin-top: 18px;
  }

  .main-content {
    padding: 34px 28px;
  }
}

@media (max-width: 440px) {
  .sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-section,
  .contact {
    margin-top: 16px;
  }

  .main-content {
    padding: 30px 21px;
  }

  .item-heading {
    flex-direction: column;
    gap: 6px;
  }

  .project-card .item-heading {
    align-items: flex-start;
  }

  .resume-footer {
    flex-direction: column;
    gap: 3px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  body {
    padding: 0;
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .resume {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .sidebar {
    padding-top: 38px;
  }

  .main-content {
    padding: 42px 43px 28px;
  }

  .content-section,
  .timeline-item,
  .project-card {
    break-inside: avoid;
  }
}
