:root {
  --nav-width: 100vw;
  --nav-height: 4rem;

  --main-width: 100vw;

  --dark-color-1: rgb(40, 40, 40);
  --dark-color-2: rgb(59, 59, 59);
  --dark-color-3: rgb(79, 111, 122);
  --dark-color-4: rgb(84, 65, 63);

  --light-color-1: rgb(201, 162, 135);
  --light-color-2: rgb(202, 176, 158);
  --light-color-3: rgb(223, 209, 200);
  --light-color-4: rgb(235, 228, 219);
  --light-color-5: rgb(242, 235, 226);
  --light-color-6: rgb(247, 245, 242);
  --light-color-7: rgb(255, 255, 255);

  --main-color1: rgb(64, 60, 52);
  --main-color2: rgb(242, 240, 236);
  --main-color3: rgb(255, 255, 255);
}

@media (prefers-reduced-motion: no-preference) {
  :has(:target) {
    scroll-padding-top: 3rem;
  }
}

p {
  max-width: 75ch;
}

body,
html {
  font-family: "Open Sans", Lato, "Lucida Grande", Helvetica, Arial, Sans-Serif;
  background: none; /* reset */
}

nav,
main {
  overflow-x: hidden;
  overflow-y: auto;
}

nav::-webkit-scrollbar,
main::-webkit-scrollbar {
  display: none;
}

main {
  height: 100vh;
  /* position: relative; */
  /* overflow-y: scroll; */
  /* overflow-x: hidden; */
  /* overflow: hidden; */
  perspective: 10px;
}

header nav {
  width: var(--nav-width);
  height: var(--nav-height);
  position: fixed;
  /* position: sticky; */
  /* top: 0; */
  /* margin-top: 40rem; */
  z-index: 1000;

  padding: 1.5rem 2.5rem;
  /* margin: 0 1rem; */
  display: flex;
  justify-content: flex-start;
  gap: 1rem;

  color: var(--main-color3);
  background-color: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(8px);

  font-size: 0.85em;
  font-weight: 600;

  /* border-bottom: 1px solid var(--light-color-1); */

  div {
    display: flex;
    align-items: center;
  }

  div.spacer {
    flex: 2;
  }

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

section {
  width: var(--main-width);
  padding: 2rem 1.5rem;
  /* position: relative; */
}

section.full {
  height: 100vh;

  display: flex;
  align-items: center;

  /* background-color: var(--light-color-4); */
  /* color: var(--dark-color2); */
}

section.footer {
  height: 24rem;
  background-color: var(--light-color-6);
  border-bottom: 1px solid var(--light-color-5);
  color: var(--dark-color2);
  display: grid;
  grid-template-columns: 50% 50%;

  padding: 0;

  div {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
  }

  div:last-child {
    border-left: 1px solid var(--light-color-1);
  }
}

p.color1 {
  color: var(--light-color-1);
}

p.color2 {
  color: var(--dark-color-2);
}

section.hero {
  height: 50vh;
  min-height: 20rem;
  max-height: 40rem;
  padding: 0;

  margin-top: var(--nav-height);

  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

  transform-style: preserve-3d;
  z-index: -1;

  .background,
  .foreground {
    position: absolute;
    top: 0;
    width: 100%;
    min-height: 100%;
    /* height: 40rem; */
    object-fit: cover;
    z-index: -1;
  }

  .background {
    transform: translateZ(-10px) translateY(-50%) scale(2);
  }

  .foreground {
    /* transform: translateZ(-5px) translateY(-25%) scale(1.5); */
    transform: translateZ(-5px) translateX(-20%) translateY(-30%) scale(1.25);
  }

  .title {
    position: absolute;
    right: 0;
    margin-right: 4rem;
    font-size: 4rem;
    font-weight: 600;
    /* color: white; */
  }
}

section.test {
  font-size: 2rem;
  padding: 2rem;
  background-color: #333;
  color: white;
}
