:root {
  --color-background: #0a0a0a;
  --color-white: #fff;
  --color-sandy: #f3933a;
}

/* fonts */

@font-face {
  font-family: "Karla";
  src: url("../fonts/Karla-Bold.woff2") format("woff2"),
    url("../fonts/Karla-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("../fonts/Karla-Regular.woff2") format("woff2"),
    url("../fonts/Karla-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* general */

body {
  background: var(--color-background);
  color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  font-family: "Karla", sans-serif;
  overflow: visible;
}

.container {
  margin: 0 auto;
  padding: 1rem 1rem;
}

img {
  max-width: 100%;
  max-height: 32rem;
}

section {
  margin-top: 4rem;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  gap: 2rem;
}

h1 {
  font-size: 18px;
}

p {
  font-size: 14px;
}

a {
  margin-top: -10px;
  transform: scale(0.7);
  transition: all 0.2s ease-in-out;
  display: inline-block;
}

a:hover {
  transform: scale(0.8);
}

/* display */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 8rem;
}

.grid :first-child {
  order: 0;
}

.grid :last-child {
  order: 1;
}

/* logo  */

header {
  display: flex;
  flex-direction: column;
  margin-top: -50px;
}

header img:first-child {
  width: 100%;
}

header img:last-child {
  margin-top: 0.5rem;
  margin-left: auto;
  margin-bottom: 20px;
}

/* icon list */

ul {
  display: flex;
  justify-content: start;
  align-items: center;
}

ul.icons li img {
  width: 2rem;
  aspect-ratio: 1/1;
}

.video-container {
  display: flex;
  justify-content: center;
  margin-top: -30%;
}

.video-container video {
  max-width: 110%;
  height: auto;
}

.background-grid {
  position: relative;
}

.background-grid::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/grid.png") no-repeat center center;
  background-size: cover;
  opacity: 0.2;
  z-index: -1;
}

.text-sandy {
  color: var(--color-sandy);
}

/* responsive */
@media (min-width: 768px) {
  body {
    overflow: hidden;
  }

  .container {
    margin: 0 auto;
    padding: 4rem 4rem;
  }

  h1 {
    font-size: 30px;
  }

  p {
    font-size: 23px;
  }

  .video-container {
    display: flex;
    justify-content: center;
    margin-top: 20%;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
