/* masonholiday.com — fonts and interaction styles that used to come from Webflow's runtime. */

/* Fonts: self-hosted variable files (latin), preloaded in each page's <head>. */
@font-face {
  font-family: "Oswald";
  src: url("/assets/fonts/oswald-latin-var.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched fallbacks: if a web font arrives late, the swap doesn't move the layout.
   Values computed from the font files (avg advance width + vertical metrics vs Arial). */
@font-face {
  font-family: "Oswald Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 81.89%;
  ascent-override: 145.68%;
  descent-override: 35.29%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Roboto Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 97.66%;
  ascent-override: 94.99%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* Images carry width/height attributes so space is reserved while loading; keep their aspect ratio. */
img {
  height: auto;
}

/* Nav link underline: grows on hover (400ms), shrinks on leave (500ms). */
.nav-link .nav-link-line {
  transition: width 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav-link:hover .nav-link-line,
.nav-link:focus-visible .nav-link-line {
  width: 100%;
  transition-duration: 0.4s;
}

/* Release artwork zoom on hover. */
.release-item .artwork-thumb-container {
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.release-item:hover .artwork-thumb-container {
  transform: scale(1.1);
}

/* Parallax layers are moved by site.js. */
.hero-parallax-background,
.video-parallax-background {
  will-change: transform;
}

/* Slider dots are buttons now. */
button.w-slider-dot {
  border: 0;
  padding: 0;
  font: inherit;
}
.w-slider-arrow-left,
.w-slider-arrow-right {
  cursor: pointer;
}

/* Mobile menu (tablet and below). Open: slide in 1.2s. Close: slide out, then collapse. */
@media screen and (max-width: 991px) {
  .mobile-menu {
    width: 0;
    transition:
      transform 1.2s cubic-bezier(1, 0, 0, 1),
      width 1.2s cubic-bezier(1, 0, 0, 1) 0.8s;
  }
  .menu-open .mobile-menu {
    width: 100vw;
    transform: translate(0);
    transition:
      transform 1.2s cubic-bezier(0.19, 1, 0.22, 1),
      width 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  }
  .hamburger-line {
    transition:
      transform 0.5s cubic-bezier(0.77, 0, 0.175, 1) 0.8s,
      width 0.5s cubic-bezier(0.77, 0, 0.175, 1) 0.8s;
  }
  .menu-open .hamburger-line {
    transition-delay: 0s;
  }
  .menu-open .hamburger-line.first {
    width: 40px;
    transform: translateY(10px) rotate(-45deg);
  }
  .menu-open .hamburger-line.middle {
    transform: rotate(45deg);
  }
  .menu-open .hamburger-line.last {
    width: 0;
  }
}

/* Footer follow buttons (replaced the old newsletter form). */
.follow-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.follow-button {
  display: inline-block;
  padding: 8px 16px 8px 20px;
  border-radius: 4px;
  background: #fff;
  color: #000;
  font-family: Roboto, "Roboto Fallback", sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 24px;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.follow-button:hover {
  background: #ccc;
  color: #000;
}

/* Lightbox. */
.lb-open {
  overflow: hidden;
}
.lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
}
.lb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 5vh 6vw;
}
.lb-video {
  position: relative;
  width: min(90vw, 160vh);
  aspect-ratio: 16 / 9;
}
.lb-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.lb-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}
.lb-btn {
  position: absolute;
  border: 0;
  background: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  padding: 12px 16px;
  cursor: pointer;
  opacity: 0.8;
}
.lb-btn:hover,
.lb-btn:focus-visible {
  opacity: 1;
}
.lb-close {
  top: 8px;
  right: 8px;
}
.lb-prev {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.lb-next {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Song pages: release date and Spotify player (fixed height, so no layout shift). */
.release-date {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: #5c5c5c;
}
.spotify-wrap {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 720px;
  margin: 24px auto 0;
}
.spotify-player {
  display: block;
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: 12px;
}
/* Spotify "click to play" card: same box as Spotify's player, loads the real player only when tapped. */
.spotify-facade {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 152px;
  padding: 16px;
  border-radius: 12px;
  background: #282828;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.spotify-facade-art {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
}
.spotify-facade-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  font-family: Roboto, "Roboto Fallback", sans-serif;
}
.spotify-facade-title {
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
}
.spotify-facade-artist {
  font-size: 14px;
  line-height: 20px;
  color: #b3b3b3;
}
.spotify-facade-hint {
  margin-top: 12px;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1ed760;
}
.spotify-facade-play {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50% / 22px no-repeat;
  transition: transform 0.2s;
}
.spotify-facade:hover .spotify-facade-play,
.spotify-facade:focus-visible .spotify-facade-play {
  transform: scale(1.08);
}

/* YouTube "click to play": fills the video box; the real player replaces it only when tapped. */
.yt-facade {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.yt-facade-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-facade-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 50px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50% / 30px no-repeat;
  transform: translate(-50%, -50%);
  transition: background-color 0.2s;
}
.yt-facade:hover .yt-facade-play,
.yt-facade:focus-visible .yt-facade-play {
  background-color: #f00;
}
.yt-facade-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
