:root {
  color-scheme: light dark;
  --background: light-dark(#f7f6f2, #12161c);
  --text: light-dark(#1c2430, #e7e8e4);
  --muted: light-dark(#626973, #a2a9b3);
  --line: light-dark(#d7d4ca, #343a43);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 15px/1.65 var(--sans);
}

body::before {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, light-dark(#1c24300a, #ffffff0a) 0 1px, transparent 2.75px) 0 0 / 24px 24px;
  content: "";
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 95%);
  pointer-events: none;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.5rem 0.75rem;
  background: var(--text);
  color: white;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.page {
  position: relative;
  width: min(calc(100% - 2rem), 720px);
  margin: auto;
}

.site-header,
footer,
.section-heading,
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  height: 68px;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}

.site-header > a {
  font-weight: 700;
  text-decoration: none;
}

nav,
footer div {
  display: flex;
  gap: 1.25rem;
}

nav a,
footer a {
  text-decoration: none;
}

#themeToggle {
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  place-items: center;
}

nav a:hover,
nav a:focus-visible,
footer a:hover,
footer a:focus-visible,
#themeToggle:hover,
#themeToggle:focus-visible,
summary:hover,
summary:focus-visible {
  color: light-dark(#3157c8, #8da9ff);
}

main {
  padding: 3.5rem 0 1rem;
}

section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.intro {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 0;
}

.avatar {
  display: grid;
  width: 72px;
  aspect-ratio: 1;
  flex: none;
  place-items: center;
  background: light-dark(#1c2430, #252c36);
  color: white;
  font: 700 0.85rem var(--mono);
}

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

h1 {
  margin-bottom: 0.15rem;
  font-size: clamp(1.55rem, 4vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.role,
.lede,
.muted {
  margin-bottom: 0;
}

.location {
  margin: 0.2rem 0 0;
}

.location,
.section-heading span,
.stack {
  font-size: 0.68rem;
}

.location,
h2,
.section-heading span,
.stack,
footer {
  font-family: var(--mono);
  text-transform: uppercase;
}

h2 {
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.lede {
  max-width: 64ch;
  font-size: 1.02rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: light-dark(#ffffff85, #ffffff09);
  font-size: 0.78rem;
}

.section-heading {
  align-items: baseline;
}

details {
  border-block: 1px solid var(--line);
}

details + details {
  border-top: 0;
}

summary {
  min-height: 58px;
  padding: 0.65rem 0;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary > span {
  display: grid;
  gap: 0.1rem;
}

summary strong {
  color: var(--text);
  font-size: 0.88rem;
}

summary small {
  font-size: 0.76rem;
}

summary::after {
  content: "+";
  flex: none;
  font: 1rem var(--mono);
}

details[open] summary::after {
  content: "\2212";
}

details > div {
  padding: 0.15rem 2rem 1.2rem 0;
  font-size: 0.84rem;
}

details p {
  margin-bottom: 0.65rem;
}

details ul {
  margin: 0;
  padding-left: 1.15rem;
}

details li + li {
  margin-top: 0.35rem;
}

details a {
  color: var(--text);
  font-weight: 650;
}

.role,
.location,
.section-heading span,
summary small,
details > div,
.muted,
footer,
nav a,
footer a {
  color: var(--muted);
}

footer {
  min-height: 90px;
  font-size: 0.66rem;
}

@media (max-width: 520px) {
  main {
    padding-top: 2.5rem;
  }

  section {
    padding: 1.65rem 0;
  }

  .avatar {
    width: 60px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
