:root {
  box-sizing: border-box;
  --background: #ffec09;
  --content-background: #ffff6f;
  --content-text: #fb6c07;
  --outline-shadow:
    1px 1px 1px white,
    -1px -1px 1px white,
    -1px 1px 1px white,
    1px -1px 1px white,
    2px 2px 1px white,
    -2px -2px 1px white,
    -2px 2px 1px white,
    2px -2px 1px white,
    3px 3px 1px white,
    -3px -3px 1px white,
    -3px 3px 1px white,
    3px -3px 1px white;
}

html,
body,
h1,
h2,
p {
  margin: 0;
  padding: 0;
}

html,
body {
  background-color: var(--background);
  width: 100%;
  height: 100%;
  font-family: Tahoma, sans-serif;
}

body {
  container-name: body;
  container-type: inline-size;
}

.background {
  position: fixed;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  z-index: 0;
  gap: 0.5rem;
  height: 100%;
  width: 100%;
}

.bars {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  height: 100%;
  font-size: 0.5rem;
}

.bars__bar {
  --bar-top: color-mix(in srgb, var(--bar-color) 90%, black);
  --bar-middle: color-mix(in srgb, var(--bar-color) 50%, white);
  --bar-bottom: color-mix(in srgb, var(--bar-color) 90%, black);
  width: var(--width);

  transition: opacity 0.5s ease;
  transition-delay: calc(sibling-index() * 30ms);

  height: 100%;
  background: linear-gradient(
    180deg,
    var(--bar-top) 0%,
    var(--bar-middle) 50%,
    var(--bar-bottom) 100%
  );

  @starting-style {
    opacity: 0;
  }
}

#background__boxes {
  display: flex;
  flex-direction: column;

  transition: opacity 5s ease;
  @starting-style {
    opacity: 0;
  }
}

.background__boxes--row {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 0.5em;
}

@keyframes flicker {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.background__box {
  width: 40px;
  height: 30px;
  background-color: #ffff28;
  margin: 1em;
  border-radius: 50px;
  animation: flicker var(--animation-delay) ease alternate infinite;
  corner-shape: squircle;
}

.main {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  gap: 1rem;
}

.hero {
  text-align: center;
  font-size: 2rem;
}

.hero__title {
  font-size: 1.5em;
}

.hero__subtitle {
  font-size: 0.75em;
}

.hero__title,
.hero__subtitle {
  text-shadow: var(--outline-shadow);
}

.socials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  font-size: 1.5rem;
}

.socials__handle {
  font-size: 0.75rem;
  font-weight: 100;
  opacity: 0;
}

.socials__link {
  display: flex;
  align-items: center;
  justify-content: space-between;

  text-decoration: none;
  text-transform: uppercase;

  background: var(--content-background);
  color: var(--content-text);
  padding: 5px 15px;

  transition: transform 0.2s ease-in-out;
  transition-delay: calc(sibling-index() * 70ms);

  &::after {
    content: "open";
    text-transform: lowercase;
    font-weight: 100;
    font-size: 0.85rem;
    display: inline-block;
    opacity: 0;
  }

  &:hover {
    background: black;
    color: white;
    transition: transform 0s ease-in-out;
    transform: scale(1.01) translateX(-10px);

    .socials__handle {
      opacity: 1;
    }

    &::after {
      opacity: 1;
    }
  }

  @starting-style {
    transform: translateX(100%);
  }
}

@container body (min-width: 1025px) {
  .main {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .hero {
    font-size: 4rem;
  }

  .hero__subtitle {
    text-align: center;
  }

  .socials {
    flex: 1;
    max-width: 500px;
    font-size: 2rem;
  }

  .bars {
    font-size: 1rem;
  }

  .background__box {
    width: 80px;
    height: 60px;
  }
}
