@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-semibold.ttf") format("truetype");
  font-weight: 500 800;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #253b2c;
  background: #eeeae2;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  line-height: 1.6;
}
a {
  color: #31583e;
  text-underline-offset: 3px;
}
a:hover {
  color: #923c28;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #923c28;
  outline-offset: 5px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip-link:focus {
  top: 20px;
}
.resume-controls {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f6f4ed;
  border-bottom: 1px solid #d5d8ca;
  padding: 15px max(24px, calc((100% - 960px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}
.resume-controls > span {
  color: #5d675b;
}
.resume-controls > div {
  display: flex;
  gap: 12px;
  align-items: center;
}
.resume-controls a {
  text-decoration: none;
}
.resume-controls .download-link,
.resume-controls button {
  padding: 10px 15px;
  border-radius: 24px;
  font: inherit;
  cursor: pointer;
}
.download-link {
  color: #fffaf0;
  background: #294331;
}
.resume-controls button {
  background: transparent;
  color: #294331;
  border: 1px solid #899983;
}
.resume-controls button[hidden] {
  display: none;
}
.resume-sheet {
  width: min(920px, calc(100% - 40px));
  min-height: 1100px;
  margin: 30px auto;
  padding: 48px 58px 30px;
  display: flex;
  flex-direction: column;
  background: #fffefa;
  border: 1px solid #d8dacd;
  border-radius: 15px;
  box-shadow: 0 14px 35px #28382509;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 46px;
  letter-spacing: -2px;
  line-height: 1.15;
  margin: 6px 0 11px;
}
h1 span {
  color: #9c4e30;
}
h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  border-bottom: 1px solid #b5bfad;
  padding-bottom: 6px;
  margin: 23px 0 15px;
  font-weight: 600;
}
h3 {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}
h3 > span {
  font-weight: 400;
  color: #596650;
}
.overline {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #66725d;
  font-size: 10px;
}
.resume-title {
  font-size: 14px;
  margin-bottom: 15px;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 20px;
  font-size: 10px;
  border-bottom: 1px solid #b5bfad;
  padding-bottom: 20px;
}
.resume-summary {
  margin-top: 20px;
  font-size: 12px;
  color: #4e5a48;
}
.resume-role {
  margin-bottom: 16px;
  break-inside: avoid;
}
.entry-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
}
.entry-heading h3 {
  flex: 1;
}
.entry-date {
  color: #5c6754;
  white-space: nowrap;
  font-size: 10px;
}
.resume-role > p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.7;
  color: #45523f;
}
.sheet-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 9px;
  color: #66745d;
}
.continuation {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #b5bfad;
  padding-bottom: 14px;
  font-size: 11px;
}
.continuation span:first-child {
  font-weight: 600;
}
.continuation + h2 {
  border: 0;
  font-size: 21px;
  text-transform: none;
  letter-spacing: -0.7px;
  margin: 21px 0 20px;
}
.resume-project {
  margin-bottom: 16px;
  break-inside: avoid;
}
.resume-project p {
  font-size: 12px;
  line-height: 1.65;
  margin-top: 4px;
  color: #45523f;
}
.resume-project .tech-line {
  font-size: 10px;
  color: #607457;
  margin-top: 3px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 25px;
}
.two-columns p,
.two-columns a,
.earlier-work {
  font-size: 11px;
  line-height: 1.65;
}
.two-columns p {
  margin-top: 4px;
}
.two-columns a {
  display: inline-block;
  margin-top: 4px;
}
.additional-projects h2 {
  margin-top: 10px;
}
.earlier-work {
  border-top: 1px solid #d5d8ca;
  padding-top: 14px;
  margin-top: 19px;
}
.publication-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px 28px;
}
.publication-list article {
  break-inside: avoid;
}
.publication-list p {
  font-size: 11px;
  line-height: 1.65;
}
.publication-meta {
  font-size: 10px !important;
  color: #67705b;
  margin: 3px 0 4px;
}
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}
.education-grid h3 {
  font-size: 12px;
}
.education-grid p {
  font-size: 11px;
}
.resume-skills {
  margin: 0;
  font-size: 11px;
}
.resume-skills > div {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 15px;
  margin-bottom: 6px;
}
dt {
  font-weight: 600;
}
dd {
  margin: 0;
  color: #45523f;
}
.resume-credentials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 25px;
}
.resume-credentials strong {
  display: block;
  font-size: 10px;
  line-height: 1.55;
  font-weight: 600;
}
.resume-credentials span {
  display: block;
  font-size: 9px;
  color: #5d6c52;
}
.recognition p {
  font-size: 10px;
  margin-bottom: 6px;
  line-height: 1.7;
}
@media (max-width: 700px) {
  .resume-controls {
    flex-wrap: wrap;
    padding: 12px 20px;
    gap: 10px;
  }
  .resume-controls > span {
    display: none;
  }
  .resume-controls > div {
    gap: 6px;
  }
  .resume-controls .download-link,
  .resume-controls button {
    padding: 9px 12px;
    font-size: 11px;
  }
  .resume-sheet {
    width: calc(100% - 24px);
    padding: 30px 23px;
    min-height: 0;
  }
  h1 {
    font-size: 35px;
  }
  .entry-heading {
    flex-direction: column;
    gap: 2px;
  }
  .two-columns,
  .publication-list,
  .education-grid,
  .resume-credentials {
    grid-template-columns: 1fr;
  }
  .resume-skills > div {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-links {
    flex-direction: column;
    gap: 7px;
  }
  .continuation {
    font-size: 10px;
  }
}
@page {
  size: A4;
  margin: 14mm;
}
@media print {
  body {
    background: white;
    font-size: 9pt;
    line-height: 1.45;
  }
  .resume-controls,
  .skip-link {
    display: none;
  }
  .resume-sheet {
    width: auto;
    height: auto;
    min-height: 269mm;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    break-after: page;
  }
  .resume-sheet:last-child {
    break-after: auto;
  }
  h1 {
    font-size: 30pt;
    margin: 4pt 0 8pt;
  }
  h2 {
    font-size: 9pt;
    margin: 14pt 0 9pt;
    padding-bottom: 5pt;
  }
  h3 {
    font-size: 9.2pt;
  }
  .overline {
    font-size: 7.5pt;
  }
  .resume-title {
    font-size: 10pt;
    margin-bottom: 10pt;
  }
  .contact-links {
    font-size: 7.5pt;
    padding-bottom: 13pt;
    gap: 4pt 16pt;
  }
  .resume-summary {
    font-size: 9pt;
    margin-top: 13pt;
  }
  .resume-role {
    margin-bottom: 11pt;
  }
  .resume-role > p {
    font-size: 9pt;
    line-height: 1.55;
  }
  .entry-date {
    font-size: 7.3pt;
  }
  .continuation {
    font-size: 8pt;
    padding-bottom: 9pt;
  }
  .continuation + h2 {
    font-size: 16pt;
    margin: 14pt 0;
  }
  .resume-project {
    margin-bottom: 10pt;
  }
  .resume-project p {
    font-size: 8.4pt;
    line-height: 1.5;
    margin-top: 2pt;
  }
  .resume-project .tech-line {
    font-size: 7pt;
    margin-top: 2pt;
  }
  .two-columns {
    gap: 9pt 20pt;
  }
  .two-columns p,
  .two-columns a,
  .earlier-work {
    font-size: 7.7pt;
    line-height: 1.5;
  }
  .earlier-work {
    padding-top: 8pt;
    margin-top: 11pt;
  }
  .publication-list {
    gap: 13pt 20pt;
  }
  .publication-list p {
    font-size: 8pt;
    line-height: 1.5;
  }
  .publication-meta {
    font-size: 7pt !important;
  }
  .education-grid {
    gap: 15pt;
  }
  .education-grid h3 {
    font-size: 8.5pt;
  }
  .education-grid p,
  .resume-skills {
    font-size: 8pt;
  }
  .resume-skills > div {
    grid-template-columns: 86pt 1fr;
    gap: 11pt;
    margin-bottom: 4pt;
  }
  .resume-credentials {
    gap: 8pt 20pt;
  }
  .resume-credentials strong {
    font-size: 7.7pt;
  }
  .resume-credentials span {
    font-size: 7pt;
  }
  .recognition p {
    font-size: 7.5pt;
  }
  .sheet-footer {
    font-size: 7pt;
    padding-top: 12pt;
  }
  a {
    text-decoration: none;
    color: inherit;
  }
  a[href^="mailto"],
  .contact-links a {
    text-decoration: underline;
  }
}
