:root {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: #16181d;
  background: #f4f2eb;
  font-size: 14px;
  font-feature-settings: "cv11", "ss01";
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}
.toolbar {
  max-width: 960px;
  margin: 20px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-inline: 24px;
  font-size: 13px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}
.toolbar button {
  min-height: 44px;
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 9999px;
  padding: 0 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.toolbar button:is(:hover, :focus-visible) {
  background: #1d4ed8;
}
.resume {
  max-width: 960px;
  margin: 0 auto 45px;
  padding: 54px 60px;
  background: #fff;
  border: 1px solid #d6d5cb;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2.25rem, 1.8rem + 2vw, 2.875rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  margin: 10px 0 16px;
}
h1 span {
  color: #2563eb;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #2563eb;
}
.contact {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-size: 12px;
}
.intro {
  margin-top: 23px;
  font-size: 14px;
  line-height: 1.7;
  color: #4f5661;
}
section {
  margin-top: 30px;
}
h2 {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-bottom: 1px solid #d6d5cb;
  padding-bottom: 9px;
  margin-bottom: 16px;
  color: #2563eb;
}
article {
  margin-bottom: 19px;
  break-inside: avoid;
}
.role-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 7px;
}
h3 {
  font-size: 13px;
  line-height: 1.5;
}
h3 span {
  font-weight: 400;
}
.role-heading > p {
  font-size: 12px;
  white-space: nowrap;
  color: #646a73;
  font-variant-numeric: tabular-nums;
}
article > p,
li,
dd {
  font-size: 13px;
  line-height: 1.65;
  color: #3f444c;
}
h3 {
  font-weight: 600;
}
.projects {
  margin: 0;
  padding-left: 18px;
}
.projects li {
  break-inside: avoid;
}
article > p + p {
  margin-top: 5px;
}
ul {
  margin: 7px 0 0;
  padding-left: 18px;
}
li + li {
  margin-top: 6px;
}
.skills {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 9px 20px;
  margin: 0;
}
dt {
  font-size: 13px;
  font-weight: bold;
  line-height: 1.65;
}
dd {
  margin: 0;
}
@media (max-width: 650px) {
  .resume {
    margin: 0 15px 25px;
    padding: 30px 23px;
  }
  .toolbar {
    padding-inline: 16px;
  }
  .role-heading {
    display: block;
  }
  h1 {
    font-size: 37px;
  }
  .role-heading > p {
    margin-top: 4px;
  }
  .skills {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  dd {
    margin-bottom: 8px;
  }
  .contact {
    gap: 10px;
    font-size: 12px;
  }
  .intro {
    font-size: 13px;
  }
}
@page {
  size: A4;
  margin: 14mm 15mm;
}
@media print {
  :root {
    background: white;
  }
  .toolbar {
    display: none;
  }
  .resume {
    padding: 0;
    margin: 0;
    max-width: none;
    border: 0;
  }
  h1 {
    font-size: 31px;
    margin: 6px 0 10px;
  }
  .eyebrow {
    font-size: 8pt;
  }
  .contact {
    font-size: 8pt;
    gap: 14px;
  }
  .intro {
    font-size: 9.5pt;
    line-height: 1.5;
    margin-top: 15px;
  }
  section {
    margin-top: 18px;
  }
  h2 {
    font-size: 10px;
    margin-bottom: 11px;
    padding-bottom: 6px;
  }
  article {
    margin-bottom: 12px;
  }
  h3 {
    font-size: 9.5pt;
  }
  h2 {
    break-after: avoid;
  }
  .role-heading {
    margin-bottom: 4px;
  }
  .role-heading > p {
    font-size: 8pt;
  }
  article > p,
  li,
  dd,
  dt {
    font-size: 9pt;
    line-height: 1.45;
  }
  li + li {
    margin-top: 4px;
  }
  .skills {
    grid-template-columns: 135px 1fr;
    gap: 5px 12px;
  }
  a {
    text-decoration: none;
  }
}
