/* Typeset in the classic LaTeX resume template style (Jake's Resume). */

@font-face {
  font-family: "CMU Serif";
  src: url("/fonts/cmu-serif-500-roman.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CMU Serif";
  src: url("/fonts/cmu-serif-500-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "CMU Serif";
  src: url("/fonts/cmu-serif-700-roman.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CMU Serif";
  src: url("/fonts/cmu-serif-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #fff;
  color: #111;
  font-family: "CMU Serif", "Latin Modern Roman", "Computer Modern", Georgia, serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: #fff;
}

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

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

/* ---------- main layout ---------- */

.sheet {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.25rem 2rem 4.5rem;
  font-size: 16.5px;
  line-height: 1.42;
}

/* Header */
.name {
  text-align: center;
  font-size: 2.35em;
  font-weight: 700;
  font-variant: small-caps;
  line-height: 1;
  letter-spacing: 0.02em;
}
.contact {
  margin-top: 0.55em;
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: 0.86em;
}
.contact li {
  display: inline-block;
  white-space: nowrap;
}
.contact li + li::before {
  content: "|";
  margin: 0 0.4em;
  color: #555;
}
.contact a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.5px;
}

/* Section heading: \large\scshape + \titlerule */
.section {
  margin-top: 1.15em;
}
.section > h2 {
  font-size: 1.12em;
  font-weight: 400;
  font-variant: small-caps;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #111;
  padding-bottom: 0.1em;
  margin-bottom: 0.48em;
}

/* \resumeSubheading */
.entry + .entry {
  margin-top: 0.65em;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 1em;
}
.row > :last-child {
  flex-shrink: 0;
  text-align: right;
}
.row.sub {
  font-size: 0.93em;
  font-style: italic;
}
.entry h3 {
  font-size: 1em;
  font-weight: 700;
}
.entry h3 .stack {
  font-weight: 400;
  font-style: italic;
}
.entry h3 .sep {
  font-weight: 400;
  margin: 0 0.35em;
}
.entry h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.5px;
}
.date {
  font-size: 0.93em;
}

/* \resumeItemListStart */
.items {
  margin-top: 0.22em;
  padding-left: 1.5em;
  font-size: 0.93em;
}
.items li {
  padding-left: 0.15em;
}
.items li + li {
  margin-top: 0.16em;
}
.items li::marker {
  font-size: 0.8em;
}

/* Technical skills */
.skills {
  font-size: 0.93em;
  padding-left: 0.5em;
  list-style: none;
}
.skills li + li {
  margin-top: 0.2em;
}
.skills b {
  font-weight: 700;
}

/* ---------- small screens ---------- */

@media screen and (max-width: 720px) {
  .sheet {
    padding: 2rem 1.25rem 3rem;
    font-size: 15.5px;
  }
  .name {
    font-size: 2.05em;
  }
  .contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25em 1em;
  }
  .contact li + li::before {
    content: none;
  }
  .row {
    flex-wrap: wrap;
  }
  .row > :last-child {
    text-align: left;
  }
}

/* ---------- print ---------- */

@page {
  size: A4;
  margin: 0.5in;
}

@media print {
  html {
    color: #000;
  }
  .sheet {
    max-width: none;
    padding: 0;
    font-size: 11pt;
    line-height: 1.22;
  }
  .section {
    margin-top: 0.75em;
  }
  .section > h2 {
    border-bottom: 0.5pt solid #000;
    margin-bottom: 0.35em;
  }
  .entry {
    break-inside: avoid;
  }
  .entry + .entry {
    margin-top: 0.4em;
  }
  .items {
    margin-top: 0.15em;
  }
  .items li + li {
    margin-top: 0.06em;
  }
  .skills li + li {
    margin-top: 0.1em;
  }
}
