/* Self-hosted fonts — no external requests. Both are SIL Open Font
   License 1.1; the template loaded them through next/font/google. */

@font-face {
  font-family: "WDXL Lubrifont SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/wdxl-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "WDXL Lubrifont SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/wdxl-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0f0f0f;
  --fg: #f2f0e6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
}

.navbar {
  position: fixed;
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.navbar-items {
  display: flex;
  gap: clamp(1rem, 4vw, 2rem);
}

.navbar-item {
  padding: 1.5rem;
}

.navbar-item a {
  text-decoration: none;
  color: var(--fg);
  font-family: "Instrument Sans", sans-serif;
  font-weight: 500;
  letter-spacing: -2%;
}

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  background-color: var(--bg);
  color: var(--fg);
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  overflow: hidden;
  padding: 2.5rem;
}

.hero.genesis {
  background: url(../assets/img1.jpg) no-repeat 50% 50%;
  background-size: cover;
}
.hero.gateway {
  background: url(../assets/img2.jpg) no-repeat 50% 50%;
  background-size: cover;
}
.hero.colony {
  background: url(../assets/img3.jpg) no-repeat 50% 50%;
  background-size: cover;
}

.hero h1 {
  text-transform: uppercase;
  font-family: "WDXL Lubrifont SC", sans-serif;
  font-size: clamp(5rem, 15vw, 15rem);
  font-weight: 500;
  letter-spacing: -4%;
  line-height: 1;
}

@media (max-width: 1000px) {
  .navbar {
    padding: 2rem;
  }

  .navbar-items {
    align-items: flex-end;
    flex-direction: column;
    gap: 0;
  }

  .navbar-item {
    padding: 0.25rem;
  }
}

@view-transition {
  navigation: auto;
}

::view-transition-group(navbar) {
  animation: none;
  z-index: 100;
}

::view-transition-old(root) {
  animation: 1000ms cubic-bezier(0.75, 0, 0.1, 1) both page-out;
}

::view-transition-new(root) {
  animation: 1000ms cubic-bezier(0.75, 0, 0.1, 1) both page-in;
}

@keyframes page-out {
  from {
    transform: translateY(0%);
    opacity: 1;
  }
  to {
    transform: translateY(-25%);
    opacity: 0.25;
  }
}

@keyframes page-in {
  from {
    transform: translateY(25%);
    clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  }
  to {
    transform: translateY(0%);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
