@import url("https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  font-family: "Work Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  color: var(--text);

  --bg: oklch(0.3 0.0176 251.89);
  --text: oklch(0.99 0.001 251.89);
  --accent: oklch(0.7308 0.1402 251.89);
}

body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  font-size: clamp(0.75rem, 0.65rem + 0.5vw, 1.25rem);

  background: var(--bg);
  overflow: hidden;
}

#terminal {
  position: fixed;
  top: 16px;
  left: 16px;
}

#terminal img {
  width: 8em;
}

#terminal video {
  width: 1em;
}

main {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#header {
  display: flex;
  flex-flow: column;
  justify-content: flex-end;
  margin: 1rem;
  padding: 1rem;
}

.underline-wrapper {
  position: relative;
  display: inline-block;
}

.underline-wrapper h1 {
  position: relative;
  font-weight: 500;
  margin: 0;
  z-index: 1;
}

.underline-wrapper svg {
  position: absolute;
  left: -0.35em;
  bottom: 0.1em;
  /* width: 105%; */
  height: 0.8em;
  pointer-events: none;
  z-index: 0;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

path.pen-stroke {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.2s ease;
}

.underline-wrapper:hover path.pen-stroke {
  stroke-dashoffset: 0;
}

#header h5 {
  font-weight: 400;
  font-size: 1em;
  margin-top: -0.2em;
  margin-bottom: 0;

  color: oklch(from var(--text) calc(l * 0.85) c h);
}

#socials {
  list-style: none;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1em;
}

#socials li {
  margin: 0;
  padding: 0;
}

#socials a {
  color: var(--text);
}

#socials a:hover {
  color: var(--accent);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

.underline-wrapper,
#header h5,
#socials {
  opacity: 0;
  transform: translateY(20px);
}

.underline-wrapper {
  animation: fadeInUp 0.5s ease-out 0.1s forwards;
}

#header h5 {
  animation: fadeInUp 0.5s ease-out 0.3s forwards;
}

#socials {
  animation: fadeInUp 0.5s ease-out 0.5s forwards;
}
