:root {
  --paper: #fff;
  --ink: #000;
  --page-width: 8.5in;
  --page-height: 11in;
  --page-padding-x: 0.61in;
  --page-padding-top: 0.53in;
  --body-size: 11pt;
  --rule-width: 1px;
}

* {
  box-sizing: border-box;
}

html {
  background: #e9e9e9;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #e9e9e9;
  font-family: "Times New Roman", Times, serif;
  font-size: var(--body-size);
  line-height: 1.08;
}

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

.resume {
  width: var(--page-width);
  min-height: var(--page-height);
  margin: 24px auto;
  padding: var(--page-padding-top) var(--page-padding-x) 0.5in;
  background: var(--paper);
  box-shadow: 0 2px 14px rgb(0 0 0 / 14%);
}

.resume-header {
  margin-bottom: 0.19in;
  text-align: center;
}

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

h1 {
  margin-bottom: 0.035in;
  font-size: 20pt;
  line-height: 1;
}

.resume-section {
  margin-top: 0.16in;
}

.resume-section:first-of-type {
  margin-top: 0;
}

h2 {
  margin-bottom: 0.045in;
  padding-bottom: 0.015in;
  border-bottom: var(--rule-width) solid var(--ink);
  font-size: 11pt;
  line-height: 1;
  text-transform: uppercase;
}

h3 {
  font-size: 11pt;
  line-height: inherit;
}

.entry-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25in;
}

.entry-row > :first-child {
  min-width: 0;
}

.entry-meta {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

.experience-entry + .experience-entry {
  margin-top: 0.18in;
}

ul {
  padding-left: 0.2in;
  list-style-position: outside;
}

li {
  padding-left: 0.035in;
}

li::marker {
  font-family: Arial, sans-serif;
  font-size: 0.68em;
}

@media (max-width: 8.5in) {
  :root {
    --page-padding-x: clamp(22px, 7vw, 0.61in);
  }

  html,
  body {
    background: var(--paper);
  }

  .resume {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    box-shadow: none;
  }

}

@media (max-width: 560px) {
  .entry-row {
    display: block;
  }

  .entry-meta {
    text-align: left;
  }

}

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

@media print {
  html,
  body {
    background: var(--paper);
  }

  .resume {
    width: var(--page-width);
    min-height: var(--page-height);
    margin: 0;
    box-shadow: none;
  }
}
