@font-face {
  font-family: 'ringift';
  src: url('ringift.ttf');
  font-display: block;
}

@font-face {
  font-family: 'gilroy';
  src: url('Gilroy-Light.ttf');
  font-weight: 200;
  font-display: block;
}

@font-face {
  font-family: 'gilroy';
  src: url('Gilroy-SemiBold.ttf');
  font-weight: 500;
  font-display: block;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  --font-dark: #11243A;
  --font-light: #F3EFEA;
  --font-accent: #867566;
}

body {
  background-color: var(--font-light);
  max-width: 100vw;
}

header {
  color: var(--font-accent);
  background-color: var(--font-light);
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  line-height: 1;
  width: 100vw;

  span {
    display: flex;
    font-family: 'ringift', serif;
    width: 100%;
    justify-content: end;
  }
}

h1 {
  font-size: 2rem;
  font-family: 'ringift', serif;
  font-weight: 400;
}

p {
  font-family: 'gilroy';
  font-weight: 500;
}

a {
  text-decoration: none;
  color: inherit;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

main {
  align-items: center;
  justify-content: center;
  height: calc(100svh - 5rem);
  gap: 7rem;
  background-image: url('./Shape.png');

  h1 {
    font-size: 7rem;
    width: 15ch;
    text-align: center;
    color: var(--font-dark);

    span {
      color: var(--font-accent);
    }
  }

  .pill {
    padding: 1rem 5rem;
    border-radius: 100vw;
    box-shadow: -1rem -1rem 3rem #FFFFFF, 1rem 1rem 3rem #CEC2AD;
    background-color: var(--font-light);

    p {
      text-align: center;
      color: var(--font-dark);

      &:last-of-type {
        font-size: 2rem;
      }
    }

    &:hover {
      outline: 1px solid var(--font-dark);
    }
  }
}

section {
  background-image: url('./Shape.png');

  &.one {
    padding: 4rem;
    /* display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    height: fit-content;
    justify-items: center;
    gap: 3rem; */
    gap: 3rem;
    justify-content: center;

    display: flex;
    flex-wrap: wrap;

    h1 {
      width: 100%;
      grid-column-start: 1;
      grid-column-end: 4;
      text-align: center;
      font-size: 3rem;
    }

    .tile {
      background-color: var(--font-light);
      border-radius: 1rem;
      padding: 2rem 4rem;
      box-shadow: -1rem -1rem 3rem #FFFFFF, 1rem 1rem 3rem #CEC2AD;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2rem;
      /* width: 100%; */
      width: 30%;

      .image-container {
        width: 100%;
        aspect-ratio: 1/1;
        border-radius: 100vw;
        background-color: gray;
        box-shadow: 0 0 1rem #00000080 inset;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;

        img {
          height: 100%;
          width: auto;
        }
      }

      h1 {
        font-size: 2.5rem;
        width: 10ch;
        color: var(--font-dark);
      }

      p {
        font-size: 1.5rem;
        color: var(--font-dark)
      }

      &:nth-of-type(5) {
        box-shadow: none;
        background-color: transparent;
      }
    }
  }

  &.two {
    display: flex;
    gap: 4rem;
    padding: 5rem;

    h1 {
      text-align: center;
    }

    &>div {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .image-container {
      width: 100%;
      aspect-ratio: 1/1;
      border-radius: 100vw;
      background-color: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  &.three {
    padding: 4rem;

    h1 {
      font-size: 4rem;
    }

    p {
      font-size: 1.5rem;
    }

    span {
      font-weight: 200;
    }

    &>div {
      width: 100%;
      gap: 2rem;
    }

    .left {
      gap: 4rem;
      padding: 0 4rem;
      align-items: center;

      .image-container-1 {
        width: 50%;
        aspect-ratio: 1/1;
        background-color: gray;
        border-radius: 100vw;
      }

      .image-container-2 {
        height: 100%;
        aspect-ratio: 2/1;
        background-color: gray;
        border-radius: 1rem;
        overflow: hidden;
      }
    }
  }
}

footer {
  display: flex;
  flex-direction: column;
  background-color: var(--font-dark);
  color: var(--font-light);
  padding: 4rem;
  padding-bottom: 1rem;
  align-items: center;
  gap: 10rem;

  .pill {
    width: fit-content;
    padding: 1rem 5rem;
    border-radius: 100vw;
    box-shadow: -1rem -1rem 3rem #FFFFFF10, 1rem 1rem 3rem #00000050;

    p {
      text-align: center;

      &:last-of-type {
        font-size: 2rem;
      }
    }

    &:hover {
      outline: 1px solid var(--font-light);
    }
  }

  &>div {
    width: 100%;

    p {
      font-size: 2rem;
    }

    &>div {
      width: 100%;
    }
  }

  .logo-container {
    width: fit-content;
    height: fit-content;
  }

  .socials {
    padding: 2rem;
    gap: 2rem;
    padding-left: 0;
    padding-bottom: 0;

    img {
      width: 2rem;
      height: 2rem;
      overflow: hidden;
    }
  }

  .icon-container {
    background-color: var(--font-light);
    padding: 1rem;
    border-radius: 100vw;
    width: 4rem;
    height: 4rem;
  }

  hr {
    color: var(--font-light);
    width: 100%;
  }

  .copyright {
    justify-content: space-between;
    padding-top: 0;
    margin-top: -7rem;

    p {
      font-size: 1rem;
    }
  }
}

.mobile {
  display: none;
}

@media (width < 600px) {

  header {
    padding: 1rem;
  }

  main {
    h1 {
      font-size: 2rem;
    }

    .pill {
      p:last-of-type {
        font-size: 1rem;
      }
    }
  }

  section {
    &.one {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 1rem;
      width: 100%;
      padding: 0 1rem;
      justify-content: center;

      .tile {
        width: 45%;
        padding: 1rem;
        gap: 1rem;

        p {
          font-size: 1rem;
        }

        &:nth-of-type(5) {
          display: none;
        }
      }
    }

    &.two {
      flex-direction: column;
    }

    &.three {
      flex-direction: column;
    }
  }

  footer {
    padding: 1rem;
    padding-top: 3rem;
    gap: 2rem;
    overflow: hidden;

    hr {
      display: none;
    }

    .logo-footer-container {
      flex-direction: column;

      p {
        font-size: 1rem;
      }
    }

    .socials {
      img {
        width: 2rem;
        height: 2rem;
      }
    }

    .pill {
      p:last-of-type {
        font-size: 1rem;
      }
    }

    .logo-container {
      img {
        width: 50vw;
        height: 20rem;
        margin-top: -5rem;
      }
    }

    .icon-container {
      background-color: var(--font-light);
      padding: 0.5rem;
      width: 3rem;
      height: 3rem;
    }

    .copyright {
      flex-direction: column;
      margin-top: 1rem;
    }
  }

  .mobile {
    display: flex;
  }

  .desktop {
    display: none;
  }
}