/*
 * Each .resume-sheet is one US Letter page: 816 x 1056 px at 96 px per inch.
 * Sizes are in px because the site scales the root font size with the viewport.
 */

.resume {
  padding: 40px 16px 64px;
}

.resume-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 auto 20px;
  max-width: 816px;
}

.resume-sheets {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.resume-sheet {
  --cyan-50: #ecfeff;
  --cyan-600: #0891b2;
  --cyan-700: #0e7490;
  --cyan-800: #155e75;
  --ink: #0f172a;
  --line: #e2e8f0;
  --muted: #64748b;
  --text: #334155;
  --tint: #f6f9fb;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 10px 30px -18px rgba(15, 23, 42, .5);
  color: var(--text);
  display: grid;
  font: 10.25px/1.5 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Safari saves Inter's contextual alternates to PDFs as private-use characters. */
  font-variant-ligatures: no-contextual;
  grid-template-areas: 'side main';
  grid-template-columns: 252px 1fr;
  height: 1056px;
  overflow: hidden;
  position: relative;
  text-align: left;
  width: 816px;
}

.resume-sheet::before {
  background: linear-gradient(90deg, #155e75, #0e7490 45%, #0284c7);
  content: '';
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.resume-sheets .resume-sheet ::selection {
  color: #0f172a;
}

.resume-sheet a:hover {
  color: var(--cyan-700);
}

.resume-sheet .main {
  grid-area: main;
  padding: 44px 40px 28px 32px;
}

.resume-sheet .side {
  background: var(--tint);
  border-right: 1px solid var(--line);
  grid-area: side;
  padding: 44px 22px 28px 30px;
}

.resume-sheet .side > section + section {
  margin-top: 22px;
}

.resume-sheet .monogram {
  align-items: center;
  background: linear-gradient(135deg, #155e75, #0e7490 55%, #0284c7);
  border-radius: 13px;
  box-shadow: 0 8px 18px -8px rgba(8, 145, 178, .6);
  color: #fff;
  display: flex;
  font: 700 15px/1 'TX-02', monospace;
  height: 46px;
  justify-content: center;
  margin-bottom: 26px;
  width: 46px;
}

.resume-sheet .side h2,
.resume-sheet .heading {
  color: var(--cyan-800);
  font: 700 8px/1 'TX-02', monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.resume-sheet .side h2 {
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  padding-bottom: 7px;
}

.resume-sheet .continued {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: .12em;
}

.resume-sheet .contact li {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 9.6px;
  gap: 8px;
}

.resume-sheet .contact li + li {
  margin-top: 6px;
}

.resume-sheet .contact a {
  align-items: center;
  display: flex;
  gap: 8px;
}

.resume-sheet .contact svg {
  fill: none;
  flex: none;
  height: 11px;
  stroke: var(--cyan-600);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 11px;
}

.resume-sheet .contact .solid {
  fill: var(--cyan-600);
  stroke: none;
}

.resume-sheet .legend {
  color: var(--muted);
  display: flex;
  font-size: 7.75px;
  gap: 9px;
  margin: -2px 0 9px;
}

.resume-sheet .legend i {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: inline-block;
  height: 7px;
  margin-right: 3px;
  vertical-align: -1px;
  width: 7px;
}

.resume-sheet .legend .expert {
  background: var(--cyan-700);
  border-color: var(--cyan-700);
}

.resume-sheet .legend .proficient {
  background: var(--cyan-50);
  border-color: #67e8f9;
}

.resume-sheet .skill-group + .skill-group {
  margin-top: 9px;
}

.resume-sheet .skill-group h3 {
  color: var(--ink);
  font-size: 8.75px;
  font-weight: 600;
  margin-bottom: 4px;
}

.resume-sheet .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.resume-sheet .chips span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 8.1px;
  line-height: 1.3;
  padding: 1.5px 6px;
}

.resume-sheet .chips .proficient {
  background: var(--cyan-50);
  border-color: #a5f3fc;
  color: var(--cyan-800);
}

.resume-sheet .chips .expert {
  background: var(--cyan-700);
  border-color: var(--cyan-700);
  color: #fff;
  font-weight: 600;
}

.resume-sheet .degree + .degree {
  margin-top: 9px;
}

.resume-sheet .degree .name {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}

.resume-sheet .degree .meta {
  color: var(--muted);
  font-size: 8.75px;
}

.resume-sheet .publication {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 8.6px;
  line-height: 1.4;
  margin-top: 10px;
  padding: 8px 9px;
}

.resume-sheet .publication .label {
  color: var(--cyan-700);
  display: block;
  font: 700 7.25px/1 'TX-02', monospace;
  letter-spacing: .14em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.resume-sheet h1 {
  align-items: baseline;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  font-size: 35px;
  font-weight: 800;
  gap: 9px;
  letter-spacing: -.025em;
  line-height: 1;
}

/*
 * The surname is black text under a gradient in screen blend mode, which colors the glyphs
 * and leaves the white sheet white. Browsers then save the surname to PDFs as ordinary text.
 */
.resume-sheet h1 .surname {
  color: #000;
}

.resume-sheet h1 .surname::after {
  background: linear-gradient(90deg, #155e75, #0891b2 60%, #0284c7);
  content: '';
  display: block;
  height: 1em;
  margin: -1em -.1em 0 0;
  mix-blend-mode: screen;
}

.resume-sheet h1 .credentials {
  color: var(--muted);
  font: 400 10px/1 'TX-02', monospace;
  letter-spacing: .06em;
}

.resume-sheet .headline {
  color: var(--muted);
  font-size: 9.1px;
  font-weight: 600;
  letter-spacing: .15em;
  margin-top: 10px;
  text-transform: uppercase;
}

.resume-sheet .summary {
  border-left: 2px solid var(--cyan-600);
  color: var(--text);
  font-size: 10.25px;
  line-height: 1.62;
  margin-top: 14px;
  padding-left: 11px;
  text-wrap: pretty;
}

.resume-sheet .years {
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  margin-top: 9px;
}

.resume-sheet .years span {
  color: var(--cyan-700);
}

.resume-sheet .heading {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.resume-sheet .heading::after {
  background: var(--line);
  content: '';
  flex: 1;
  height: 1px;
}

.resume-sheet .main > .heading {
  margin-top: 22px;
}

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

.resume-sheet .role {
  border-left: 1px solid var(--line);
  margin-left: 4px;
  padding-left: 15px;
}

.resume-sheet .role + .role {
  margin-top: 16px;
}

/*
 * Chrome writes PDF text in paint order, and positioned boxes paint after everything else.
 * The timeline dot and bullets are absolutely positioned at their static position and offset
 * with margins, so the experience entries themselves stay unpositioned and read before the sidebar.
 */
.resume-sheet .role::before {
  background: #fff;
  border: 2px solid var(--cyan-600);
  border-radius: 50%;
  content: '';
  height: 13px;
  margin: 2px 0 0 -22px;
  position: absolute;
  width: 13px;
}

.resume-sheet .role.current::before {
  background: var(--cyan-600);
}

.resume-sheet .role-header {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.resume-sheet .role-header h3 {
  color: var(--ink);
  font-size: 11.75px;
  font-weight: 700;
  line-height: 1.25;
}

.resume-sheet .org {
  align-items: center;
  color: var(--cyan-700);
  display: flex;
  font-weight: 600;
  gap: 6px;
  margin-top: 3px;
}

.resume-sheet .org img {
  background: #fff;
  border-radius: 3px;
  height: 13px;
  object-fit: contain;
  width: 13px;
}

.resume-sheet .org span {
  color: var(--muted);
  font-weight: 400;
}

.resume-sheet .dates {
  background: var(--cyan-50);
  border: 1px solid #a5f3fc;
  border-radius: 999px;
  color: var(--cyan-800);
  flex: none;
  font: 700 7.75px/1 'TX-02', monospace;
  letter-spacing: .03em;
  padding: 3px 7px;
  white-space: nowrap;
}

.resume-sheet .role ul {
  margin-top: 6px;
}

.resume-sheet .role li {
  padding-left: 10px;
  text-wrap: pretty;
}

.resume-sheet .role li + li {
  margin-top: 3px;
}

.resume-sheet .role li::before {
  background: var(--cyan-600);
  border-radius: 50%;
  content: '';
  height: 3.5px;
  margin: .62em 0 0 -10px;
  position: absolute;
  width: 3.5px;
}

.resume-sheet .role strong {
  color: var(--ink);
  font-weight: 600;
}

.resume-sheet .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 6px;
}

.resume-sheet .tags span {
  background: #f1f5f9;
  border-radius: 4px;
  color: #475569;
  font: 400 7.5px/1 'TX-02', monospace;
  padding: 2.5px 6px;
}

.resume-sheet .dated-list li {
  align-items: baseline;
  color: var(--ink);
  display: flex;
  font-size: 8.9px;
  gap: 8px;
  justify-content: space-between;
  line-height: 1.35;
}

.resume-sheet .dated-list li + li {
  margin-top: 5px;
}

.resume-sheet .dated-list time {
  color: var(--muted);
  flex: none;
  font: 400 7.5px/1 'TX-02', monospace;
  white-space: nowrap;
}

.resume-sheet .main .dated-list li {
  font-size: 9.75px;
}

.resume-sheet .main .dated-list time {
  font-size: 8px;
}

@media screen and (max-width: 879.98px) {
  .resume {
    padding: 24px 12px 40px;
  }

  .resume-toolbar {
    max-width: calc(520px * 1.3);
  }

  .resume-sheets {
    gap: 20px;
  }

  .resume-sheet {
    display: block;
    height: auto;
    max-width: 520px;
    width: 100%;
    zoom: 1.3;
  }

  .resume-sheet .main {
    padding: 36px 20px 24px;
  }

  .resume-sheet .side {
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 24px 20px;
  }

  .resume-sheet .role-header {
    flex-wrap: wrap;
    gap: 4px 10px;
  }

  .resume-sheet .org {
    flex-wrap: wrap;
    gap: 0 6px;
  }
}

@page {
  margin: 0;
  size: letter;
}

@media print {
  body > :not(main),
  main > :not(.resume),
  .resume-toolbar {
    display: none;
  }

  .resume {
    padding: 0;
  }

  .resume-sheets {
    display: block;
  }

  .resume-sheet {
    border-radius: 0;
    box-shadow: none;
    height: auto;
    min-height: 1056px;
    overflow: visible;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .resume-sheet + .resume-sheet {
    break-before: page;
  }
}
