:root {
  color-scheme: light;
  --ink: #202b36;
  --muted: #687783;
  --accent: #b66d54;
  --accent-light: #f1e4dd;
  --paper: #fffdfa;
  --sidebar: #263944;
  --sidebar-text: #f8f5f0;
  --sidebar-muted: #c3d0d2;
}

* {
  box-sizing: border-box;
}

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

.resume {
  display: grid;
  grid-template-columns: 34% 66%;
  width: min(100%, 1000px);
  min-height: 1200px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 70px rgb(31 48 52 / 14%);
}

.sidebar {
  padding: 54px 36px 42px;
  background: var(--sidebar);
  color: var(--sidebar-text);
}

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

.avatar {
  display: grid;
  width: 98px;
  height: 98px;
  margin-bottom: 27px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 50%;
  background: rgb(255 255 255 / 7%);
  color: #f3c9b4;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
  letter-spacing: 2px;
}

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

.sidebar .eyebrow {
  color: #e4ad94;
}

.profile h1,
.introduction h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.7px;
}

.profile h1 {
  font-size: clamp(29px, 3vw, 38px);
  line-height: 1.2;
}

.role {
  margin: 14px 0 0;
  color: var(--sidebar-muted);
  font-size: 13px;
}

.sidebar-section {
  padding-top: 29px;
}

.sidebar-section h2 {
  margin: 0 0 17px;
  color: #e9bba5;
  font-size: 11px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.sidebar-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact li {
  display: grid;
  gap: 1px;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.contact-label {
  color: var(--sidebar-muted);
  font-size: 11px;
}

.contact a,
.contact li > span:last-child {
  color: var(--sidebar-text);
  text-decoration: none;
}

.skill-list li {
  margin-bottom: 15px;
}

.skill-level {
  display: block;
  height: 4px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: rgb(255 255 255 / 17%);
}

.skill-level i {
  display: block;
  width: var(--level);
  height: 100%;
  border-radius: inherit;
  background: #e6a98c;
}

.edit-note {
  margin: 8px 0 0;
  color: var(--sidebar-muted);
  font-size: 10px;
}

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

.language-list li span:last-child {
  color: var(--sidebar-muted);
  text-align: right;
}

.content {
  padding: 62px 56px 38px;
}

.introduction {
  padding-bottom: 34px;
  border-bottom: 1px solid #e8e4de;
}

.introduction h2 {
  font-size: clamp(28px, 3vw, 39px);
  line-height: 1.25;
}

.intro-copy {
  max-width: 530px;
  margin: 15px 0 0;
  color: var(--muted);
}

.content-section {
  padding-top: 29px;
}

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

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

.section-heading h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
}

.content-section > p,
.timeline-item > p {
  margin: 0 0 9px;
  color: var(--muted);
}

.content-section strong {
  color: var(--ink);
  font-weight: 600;
}

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

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

.timeline-item::before {
  position: absolute;
  top: 5px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.tag {
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--accent-light);
  color: #85523e;
  font-size: 9px;
  font-weight: 600;
}

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

.timeline-item .muted {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.detail-list {
  margin: 5px 0 0;
  padding-left: 17px;
  color: var(--muted);
}

.detail-list li {
  padding-left: 2px;
  margin-bottom: 3px;
}

.bottom-section {
  padding-bottom: 25px;
}

.resume-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid #e8e4de;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.6px;
}

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

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

  .sidebar {
    padding: 36px 28px;
  }

  .profile {
    display: grid;
    grid-template-columns: 82px 1fr;
    column-gap: 20px;
    align-content: center;
  }

  .avatar {
    grid-row: span 3;
    width: 78px;
    height: 78px;
    margin: 0;
    font-size: 28px;
  }

  .profile .eyebrow {
    align-self: end;
  }

  .profile h1 {
    font-size: 30px;
  }

  .role {
    margin-top: 5px;
  }

  .sidebar-section {
    padding-top: 24px;
  }

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

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

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

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

  .sidebar {
    padding: 45px 29px 32px;
  }

  .content {
    padding: 48px 40px 30px;
  }

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