:root {
  --paper: #ffffff;
  --ink: #171717;
  --muted: #3f3f3f;
  --rule: #242424;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page {
  width: min(820px, calc(100% - 56px));
  margin: 58px auto 78px;
}

.masthead {
  padding-bottom: 38px;
  border-bottom: 2px solid var(--rule);
}

h1,
h2,
h3,
p,
address,
dl,
dd,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  max-width: 100%;
  font-size: clamp(2.2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  white-space: nowrap;
}

.role {
  margin-bottom: 22px;
  font-size: clamp(1.1rem, 2.2vw, 1.34rem);
  font-weight: 700;
}

address {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.section {
  padding-top: 48px;
}

.section h2 {
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.section > p {
  max-width: 760px;
  margin-bottom: 0;
}

.skills-list {
  display: grid;
  gap: 7px;
  margin-bottom: 0;
}

.skills-list div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
}

.skills-list dt {
  color: var(--ink);
  font-weight: 700;
}

.skills-list dd {
  margin-bottom: 0;
  margin-left: 0;
}

.entry {
  margin-bottom: 32px;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 6px;
}

.entry-heading h3 {
  margin-bottom: 0;
  font-size: clamp(1.08rem, 2.1vw, 1.28rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.entry-heading span {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.entry p {
  margin-bottom: 10px;
  color: var(--muted);
}

.entry ul {
  margin-bottom: 0;
  padding-left: 30px;
  color: var(--muted);
}

.footer {
  margin-top: 50px;
  padding-top: 28px;
  border-top: 2px solid var(--rule);
  color: var(--muted);
  text-align: center;
}

.footer p {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  body {
    font-size: 15.5px;
    line-height: 1.56;
  }

  .page {
    width: min(100% - 34px, 820px);
    margin-top: 28px;
    margin-bottom: 48px;
  }

  .masthead {
    padding-bottom: 26px;
  }

  h1 {
    margin-bottom: 10px;
    font-size: clamp(1.55rem, 7.5vw, 2.2rem);
    line-height: 1.12;
    white-space: normal;
  }

  .role {
    margin-bottom: 16px;
    font-size: 1rem;
  }

  .section {
    padding-top: 36px;
  }

  .section h2 {
    margin-bottom: 14px;
    font-size: clamp(1.32rem, 6.5vw, 1.72rem);
  }

  .section > p {
    font-size: 1rem;
  }

  .skills-list div,
  .entry-heading {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .skills-list {
    gap: 12px;
  }

  .skills-list dd {
    overflow-wrap: anywhere;
  }

  .entry {
    margin-bottom: 28px;
  }

  .entry-heading {
    margin-bottom: 6px;
  }

  .entry-heading h3 {
    font-size: 1.05rem;
  }

  .entry-heading span {
    white-space: normal;
  }

  .entry ul {
    padding-left: 22px;
  }

  .footer {
    margin-top: 36px;
    padding-top: 22px;
    text-align: left;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 14.5px;
  }

  .page {
    width: min(100% - 28px, 820px);
    margin-top: 22px;
  }

  h1 {
    font-size: clamp(1.34rem, 6.8vw, 1.78rem);
  }

  .masthead,
  .footer {
    border-width: 2px;
  }

  .section h2 {
    border-bottom-width: 1px;
  }

  .entry ul {
    padding-left: 20px;
  }
}
