:root {
  color-scheme: dark;
  --text-color: #e4e6eb;
  --background-color: #18191a;
  --primary-color: #ffffff;
  --border-color: #b0b3b8;
  --input-background: #212529;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --text-color: #343a40;
    --background-color: #eaedf0;
    --primary-color: #0062cc;
    --border-color: #343a40;
    --input-background: #ffffff;
  }
}

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

html {
  background-color: var(--background-color);
}

body {
  margin: 0;
  color: var(--text-color);
  background-color: var(--background-color);
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text-color);
}

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

:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

header {
  padding: 0.75rem 0 1.5rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  display: block;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  text-decoration: none;
}

#hero h1 {
  margin: 0 0 0.35rem;
  color: var(--primary-color);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
}

.lede {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
}

#hero .intro {
  margin: 0 0 1.5rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--primary-color);
  border-radius: 0.35rem;
  color: var(--background-color);
  background-color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.btn:hover {
  color: var(--background-color);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--text-color);
  border-radius: 0.35rem;
  color: var(--text-color);
  text-decoration: none;
}

.social-icon:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.social-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

section {
  padding: 2rem 0 0;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.portrait {
  display: block;
  width: 12rem;
  max-width: 50%;
  margin: 0 0 1.25rem;
  border: 3px solid var(--text-color);
  border-radius: 50%;
}

#about ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

#about li {
  margin-bottom: 0.75rem;
}

form {
  display: grid;
  gap: 0.75rem;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 0.35rem;
  color: var(--text-color);
  background-color: var(--input-background);
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--primary-color);
  border-radius: 0.35rem;
  color: var(--background-color);
  background-color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

footer {
  padding: 2.5rem 0 0;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-social a {
  display: inline-flex;
  color: var(--text-color);
}

.footer-social svg {
  display: block;
}

.github-icon {
  width: 2.7em;
  height: 2.7em;
  fill: currentColor;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.copyright {
  margin: 0;
}

.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
}
