:root {
  --background-color: #111;
  --header-image-background-color: #232;
  --text-color: #7f7;
  --muted-text-color: #dce8dc;
  --link-color: #7ff;
  --link-color-hover: #7fff;
  --link-color-visited: #7ff7;
  --focus-color: #f8ff8a;
  --mono-font:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "DejaVu Sans Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--background-color);
  color-scheme: dark;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  color: var(--text-color);
  font-family: var(--mono-font);
  line-height: 1.5;
  margin: 0;
  padding: 24px 16px;
  gap: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100svh;
}

.site-header,
main,
footer {
  width: min(100%, 36rem);
}

.site-header {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-top: auto;
}

footer {
  margin-top: auto;
  color: var(--muted-text-color);
  font-size: 0.875rem;
}

h1 {
  font-size: 2.5rem;
  line-height: 1;
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0;
}

.tagline,
.intro {
  color: var(--muted-text-color);
}

.tagline {
  font-size: 1rem;
}

.intro {
  display: grid;
  gap: 12px;
  justify-items: center;
}

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

a:hover {
  color: var(--link-color-hover);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:visited {
  color: var(--link-color-visited);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-links a {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
}

a:focus-visible {
  color: var(--link-color-hover);
  outline: 2px solid var(--focus-color);
  outline-offset: 4px;
}

.profile-picture {
  width: 14rem;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  background-color: var(--header-image-background-color);
  border: 2px solid var(--text-color);
  display: block;
}

@media (min-width: 48rem) {
  body {
    padding: 40px;
    gap: 32px;
  }

  h1 {
    font-size: 3.75rem;
  }

  .profile-picture {
    width: 18rem;
  }
}
