:root {
  color-scheme: light dark;
  --bg: #fdfdfc;
  --fg: #1d1f23;
  --muted: #62666d;
  --accent: #2456c7;
  --rule: #e3e3df;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171a;
    --fg: #e6e6e3;
    --muted: #9a9ea6;
    --accent: #7aa2ff;
    --rule: #2c2e33;
  }
}

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

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

body {
  margin: 0 auto;
  max-width: 40rem;
  padding: 4rem 1.25rem 3rem;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* header */

.title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
}

.role {
  margin: 1rem 0 0;
  color: var(--muted);
}

.social {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

/* projects */

main {
  margin-top: 3rem;
}

h2 {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
}

h2 span {
  color: var(--muted);
}

.projects {
  margin: 0;
  padding-left: 1.25rem;
}

.projects li + li {
  margin-top: 0.75rem;
}

/* footer */

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer p {
  margin: 0;
}
