@font-face {
  font-family: "VT323";
  src: url("/fonts/vt323-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #202020;
  --ink: #e0e0e0;
  --accent: #d0d0d0;
  --muted: #a4a4a4;
  --rule: #424242;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --retro: "VT323", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 100%;
}

body {
  margin: 0;
  font-size: 1.3125rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.page {
  width: min(42.5rem, calc(100% - 3rem));
  margin-inline: auto;
  padding-block: 4.75rem 2.5rem;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  z-index: 1;
  padding: 0.625rem 0.75rem;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.875rem;
  max-width: calc(100% - 3rem);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
}

.identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  min-width: 0;
  max-width: 100%;
}

.brand-mark {
  display: block;
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  align-self: center;
  image-rendering: pixelated;
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

h1 {
  margin: 0;
  font-family: var(--retro);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.25;
}

.identifier {
  margin: 0;
  color: var(--muted);
  font-family: var(--retro);
  font-size: 1.25rem;
}

.profile-link,
.source-link,
.return-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.5;
}

.intro {
  margin: 2.75rem 0 0;
}

.projects {
  margin-top: 4.5rem;
}

h2 {
  margin: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--retro);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
}

.project-list {
  margin: 0;
  padding-left: 2.5rem;
  list-style-type: decimal-leading-zero;
}

.project-list > li {
  padding: 2rem 0 2rem 0.375rem;
}

.project-list > li + li {
  border-top: 1px solid var(--rule);
}

.project-list > li::marker {
  color: var(--muted);
  font-family: var(--retro);
  font-size: 1.125rem;
}

h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

article > p {
  margin: 1rem 0 0;
}

article > .project-meta {
  margin-top: 1.5rem;
  color: var(--muted);
  font-family: var(--retro);
  font-size: 1.25rem;
  line-height: 1.4;
}

.source-link {
  margin-top: 0.375rem;
}

.error-content {
  margin-top: 3rem;
}

.error-content h2 {
  border: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1.35;
}

.error-content p {
  margin: 1rem 0;
}

@media (max-width: 30rem) {
  .page {
    padding-top: 3rem;
  }

  .projects {
    margin-top: 3.5rem;
  }

  .project-list {
    padding-left: 1.75rem;
  }

  .project-list > li {
    padding-left: 0.25rem;
  }
}
