/**********RESET**********/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/**********BASE**********/

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  font-family: Arial, Helvetica, sans-serif;
  background-color: #f6f1e8;
  color: #111;
}

main {
  flex: 1;
  margin-top: 140px;
}
/**********HEADER / NAV**********/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 60px;

  display: flex;
  align-items: center;

  background-color: #f6f1e8;
  z-index: 1000;
}

.logo img {
  max-height: 50px;
  width: auto;
}

.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav a {
  margin-left: 30px;
  text-decoration: none;
  color: #111;
  font-size: 1rem;
  font-family: "forma-djr-greek-banner", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* COUNTDOWN HERO*/

.countdown {
  position: relative;
  overflow: hidden;
}

/* both layers occupy same space */
.countdown-time {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 50px; /* lock this */
  width: 100%;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* default state */
.countdown_section {
  min-height: calc(100vh - 140px); /* account for header */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}
.countdown-time {
  opacity: 1;
}
.countdown-cta {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transition: opacity 0.3s ease;
}
.countdown-cta .button {
  border: none;
  margin: 0; /* kill old margin-top */
  font-size: 1.2rem; /* increase size */
  padding: 16px 32px; /* scale proportionally */
}
/* hover swap */
.card:hover .countdown-time {
  opacity: 0;
}
.card:hover .countdown-cta {
  opacity: 1;
}
/**********LAYOUT**********/
.ms_hero {
  max-width: 900px;
  margin: 120px auto 160px auto;
  padding: 0 20px;
}

.grid_2-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 40px;

  max-width: 1000px;
  margin: 60px auto;
  padding: 120px 40px 80px;
}

.grid_1-1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;

  max-width: 1000px;
  margin: auto;
  padding: 80px 20px;
}

/**********TYPOGRAPHY**********/
.ms {
  font-family: "forma-djr-greek-banner", sans-serif;
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.artist {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.3rem;
  letter-spacing: 0.07em;
}

.artform {
  font-size: 0.85rem;
  opacity: 0.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/**********COMPONENTS**********/
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, opacity 200ms ease;
}

.card:hover {
  transform: translateY(-6px);
  opacity: 0.9;
}

.card-content {
  margin-bottom: 1rem;
}

.poster {
  max-height: 550px;
  overflow: hidden;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.button {
  display: inline-block;
  border: 1px solid black;
  padding: 14px 28px;
  text-decoration: none;
  color: black;
  margin-top: 20px;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button:hover {
  background: black;
  color: white;
}

.button.sold_out {
  background: #e8e4dc;
  color: #777;
  pointer-events: none;
}

/**********EVENTS**********/
.title_event {
  text-align: center;
  margin: 60px 0 0;
  font-size: 2.5rem;
  font-family: "forma-djr-greek-banner", sans-serif;
  letter-spacing: 0.08em;
}

.next_event {
  max-width: 1000px;
  margin: 40px auto 80px auto;
  padding: 0 20px;
}

.next_event h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  letter-spacing: 0.06em;
}

.event_preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.event_image img {
  width: 100%;
  height: auto;
}

.event_info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event_upcoming {
  margin: 0 auto;
  font-family: "forma-djr-greek-banner", sans-serif;
}

.event_meta {
  margin: 15px 0;
  opacity: 0.7;
}

.event_description {
  max-width: 420px;
  line-height: 1.6;
  margin-bottom: 30px;
}
.event_details {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;

  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.event_details strong {
  font-family: "forma-djr-greek-banner", sans-serif;
  letter-spacing: 0.08em;
}

/**********ABOUT PAGE**********/

.about_page {
  max-width: 640px;
  margin: 120px auto;
  padding: 0 20px;

  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about_page h1 {
  font-family: "forma-djr-greek-banner", sans-serif;
  font-size: 40px;
  letter-spacing: 0.06em;

  margin-bottom: 10px;
}

.about_page h2 {
  font-family: "forma-djr-greek-banner", sans-serif;
  font-size: 20px;
  letter-spacing: 0.08em;

  margin-top: 20px;
}

.about_page p {
  line-height: 1.7;
  opacity: 0.85;
}

/**********FOOTER**********/

.footer {
  width: 100%;
  padding: 30px 40px;

  display: flex;
  justify-content: center;
  gap: 30px;

  font-size: 0.9rem;
  letter-spacing: 0.06em;

  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer a,
.footer p {
  text-decoration: none;
  color: #111;
  opacity: 0.7;
}

.footer a:hover {
  opacity: 1;
}

/**********CHIMAERA EYE**********/

#chimaera_eye {
  position: fixed;
  right: 0;
  bottom: 0;

  width: 420px;

  transform: translateX(100%);
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);

  z-index: 900;
}

#chimaera_eye img {
  width: 100%;
  height: auto;
  display: block;

  filter: drop-shadow(-25px 0 35px rgba(0, 0, 0, 0.35));
}

/**********MOBILE**********/

@media (max-width: 768px) {
  .header {
    padding: 20px;
  }

  .logo img {
    max-height: 40px;
  }

  /* NAV */

  .nav {
    position: static;
    transform: none;
    margin-left: auto;
  }

  .nav a {
    margin-left: 15px;
    font-size: 0.9rem;
  }

  /* MAIN LAYOUT */

  main {
    margin-top: 110px;
    padding: 0 20px;
  }

  /* COUNTDOWN */

  .countdown {
    font-size: 48px;
    letter-spacing: 0.04em;
  }

  .countdown_section {
    margin: 120px auto;
  }

  /* BUTTON */

  .button {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  /* GRIDS */

  .grid_2-2 {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px;
  }

  .grid_1-1 {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* EVENT PAGE */

  .event_preview {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* TYPOGRAPHY */

  .ms {
    font-size: 36px;
  }

  .artist {
    font-size: 1.2rem;
  }

  /* POSTERS */

  .poster {
    max-height: none;
  }

  /* FOOTER */

  .footer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 20px;
  }

  @media (hover: none) {
    .countdown-time {
      display: none;
    }

    .countdown-cta {
      position: static;
      opacity: 1;
    }
  }
}
