@font-face {
  font-family: mephisto-regular;
  font-display: swap;
  src: url(./fonts/Faust/OTF/Faust-&MephistoRegular.otf) format("opentype");
}

@font-face {
  font-family: mephisto-italic;
  font-display: swap;
  src: url(./fonts/Faust/OTF/Faust-&MephistoItalic.otf) format("opentype");
}

@font-face {
  font-family: wagner-regular;
  font-display: swap;
  src: url(./fonts/Faust/OTF/Faust-&WagnerRegular.otf) format("opentype");
}

@font-face {
  font-family: wagner-italic;
  font-display: swap;
  src: url(./fonts/Faust/OTF/Faust-&WagnerItalic.otf) format("opentype");
}

@keyframes destello {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

:root {
  /* ANIMATION */
  --transition-in: all 0.5s ease-out;
  --transition-out: all 0.5s ease-in;
  /* VERTICAL RHYTHM */
  --rhythm-unit: 1.5rem; /* ? test */
  --baseline: 1.5;
  /* SHADOW */
  --box-shadow-sm: 0 0 2em var(--dark-color-50);
  --box-shadow-lg: 0 0 1em var(--dark-color-50);
  --text-shadow: 0 0 0.5em var(--dark-color-50);
  /* COLOR */
  --dark-color: #000000;
  --dark-color-50: #00000080;
  --light-color: #ffffff;
  /* TYPOGRAPHY */
  --font-family-comp-reg: mephisto-regular, serif;
  --font-family-comp-ita: mephisto-italic, serif;
  --font-family-simp-reg: wagner-regular, serif;
  --font-family-simp-ita: wagner-italic, serif;
  --font-weight-bolder: 600; /* antes 550 */
  --tracking: 0.1em;
}

*,
*::before,
*::after {
  margin-top: 0;
  /* margin-right: 0; */
  box-sizing: inherit;
}

html {
  overscroll-behavior-y: none;
  margin: 0;
  box-sizing: border-box;
  height: 100%;
  padding: 0;
  font-size: 20px;
}

body {
  overflow: hidden;
  overscroll-behavior-y: none;
  margin: 0;
  min-height: 100%;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background-color: var(--dark-color);
  /* font-size: clamp(0.8rem, 0.72rem + 0.5vw, 1.2rem); */
  font-size: clamp(0.75rem, 0.6rem + 0.75vw, 1.5rem);
  line-height: var(--baseline);
  font-family: var(--font-family-simp-reg);
  letter-spacing: var(--tracking);
  color: var(--light-color);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

a {
  transition: var(--transition-in);
  text-decoration: none;
  color: inherit;
}

iframe,
img,
video {
  display: inline-block;
  max-width: 100%;
}

p {
  margin-bottom: var(--rhythm-unit);
}

ul {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.header {
  position: fixed;
  top: var(--rhythm-unit);
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
}

.glow {
  text-shadow: 0 0 calc(1em / 3) var(--light-color), 0 0 calc(1em * 2 / 3) var(--light-color), 0 0 0.1em var(--light-color);
}

.glow:hover {
  text-shadow: var(--text-shadow);
}

.nav {
  position: fixed;
  top: 50%;
  left: calc(var(--rhythm-unit) / 3);
  transform: rotate(270deg) translateX(-50%);
  transform-origin: left top;
  width: 60dvh;
}

.nav__list {
  align-items: center;
  justify-content: space-between;
  display: flex;
}

.nav__item {
  transition: var(--transition-in);
  font-size: 1.25em;
  font-family: var(--font-family-comp-reg);
  font-weight: var(--font-weight-bolder);
  text-transform: uppercase;
  text-shadow: var(--text-shadow);
}

.nav__link {
  color: inherit;
}

.nav__item:not(#active):hover {
  text-shadow: 0 0 calc(1em / 3) var(--light-color), 0 0 calc(1em * 2 / 3) var(--light-color), 0 0 0.1em var(--light-color);
}

.socials {
  position: fixed;
  top: 50%;
  right: calc(var(--rhythm-unit) / 1.5);
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  display: flex;
  transform: translateY(-50%);
  height: 40dvh;
}

.socials a {
  line-height: 0;
}

.socials img {
  filter: drop-shadow(var(--box-shadow-sm));
  border-radius: 0.5em;
  width: 2em;
  height: 2em;
  padding: 0.25em;
  background-color: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer {
  position: fixed;
  bottom: var(--rhythm-unit);
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  text-align: center;
}

.footer__text {
  margin-bottom: 0;
  font-size: smaller;
  font-family: var(--font-family-simp-reg);
  font-weight: var(--font-weight-bolder);
  text-shadow: var(--text-shadow);
}

#biografia {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--dark-color-50) transparent;
  max-width: 65ch;
  max-height: 50dvh;
  padding: 0 1ch;
}

#biografia > :last-child {
  margin-bottom: 0 !important;
}

#biografia p {
  text-shadow: var(--text-shadow);
  font-weight: var(--font-weight-bolder);
  text-align: center;
}

#discografia {
  position: fixed;
  top: 50%;
  left: 50%;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--rhythm-unit);
  justify-content: center;
  display: flex;
  transform: translate(-50%, -50%);
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--dark-color-50) transparent;
  width: 50dvw;
  max-height: 50dvh;
}

.caratula {
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  display: flex;
  border: 0.1em outset var(--dark-color-50);
  border-radius: var(--rhythm-unit);
  height: 8em;
  aspect-ratio: 1 / 1;
  padding: calc(var(--rhythm-unit) / 2);
  background: rgba(0, 0, 0, 0.4) left/cover no-repeat;
  text-align: center;
}

.caratula:hover {
  background-blend-mode: darken;
}

.caratula:hover .caratula__text {
  border-color: var(--light-color);
  color: var(--light-color);
}

.caratula:hover .caratula__title {
  color: var(--light-color);
}

.caratula__text {
  transition: var(--transition-in);
  margin-bottom: 0;
  border: 0.1em solid transparent;
  border-radius: 1em;
  text-shadow: var(--text-shadow);
  padding: 0 1ch;
  color: transparent;
  font-family: var(--font-family-simp-ita);
  font-weight: var(--font-weight-bolder);
}

.caratula__title {
  transition: var(--transition-in);
  margin-bottom: 0;
  text-shadow: var(--text-shadow);
  font-size: 1.5em;
  line-height: 1;
  font-weight: var(--font-weight-bolder);
  color: transparent;
}

.destello {
  position: absolute;
  animation: destello 1s infinite;
  width: 1em;
  height: 1em;
  background-image: url(/img/destello.webp);
  background-size: cover;
  filter: blur(1px);
  pointer-events: none;
}

.svg {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}

#shows {
  position: fixed;
  top: 50%;
  left: 50%;
  align-items: center;
  justify-content: center;
  display: flex;
  transform: translate(-50%, -50%);
}

#shows p {
  margin-bottom: 0;
  text-shadow: var(--text-shadow);
  font-size: larger;
  font-weight: var(--font-weight-bolder);
  text-align: center;
  text-transform: uppercase;
}

#videoclips {
  position: fixed;
  top: 50%;
  left: 50%;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--rhythm-unit);
  justify-content: center;
  display: flex;
  transform: translate(-50%, -50%);
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--dark-color-50) transparent;
  width: 50dvw;
  max-height: 50dvh;
  padding: 0 1ch;
}

.videoclip {
  border: 0.1em inset var(--dark-color-50);
  border-radius: 0.5em;
  width: 12em;
  aspect-ratio: 16 / 9;
}

#active {
  border: 0.1em solid var(--light-color);
  border-radius: 50%;
  padding: 0 1ch;
}

.bg-vid {
  position: fixed;
  z-index: -1;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

#vid-port {
  display: none;
}

#suscribirse {
  position: fixed;
  top: var(--rhythm-unit);
  right: var(--rhythm-unit);
  filter: drop-shadow(var(--box-shadow-sm));
  width: 2em;
  height: 2em;
}

#logo {
  filter: drop-shadow(var(--box-shadow-lg));
  width: 8em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}

#latest {
  flex-basis: calc(100% - var(--rhythm-unit) * 2);
}

#latest > .caratula {
  align-items: flex-end;
  justify-content: space-around;
  transition: var(--transition-in);
  border: 0.1em inset rgba(255, 255, 255, 0.1);
  width: 100%;
  aspect-ratio: initial;
  background-color: transparent;
  background-size: contain;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#latest > .caratula:hover {
  align-items: center;
  background-position: center;
  background-size: cover;
  background-blend-mode: darken;
  background-color: rgba(0, 0, 0, 0.4);
}

#latest > .caratula > .caratula__text {
  border-color: var(--light-color);
  color: var(--light-color);
}

#latest > .caratula > .caratula__title {
  color: var(--light-color);
}

/* NEWSLETTER */
.modal {
  position: fixed;
  z-index: 9999;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  align-items: center;
  justify-content: center;
  display: flex;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition-in);
  background-color: var(--dark-color-50);
}

.modal:target {
  visibility: visible;
  opacity: 1;
}

.formulario {
  position: absolute;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 1em;
  width: calc(100dvw / 3);
  max-height: 90dvh;
  padding: 1em 2em;
  background-color: var(--light-color);
}

.formulario h2 {
  font-variant: small-caps;
  color: var(--dark-color);
}

.formulario form input {
  font-size: inherit;
  font-family: inherit;
}

.formulario form input[type=date], input[type=email], input[type=text] {
  margin-bottom: calc(var(--rhythm-unit) / 4);
  border: 1px solid var(--dark-color-50);
  border-radius: 0.5em;
  max-width: 100%;
  padding: 0.5em;
  background-color: #f6f6f6;
}

.formulario form input[type=submit] {
  display: block;
  transition: var(--transition-in);
  margin-top: var(--rhythm-unit);
  box-shadow: var(--box-shadow-lg);
  border: 2px solid transparent;
  border-radius: 0.5em;
  width: 100%;
  padding: 0.5em 1em;
  background-color: var(--dark-color);
  text-transform: uppercase;
  color: var(--light-color);
}

.formulario form input[type=submit]:hover {
  border-color: var(--dark-color);
  background-color: #f6f6f6;
  cursor: pointer;
  color: var(--dark-color);
}

.formulario form input[type=submit]:active {
  box-shadow: none;
}

.formulario form label {
  font-size: larger;
  color: var(--dark-color);
}

#cerrar {
  position: absolute;
  top: calc(var(--rhythm-unit) / 1.5);
  right: calc(var(--rhythm-unit) / 1.5);
  font-size: 2em;
  line-height: 0;
  font-weight: bold;
  color: var(--dark-color);
}

#cerrar:hover {
  color: var(--dark-color-50);
}

:target {
  outline: none;
}

@media only screen and (max-width: 768px) {
  #vid-land {
    display: none;
  }
  #vid-port {
    display: initial;
  }
}

@media only screen and (max-width: 1024px) {
  .formulario {
    width: 80%;
  }
  #latest {
    flex-basis: initial;
  }
  #latest > .caratula {
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-in);
    border: 0.1em inset var(--dark-color-50);
    width: initial;
    aspect-ratio: 1 / 1;
    background-blend-mode: darken;
    background-color: rgba(0, 0, 0, 0.4);
    background-size: cover;
    backdrop-filter: initial;
    -webkit-backdrop-filter: initial;
  }
}
