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

:root {
  --base: #1e1e2e;
  --surface: #313244;
  --surface1: #45475a;
  --text-color: #cdd6f4;
  --accent: #b4befe;
  --blue: #89b4fa;
  --purple: #cba6f7;
}

@keyframes cursor-blink {
  0% {
    opacity: 0;
  }
}

a:hover {
  cursor: pointer;
  color: #ffffff;
}

a:focus {
  border: 2px solid var(--accent);
}

img {
  max-width: 100%;
}

body {
  padding: 0;
  margin: 0;
  background-color: var(--base);
  color: var(--text-color);
  font-family: "JetBrains Mono", monospace;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

nav {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: center;
}

nav h1 {
  margin-top: 0;
  color: var(--accent);
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 2rem;
}

nav ul li {
  display: inline;
}

nav a {
  all: unset;
}

#blinking-cursor {
  animation: cursor-blink 2s steps(2) infinite;
}

section {
  padding: 1rem;
  text-align: center;
  display: flex;
  gap: 2em;
  justify-content: center;
  align-content: center;
}

#introduction {
  background-color: var(--surface);
}

#project-grid a:link {
  color: var(--blue);
}

#project-grid a:visited {
  color: var(--purple);
}

section a:link {
  color: var(--blue);
}

section a:visited {
  color: var(--purple);
}

section div {
  text-align: left;
  max-width: 650px;
}

section div blockquote {
  background-color: var(--surface1);
  border: 2px solid var(--accent);
  padding: 1em;
  padding-top: 1em;
  margin: 0;
}

section ul {
  margin: 0;
}

section div blockquote p {
  margin-top: 0;
}

section a,
section svg,
section a svg {
  fill: var(--text-color);
  max-height: 2em;
  min-width: 1.5em;
}

#resume,
#links {
  font-size: 1.5em;
}

#lists {
  display: flex;
  flex-direction: row;
  text-align: left;
  flex-wrap: wrap;
  font-size: 1em;
}

#lists figure {
  margin: 1em;
}

#links div {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 650px;
}

.header {
  display: flex;
  flex-direction: column;
}

#project-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 2em;
  margin-bottom: 2em;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  background-color: #313244;
  border-radius: 4px;
  padding: 1em;
  max-width: max(25vw, 300px);
  text-align: center;
}

.card img {
  border-radius: 8px;
}

.card p {
  padding: 4px;
  background-color: #45475a;
  border-radius: 4px;
}

.card a:link {
  color: var(--blue);
}

.card a:visited {
  color: var(--purple);
}

body > h2 {
  margin-left: auto;
  margin-right: auto;
}
