@font-face {
  font-family: "General";
  font-display: swap;
  src: url("./Atkinson-Hyperlegible-Regular-102.ttf") format("truetype");
}

:root {
  --color-1: #66023c;
  --color-2: #f8b6b8;
}

html {
  scroll-behavior: smooth;
}
* {
  margin: 0px;
  border: none;
  padding: 0px;
  text-decoration: none;
  box-sizing: border-box;
  transition: height 200ms;
}

body {
  width: 100%;
  font-family: "General";
  font-size: 20px;
  scroll-behavior: smooth;

  > header,
  > main {
    width: 100%;
    overflow-x: hidden;
  }

  > header {
    position: relative;
    min-height: 100svh;
    background-color: #fafafa;
    padding: 4svh 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    z-index: 2;

    > img {
      width: 25svh;
      height: 25svh;
    }

    h1 {
      font-size: clamp(45px, 6dvw, 500px);
      color: var(--color-1);
      text-shadow: 0px 2.5px 2.5px black;
    }

    p {
      font-size: clamp(18px, 1.7dvw, 30px);

      &.sub {
        background-color: var(--color-2);
        border-radius: 30px 10px 30px 10px;
        padding: 10px 20px;
        font-style: italic;
        text-align: center;
      }

      &.desc {
        color: var(--color-1);
        text-align: center;
      }
    }
    > a {
      height: 60px;
      border-radius: 50%;
      background-color: var(--color-2);
    }
  }

  > main {
    background-color: var(--color-1);
    color: white;

    > a {
      position: fixed;
      top: clamp(20px, 4dvw, 50px);
      right: clamp(20px, 4dvw, 50px);
      z-index: 1;
      > img {
        width: min(70px, 15dvw);
        height: min(70px, 15dvw);
        filter: drop-shadow(0px 2.5px 1.25px black);
      }
    }

    > section {
      width: 100%;
      height: max-content;
      min-height: 100svh;
      padding: clamp(20px, 4dvw, 50px);
      padding-bottom: clamp(40px, 4dvw, 50px);
      display: flex;
      flex-direction: column;
      gap: 20px;

      > h2 {
        font-size: min(40px, 4.3dvw);
        line-height: 70px;
        text-transform: uppercase;
        text-decoration: underline;
        text-underline-offset: 10px;
      }

      > p {
        padding: 0px 20px;
        text-align: center;
        font-style: italic;
        opacity: 0.9;
      }

      > div {
        margin: auto 0;
        display: grid;
        gap: 20px;

        > p {
          font-size: clamp(18px, 1.7dvw, 30px);
        }

        > div {
          border-left: 4px solid var(--color-2);
          border-radius: 4px;
          padding-left: 10px;
          display: grid;
          gap: 10px;

          > h3 {
            font-size: min(35px, 8dvw);
          }

          > p {
            font-size: clamp(18px, 1.7dvw, 30px);
          }
        }
      }
    }

    > hr {
      margin: 0 auto;
      width: 70%;
      height: 6px;
      border-radius: 6px;
      background-color: var(--color-2);
    }
  }

  > footer {
    min-height: 100px;
    background-color: #111;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
    color: var(--color-2);

    p {
      text-align: center;
    }

    form {
      width: min(400px, 100%);
      display: grid;
      input {
        height: 48px;
        &[type="email"] {
          border-radius: 15px 15px 0px 0px;
          padding: 0px 15px;
          &:focus {
            outline: none;
          }
        }
        &[type="submit"] {
          border-radius: 0px 0px 15px 15px;
          background-color: var(--color-2);
          color: var(--color-1);
        }
      }
    }
  }
}

@media screen and (max-width: 500px) {
  body {
    > main {
      > section {
        > div {
          grid-template-columns: 1fr;
        }
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
