:root {
  --black: #050505;
  --paper: #ececec;
  --shadow: rgba(0, 0, 0, 0.38);
}

@font-face {
  font-family: "Variera";
  src: url("assets/fonts/VARIERA-MEDIUM.TTF") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #242424;
  color: #111111;
  font-family: "Variera", Oswald, Impact, "Arial Narrow", sans-serif;
}

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

.site-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #303030;
}

.masonry-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #303030;
}

.masonry-background::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.03) 45%, rgba(0, 0, 0, 0.18)),
    rgba(48, 48, 48, 0.18);
  pointer-events: none;
}

.masonry-track {
  display: grid;
  gap: 1px;
  width: 100%;
  min-height: 200%;
  padding: 1px;
  animation: masonry-scroll 150s linear infinite;
  will-change: transform;
}

.masonry-set {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1px;
}

.masonry-set figure {
  display: block;
  aspect-ratio: 1 / 1;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #242424;
}

.masonry-set img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.62;
  transform: scale(1.08);
}

@keyframes masonry-scroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

.floating-menu {
  position: fixed;
  top: clamp(20px, 3vw, 44px);
  left: clamp(18px, 3vw, 44px);
  z-index: 2;
  width: clamp(150px, 9.5vw, 190px);
  filter: drop-shadow(0 14px 22px var(--shadow));
}

.floating-logo {
  display: block;
  overflow: hidden;
  background: #000000;
  border-radius: 7px 7px 0 0;
}

.floating-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.dropdown-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(13px, 1.2vw, 18px) 8px clamp(15px, 1.4vw, 20px);
  background: var(--paper);
  border-radius: 0 0 8px 8px;
  color: #111111;
  text-align: center;
  font-size: clamp(1rem, 1.15vw, 1.42rem);
  font-weight: 500;
  line-height: 1.05;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 220ms ease;
}

.floating-logo:hover + .dropdown-nav,
.dropdown-nav:hover,
.floating-menu:focus-within .dropdown-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-highlight {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 0;
  height: 0;
  border-radius: 6px;
  background: #050505;
  opacity: 0;
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    width 260ms cubic-bezier(0.22, 1, 0.36, 1),
    height 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 140ms ease;
}

.dropdown-nav a {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 4px 0;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.dropdown-nav a span {
  display: inline-block;
}

.dropdown-nav a:hover,
.dropdown-nav a:focus-visible {
  color: #ffffff;
}

@media (max-width: 980px) {
  .masonry-set {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .floating-menu {
    width: 150px;
  }
}

@media (max-width: 620px) {
  .masonry-set {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .floating-menu {
    top: 16px;
    left: 16px;
    width: 138px;
  }

  .dropdown-nav {
    font-size: 0.95rem;
  }
}
