:root {
  color-scheme: light;
  --ink: #202a27;
  --muted: #66716d;
  --forest: #173c35;
  --mint: #c2dfc5;
  --accent: #d9815d;
  --paper: #fffefa;
  --rule: #e6e9e4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 48px 20px;
  background-color: #e9eeea;
  background-image: radial-gradient(#cfd8d1 0.7px, transparent 0.7px);
  background-size: 14px 14px;
  color: var(--ink);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.65;
}

.resume {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  width: min(100%, 980px);
  min-height: 1120px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 22px 60px rgb(31 51 43 / 14%);
}

.sidebar {
  padding: 44px 28px;
  background: var(--forest);
  color: #f5f6ef;
}

.monogram {
  display: grid;
  width: 72px;
  aspect-ratio: 1;
  margin-bottom: 42px;
  place-items: center;
  border: 1px solid rgb(194 223 197 / 55%);
  border-radius: 50%;
  color: var(--mint);
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  font-size: 25px;
}

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

.side-section h2 {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

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

.contact li {
  display: grid;
  gap: 2px;
  margin: 0 0 13px;
  overflow-wrap: anywhere;
  color: #f5f6ef;
}

.contact a {
  color: inherit;
  text-decoration-color: rgb(245 246 239 / 38%);
  text-underline-offset: 3px;
}

.contact-label {
  color: #a9c6b3;
  font-size: 11px;
}

.skill-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 12px;
  margin: 0 0 12px;
}

.skill-level {
  display: inline-flex;
  gap: 3px;
}

.skill-level i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.skill-level .muted {
  background: #55756b;
}

.language {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.language span:last-child,
.side-copy {
  color: #c3d2c9;
}

.side-copy {
  margin: 0 0 7px;
}

.content {
  display: flex;
  flex-direction: column;
  padding: 55px 52px 35px;
}

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

.eyebrow {
  margin: 0 0 7px;
  color: #8b9a91;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

h1,
.section-heading h2 {
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
}

h1 {
  margin: 0;
  font-size: 39px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.job-title {
  margin: 7px 0 17px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.summary {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.main-section {
  margin-top: 27px;
}

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

.section-number {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.entry {
  margin: 0 0 20px 22px;
  padding-left: 17px;
  border-left: 1px solid #dce5dd;
  break-inside: avoid;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
}

.entry-meta h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.entry-meta > span {
  color: #7a8780;
  font-size: 11px;
  white-space: nowrap;
}

.organization {
  margin: 3px 0 8px;
  color: #477062;
  font-size: 12px;
  font-weight: 600;
}

.organization span {
  padding: 0 3px;
  color: #a0aaa3;
}

.details {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
}

.details li {
  padding-left: 2px;
  margin: 3px 0;
}

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

.entry-note {
  margin: 5px 0 0;
  color: var(--muted);
}

.resume-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: #7a8780;
  font-size: 11px;
}

.resume-footer span:first-child {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 700px) {
  body {
    padding: 0;
    background: var(--paper);
  }

  .resume {
    grid-template-columns: 1fr;
    min-height: 100vh;
    box-shadow: none;
  }

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

  .monogram {
    grid-column: 1 / -1;
    width: 58px;
    margin-bottom: 0;
  }

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

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

  h1 {
    font-size: 34px;
  }
}

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

  .monogram {
    grid-column: auto;
  }

  .entry {
    margin-left: 10px;
    padding-left: 12px;
  }
}

@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;
    margin: 0;
    box-shadow: none;
  }
}