@import url("./fonts.css");

:root {
  --red: #e62727;
  --red-strong: #e62727;
  --white: #ffffff;
  --muted: #b8b8b8;
  --line: rgba(227, 25, 39, 0.45);
  --card: rgba(12, 12, 12, 0.88);
  --header-height: 6rem;
  --brand-logo-size: 17.4rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 10%, rgba(227, 25, 39, 0.22), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(227, 25, 39, 0.15), transparent 34%),
    radial-gradient(circle at 80% 92%, rgba(227, 25, 39, 0.13), transparent 32%),
    linear-gradient(145deg, #000000, #090909 45%, #020202 100%);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 78px,
      rgba(255, 255, 255, 0.015) 79px
    );
  opacity: 0.55;
}

a {
  color: var(--white);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 100;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #000000;
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 0.75rem;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-height);
  padding: 0.22rem 0;
}

.brand {
  margin: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.brand-logo {
  padding: 0.03rem 0;
}

.brand-logo picture {
  display: block;
}

.brand-logo img {
  display: block;
  width: var(--brand-logo-size);
  height: auto;
}

.top-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(230, 39, 39, 0.08);
  color: var(--white);
  border-radius: 10px;
  padding: 0.42rem 0.68rem;
  font: inherit;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: rgba(230, 39, 39, 0.75);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-switch a {
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.28rem 0.52rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1;
}

.lang-switch a[aria-current="page"] {
  color: var(--white);
  background: rgba(227, 25, 39, 0.16);
  border-color: rgba(230, 39, 39, 0.7);
}

.top-nav a {
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  border-color: var(--line);
  color: var(--white);
  background: rgba(227, 25, 39, 0.08);
}

main {
  padding: 3.2rem 0 4rem;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--red);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.75),
    0 0 12px rgba(230, 39, 39, 0.2);
}

.entry-logo {
  display: block;
  width: min(88vw, 34rem);
  height: auto;
  margin: 0 auto 1rem;
}

p {
  margin: 0 0 1.1rem;
  color: var(--white);
}

.lead {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  text-align: justify;
  text-justify: inter-word;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  padding: 1rem 1rem 1.1rem;
}

.card strong {
  display: block;
  color: var(--red-strong);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.section {
  margin-top: 2.2rem;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.home-media {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
}

.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.home-slideshow {
  position: relative;
  width: min(100%, calc((100dvh - var(--header-height) - 2rem) * 5 / 7));
  max-height: calc(100dvh - var(--header-height) - 2rem);
  aspect-ratio: 5 / 7;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050505;
}

.home-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent 35%),
    radial-gradient(circle at 10% 12%, rgba(230, 39, 39, 0.18), transparent 35%);
}

.home-slideshow picture {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  animation: homeSlide 24s ease-in-out infinite;
  will-change: opacity;
}

.home-slideshow picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.home-credit {
  position: absolute;
  right: 0.85rem;
  bottom: 0.75rem;
  z-index: 2;
  margin: 0;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.54);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.home-slideshow picture:nth-child(1) {
  animation-delay: 0s;
}

.home-slideshow picture:nth-child(2) {
  animation-delay: 4s;
}

.home-slideshow picture:nth-child(3) {
  animation-delay: 8s;
}

.home-slideshow picture:nth-child(4) {
  animation-delay: 12s;
}

.home-slideshow picture:nth-child(5) {
  animation-delay: 16s;
}

.home-slideshow picture:nth-child(6) {
  animation-delay: 20s;
}

.home-event {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.home-event h2,
.home-social h2 {
  margin-bottom: 0.3rem;
}

.home-social {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.event-line {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

.event-line:first-of-type {
  border-top: 0;
  padding-top: 0.1rem;
}

.event-line p {
  margin: 0;
  color: #e7e7e7;
  font-size: 1.04rem;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.1rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--white);
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(145deg, rgba(227, 25, 39, 0.12), rgba(0, 0, 0, 0.56));
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.social-links a svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 1.2rem;
}

.social-links .social-icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links .social-icon-fill,
.social-links .social-icon-fill path {
  fill: currentColor;
  stroke: none;
}

.social-links .social-links-fill {
  fill: currentColor;
  stroke: none;
}

.social-links a span {
  white-space: nowrap;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: var(--red-strong);
}

.btn {
  display: inline-block;
  font: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--white);
  padding: 0.82rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(145deg, rgba(227, 25, 39, 0.18), rgba(0, 0, 0, 0.7));
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--red-strong);
}

.calendar-btn {
  margin-top: 0.75rem;
}

.mini-calendar {
  margin: 0 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(227, 25, 39, 0.12), rgba(8, 8, 8, 0.9));
}

.mini-calendar-head {
  padding: 0.45rem 0.72rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f2f2f2;
}

.mini-calendar-weekdays,
.mini-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mini-calendar-weekdays span {
  padding: 0.34rem 0.1rem;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid rgba(230, 39, 39, 0.2);
  text-transform: uppercase;
}

.mini-calendar-days span {
  min-height: 2.02rem;
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  color: #ececec;
  border-right: 1px solid rgba(230, 39, 39, 0.16);
  border-bottom: 1px solid rgba(230, 39, 39, 0.16);
}

.mini-calendar-days span:nth-child(7n) {
  border-right: 0;
}

.mini-calendar-days span:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.mini-calendar-days .is-empty {
  color: transparent;
}

.mini-calendar-days .is-focus {
  position: relative;
  z-index: 0;
  font-weight: 700;
  color: var(--white);
}

.mini-calendar-days .is-focus::before {
  content: "";
  position: absolute;
  width: 1.62rem;
  height: 1.62rem;
  border-radius: 999px;
  background: rgba(230, 39, 39, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  z-index: -1;
}

.home-event .btn {
  display: block;
  width: 100%;
  text-align: center;
}

.dresscode-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.95rem;
}

.dresscode-toggle-btn {
  appearance: none;
  cursor: pointer;
}

.dresscode-toggle-btn[aria-pressed="true"],
.dresscode-toggle-btn.is-active {
  border-color: var(--red-strong);
  background: linear-gradient(145deg, rgba(227, 25, 39, 0.28), rgba(0, 0, 0, 0.72));
}

.dresscode-panel {
  width: 100%;
}

.age-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.age-panel {
  position: relative;
  width: min(840px, 95vw);
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.95);
  border-radius: 20px;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lang-switch-standalone {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
}

.age-copy {
  color: #dedede;
  width: min(100%, 76ch);
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
  text-justify: inter-word;
}

.age-panel .btn {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.events-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(227, 25, 39, 0.28), rgba(8, 8, 8, 0.85));
  border-radius: 18px;
  overflow: hidden;
  min-height: 230px;
  position: relative;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent 45%),
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.12), transparent 35%);
}

.gallery-caption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  z-index: 1;
  font-size: 0.92rem;
  max-width: 85%;
}

.venue-map {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 12px;
}

.rules-list {
  margin: 0;
  padding-left: 1.25rem;
}

.rules-list li {
  margin: 0 0 0.95rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 0.72rem 0.85rem;
}

details + details {
  margin-top: 0.75rem;
}

summary {
  font-weight: 700;
  color: var(--red-strong);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

summary::marker {
  content: "";
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▸";
  color: var(--red-strong);
  line-height: 1.1;
  flex: 0 0 auto;
  transform: translateY(0.04rem);
  transition: transform 0.2s ease;
}

details[open] > summary::before {
  transform: rotate(90deg) translateY(-0.02rem);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 1.8rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.reveal {
  animation: riseIn 0.72s ease both;
}

.reveal:nth-child(2) {
  animation-delay: 0.08s;
}

.reveal:nth-child(3) {
  animation-delay: 0.16s;
}

.reveal:nth-child(4) {
  animation-delay: 0.24s;
}

.reveal:nth-child(5) {
  animation-delay: 0.32s;
}

.reveal:nth-child(6) {
  animation-delay: 0.4s;
}

.reveal:nth-child(7) {
  animation-delay: 0.48s;
}

.reveal:nth-child(8) {
  animation-delay: 0.56s;
}

.reveal:nth-child(9) {
  animation-delay: 0.64s;
}

.reveal:nth-child(10) {
  animation-delay: 0.72s;
}

.reveal:nth-child(11) {
  animation-delay: 0.8s;
}

.reveal:nth-child(12) {
  animation-delay: 0.88s;
}

.reveal:nth-child(13) {
  animation-delay: 0.96s;
}

.reveal:nth-child(14) {
  animation-delay: 1.04s;
}

.reveal:nth-child(15) {
  animation-delay: 1.12s;
}

.reveal:nth-child(16) {
  animation-delay: 1.2s;
}

.reveal:nth-child(17) {
  animation-delay: 1.28s;
}

.reveal:nth-child(18) {
  animation-delay: 1.36s;
}

.reveal:nth-child(19) {
  animation-delay: 1.44s;
}

.reveal:nth-child(20) {
  animation-delay: 1.52s;
}

@keyframes homeSlide {
  0% {
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  13% {
    opacity: 1;
  }
  17% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.62rem;
    padding: 0.6rem clamp(0.75rem, 3.8vw, 1.35rem);
    background: rgba(0, 0, 0, 0.96);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.45);
    z-index: 12;
  }

  .site-header.menu-open .site-menu {
    display: flex;
  }

  .top-nav {
    width: 100%;
    flex-direction: column;
    gap: 0.36rem;
  }

  .top-nav a {
    white-space: normal;
    display: block;
    width: 100%;
    padding: 0.52rem 0.72rem;
    border-color: rgba(230, 39, 39, 0.26);
    background: rgba(230, 39, 39, 0.05);
  }

  .lang-switch {
    justify-content: flex-start;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    gap: 0.9rem;
  }

  .home-slideshow {
    width: min(100%, calc((100dvh - var(--header-height) - 1.5rem) * 5 / 7));
    max-height: calc(100dvh - var(--header-height) - 1.5rem);
  }

  .events-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  main {
    padding-top: 2.2rem;
  }

  .grid-2,
  .events-gallery {
    grid-template-columns: 1fr;
  }

  .home-slideshow {
    width: min(100%, calc((100dvh - var(--header-height) - 1rem) * 5 / 7));
    max-height: calc(100dvh - var(--header-height) - 1rem);
  }

  .social-links {
    grid-template-columns: 1fr;
  }

  h1,
  h2,
  h3 {
    letter-spacing: 0.04em;
  }

  .lang-switch-standalone {
    top: 0.65rem;
    right: 0.65rem;
  }

  .dresscode-toggle {
    gap: 0.45rem;
  }

  .entry-logo {
    width: min(86vw, 27rem);
    margin-bottom: 0.8rem;
  }
}
