/* RESETS */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  line-height: 1.5;
  font-size: 1.6rem;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif; /* fallback */
  font-family: var(--font-recursive);
  color: var(--color-bgsdark);
  overflow-x: clip;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--color-secondary);
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

img,
picture {
  max-width: 100%;
  display: block;
}

textarea:not([rows]) {
  min-height: 10em;
}

/* RESETS END */

/* GLOBAL/ROOT STYLES */

:root {
  --color-primary: #ffc413;
  --color-secondary: #091e3b;
  --color-bgsdark: #333333;
  --color-subtext: #757575;
  --color-secondaryfade: #3a4b62;
  --color-bgs: #ececec;
  --font-outfit: "Outfit";
  --font-recursive: "Recursive";
}

html {
  font-size: 62.5%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-outfit);
  margin: 0;
  padding: 0;
  color: var(--color-bgsdark);
}

h1 {
  font-size: clamp(4.8rem, 5vw, 7.2rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(4.2rem, 4vw, 6.4rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(3.6rem, 3vw, 5.6rem);
}

h4 {
  font-size: clamp(3.3rem, 2vw, 4.8rem);
}

h5 {
  font-size: clamp(3rem, 1vw, 4rem);
}

h6 {
  font-size: clamp(2.4rem, 1vw, 3.6rem);
}

p {
  font-size: clamp(1.2rem, 1vw, 1.6rem);
  color: var(--color-subtext);
}

a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

a:hover {
  color: var(--color-primary);
}

section {
  z-index: 2;
}

section:nth-child(even) {
  background-color: white;
}

main {
  background-color: var(--color-bgs);
}

.container {
  max-width: 1200px;
  padding: 0 calc(2.5rem / 2);
  margin: auto;
}

::selection {
  background-color: var(--color-secondary);
  color: white;
}

.pri-button {
  padding: 1.2rem 2rem;
  background: var(--color-primary);
  border-radius: 0;
  display: inline-block;
  cursor: pointer;
  border: none;
  font-family: var(--font-recursive);
  font-size: 1.2rem;
  color: white;
  transition: 0.2s ease;
  font-weight: 700;
}

.pri-button:hover {
  background: var(--color-bgsdark);
  color: white;
  transform: scale(1.02);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin: auto;
  padding: 0 calc(2.5rem / 2);
  align-items: center;
  justify-content: center;
}

.flex-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.flex-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.gradient-text {
  background: #ffd000;
  background: linear-gradient(90deg, #ffd000 0%, #ff9736 50%, #ff6338 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 800% auto;
  animation: textShine 4s ease-in-out infinite alternate;
  padding-bottom: 2rem;
  margin-bottom: -2rem;
}

.gradient-background {
  background: #999999;
  background: linear-gradient(
    -45deg,
    rgba(153, 153, 153, 1) 0%,
    rgba(51, 51, 51, 1) 100%
  );
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  -webkit-text-fill-color: white;
  background-size: 500% auto;
  animation: textShine 4s ease-in-out infinite alternate;
}

.gradient-png {
  width: 800px;
  height: 800px;
  background: rgba(51, 51, 51, 0);
  background: linear-gradient(45deg, rgba(0, 0, 0, 0) 0%, rgb(51, 51, 51) 100%);
  -webkit-mask-image: url("/assets/images/jumble.png");
  mask-image: url("/assets/images/jumble.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: textShine 4s ease-in-out infinite alternate;
  background-size: 1000% auto;
}

@keyframes textShine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* GLOBAL/ROOT STYLES END */

/* HEADER/FOOTER/NAV STYLES */

header,
footer {
  background-color: var(--color-secondary);
  color: white;
  z-index: 999;
  ::selection {
    background-color: var(--color-bgs);
    color: var(--color-secondary);
  }
  .pri-button {
    background-color: var(--color-secondaryfade);
    color: var(--color-bgs);
  }
  .pri-button:hover {
    background-color: var(--color-primary);
  }
}

header {
  position: sticky;
  top: 0;
  padding: 2rem 2.5rem;
}

footer {
  display: flex;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
  padding: 3rem 2.5rem;
  nav {
    margin: 2rem;
  }
}

.footer-cont {
  color: white;
  font-size: 1.2rem;
  max-width: 1200px;
  display: flex;
  flex-direction: row;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-left {
  flex: 0 0 33%;
  p {
    margin: 0;
    color: white;
    font-size: 1.2rem;
  }
  .footer-left-middle-text {
    margin: 0.5rem 0;
  }
}

.footer-right {
  flex: 0 0 66%;
  form {
    display: flex;
    margin: 1rem 0;
    input {
      color: white;
      width: 100%;
      padding: 1.5rem;
      background-color: transparent;
      border: 2px solid var(--color-secondaryfade);
      transition: 0.2s ease;
      font-size: 1.2rem;
      font-family: var(--font-recursive);
    }
    input:hover {
      border-color: var(--color-primary);
    }
    input:focus-visible {
      border: 2px solid white;
      border-radius: 0;
      outline: 0;
    }
    input::placeholder {
      opacity: 1;
      color: var(--color-secondaryfade);
      font-weight: 700;
    }
  }
}

nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  .nav-logo {
    img {
      height: 2.4rem;
      transition: opacity 0.2s ease;
    }
    img:hover {
      opacity: 70%;
    }
  }
  a {
    margin: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
  }
}

/* HEADER/FOOTER/NAV STYLES END */
