:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  background: #fff;
  color: #132019;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: #132019;
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible,
button:focus-visible {
  outline: 0.18rem solid currentColor;
  outline-offset: 0.25rem;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

.shell {
  width: min(45rem, calc(100% - 3rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.6rem 0.9rem;
  transform: translateY(-180%);
  background: #132019;
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  padding-block: 1.4rem;
  border-bottom: 1px solid #132019;
}

.header-inner,
.footer-inner,
.role-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.wordmark span {
  display: inline-block;
  margin-left: 0.06em;
}

.site-nav ul {
  display: flex;
  gap: clamp(1.25rem, 4vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.page-bio .site-nav a[href="/"],
.page-resume .site-nav a[href="/resume"],
.page-contact .site-nav a[href="/contact"] {
  padding-bottom: 0.18rem;
  border-bottom: 0.14rem solid currentColor;
}

.nav-toggle {
  display: none;
  border: 0;
  padding: 0.35rem 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.hero,
.page-intro,
.contact-hero {
  padding-block: clamp(5rem, 14vw, 9rem);
}

.hero h1,
.contact-hero h1 {
  max-width: 13ch;
  margin-bottom: 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 9vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.page-intro h1 {
  margin-bottom: 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 11vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1;
}

.eyebrow {
  margin-bottom: 1.2rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  max-width: 38rem;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.button {
  display: inline-block;
  border: 2px solid #132019;
  padding: 0.7rem 1.05rem;
  background: #132019;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  background: #fff;
  color: #132019;
}

.text-link {
  font-weight: 700;
}

.ruled {
  border-top: 1px solid #132019;
}

.section {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 2rem;
  padding-block: 3.5rem;
}

.section h2,
.resume-section h2,
.contact-details h2 {
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section p:not(.section-number),
.prose p,
.role > p {
  max-width: 36rem;
}

.section-number,
.role-meta,
.location {
  font-size: 0.84rem;
  font-weight: 650;
}

.resume-section {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 2rem;
  padding-block: 3.5rem;
}

.resume-list,
.contact-details ul {
  display: grid;
  gap: 2.5rem;
}

.role + .role {
  padding-top: 2.5rem;
  border-top: 1px solid #132019;
}

.role-heading {
  align-items: start;
  margin-bottom: 1rem;
}

.role-heading h3,
.role-heading p {
  margin-bottom: 0;
}

.role-heading h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.2;
}

.role-heading a {
  font-weight: 650;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  padding-block: 0.6rem;
  border-bottom: 1px solid #132019;
}

.resume-cta {
  margin-block: 3rem 6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.35;
}

.contact-main {
  min-height: calc(100vh - 14rem);
}

.contact-hero {
  padding-bottom: 4rem;
}

.email-link {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  margin-top: 3rem;
  padding-block: 1rem;
  border-block: 1px solid #132019;
  text-decoration: none;
}

.email-link strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 4vw, 2.2rem);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.contact-details {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 2rem;
  padding-block: 3.5rem 6rem;
}

.contact-details ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-details li {
  font-size: 1.15rem;
  font-weight: 700;
}

.contact-details .location {
  grid-column: 2;
  margin-top: 0.5rem;
}

.site-footer {
  border-top: 1px solid #132019;
  padding-block: 1.5rem;
}

.site-footer p,
.site-footer a {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
}

@media (max-width: 38rem) {
  .shell {
    width: min(100% - 2rem, 45rem);
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .js .nav-toggle {
    display: block;
  }

  .site-nav {
    flex-basis: 100%;
  }

  .js .site-nav[hidden] {
    display: none;
  }

  .site-nav ul {
    justify-content: space-between;
    padding-top: 0.75rem;
  }

  .hero,
  .page-intro,
  .contact-hero {
    padding-block: 4.5rem;
  }

  .hero h1,
  .contact-hero h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .section,
  .resume-section,
  .contact-details {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section-number {
    margin-bottom: 0;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .skill-list {
    grid-template-columns: 1fr;
  }

  .email-link {
    grid-template-columns: 1fr auto;
  }

  .email-link strong {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .contact-details .location {
    grid-column: 1;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .resume-cta,
  .skip-link {
    display: none;
  }

  body {
    font-size: 10pt;
  }

  .page-intro {
    padding-block: 0 2rem;
  }

  .resume-section {
    break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
