@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/rubik-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "League Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/league-script-number-one-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #ffffff;
  --text: #524646;
  --accent: #EC5B38;
  --studio: oklch(58.5% 0.233 277.117);
  --font: "Rubik", system-ui, sans-serif;
  --max-width: 640px;
  --tracking: -0.02em;
  --mix-blend-name: normal;
  --mix-blend-lines: normal;
  --transition: cubic-bezier(0.78, 0, 0.22, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #eeeeee;
    --accent: #EC5B38;
    --mix-blend-name: hard-light;
    --mix-blend-lines: soft-light;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  transition: background 0.4s var(--transition);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: geometricPrecision;
}

body.studio-hover {
  background: lch(from var(--studio) l c h / 8%);
  transition: background 0.4s var(--transition);
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

.handwriting {
  font-family: "League Script", cursive;
  font-weight: 600;
  font-style: normal;
}

main {
  max-width: var(--max-width);
  margin-inline: auto;
  margin-block-end: 4rem;

  > section {
    margin-block-end: 4rem;
  }
}


.hero {
  display: flex;
  flex-direction: column;
  align-items: end;
  padding-inline: 0;
  padding-block-start: 8rem;
  gap: 0.5rem;

  .hero-lines {
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: space-between;
    position: relative;

    .hero-lines-name {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-family: "League Script", cursive;
      font-size: 4rem;
      letter-spacing: calc(var(--tracking) * 0);
      z-index: 1;
      width: calc(100% + 10rem);
      text-align: center;
      color: var(--accent);
      mix-blend-mode: var(--mix-blend-name);
      filter: brightness(1.5) saturate(2);

    }

    span {
      width: 1px;
      height: 100%;
      background: lch(from var(--text) l c h / 20%);
      display: block;
      position: relative;
      transition: background-color 0.1s linear;
      mix-blend-mode: var(--mix-blend-lines);

      &:nth-child(odd) {
        background: lch(from var(--text) l c h / 15%);
      }

      @media (prefers-color-scheme: dark) {

        background: lch(from var(--text) l c h / 100%);

        &:nth-child(odd) {
          background: lch(from var(--text) l c h / 100%);
        }
      }

    }
  }

  .section-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .hero-header {
    p {
      font-size: 1.1rem;
      letter-spacing: var(--tracking);
      font-weight: 500;

      span {
        display: block;

        &:nth-child(2) {
          color: lch(from var(--text) l c h / 50%);
          margin-top: -5px;
          font-weight: 400;
          font-size: 1rem;
        }
      }
    }

    .handwriting {
      font-size: 0.8rem;
      opacity: 1;
    }

  }

  .hero-content {
    max-width: 100%;

    p {
      font-size: 1.2rem;
      line-height: 1.5;
      font-weight: 400;
      letter-spacing: -0.01rem;
      color: lch(from var(--text) l c h / 60%);

      span {
        font-weight: 400;
        color: lch(from var(--text) l c h / 100%);
      }
    }
  }

}


.links {
  min-height: 5rem;

  .section-inner {
    height: 100%;
    width: 100%;

    ul {
      display: flex;
      flex-direction: column;
      gap: 0;
      height: 100%;

      li {
        list-style: none;
      }

      a {
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        position: relative;
        padding-block: 0.5rem;
        font-size: 1.1rem;
        transition: all 0.4s var(--transition);

        span {
          display: block;
          font-weight: 400;

          &:nth-child(2) {
            color: lch(from var(--text) l c h / 50%);
            font-size: 0.9rem;
            margin-top: -4px;
          }
        }

        svg {
          transition: all 0.4s var(--transition);
        }

        &:hover {
          color: var(--accent);

          .handwriting {
            opacity: 1;
          }

          svg {
            transform: rotate(-45deg);
          }
        }

        &.studio-link {
          position: relative;

          .lucide-globe {
            position: absolute;
            left: 0;
            top: 52%;
            transform: translateX(-48px) translateY(-50%);
            width: 32px;
            height: 32px;
            opacity: 0;
            visibility: hidden;
          }

          &:hover {
            color: var(--studio);
            filter: brightness(1.5) saturate(2);
            padding-left: 38px;

            .lucide-globe {
              opacity: 1;
              visibility: visible;
              transform: translateX(0) translateY(-50%);
            }
          }
        }

      }
    }
  }
}


.projects {
  position: relative;

  .section-inner {
    display: flex;
  }

  ul {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  li {
    flex: 1;

    &:last-child {
      border-right: none;
    }
  }

  .project-link {
    display: flex;
    width: 100%;
    overflow: hidden;
    padding-block: 1rem;
    transition: all 0.4s var(--transition);


    .project-text {
      width: 100%;
      display: flex;
      flex-direction: column;
      flex: 1;
      padding-inline-end: 0.75rem;

      h3 {
        font-size: 1.1rem;
        font-weight: 400;
      }

      p {
        color: lch(from var(--text) l c h / 50%);
        font-size: 0.9rem;
        margin-top: -4px;
      }
    }

    svg {
      transition: all 0.4s var(--transition);
    }


    &:hover {
      color: var(--accent);

      .handwriting {
        opacity: 1;
      }

      svg {
        transform: rotate(-45deg);
      }
    }
  }

  .project-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
}


.footer {
  max-width: var(--max-width);
  margin-inline: auto;
  margin-block-end: 4rem;

  p {
    display: flex;
    flex-direction: column;

    span {
      font-size: 1rem;
      font-weight: 600;

      &:last-child {
        font-size: 0.8rem;
        margin-top: -4px;
        font-weight: 400;
      }
    }
  }
}




@media (max-width: 640px) {
  main, footer {
    width: 100vw;
    padding-inline: 2rem;
  }

  .hero {
    .hero-lines {
      .hero-lines-name {
        font-size: 2rem;
        width: calc(100% - 2rem);
        text-align: center;
        line-height: 1.4;
      }
    }
  }

  .hero-header {
    h1 {
      font-size: 2.1rem;
      font-weight: 700;
      letter-spacing: var(--tracking);
      position: relative;
  
      .handwriting {
        display: inline-block;
        font-size: 1.35rem;
        font-weight: 400;
        opacity: .8;
        letter-spacing: calc(var(--tracking) * 3);
        position: absolute;
        top: -16px;
        right: 0;
  
        i {
          font-style: normal;
          /* color: var(--accent); */
        }
      }
    }
  }


  .projects {
    & .project-link {
        & .project-text {
            .handwriting {
                font-weight: 400;
                letter-spacing: var(--tracking);
            }
        }
    }
}
}