@font-face {
  font-family: "Overused Grotesk";
  src:
    url("../fonts/overused-grotesk/OverusedGrotesk-VF.woff2") format("woff2 supports variations"),
    url("../fonts/overused-grotesk/OverusedGrotesk-VF.woff2") format("woff2-variations");
  font-weight: 300 350 500 600;
}

@property --pos-x {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 28%;
}

@property --pos-y {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 22%;
}

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

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

:root {
  --emblem-width: 140px;
  --base-font-size: 12px;
}

body {
  background: #05080a;
  font-family:
    "Overused Grotesk",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: var(--base-font-size);
  font-weight: 500;
  line-height: 1.47;
  color: #fff;
}

p {
  letter-spacing: 6%;
  margin: 0;
  text-transform: uppercase;
}

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

.wrap {
  background-image: radial-gradient(circle farthest-corner at var(--pos-x) var(--pos-y), #bac7c8 0%, #829598 40%, #384c51 75%, #0a1114 95%, #000000 120%);

  animation: lightDrift 3s ease-in-out infinite alternate;

  height: 100dvh;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.wrap::after {
  content: "";
  position: fixed;
  inset: 0;
  /* Changed to 'circle' here as well.
    Expanded the transparent area so it doesn't crowd the center light.
  */
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.85) 120%);
  pointer-events: none;
  z-index: 1;
}

.container {
  padding: 60px 40px;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 2;
}

.grid {
  display: grid;
  grid-template-columns: auto var(--emblem-width) auto;
  grid-template-rows: 1fr auto 1fr;
  height: 100%;
}

.top-row {
  align-items: flex-start;
  display: flex;
  grid-column: 1 / -1;
  grid-row: 1;
  justify-content: center;

  p {
    transform: translateY(calc(var(--emblem-width) / 5));
  }
}

.middle-row {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bottom-row {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  grid-column: 1 / -1;
  grid-row: 3;
  justify-content: flex-end;
}

.emblem {
  width: var(--emblem-width);
}

.logo {
  --logo-width: 140px;
  width: var(--logo-width);
}

.partner,
.contact,
.address {
  text-align: center;
  a {
    &:hover {
      text-decoration: underline;
    }
  }
}

@keyframes lightDrift {
  0% {
    --pos-x: 28%;
    --pos-y: 22%;
  }
  100% {
    --pos-x: 52%;
    --pos-y: 35%;
  }
}

@media (min-width: 48rem) {
  :root {
    --base-font-size: 14px;
    --emblem-width: 168px;
  }

  .container {
    padding: 75px;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .logo {
    --logo-width: 168px;
  }

  .bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .partner,
  .contact,
  .address {
    align-self: end;
  }

  .partner {
    text-align: left;
  }

  .contact {
    text-align: center;
  }

  .address {
    text-align: right;
  }
}

@media (min-width: 64rem) {
  :root {
    --base-font-size: 16px;
  }

  .wrap {
    background-position: center center;
    background-size: cover;
  }
}
