/* karla-latin-wght-normal */
@font-face {
  font-family: 'Karla Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/karla:vf@latest/latin-wght-normal.woff2) format('woff2-variations');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* inconsolata-latin-wght-normal */
@font-face {
  font-family: 'Inconsolata Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/inconsolata:vf@latest/latin-wght-normal.woff2)
    format('woff2-variations');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* CSS reset */
* {
  margin: unset;
  padding: unset;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

fieldset {
  border: 0;
}
/* CSS reset */

:root {
  /* colors */
  --primary-color: #f26835;
  --black-color: #141517;

  /* fonts */
  --font-sans: 'Karla Variable', sans-serif;
  --font-mono: 'Inconsolata Variable', monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  background-color: var(--black-color);
  color: var(--black-color);
  margin: 1.5rem;
}

.tag {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 9999px;
  background-color: var(--primary-color);
}
.title {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 0.5357rem + 1.7857vw, 2.25rem);
}
.text {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

#header {
  position: sticky;
  top: 0;
  height: 0;
  z-index: 10;

  & #nav-bar {
    display: flex;
    justify-content: center;
    padding-top: 24px;
  }

  #nav-bar ul {
    width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 40px;
    height: 50px;
    background-color: #faebd7;
    border-radius: 9999px;
    list-style: none;

    li:nth-child(1) {
      order: 3;
    }
    li:nth-child(2) {
      order: 1;
    }
    li:nth-child(3) {
      order: 2;
    }
    li:nth-child(4) {
      order: 4;
    }
    li:nth-child(5) {
      order: 5;
    }
  }

  a {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    padding: 5px 10px;
    border-radius: 9999px;
    font-weight: 400;
    text-decoration: none;
    color: var(--black-color);
    transition: 0.3s ease;
  }

  a:hover:not(.link-logo) {
    background-color: var(--primary-color);
  }

  .logo {
    order: 2;
    width: 80px;
    margin: 0 20px;
  }
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  row-gap: 20px;
  padding: 2.5rem;
  border-radius: 1.5rem;
  min-height: calc(100dvh - 24px * 2);
  background-image: url(https://pub-feb28ae3112c45d181cba7f03400ea17.r2.dev/BlockP101_2048x2048.webp);
  background-repeat: no-repeat;
  object-fit: cover;
  background-size: cover;
  background-position: center;

  h2 {
    font-size: 8rem;
    font-family: var(--font-sans);
    font-weight: 800;
    color: var(--primary-color);
  }
  .caption {
    width: 100%;
    align-self: flex-start;
  }
  & svg {
    fill: var(--primary-color);
    width: 40px;
  }
  & p {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.75rem;
    width: 200px;
  }
}

.marquee {
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 270px;
  & span {
    color: #fff;
    white-space: nowrap;
    width: max-content;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transform: translateX(0);
    animation: a-text-scroll 25s linear infinite;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 6rem;
  }
}

.design {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-template-areas:
    'left right'
    'left down';
  border-radius: 1.5rem;
  height: 80vh;
  & .left {
    background-image: url(https://pub-feb28ae3112c45d181cba7f03400ea17.r2.dev/fea163b18b694b0f9eb87dc4b083a289.jpg);
    border-radius: 1.5rem 0 0 1.5rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    grid-area: left;
  }
  & .right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    grid-area: right;
    padding: 60px;
    border-radius: 0 1.5rem 1.5rem 1.5rem;
    background-color: #aecacd;
    z-index: 1;
  }
  & .down {
    grid-area: down;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-template-areas:
      'down-left down-left down-right'
      'down-left down-left down-right'
      'down-left down-left down-right';
  }
  & .down-left {
    grid-area: down-left;
    background-image: url(https://pub-feb28ae3112c45d181cba7f03400ea17.r2.dev/33082649c6dd4372b09fc010dddb47c0.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left center;
    margin-top: -20px;
  }
  & .down-right {
    grid-area: down-right;
    background-image: url(https://pub-feb28ae3112c45d181cba7f03400ea17.r2.dev/d34174c67f5b4b94a93c6b76505f6844.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: -20px;
    border-radius: 0 0 1.5rem 0;
  }
}

.light {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-radius: 1.5rem;
  margin-top: 1.5rem;
  min-height: 500px;

  .light-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    row-gap: 20px;
    padding: 60px;
    border-radius: 1.5rem 0 0 1.5rem;
    background-color: var(--primary-color);
    .tag {
      background-color: #faebd7;
    }
  }
}
.light-right iframe {
  width: 100%;
  height: 100%;
  border-radius: 0 1.5rem 1.5rem 0;
}

.sound {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-template-areas:
    'sound-left-1 sound-right sound-right'
    'sound-left-2 sound-right sound-right';
  gap: 24px;
  margin-top: 1.5rem;
  border-radius: 1.5rem;

  & .sound-left-1 {
    grid-area: sound-left-1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    row-gap: 20px;
    height: 400px;
    border-radius: 1.5rem;
    padding: 60px;
    background-color: #aecacd;
  }
  .sound-left-2 {
    grid-area: sound-left-2;
    height: 400px;
    border-radius: 1.5rem;
    background-image: url(https://pub-feb28ae3112c45d181cba7f03400ea17.r2.dev/6d58ff66e2d0464fadf775f47b6a31e4.webp);
    background-position: bottom center;
    background-size: cover;
    background-repeat: no-repeat;
  }
  .sound-right {
    grid-area: sound-right;
    height: auto;
    border-radius: 1.5rem;
    background-image: url(https://pub-feb28ae3112c45d181cba7f03400ea17.r2.dev/a7999e28e71741e8ba463f2b7af80bbd.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }
}

.pre-order {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 500px;
}

.pre-order {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1.5rem;

  & .pre-order-left {
    width: auto;
    border-radius: 1.5rem 0 0 1.5rem;
    background-image: url(https://pub-feb28ae3112c45d181cba7f03400ea17.r2.dev/b72b9942fc7b49debe199420dec62e16.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .pre-order-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    row-gap: 20px;
    border-radius: 0 1.5rem 1.5rem 0;
    padding: 60px;
    background-color: var(--primary-color);
    .tag {
      background-color: #faebd7;
    }
    #email {
      font-family: var(--font-mono);
      font-size: 0.875rem;
      font-weight: 500;
      padding: 10px 20px;
      margin-bottom: 20px;
      border-radius: 9999px;
      border: none;
    }
    #submit {
      font-family: var(--font-mono);
      font-size: 0.875rem;
      font-weight: 500;
      padding: 10px 20px;
      border-radius: 9999px;
      cursor: pointer;
      background-color: transparent;
      border: 1px solid;
      transition: transform 0.3s ease;
    }
    #submit:hover {
      transform: translateY(-5px);
      animation-duration: 0.3s;
    }
  }
}

.footer {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  height: 20vh;
  background-color: #141517;
  a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
  }
}

/* Responsive */
@media screen and (width < 640px) {
  .text {
    display: none;
  }
  #header {
    display: none;
  }
  .hero {
    min-height: 60dvh;
    padding: 20px;
    background-position: top;
    h2 {
      font-size: 4.5rem;
    }
  }
  .marquee {
    height: 150px;
  }
  .design {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      'left'
      'right';
    height: unset;
    .left {
      min-height: 450px;
      border-radius: 1.5rem 1.5rem 0 0;
    }
    .right {
      row-gap: 20px;
      min-height: 50px;
      padding: 20px;
      border-radius: 0 0 1.5rem 1.5rem;
    }
    .down {
      display: none;
    }
  }

  .light {
    grid-template-columns: 1fr;
    grid-template-areas:
      'light-right'
      'light-left';
    min-height: unset;
    .light-right {
      grid-area: light-right;
      iframe {
        min-height: 450px;
        border-radius: 1.5rem 1.5rem 0 0;
      }
    }
    .light-left {
      grid-area: light-left;
      row-gap: 20px;
      border-radius: 0 0 1.5rem 1.5rem;
      padding: 20px;
    }
  }

  .sound {
    grid-template-columns: 1fr;
    grid-template-rows: unset;
    grid-template-areas:
      'sound-left-2'
      'sound-left-1';
    gap: unset;
    .sound-left-1 {
      border-radius: 0 0 1.5rem 1.5rem;
      padding: 20px;
      height: unset;
    }
    .sound-left-2 {
      border-radius: 1.5rem 1.5rem 0 0;
    }
    .sound-right {
      display: none;
    }
  }

  .pre-order {
    grid-template-columns: 1fr;
    .pre-order-left {
      height: 400px;
      border-radius: 1.5rem 1.5rem 0 0;
    }
    .pre-order-right {
      height: auto;
      padding: 20px;
      border-radius: 0 0 1.5rem 1.5rem;
      form {
        display: flex;
        flex-direction: column;
      }
    }
  }
  .footer {
    text-align: center;
  }
}

@media screen and (width < 768px) {
  .design {
    .right {
      justify-content: center;
      row-gap: 20px;
      padding: 20px;
    }
  }
  .light {
    .light-left {
      padding: 20px;
    }
  }
  .sound {
    grid-template-columns: 1fr;
    .sound-left-1 {
      padding: 20px;
    }
  }
  .pre-order {
    .pre-order-right {
      padding: 20px;
    }
  }
}

@keyframes a-text-scroll {
  100% {
    transform: translate3d(-100%, 0, 0);
  }
  0% {
    transform: translate3d(0%, 0, 0);
  }
}
