@import url("../fonts/space-grotesk/space-grotesk.css");

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

body {
  font: 400 1rem/1.3 "Space Grotesk", serif;
  color: black;
  padding: 2.2rem 2rem 2rem;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

main {
  display: flex;
  flex-direction: column;
}

h1 {
  font: 400 2rem/1 "Space Grotesk", sans-serif;
}

p.intro {
  font: 600 3rem/1.05 "Space Grotesk", sans-serif;
  max-width: 30em;
  margin-top: 6rem;
  min-height: 3.15rem;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  p.intro {
    order: 2;
    margin-top: 2rem;
  }
}

h2 {
  font: 700 1.5rem "Space Grotesk", sans-serif;
  margin-bottom: 0.75rem;
}

a {
  color: black;
}

.imprint {
  margin-top: 20vh;
}

.imprint address {
  font-style: normal;
}

.imprint p {
  margin-top: 0.5rem;
}

.js-enabled .typewriter {
  opacity: 0;
}

.js-enabled .typewriter.typewriter--active {
  opacity: 1;
}

.js-enabled .typewriter .typewriter-text--shown {
  position: relative;
}

.js-enabled .typewriter .typewriter-cursor {
  position: relative;
  display: inline;
}

.js-enabled .typewriter .typewriter-cursor::after {
  content: "|";
  position: absolute;
  color: black;
  animation: cursor-blink 1s steps(2) infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .js-enabled .typewriter .typewriter-cursor::after {
    animation: none;
  }
}

.js-enabled .typewriter .typewriter-text--hidden {
  visibility: hidden;
}

.links {
  margin-top: 4rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .links {
    order: 1;
    margin-top: 2rem;
    margin-bottom: 3rem;
  }
}

.links a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}

.links a:hover {
  opacity: 0.7;
}

.links a.active {
  font-weight: 600;
  border-bottom: 2px solid currentColor;
}

.home-link {
  color: black;
  text-decoration: none;
}

.home-link:hover {
  opacity: 0.7;
}

.projects {
  margin-top: 6rem;
  max-width: 50em;
}

@media (max-width: 768px) {
  .projects {
    order: 3;
  }
}

.projects h2 {
  font: 700 2rem/1.2 "Space Grotesk", sans-serif;
  margin-bottom: 1.5rem;
}

.projects-intro {
  font: 400 1.25rem/1.4 "Space Grotesk", sans-serif;
  margin-bottom: 1.5rem;
  max-width: 40em;
}

.projects-note {
  font: 400 1.25rem/1.4 "Space Grotesk", sans-serif;
  margin-bottom: 4rem;
  max-width: 40em;
}

.projects-outro {
  font: 400 1rem/1.4 "Space Grotesk", sans-serif;
  margin-top: 2rem;
  opacity: 0.7;
  max-width: 40em;
}

.project {
  margin-bottom: 3.5rem;
}

.project h3 {
  font: 600 1.5rem/1.2 "Space Grotesk", sans-serif;
  margin-bottom: 0.5rem;
}

.project-meta {
  font: 400 0.95rem/1.3 "Space Grotesk", sans-serif;
  opacity: 0.6;
  margin-bottom: 1rem;
}

.project p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.project-tech {
  font: 400 0.95rem/1.5 "Space Grotesk", sans-serif;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.project-link {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
  margin-top: 0.5rem;
  margin-right: 1.5rem;
}

.project-link:hover {
  opacity: 0.7;
}

.about {
  margin-top: 6rem;
  max-width: 50em;
}

@media (max-width: 768px) {
  .about {
    order: 3;
  }
}

.about h2 {
  font: 700 2rem/1.2 "Space Grotesk", sans-serif;
  margin-bottom: 1.5rem;
}

.about h3 {
  font: 600 1.5rem/1.2 "Space Grotesk", sans-serif;
  margin-bottom: 1rem;
  margin-top: 3rem;
}

.about-content {
  display: flex;
  flex-direction: row-reverse;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }
}

.about-image {
  flex-shrink: 0;
  overflow: visible;
    margin-left: 4rem;
}

.about-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .about-image img {
    width: 200px;
    height: 200px;
  }
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.fun-facts ul,
.friends-links ul {
  margin-top: 1rem;
  margin-left: 1.5rem;
  line-height: 1.7;
}

.fun-facts li {
  margin-bottom: 0.5rem;
}

.friends-links p {
  margin-bottom: 1rem;
  opacity: 0.7;
}

.friends-links li {
  margin-bottom: 0.5rem;
}

.friends-links a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}

.friends-links a:hover {
  opacity: 0.7;
}

.js-enabled .particle-image-source {
  display: none;
}

.particle-canvas {
  display: block;
    width: 300px;
    height: 300px;
}

@media (max-width: 768px) {
  .particle-canvas {
    width: 200px;
    height: 200px;
  }

  .about-image {
    margin-left: 0;
  }
}
