:root {
  --ink: #111;
  --muted: #555;
  --line: #c9c9c9;
  --paper: #fff;
  --rose: #e00430;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eceee8;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.resume-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px max(20px, calc((100vw - 900px) / 2));
  background: #111;
  color: #fff;
}

.resume-toolbar div {
  display: flex;
  gap: 10px;
}

.resume-toolbar a,
.resume-toolbar button {
  padding: 9px 14px;
  border: 1px solid #555;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.resume-toolbar .download-link {
  border-color: var(--rose);
  background: var(--rose);
  color: #111;
}

.resume-page {
  width: min(900px, calc(100% - 32px));
  margin: 32px auto 70px;
  padding: 64px 72px;
  background: var(--paper);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.08);
}

.resume-header {
  padding-bottom: 28px;
  border-bottom: 2px solid var(--ink);
}

.resume-alias {
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.resume-title {
  margin: 12px 0 16px;
  font-size: 17px;
  font-weight: 700;
}

address {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--muted);
  font-style: normal;
}

section {
  margin-top: 32px;
}

h2 {
  margin: 0 0 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h3,
p {
  margin-top: 0;
}

.skills-list {
  columns: 2;
  column-gap: 40px;
}

.impact-list,
.selected-work-list {
  margin-bottom: 0;
}

.impact-list {
  columns: 2;
  column-gap: 40px;
}

.impact-list li {
  break-inside: avoid;
}

.skills-list li {
  break-inside: avoid;
  margin-bottom: 4px;
}

.resume-role {
  margin-top: 24px;
}

.resume-role header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.resume-role h3 {
  margin-bottom: 2px;
  font-size: 17px;
}

.resume-role header p {
  margin-bottom: 0;
  color: var(--muted);
}

.resume-role > ul {
  margin-top: 10px;
}

li {
  margin-bottom: 6px;
}

@media (max-width: 680px) {
  .resume-toolbar,
  .resume-toolbar div,
  .resume-role header {
    align-items: flex-start;
    flex-direction: column;
  }

  .resume-toolbar div {
    flex-direction: row;
  }

  .resume-page {
    width: 100%;
    margin: 0;
    padding: 42px 24px;
  }

  .skills-list {
    columns: 1;
  }

  .impact-list {
    columns: 1;
  }
}

@page {
  size: A4;
  margin: 15mm 16mm;
}

@media print {
  body {
    background: #fff;
    font-size: 9.5pt;
    line-height: 1.35;
  }

  .resume-toolbar {
    display: none;
  }

  .resume-page {
    width: auto;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  .resume-header {
    padding-bottom: 14px;
  }

  h1 {
    font-size: 28pt;
  }

  .resume-title {
    margin: 7px 0 9px;
    font-size: 10.5pt;
  }

  section {
    margin-top: 15px;
  }

  h2 {
    margin-bottom: 7px;
    padding-bottom: 3px;
    font-size: 10.5pt;
  }

  .resume-role {
    margin-top: 10px;
    break-inside: avoid;
  }

  .resume-role h3 {
    font-size: 10.5pt;
  }

  .resume-role > ul {
    margin: 5px 0 0;
  }

  li {
    margin-bottom: 2px;
  }

  a {
    text-decoration: none;
  }
}
