:root {
  --bg: #282c34;
  --fg: #eee;
  --accent: #ef8f00;
  --heading: #38c9e4;
  --muted: #84878e;
  --frame: #5f6167;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  max-width: 80ch;
  margin: 0 auto;
  padding: 1em 1em 1em;
}

.hero {
  display: block;
  width: 100%;
  height: auto;
}

h1 {
  margin: 0 0 0 -0.75%;
  color: var(--accent);
  font-size: clamp(32px, calc(32px + 64 * (100vw - 320px) / 480), 96px);
  font-weight: normal;
  line-height: 1.1;
}

h2 {
  margin: 0;
  color: var(--heading);
  font-size: 2em;
  font-weight: normal;
  text-align: center;
}

.tagline {
  margin: 4em 0 0;
  font-size: 2em;
  text-align: center;
}

.contact {
  margin: 1em 0 0;
  font-size: 1.5em;
  text-align: center;
}

.contact a {
  color: var(--heading);
  text-decoration: none;
}

main {
  margin: 4em 0 10em;
  font-size: 1.25rem;
}

main p {
  margin: 0 0 1em;
}

nav {
  display: flex;
  flex-wrap: wrap;
}

nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  text-align: center;
}

.projects {
  justify-content: space-around;
  gap: 1em;
  margin: 4em 0 10em;
}

.projects img {
  height: 160px;
  border: 3px solid var(--frame);
  border-radius: 10px;
}

.projects .title {
  margin-top: 1em;
  font-size: 1.25rem;
}

.projects .sub {
  font-size: 0.8rem;
}

.social {
  justify-content: center;
  gap: 1em;
  margin-top: 2em;
}

.social svg {
  width: auto;
  height: 2em;
}

.social span {
  margin-top: 0.5em;
  font-size: 0.8rem;
}

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