@font-face {
  font-family: "Exo 2";
  src: url("../assets/fonts/Exo_2/Exo2-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Exo 2";
  src: url("../assets/fonts/Exo_2/Exo2-Italic-VariableFont_wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Michroma";
  src: url("../assets/fonts/Michroma/Michroma-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --background: #00010c;
  --dull-blue: #6d9eeb;
  --contrast-blue: #269ddf;
  --text: #f9f9f9;
  --content-width: 1456px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: "Exo 2", sans-serif;
  font-size: 1.25rem;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero {
  display: flex;
  padding: clamp(2.5rem, 4vw, 4.5rem) 1.5rem clamp(5rem, 9vw, 8.5rem);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__logo {
  width: min(72rem, calc(100vw - clamp(4rem, 14vw, 16rem)));
  max-width: 100%;
  height: clamp(17rem, 20vw, 22rem);
  margin-bottom: clamp(3rem, 5vw, 5rem);
  object-fit: cover;
  object-position: center;
}

.hero__tagline {
  margin-bottom: 1.75rem;
  font-family: "Michroma", sans-serif;
  font-size: clamp(1.35rem, 2.25vw, 2.15rem);
  font-weight: 400;
  line-height: 1.4;
}

.hero__dedication {
  margin-bottom: 0;
  color: var(--dull-blue);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-style: italic;
}

.section {
  width: min(var(--content-width), calc(100% - 3rem));
  margin-inline: auto;
}

.section__heading {
  margin-bottom: clamp(4.5rem, 8vw, 7.5rem);
  text-align: center;
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 400;
  line-height: 1.2;
}

.principles {
  padding-bottom: clamp(9rem, 14vw, 14rem);
}

.principles__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(4rem, 7vw, 7.5rem) clamp(4rem, 8vw, 8rem);
}

.principle {
  display: grid;
  grid-template-columns: minmax(12rem, 20.75rem) minmax(13rem, 1fr);
  gap: clamp(2rem, 3.5vw, 3rem);
  align-items: start;
}

.principle__image-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #010512;
}

.principle__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principle__image--column {
  object-fit: cover;
  object-position: center;
}

.principle__content {
  padding-top: 1rem;
}

.principle h3 {
  margin-bottom: 2.25rem;
  color: var(--contrast-blue);
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
}

.principle p {
  max-width: 18rem;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  font-weight: 500;
  line-height: 1.55;
}

.products {
  padding-bottom: clamp(7rem, 11vw, 10rem);
  text-align: center;
}

.products .section__heading {
  margin-bottom: clamp(4rem, 7vw, 6.5rem);
}

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product__image {
  width: min(28.5rem, 82vw);
  height: auto;
  margin-bottom: 1.5rem;
}

.product h3,
.contact h2 {
  font-family: "Michroma", sans-serif;
  font-weight: 400;
}

.product h3 {
  margin-bottom: 2rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.product p {
  max-width: 31rem;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 500;
  line-height: 1.55;
}

.contact {
  padding: 0 1.5rem clamp(3.5rem, 6vw, 5.5rem);
  text-align: center;
}

.contact h2 {
  margin-bottom: 1.5rem;
  color: var(--dull-blue);
  font-size: clamp(1.5rem, 2vw, 1.9rem);
}

.contact a {
  color: var(--text);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--contrast-blue);
}

.error-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 2rem 1.5rem;
  place-items: center;
  text-align: center;
}

.error-page__content {
  width: min(100%, 38rem);
}

.error-page h1 {
  margin-bottom: 1.25rem;
  color: var(--contrast-blue);
  font-family: "Michroma", sans-serif;
  font-size: clamp(3.75rem, 11vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
}

.error-page h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
}

.error-page p {
  max-width: 31rem;
  margin: 0 auto 2.5rem;
  color: var(--text);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
}

.error-page__button {
  display: inline-block;
  padding: 0.8rem 1.65rem;
  border: 2px solid var(--contrast-blue);
  border-radius: 0.25rem;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.error-page__button:hover,
.error-page__button:focus-visible {
  background: var(--contrast-blue);
  color: var(--background);
}

@media (max-width: 1200px) {
  .principles__grid {
    grid-template-columns: 1fr;
    width: min(44rem, 100%);
    margin-inline: auto;
  }

  .principle {
    grid-template-columns: minmax(13rem, 19rem) minmax(0, 1fr);
  }

  .principle p {
    max-width: 22rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .hero {
    padding-bottom: 6.5rem;
  }

  .hero__logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 0;
    margin-bottom: 4.5rem;
    object-fit: contain;
  }

  .section {
    width: min(100% - 2rem, var(--content-width));
  }

  .section__heading {
    margin-bottom: 3.5rem;
  }

  .principles__grid {
    gap: 5rem;
  }

  .principle {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .principle__image-wrap {
    width: min(20rem, 100%);
    margin-inline: auto;
  }

  .principle__content {
    padding-top: 0;
  }

  .principle h3 {
    margin-bottom: 1.25rem;
  }

  .principle p {
    max-width: 28rem;
    margin-inline: auto;
  }

  .products {
    padding-bottom: 7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .error-page__button {
    transition: none;
  }
}
