/* ==========================================================================
   Base
   ========================================================================== */

html {
  font-family: 'Plus Jakarta Sans', system-ui, Helvetica, sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

a {
  background: transparent;
}

a:focus {
  outline: thin dotted;
}

a:active,
a:hover {
  outline: 0;
}

b,
strong {
  font-weight: bold;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  border: none;
}

/* ==========================================================================
   Site fonts — local woff2 files
   ========================================================================== */

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/spectral/spectral-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/spectral/spectral-800-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/plus-jakarta-sans/plus-jakarta-sans-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/plus-jakarta-sans/plus-jakarta-sans-700-normal.woff2') format('woff2');
}

/* ==========================================================================
   Resume container
   ========================================================================== */

.resume {
  margin-top: 60px;
  max-width: 60rem;
}

/* ==========================================================================
   Page layout
   ========================================================================== */

html,
body {
  margin: auto;
  padding-right: 1em;
  padding-left: 1em;
  max-width: 64em;
  color: #1c1a18;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, Helvetica, sans-serif;
  -webkit-font-smoothing: subpixel-antialiased;
  border-radius: 3px;
  padding: 25px;
  margin: 15px;
  font-size: 16px;
  line-height: 1.4;
}

a {
  color: #5494cc;
  text-decoration: none;
}

body > *:first-child {
  margin-top: 0 !important;
}

body > *:last-child {
  margin-bottom: 0 !important;
}

/* ==========================================================================
   Headings
   ========================================================================== */

h1,
h2,
h3,
h5 {
  margin: 0;
  padding: 0 0 10px 0;
  font-weight: bold;
  -webkit-font-smoothing: subpixel-antialiased;
  cursor: text;
}

h1 {
  font-family: 'Spectral', Georgia, serif;
  font-size: 30px;
  line-height: 30px;
  color: #1a3f6f;
  text-align: center;
}

h2 {
  font-family: 'Spectral', Georgia, serif;
  font-size: 27px;
  line-height: 27px;
  padding-bottom: 0;
  margin: 1rem 0 0.75rem 0;
  border-bottom: 1px solid #dedad4;
  color: #2d5f97;
}

h3 {
  font-family: 'Spectral', Georgia, serif;
  font-size: 20px;
  line-height: 20px;
  color: #3d7ab5;
  -webkit-margin-before: 0.01em;
  -webkit-margin-after: 0.01em;
}

h5 {
  font-family: 'Plus Jakarta Sans', system-ui, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #1c1a18;
  text-align: center;
  font-weight: normal;
}

/* ==========================================================================
   Content
   ========================================================================== */

p,
ul,
li,
blockquote,
table {
  margin: 0;
  padding: 0 0 10px 0;
  font-size: 16px;
  line-height: 2;
}

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

body > h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

body > h1:first-child {
  margin-top: 0;
  padding-top: 0;
}

body > h1:first-child + h2 {
  margin-top: 0;
  padding-top: 0;
}

body > h3:first-child,
body > h5:first-child {
  margin-top: 0;
  padding-top: 0;
}

a:first-child h1,
a:first-child h2,
a:first-child h3,
a:first-child h5 {
  margin-top: 0;
  padding-top: 0;
}

h1 + p,
h2 + p,
h3 + p,
h5 + p,
ul li > :first-child {
  margin-top: 0;
}

blockquote {
  border-left: 4px solid #dedad4;
  padding: 0 15px;
  color: #7d7b78;
}

blockquote > :first-child {
  margin-top: 0;
}

blockquote > :last-child {
  margin-bottom: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  font: inherit;
  vertical-align: top;
  --table-padding: 0px 16px 8px 0px;
}

table th {
  font-weight: bold;
  border: none;
  vertical-align: top;
  padding: var(--table-padding);
}

table td {
  font-size: 16px;
  line-height: 1.5;
  border: none;
  vertical-align: top;
  padding: var(--table-padding);
}

table tr {
  border: none;
  vertical-align: top;
}

/* ==========================================================================
   Dark mode — mirrors [data-theme='dark'] tokens from globals.css
   (browser only; wkhtmltopdf does not support prefers-color-scheme)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  html,
  body {
    background-color: #1b1918;
    color: #f4f2ee;
  }

  a {
    color: #8cbfe4;
  }

  h1 {
    color: #8cbfe4;
  }

  h2 {
    color: #6da9d6;
    border-bottom-color: #38342f;
  }

  h3 {
    color: #5495cc;
  }

  h5 {
    color: #f4f2ee;
  }

  blockquote {
    border-left-color: #38342f;
    color: #c9c5bf;
  }
}

/* ==========================================================================
   Print / Download
   ========================================================================== */

@media print {
  body {
    background: #fff;
    border: 0;
  }
  h1 {
    font-size: 24px;
    line-height: 1;
  }
  h2 {
    font-size: 20px;
    line-height: 1.5;
  }
  h3 {
    font-size: 16px;
    line-height: 1.5;
  }
  h5 {
    font-size: 14px;
    line-height: 1.5;
  }
  p,
  table td,
  ul,
  li {
    font-size: 12px;
    line-height: 1.5;
  }
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 24px;
    line-height: 1;
  }
  h2 {
    font-size: 20px;
    line-height: 1.5;
  }
  h3 {
    font-size: 16px;
    line-height: 1.5;
  }
  h5 {
    font-size: 14px;
    line-height: 1.5;
  }
  p,
  table td,
  ul,
  li {
    font-size: 12px;
    line-height: 1.5;
  }
}
