/*
  Site-wide additions on top of the Webflow export. Loaded after
  wende.webflow.css, so these rules win where both set the same property.
  Behaviour that goes with them lives in assets/js/site.js.
*/

/* ---------- Page background ---------- */

/* The accent color (--color-accent, set in head.php) behind every page. It is
   also what shows during a page transition, while the body is faded out. */
.body {
  background-color: var(--color-accent);
}

/* ---------- Page transitions ---------- */

/* The body starts transparent and fades in once site.js adds .is-ready (as soon
   as the fonts and the main image are in, at most 1s). A click on an internal
   link adds .is-leaving: the body fades out, then the next page loads. Without
   JavaScript the page shows right away. */
body {
  opacity: 0;
  transition: opacity .5s ease-in-out;
}

html.is-ready body {
  opacity: 1;
}

html.is-leaving body {
  opacity: 0;
  transition: opacity .4s ease-in;
}

html:not(.w-mod-js) body {
  opacity: 1;
}

/* ---------- Custom cursor ---------- */

/* site.js adds .has-cursor only for a mouse (not on touch screens), so the
   normal pointer never disappears without the dot taking its place. The dot is
   moved with `translate`, which is not in the transition list: it follows the
   mouse directly while `transform` (the hover scale) still animates. */
html.has-cursor .custom-cursor * {
  cursor: none !important;
}

.cursor {
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background-color: #fff;
  mix-blend-mode: difference;
  display: block;
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ---------- Scroll-down arrow ---------- */

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.arrowdown-div {
  animation: blink 2s ease-in-out infinite;
}

/* the dark gradient over the Tickets photo lay on top of the arrow and caught
   its clicks: it is only decoration, so clicks go through it */
.agenda-main-gradient {
  pointer-events: none;
}

/* ---------- Responsive images ---------- */

/* snippets/picture.php wraps images in <picture> for the WebP version. The
   wrapper takes no box of its own, so the image lays out exactly as a bare
   <img> would. */
picture {
  display: contents;
}

/* ---------- Headings that are no longer <h1> ---------- */

/* The header logo and the release titles on Discografie used to be <h1>s as
   well (up to 12 on one page). They are a <span> and <h2>s now; these rules
   give them the h1 look they had. */
span.header-logo-txt {
  display: block;
  font-family: New Century Schoolbook, Georgia, sans-serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1em;
  text-transform: uppercase;
}

h2.release-text-h1,
h2.album-text-h1 {
  font-family: New Century Schoolbook, Georgia, sans-serif;
  font-style: normal;
  letter-spacing: .01em;
  line-height: 1em;
  text-transform: uppercase;
}

/* ---------- Corner menus: keyboard ---------- */

/* On desktop the Over and Projecten menus open on hover. A keyboard user who
   tabs onto the label or into the links gets them too. */
@media screen and (min-width: 768px) {
  .header-menu-dividerdiv:has(:focus-visible) .header-extramenu-div,
  .footer-menu-dividerdiv:has(:focus-visible) .header-extramenu-div {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0);
  }

  .header-menu-dividerdiv:has(:focus-visible) .header-menu-txt,
  .footer-menu-dividerdiv:has(:focus-visible) .header-menu-txt {
    color: #fff;
  }
}

/* ---------- Mobile menus (≤767px) ---------- */

/* Full-screen Over and Projecten menus. site.js shows the menu (display:block),
   then adds .is-open; closing swaps it for .is-closing and hides the menu once
   the fade is done. Timings and easings are the ones from the old Webflow
   interactions: open 300ms ease-out, close 500ms ease-in, the list slides 10px
   (down from above for Over, up from below for Projecten). */
@media screen and (max-width: 767px) {
  .mobilemenu.left,
  .mobilemenu.bottom {
    opacity: 0;
    transition: opacity .5s cubic-bezier(.42, 0, 1, 1);
  }

  .mobilemenu .header-extramenu-div.mobile {
    opacity: 0;
    transition: opacity .5s cubic-bezier(.42, 0, 1, 1), transform .5s cubic-bezier(.42, 0, 1, 1);
  }

  .mobilemenu.left .header-extramenu-div.mobile {
    transform: translateY(-10px);
  }

  .mobilemenu.bottom .header-extramenu-div.mobile {
    transform: translateY(10px);
  }

  .mobilemenu.is-open {
    opacity: 1;
    transition: opacity .3s cubic-bezier(0, 0, .58, 1);
  }

  .mobilemenu.is-open .header-extramenu-div.mobile {
    opacity: 1;
    transform: none;
    transition: opacity .3s cubic-bezier(.25, .46, .45, .94), transform .1s cubic-bezier(0, 0, .58, 1);
  }

  /* while closing the list stays visible and only slides; the menu fades */
  .mobilemenu.is-closing .header-extramenu-div.mobile {
    opacity: 1;
    transition: transform .5s cubic-bezier(.42, 0, 1, 1);
  }
}

/* ---------- Home popup ---------- */

/* The Webflow css keeps .popup-container hidden (display: none) and points the
   close button to an image that doesn't exist. homepopup.php only renders the
   popup when it is switched on, with .popuphidden; site.js removes that class
   to fade it in (the container's .7s transition) and adds it back on close.
   Looks like the rest of the site: square corners, the site fonts, buttons
   like the ticket buttons. */
.popup-container {
  display: flex;
}

/* on small phones the wrapper takes clicks itself (pointer-events: auto in
   the Webflow css), so it must let go of them while hidden too */
.popup-container.popuphidden .popup-wrapper {
  pointer-events: none;
}

/* a little darker than the Webflow export, so white text reads on light photos */
.popup-wrapper {
  border-radius: 0;
  background-color: rgba(0, 0, 0, .3);
}

/* desktop: above the footer (the Shop link) and in line with its right edge */
@media screen and (min-width: 768px) {
  .popup-container {
    bottom: 52px;
    padding-right: 16px;
  }
}

.white-x {
  background-image: url('../images/close-white.svg');
}

.popup-content {
  color: #fff;
  text-align: center;
}

.popup-content h2 {
  width: 100%;
  color: #fff;
  font-family: New Century Schoolbook, Georgia, sans-serif;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 4px;
  padding-top: 20px;
}

.popup-content h3 {
  width: 100%;
  color: #fff;
  font-size: 17px;
  line-height: 23px;
  margin: 0 0 2px;
  padding-top: 6px;
}

.popup-content p {
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  margin: 12px 0 0;
}

.popup-content .btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 6px 17px;
  color: #fff;
  border: 1px solid #fff;
  font-family: Neuehaasdisplay, sans-serif;
  font-size: 13px;
  text-align: center;
  text-transform: uppercase;
  transition: background-color .4s cubic-bezier(.25, .46, .45, .94), color .4s;
}

.popup-content p + .btn,
.popup-content h2 + .btn,
.popup-content h3 + .btn {
  margin-top: 20px;
}

.popup-content .btn:hover {
  color: #000;
  background-color: #fff;
}

.popup-content > :last-child {
  margin-bottom: 10px;
}

/* ---------- Lyrics ---------- */

/* wende.nu/lyrics and its album and song pages: the beige page and serif
   titles of Discografie (album-main, disco-title-h1), but laid out as a list:
   per album the cover and its songs as rows that read as links (number,
   title, arrow, a line between rows, a highlight on hover). */

.lyrics-intro {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.lyrics-empty {
  margin: 0;
  opacity: .5;
}

.lyrics-back,
.lyrics-meta {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lyrics-back {
  display: inline-block;
  margin-bottom: 8px;
  color: inherit;
  opacity: .6;
  transition: opacity .3s;
}

.lyrics-back:hover {
  opacity: 1;
}

.lyrics-meta {
  margin: 0;
  opacity: .5;
}

.lyrics-title {
  margin: 0 0 32px;
  font-size: 40px;
  line-height: 1.05em;
  text-align: left;
}

/* --- an album: cover left, title and songs right --- */

.lyrics-albums {
  max-width: 1000px;
  margin: 80px auto 0;
}

.lyrics-album {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 56px;
  margin-bottom: 96px;
}

.lyrics-album-cover {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: block;
  align-self: start;
}

.lyrics-album-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.lyrics-album-head {
  grid-column: 2;
  margin-bottom: 18px;
}

.lyrics-album-title {
  margin: 0 0 6px;
  font-family: New Century Schoolbook, Georgia, sans-serif;
  font-size: 24px;
  line-height: 1.1em;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.lyrics-album-title a {
  color: inherit;
  transition: opacity .3s;
}

.lyrics-album-title a:hover {
  opacity: .5;
}

.lyrics-album > .lyrics-songs,
.lyrics-album > .lyrics-empty {
  grid-column: 2;
  align-self: start;
}

/* album page: a larger cover */
.lyrics-page {
  max-width: 1040px;
  margin: 0 auto;
}

.lyrics-album.is-page {
  grid-template-columns: 400px minmax(0, 1fr);
  column-gap: 64px;
  margin: 24px 0 0;
}

.lyrics-album.is-page .lyrics-album-head {
  margin-bottom: 28px;
}

.lyrics-album.is-page .lyrics-title {
  margin-bottom: 10px;
}

/* --- the song rows --- */

.lyrics-songs {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, .18);
}

.lyrics-song-link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, .18);
  color: inherit;
  font-size: 16px;
  line-height: 22px;
  transition: background-color .25s;
}

.lyrics-song-num {
  flex: none;
  min-width: 1.6em;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  opacity: .45;
}

.lyrics-song-name {
  flex: 1;
}

.lyrics-song-arrow {
  flex: none;
  opacity: .35;
  transition: transform .25s, opacity .25s;
}

.lyrics-song-link:hover {
  background-color: rgba(0, 0, 0, .05);
}

.lyrics-song-link:hover .lyrics-song-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* --- a song: cover beside the lyrics, it stays in view while scrolling --- */

.lyrics-song {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  column-gap: 80px;
  align-items: start;
  margin-top: 24px;
}

.lyrics-song.no-cover {
  grid-template-columns: minmax(0, 1fr);
}

.lyrics-song-cover {
  display: block;
  position: sticky;
  top: 110px;
  transition: opacity .3s;
}

.lyrics-song-cover:hover {
  opacity: .85;
}

.lyrics-song-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.lyrics-song .lyrics-meta {
  margin-bottom: 14px;
}

.lyrics-text {
  max-width: 560px;
  font-size: 16px;
  line-height: 26px;
}

.lyrics-text p {
  margin: 0 0 26px;
}

.lyrics-text .rt-spacer {
  height: 26px;
}

.lyrics-credits {
  margin: 0;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .5;
}

.lyrics-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 560px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, .18);
}

.lyrics-nav-link {
  display: flex;
  flex-direction: column;
  max-width: 48%;
  color: inherit;
  font-size: 15px;
  transition: opacity .3s;
}

.lyrics-nav-link:hover {
  opacity: .5;
}

.lyrics-nav-link.is-next {
  margin-left: auto;
  align-items: flex-end;
  text-align: right;
}

.lyrics-nav-label {
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .5;
}

/* tablets: smaller covers */
@media screen and (max-width: 991px) {
  .lyrics-album {
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 36px;
  }

  .lyrics-album.is-page {
    grid-template-columns: 38vw minmax(0, 1fr);
    column-gap: 40px;
  }

  .lyrics-song {
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: 48px;
  }
}

/* phones: a small cover next to the title, everything else full width below.
   On a song page the cover stays small, so it doesn't look like the album
   page with its large cover. */
@media screen and (max-width: 767px) {
  .lyrics-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .lyrics-albums {
    margin-top: 56px;
  }

  .lyrics-album {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    margin-bottom: 64px;
  }

  .lyrics-album-cover {
    grid-row: 1;
  }

  .lyrics-album-head {
    align-self: center;
    margin-bottom: 0;
  }

  .lyrics-album-title {
    font-size: 20px;
  }

  .lyrics-album > .lyrics-songs,
  .lyrics-album > .lyrics-empty {
    grid-column: 1 / -1;
    margin-top: 20px;
  }

  /* album page: the large cover on top, title and songs below */
  .lyrics-album.is-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .lyrics-album.is-page .lyrics-album-cover {
    max-width: 360px;
    margin-bottom: 28px;
  }

  .lyrics-album.is-page .lyrics-album-head {
    grid-column: 1;
    margin-bottom: 0;
  }

  .lyrics-album.is-page > .lyrics-songs {
    margin-top: 24px;
  }

  /* song page: the album link top left, below it a 64px cover beside the
     track number */
  .lyrics-song {
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 14px;
    margin-top: 16px;
  }

  .lyrics-song-body {
    display: contents;
  }

  .lyrics-song-cover {
    grid-column: 1;
    grid-row: 1;
    position: static;
  }

  .lyrics-song .lyrics-meta {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0;
  }

  .lyrics-song .lyrics-title,
  .lyrics-song .lyrics-text,
  .lyrics-song .lyrics-empty,
  .lyrics-song .lyrics-credits,
  .lyrics-song .lyrics-nav {
    grid-column: 1 / -1;
  }

  .lyrics-song .lyrics-title {
    margin-top: 28px;
  }

  .lyrics-song.no-cover .lyrics-meta {
    grid-column: 1 / -1;
  }

  .lyrics-text {
    font-size: 15px;
    line-height: 24px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  body,
  html.is-leaving body,
  .mobilemenu,
  .mobilemenu .header-extramenu-div.mobile {
    transition: none !important;
  }

  .arrowdown-div {
    animation: none;
  }
}
