@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600&display=swap");

:root {
  color-scheme: dark;
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #333333;
  color: #f2f2ef;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  position: relative;
  overflow: hidden;
  background: #333333;
}

main {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 936px);
  min-height: 100vh;
  margin: 0 auto;
  padding-top: clamp(120px, 30vh, 215px);
}

.swish-ghost {
  position: fixed;
  z-index: 0;
  top: 50%;
  right: -11vw;
  display: block;
  width: min(74vw, 1050px);
  max-width: none;
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
  transform: translateY(-49%) rotate(-4deg);
  filter: saturate(0.95);
}

.name {
  margin: 0 0 24px;
  font-size: 1rem;
  font-weight: 500;
}

h1 {
  margin: 0;
  color: #ff8a3d;
  font-size: clamp(3.25rem, 7vw, 5.275rem);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.intro {
  max-width: 360px;
  margin: 30px 0 0;
  color: #97989d;
  font-size: 1.0625rem;
  line-height: 1.6;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}

nav a {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #97989d;
  border-radius: 6px;
  transition: color 150ms ease, transform 150ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: #ff8a3d;
  transform: translateY(-2px);
}

nav a:focus-visible {
  outline: 2px solid #ff8a3d;
  outline-offset: 5px;
}

nav svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: currentColor;
}

@media (max-width: 600px) {
  .swish-ghost {
    right: -52vw;
    width: 125vw;
  }

  main {
    width: min(100% - 40px, 460px);
    padding-top: 22vh;
  }

  .name {
    margin-bottom: 22px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .intro {
    margin-top: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  nav a {
    transition: none;
  }
}
