:root {
  --page: #f4f4f1;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #555a61;
  --soft: #737780;
  --line: #d8d8d2;
  --link: #075985;
  --max: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #0f172a;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 10px;
}

.resume-shell,
.links-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 56px;
}

.resume-document {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 46px 52px;
}

.resume-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 22px;
}

.resume-label,
.location,
.contact-block,
.role-heading p,
.education-item p,
.route-kicker,
.route-description,
.footer-note {
  color: var(--muted);
}

.resume-label {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(38px, 7vw, 58px);
  line-height: 1;
  letter-spacing: -.02em;
}

.location {
  margin-bottom: 0;
}

.contact-block {
  display: grid;
  gap: 5px;
  align-content: start;
  font-style: normal;
  font-size: 14px;
  text-align: right;
}

.resume-section {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 34px;
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
}

.resume-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.resume-section h2 {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.resume-section > p {
  margin-bottom: 0;
}

.skill-list {
  display: grid;
  gap: 12px;
}

.skill-list div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
}

.skill-list h3,
.experience-item h3,
.education-item h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.skill-list p,
.education-item p,
.role-heading p {
  margin-bottom: 0;
}

.experience-list {
  display: grid;
  gap: 24px;
}

.experience-item {
  display: grid;
  gap: 10px;
}

.role-heading,
.education-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 24px;
}

.role-heading > p,
.education-item > p {
  text-align: right;
  font-size: 14px;
}

ul {
  margin: 0;
  padding-left: 19px;
}

li {
  margin: 5px 0;
}

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

.links-header h1 {
  margin-bottom: 12px;
}

.links-header p {
  max-width: 680px;
}

.route-kicker {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.route-section {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.route-section h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

.route-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.route-list li {
  margin: 0;
  border-top: 1px solid var(--line);
}

.route-list li:first-child {
  border-top: 0;
}

.route-list a {
  display: grid;
  grid-template-columns: minmax(210px, 340px) minmax(0, 1fr);
  gap: 24px;
  padding: 14px 0;
  color: inherit;
  text-decoration: none;
}

.route-list a:hover .route-path,
.route-list a:focus .route-path {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.route-path {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #22252a;
}

.route-title {
  display: block;
  font-weight: 700;
}

.route-description {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}

.links-footer {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .resume-shell,
  .links-shell {
    width: min(100% - 28px, var(--max));
    padding-top: 24px;
    padding-bottom: 36px;
  }

  .resume-document {
    padding: 28px 24px;
  }

  .resume-header,
  .resume-section,
  .skill-list div,
  .role-heading,
  .education-item,
  .route-list a,
  .links-footer {
    grid-template-columns: 1fr;
  }

  .contact-block,
  .role-heading > p,
  .education-item > p {
    text-align: left;
  }

  .resume-section {
    gap: 12px;
  }

  .links-footer {
    display: grid;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .resume-shell {
    width: 100%;
    padding: 0;
  }

  .resume-document {
    border: 0;
    padding: 0;
  }
}
