:root {
  color-scheme: light;
  --ink: #202923;
  --muted: #68736a;
  --green: #285a45;
  --green-deep: #1e4535;
  --paper: #fffefa;
  --wash: #f0f2eb;
  --line: #dce1d8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
  --display: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #e8ebe5;
}

body {
  margin: 0;
  padding: 38px 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: #a6b5a9;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

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

.resume {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  width: min(100%, 960px);
  min-height: 1120px;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 20px 65px rgb(31 48 36 / 12%);
}

.sidebar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 46px 30px 32px;
  color: #f6f7f1;
  background: var(--green-deep);
}

.monogram {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 54px;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 600;
}

.monogram span {
  color: #c9d8a6;
}

.side-section {
  margin-bottom: 37px;
}

.side-section h2 {
  margin: 0 0 17px;
  color: #cdd9c9;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.contact-list,
.skill-list,
.language-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list > div {
  margin-bottom: 15px;
}

.contact-list dt {
  color: #b6c7b8;
  font-size: 10px;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 2px 0 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.contact-list a {
  text-decoration-color: rgb(255 255 255 / 38%);
}

.skill-list li,
.language-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 11px;
}

.skill-level,
.language-list li span:last-child {
  flex: 0 0 auto;
  color: #c3d2bd;
  font-size: 10px;
}

.sidebar-note {
  margin: auto 0 0;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 23%);
  color: #c3d2bd;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
}

.content {
  display: flex;
  flex-direction: column;
  padding: 54px 56px 30px;
}

.profile-header {
  padding-bottom: 31px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.role {
  margin: 0;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.eyebrow span {
  padding: 0 5px;
  color: #a8b29e;
}

h1 {
  margin: 19px 0 9px;
  font-family: var(--display);
  font-size: clamp(39px, 5vw, 54px);
  font-weight: 600;
  line-height: 1.08;
}

h1 em {
  color: var(--green);
  font-family: var(--serif);
  font-weight: 400;
}

.role {
  margin-top: 17px;
}

.summary {
  max-width: 540px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.main-section {
  padding: 27px 0 24px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 21px;
}

.section-number {
  color: #81917e;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
}

.timeline-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 23px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.item-meta h3,
.project-row h3,
.education-row h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.item-meta p,
.education-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.item-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.item-title-row h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.item-title-row span,
.education-row > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.item-detail ul {
  margin: 8px 0 0;
  padding-left: 15px;
  color: #58635b;
  font-size: 11px;
  line-height: 1.7;
}

.item-detail li + li {
  margin-top: 4px;
}

.project-row h3 {
  display: flex;
  justify-content: space-between;
}

.project-row h3 span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.project-row p {
  margin: 6px 0 0;
  color: #58635b;
  font-size: 11px;
}

.education-section {
  border-bottom: 0;
}

.education-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.resume-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #7d897e;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
}

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

  .resume {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    padding: 30px 26px 24px;
  }

  .monogram {
    grid-column: 1 / -1;
    width: 54px;
    height: 54px;
    margin-bottom: 26px;
    font-size: 24px;
  }

  .side-section {
    margin-bottom: 22px;
  }

  .contact-section {
    grid-row: span 2;
  }

  .sidebar-note {
    grid-column: 1 / -1;
    margin-top: 0;
    padding-top: 16px;
  }

  .content {
    padding: 36px 26px 24px;
  }

  h1 {
    font-size: 43px;
  }
}

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

  .monogram,
  .sidebar-note {
    grid-column: auto;
  }

  .contact-section {
    grid-row: auto;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .item-title-row {
    align-items: flex-start;
  }
}

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

  html,
  body {
    background: #fff;
  }

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

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

  .sidebar {
    padding: 13mm 8mm 9mm;
  }

  .content {
    padding: 14mm 14mm 8mm;
  }

  .main-section,
  .timeline-item,
  .project-row,
  .education-row {
    break-inside: avoid;
  }
}