:root {
  --bg: hsl(213 61 8);
  --text: hsl(213 31% 93%);
  --muted: hsl(213 17% 80%);
  --line: hsl(213 44% 34%);
  --accent: hsl(213 82% 75%);
  --title: hsl(213 90% 90%);
  --max-width: 920px;
  --max-section-width: 610px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0;
}

/* HEADER */

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.role {
  color: var(--text);
  font-size: 14px;
}

/* INTRO */

section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

h1, h2 {
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--title);
}

h1 {
  max-width: 780px;
  font-size: clamp(40px, 5vw, 50px);
}

h2 {
  font-size: clamp(24px, 3.5vw, 32px);
}

.description {
  max-width: var(--max-section-width);
  margin-top: 24px;
  color: var(--text);
  font-size: 17px;
}

.links {
  margin-top: 12px;
  font-size: 17px;
}
li {
  list-style: inside;
}
a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: 100ms ease;
}
a:hover {
  border-color: var(--accent);
}

.email {
  display: inline-block;
  font-family: Consolas, monospace;
}

/* WORK */

.work {
  padding-top: 28px;
}

.label {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.project {
  display: grid;
  max-width: var(--max-section-width);
  grid-template-columns: 190px 1fr;
  gap: 32px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.project:last-child {
  border-bottom: 0;
}

.project-name {
  font-size: 17px;
  font-weight: 500;
}

.project-description {
  color: var(--muted);
  font-size: 15px;
}

/* FOOTER */

footer {
  margin-top: 45px;
  color: #526276;
  font-size: 12px;
}

@media (max-width: 700px) {
  .page {
    width: min(100% - 32px, var(--max-width));
    padding: 28px 0;
  }

  header {
    display: block;
    padding-bottom: 30px;
  }

  .role {
    margin-top: 3px;
  }

  .intro {
    padding: 48px 0 44px;
  }

  .description {
    font-size: 16px;
  }

  .project {
    display: block;
  }

  .project-name {
    margin-bottom: 4px;
  }

  footer {
    margin-top: 35px;
  }
}