@font-face {
  font-family: "PPFormula-CondensedBlack";
  src: url("/assets/Fonts/PPFormula-CondensedBlack.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PPFormula-CondensedBlackItalic";
  src: url("/assets/Fonts/PPFormula-CondensedBlackItalic.woff2") format("woff2");
  font-weight: normal;
  font-display: swap;
}
@font-face {
  font-family: "PPFormula-Extrabold";
  src: url("/assets/Fonts/PPFormula-Extrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PPFormula-Light";
  src: url("/assets/Fonts/PPFormula-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PPFormula-Medium";
  src: url("/assets/Fonts/PPFormula-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

*,
::after,
::before {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%; /* Safari / iOS */
  -moz-text-size-adjust: 100%; /* Firefox */
  -ms-text-size-adjust: 100%; /* IE */
  text-size-adjust: 100%;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  -webkit-font-smoothing: subpixel-antialiased;

  @media (resolution >= 1.5dppx) {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

h1 {
  font-family: "PPFormula-CondensedBlackItalic";
  font-size: 3.375rem;
  line-height: 3.75rem;
}

h2 {
  font-family: "PPFormula-Extrabold";
  font-size: 0.875rem;
  padding-top: 1.5rem;
}

h3 {
  font-family: "PPFormula-Medium";
  font-size: 0.75rem;
  padding-top: 1.5rem;
}

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

input {
  all: unset;
  border: 1px solid black;
  border-radius: 0;
  padding-inline: 0.5rem;
}

button {
  all: unset;
}

input::placeholder {
  font-size: 10px;
}

header {
  padding: 1.5rem;
}

.main-content {
  display: grid;
  flex: 1;

  @media (min-width: 1024px) {
    min-height: 0;
    grid-template-areas:
      "hero hero hero cta"
      "slider slider slider collab";
    grid-template-rows: auto 1fr;
    align-items: center;
    align-content: stretch;
  }
}

.logo {
  height: 2rem;
}

.logo img {
  height: 100%;
}

.hero {
  margin: 1.5rem;
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
  height: fit-content;

  @media (min-width: 1024px) {
    grid-area: hero;
  }
}

.subtitle {
  font-family: "PPFormula-Medium";
  font-size: 0.75rem;
  max-width: 35ch;
  text-wrap: balance;
}

.marquee-wrapper {
  padding-block: 3rem 2rem;
  height: 21.5rem;
  overflow: hidden;
  cursor: grab;
  @media (min-width: 1024px) {
    grid-area: slider;
    height: 100%;
    align-self: stretch;
    min-height: 0;
  }
}

.marquee-wrapper:active {
  cursor: grabbing;
}

.marquee {
  height: 100%;
  display: flex;
}

.marquee-item,
.marquee-item img {
  height: 100%;
  width: auto;
}

.soon {
  margin: auto;
  border: 1px solid black;
  width: fit-content;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  height: fit-content;

  @media (min-width: 1024px) {
    grid-area: cta;
    margin: 0 1.5rem;
  }
}

.yellow-box {
  background: #f6ff00;
  font-family: "PPFormula-Light";
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
}

.yellow-box p {
  max-width: 15rem;
  text-align: center;
  text-wrap: balance;
}

.yellow-box em {
  font-family: "PPFormula-Medium";
  font-style: normal;
}

.black-box {
  background: #000;
  color: #fff;
  font-family: "PPFormula-Extrabold";
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: 0.5rem;
}

.black-box a {
  max-width: 20ch;
  display: flex;
  text-align: center;
  text-wrap: balance;
}

.collab {
  font-size: 0.875rem !important;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  row-gap: 0.75rem;

  @media (min-width: 1024px) {
    grid-area: collab;
    padding: 3rem 1.5rem 2rem;
    align-self: flex-start;
    height: 100%;
    min-height: 0;
  }
}

.collab p {
  font-family: "PPFormula-Medium";
  max-width: 30ch;
  text-wrap: balance;
}

.clients {
  font-family: "PPFormula-light";
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  column-gap: 1rem;

  @media (min-width: 1024px) {
    max-height: 100%;
    min-height: 0;
  }
}

.clients span {
  font-size: 0.875rem !important;
}

footer {
  display: flex;
  flex-direction: column;
  font-family: "PPFormula-Light";
  font-size: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid black;
  width: 100%;
  gap: 0.25rem;

  @media (min-width: 1024px) {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.newsletter {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
.newsletter-form button {
  background: #000;
  color: #fff;
  position: absolute;
  right: 0;
  height: 100%;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  cursor: pointer;
}

.success-message,
.fail-message {
  display: none;
  visibility: hidden;
}

.link {
  width: fit-content;
  display: inline-block;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left 100% bottom 0;
  background-size: 0 1px;
  transition: background-size 0.3s ease-out;
}

.link:hover {
  background-position: right 100% bottom 0;
  background-size: 100% 1px;
}

.link[data-reverse="true"] {
  background-position: right 100% bottom 0;
  background-size: 100% 1px;
}

.link[data-reverse="true"]:hover {
  background-position: left 100% bottom 0;
  background-size: 0 1px;
}

/**/
/**/
/**/
/* Legal information */

.legal {
  margin: 1.5rem;
  max-width: 75ch;
}

.legal p,
.legal ul {
  font-family: "PPFormula-Light";
  margin-top: 1rem;
  font-size: 0.75rem;
}

ul {
  margin-left: 1rem;
}

.legal-title {
  margin-bottom: 1.5rem;
}
