:root {
  --gap: 24px;
  --content-gap: 20px;
  --nav-width: 1024px;
  --main-width: 720px;
  --header-height: 60px;
  --radius: 8px;
  --theme: rgb(255, 255, 255);
  --entry: rgb(255, 255, 255);
  --primary: rgb(30, 30, 30);
  --secondary: rgb(108, 108, 108);
  --tertiary: rgb(214, 214, 214);
  --content: rgb(31, 31, 31);
  --code-bg: rgb(245, 245, 245);
  --border: rgb(238, 238, 238);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --theme: rgb(29, 30, 32);
  --entry: rgb(46, 46, 51);
  --primary: rgb(218, 218, 219);
  --secondary: rgb(155, 156, 157);
  --tertiary: rgb(65, 66, 68);
  --content: rgb(196, 196, 197);
  --code-bg: rgb(55, 56, 62);
  --border: rgb(51, 51, 51);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--content);
  background: var(--theme);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a,
button {
  color: var(--primary);
}

a {
  text-decoration: none;
  box-shadow: 0 1px 0 var(--secondary);
}

a:hover {
  color: var(--primary);
  box-shadow: 0 2px 0 var(--primary);
}

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

p,
ul {
  margin-bottom: var(--content-gap);
}

ul {
  padding-inline-start: 22px;
}

li + li {
  margin-top: 6px;
}

.site-header {
  min-height: var(--header-height);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: calc(var(--nav-width) + var(--gap) * 2);
  min-height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  background: var(--entry);
  box-shadow: none;
}

.nav-links {
  display: flex;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  white-space: nowrap;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  display: block;
  font-size: 16px;
  box-shadow: none;
}

.nav-links a:hover {
  box-shadow: 0 2px 0 var(--primary);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.theme-toggle__icon {
  display: none;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="light"] .theme-toggle__icon--dark,
[data-theme="dark"] .theme-toggle__icon--light {
  display: block;
}

.main {
  max-width: calc(var(--main-width) + var(--gap) * 2);
  margin: 0 auto;
  padding: 28px var(--gap) 40px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - 54px);
  text-align: center;
}

.headshot-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 7%;
  color: var(--secondary);
  background: var(--code-bg);
  font-size: 30px;
  font-weight: 700;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--secondary);
  font-size: 15px;
}

h1 {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 42px;
  line-height: 1.15;
}

.role {
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 500;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 18px;
  color: var(--content);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  color: var(--secondary);
  font-size: 15px;
}

.contact-row span {
  color: var(--secondary);
}

.section {
  padding: 34px 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 30px;
  line-height: 1.2;
}

.section p:last-child,
.section ul:last-child {
  margin-bottom: 0;
}

.skill-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.skill-list li {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--entry);
}

.role-entry {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.role-entry:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.role-entry:last-of-type {
  padding-bottom: 0;
}

.role-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.role-heading h3 {
  margin-bottom: 0;
  color: var(--primary);
  font-size: 22px;
  line-height: 1.25;
}

.role-heading p {
  flex: 0 0 auto;
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
}

.compact {
  padding-block: 30px;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.inline-list li {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--primary);
  font-size: 15px;
}

.contact-section {
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 14px;
  border-radius: var(--radius);
  background: var(--tertiary);
  box-shadow: none;
}

.button:hover {
  background: var(--border);
  box-shadow: none;
}

.footer {
  max-width: calc(var(--main-width) + var(--gap) * 2);
  margin: 0 auto;
  padding: 18px var(--gap) 28px;
  color: var(--secondary);
  font-size: 13px;
  text-align: center;
}

.footer p {
  margin: 0;
}

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

@media (max-width: 720px) {
  :root {
    --gap: 16px;
  }

  body {
    font-size: 17px;
  }

  .nav {
    gap: 10px;
  }

  .brand,
  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 15px;
  }

  .main {
    padding-top: 18px;
  }

  .hero {
    min-height: auto;
    padding: 52px 0 64px;
  }

  .headshot-slot {
    width: 96px;
    height: 96px;
    font-size: 26px;
  }

  h1 {
    font-size: 36px;
  }

  .role {
    font-size: 20px;
  }

  .section h2 {
    font-size: 27px;
  }

  .role-heading {
    display: block;
  }

  .role-heading h3 {
    margin-bottom: 4px;
  }
}

@media (max-width: 430px) {
  .nav {
    align-items: flex-start;
    padding-top: 13px;
    padding-bottom: 10px;
  }

  .nav-links {
    order: 3;
    width: 100%;
  }

  .contact-row {
    display: grid;
  }
}
