@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-var-latin.woff2") format("woff2");
}

:root {
  --bg: #000;
  --title: rgba(255, 255, 255, 0.9);
  --body: rgba(255, 255, 255, 0.7);
  --label: rgba(255, 255, 255, 0.5);
  --faint: rgba(255, 255, 255, 0.32);
  --desc: rgba(255, 255, 255, 0.55);
  --ring: rgba(255, 255, 255, 0.14);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pad-top: clamp(6rem, 15vh, 9rem);
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.layout {
  display: grid;
  grid-template-columns: 8rem minmax(0, 38rem);
  gap: 0 3.5rem;
  justify-content: center;
  padding: 0 1.5rem;
}

/* ---- Jump rail ---- */

.toc {
  position: sticky;
  top: 4rem;
  align-self: start;
  margin-top: calc(var(--pad-top) + 5.5rem);
}

.toc a {
  display: block;
  font-size: 0.875rem;
  color: var(--faint);
  text-decoration: none;
  padding: 0.3rem 0;
  transition: color 120ms ease;
}

.toc a:hover {
  color: var(--body);
}

.toc a.active {
  color: var(--title);
}

/* ---- Header ---- */

main {
  padding: var(--pad-top) 0 0;
  min-width: 0;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--ring);
  color: var(--title);
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  user-select: none;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--title);
  line-height: 2rem;
}

.tagline {
  margin-top: 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 2rem;
  color: var(--body);
  max-width: 28rem;
}

.sub {
  margin-top: 1.75rem;
  font-size: 1rem;
  color: var(--label);
}

.contact {
  margin-top: 0.25rem;
  font-size: 1rem;
}

.contact a {
  color: var(--label);
}

.contact a:hover {
  color: var(--title);
}

/* ---- Sections ---- */

section {
  margin-top: 5.5rem;
  scroll-margin-top: 4rem;
}

h2 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--label);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.chev {
  color: var(--faint);
  margin-left: 0.25rem;
}

#about p {
  color: var(--body);
  font-size: 1rem;
  line-height: 1.7;
}

.item + .item {
  margin-top: 2rem;
}

#education .item + .item,
#certifications .item + .item {
  margin-top: 1rem;
}

.item-line {
  font-size: 1.25rem;
  line-height: 1.6;
}

.item-line strong {
  color: var(--title);
  font-weight: 500;
}

.co {
  color: var(--faint);
  font-weight: 400;
}

.co a {
  color: inherit;
}

.co a:hover {
  color: var(--body);
}

.item-line strong a {
  color: inherit;
}

.item-line strong a:hover {
  color: #fff;
}

.sep {
  color: rgba(255, 255, 255, 0.18);
  padding: 0 0.3em;
}

.path {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--label);
}

.dates {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.desc {
  margin-top: 0.625rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--desc);
}

/* ---- Footer ---- */

footer {
  margin-top: 8rem;
  padding-bottom: 6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 0.875rem;
  color: var(--faint);
}

footer a {
  color: var(--faint);
  text-decoration: none;
}

footer a:hover {
  color: var(--title);
}

/* ---- Links ---- */

a {
  color: var(--body);
  text-decoration: none;
  transition: color 120ms ease;
}

a:hover {
  color: var(--title);
}

::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ---- Responsive ---- */

@media (max-width: 58rem) {
  .layout {
    display: block;
    max-width: 38rem;
    margin: 0 auto;
  }

  .toc {
    display: none;
  }
}

@media (max-width: 40rem) {
  :root {
    --pad-top: 4rem;
  }

  section {
    margin-top: 4.5rem;
  }

  .item-line {
    font-size: 1.125rem;
  }

  footer {
    margin-top: 6rem;
    padding-bottom: 4rem;
  }
}
