@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --ink: #17262c;
  --muted: #718087;
  --accent: #c9f06b;
  --paper: #ffffff;
  --line: #e8edef;
}

* {
  box-sizing: border-box;
}

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

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

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

.resume {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  width: min(100%, 1060px);
  min-height: 1380px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 70px rgb(31 47 53 / 12%);
}

.sidebar {
  position: relative;
  padding: 48px 34px 36px;
  overflow: hidden;
  background: #18282e;
  color: #f3f7f6;
}

.sidebar::before,
.sidebar::after {
  position: absolute;
  z-index: 0;
  width: 250px;
  height: 250px;
  border: 1px solid rgb(201 240 107 / 12%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.sidebar::before {
  top: 215px;
  right: -190px;
}

.sidebar::after {
  top: 238px;
  right: -168px;
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.profile {
  padding-bottom: 31px;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.avatar {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #18282e;
  font-family: "Manrope", sans-serif;
  font-size: 38px;
  font-weight: 800;
}

.avatar-ring {
  position: absolute;
  inset: -7px;
  border: 1px solid rgb(201 240 107 / 55%);
  border-radius: 50%;
}

.eyebrow {
  margin: 0 0 9px;
  color: #94a4a6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.profile .eyebrow {
  color: var(--accent);
}

.profile h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 43px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.15;
}

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

.role {
  margin: 12px 0 0;
  color: #a7b5b6;
  font-size: 13px;
  line-height: 1.8;
}

.role strong {
  color: #fff;
  font-size: 15px;
}

.side-section {
  margin-top: 28px;
}

.side-section h2 {
  margin: 0 0 16px;
  color: #f5f8f6;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: #bac5c4;
  font-size: 11px;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow-wrap: anywhere;
}

.contact-icon {
  width: 16px;
  color: var(--accent);
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
}

.skill {
  margin: 0 0 14px;
}

.skill-label,
.language-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #c4cecc;
  font-size: 11px;
}

.skill-label span:last-child,
.language-level {
  color: #86989a;
}

.skill-track {
  height: 4px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 8px;
  background: rgb(255 255 255 / 13%);
}

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

.language-row + .language-row {
  margin-top: 10px;
}

.sidebar-note {
  margin: 34px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: #96a6a6;
  font-size: 11px;
  font-style: italic;
  line-height: 1.8;
}

.content {
  min-width: 0;
  padding: 34px 48px 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.topbar p {
  margin: 0;
  color: #94a0a3;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
}

.print-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.print-button:hover {
  transform: translateY(-1px);
  background: #b8e64e;
}

.print-button span {
  font-size: 15px;
}

.section-block {
  margin-top: 35px;
}

.intro {
  margin-top: 39px;
}

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

.intro h2 {
  font-size: clamp(32px, 4vw, 43px);
  line-height: 1.16;
}

.intro h2 span {
  color: #718d3b;
}

.intro-copy {
  max-width: 570px;
  margin: 16px 0 0;
  color: #66767b;
  font-size: 12px;
  line-height: 1.9;
}

.highlights {
  display: flex;
  gap: 33px;
  margin-top: 23px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.highlights div {
  display: grid;
  gap: 2px;
}

.highlights strong {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.highlights span {
  color: #829094;
  font-size: 10px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading .eyebrow {
  margin-bottom: 3px;
}

.section-heading h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
}

.timeline-item {
  position: relative;
  margin-left: 5px;
  padding: 0 0 22px 20px;
  border-left: 1px solid #dce4e3;
}

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

.timeline-marker {
  position: absolute;
  top: 5px;
  left: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid #718d3b;
  border-radius: 50%;
  background: #fff;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #78868a;
  font-size: 10px;
}

.tag {
  padding: 2px 7px;
  border-radius: 3px;
  background: #eff5e4;
  color: #617a34;
  font-size: 9px;
  font-weight: 700;
}

.tag-muted {
  background: #eff2f3;
  color: #718087;
}

.timeline-item h3,
.education-card h3,
.project-card h3 {
  margin: 5px 0 1px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.organization {
  margin: 0;
  color: #7b898d;
  font-size: 11px;
}

.timeline-item ul {
  display: grid;
  gap: 4px;
  margin: 9px 0 0;
  padding-left: 15px;
  color: #657479;
  font-size: 11px;
}

.timeline-item li::marker {
  color: #91ad50;
}

.education-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfcfa;
}

.education-year {
  padding-top: 3px;
  color: #718d3b;
  font-size: 10px;
  font-weight: 700;
}

.education-card h3 {
  margin-top: 0;
}

.education-card p {
  margin: 2px 0 3px;
  color: #7b898d;
  font-size: 11px;
}

.education-detail {
  color: #97a1a3;
  font-size: 10px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.project-card {
  position: relative;
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.project-number {
  color: #a0b974;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 800;
}

.project-card h3 {
  margin-top: 5px;
}

.project-card p {
  margin: 5px 0 12px;
  color: #748287;
  font-size: 10px;
  line-height: 1.65;
}

.project-tags {
  display: flex;
  gap: 6px;
}

.project-tags span {
  padding: 2px 6px;
  border-radius: 3px;
  background: #f0f3ee;
  color: #69787c;
  font-size: 9px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #99a4a6;
  font-size: 9px;
}

footer span:first-child {
  font-weight: 700;
  letter-spacing: 1px;
}

@media (max-width: 760px) {
  body {
    padding: 0;
    background: #fff;
  }

  .resume {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sidebar {
    padding: 34px 28px;
  }

  .sidebar-note {
    margin-top: 25px;
  }

  .content {
    padding: 27px 28px 30px;
  }
}

@media (max-width: 460px) {
  .content {
    padding-right: 21px;
    padding-left: 21px;
  }

  .highlights {
    gap: 17px;
  }

  .highlights strong {
    font-size: 17px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 0;
  }

  .education-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

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

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

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

  .sidebar {
    padding-top: 38px;
  }

  .content {
    padding: 28px 35px 24px;
  }

  .print-button {
    display: none;
  }

  a {
    color: inherit;
  }
}
