/* Replace these font files and names with the files inside your fonts folder. */
:root {
  --ink: #151515;
  --paper: #f6f1e8;
  --yellow: #FFCC5D;
  --header-height: 75px;
  --page-gutter: clamp(20px, 2.4vw, 36px);
  --display-font: "Rockabye", sans-serif;
  --body-font: "Afacad", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--paper);
  background-color: var(--ink);
  font-family: var(--body-font);
}

/* The texture stays still while all page content scrolls over it. */
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    url("images/background.png") top / cover no-repeat;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: relative;
  z-index: 20;
  height: var(--header-height);
  background: rgb(0 0 0 / 60%)
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding-inline: var(--page-gutter);
}

.nav-logo {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 60px;
  transform: translate(-50%, -50%);
}

.nav-logo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-links,
.social-links {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: clamp(18px, 2.1vw, 32px);
}

.social-links {
  gap: clamp(16px, 2vw, 30px);
}

.nav-links a,
.social-links a {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  transition: color 180ms ease, transform 180ms ease;
}

.social-links a {
  display: grid;
  min-width: 18px;
  font-size: 0.66rem;
  place-items: center;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.social-links a:hover,
.social-links a:focus-visible {
  color: var(--yellow);
  transform: translateY(-2px);
}

.nav-toggle,
.nav-toggle-button {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center 46%;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 42%) 0%, transparent 58%),
    linear-gradient(0deg, rgb(0 0 0 / 25%) 0%, transparent 42%);
}

.hero-copy {
  position: absolute;
  left: clamp(28px, 8vw, 112px);
  bottom: clamp(46px, 28vh, 230px);
  width: min(700px, 70vw);
}

.hero h1 {
  margin: 0;
  color: var(--yellow);
  font-family: var(--display-font);
  font-size: clamp(3.5rem, 6.5vw, 6.4rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero p {
  max-width: 700px;
  margin: 18px 0 0;
  color: #fff;
  font-size: clamp(18px, 2.1vw, 25px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.025em;
}

.hero-audition-button {
  display: flex;
  width: fit-content;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 28px;
  border: 2px solid var(--yellow);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  background: rgb(255 197 72 / 14%);
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.hero-audition-button:hover,
.hero-audition-button:focus-visible {
  color: #171717;
  background: var(--yellow);
  transform: translateY(-3px);
}

@media (max-width: 800px) {
  .hero-audition-button {
    min-height: 44px;
    margin-top: 18px;
    padding-inline: 22px;
    font-size: 0.95rem;
  }
}

.placeholder-section {
  display: grid;
  min-height: 55vh;
  padding: 80px var(--page-gutter);
  place-items: center;
}

.placeholder-section p {
  opacity: 0.6;
}

@media (max-width: 800px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background: linear-gradient(rgb(0 0 0 / 68%), transparent);
  }

  .nav-logo {
    left: var(--page-gutter);
    width: 50px;
    transform: translateY(-50%);
  }

  .nav-toggle-button {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: var(--page-gutter);
    display: grid;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transform: translateY(-50%);
    align-content: center;
    gap: 5px;
  }

  .nav-toggle-button span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-panel {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px var(--page-gutter) 44px;
    visibility: hidden;
    background: rgb(18 18 18 / 100%);
    opacity: 0;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .nav-links {
    flex-direction: column;
    gap: 20px;
  }

  .nav-links a {
    font-family: var(--display-font);
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1;
  }

  .social-links {
    gap: 24px;
    margin-top: 35px;
  }

  .social-links a {
    font-size: 0.75rem;
  }

  .nav-toggle:checked ~ .nav-panel {
    visibility: visible;
    opacity: 1;
  }

  .nav-toggle:checked + .nav-toggle-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-button span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-toggle-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: 100svh;
  }

  .hero-image {
    object-position: center;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgb(0 0 0 / 67%) 0%, transparent 62%);
  }

  .hero-copy {
    right: var(--page-gutter);
    bottom: clamp(40px, 8vh, 80px);
    left: var(--page-gutter);
    width: auto;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 16vw, 5.6rem);
    line-height: 0.86;
  }

  .hero p {
    max-width: 42rem;
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    line-height: 1.3;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(3rem, 15.5vw, 4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.social-links svg {
  display: block;
  width: 20px !important;
  height: 20px !important;
}

.social-links a {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
}

.social-links svg {
  width: 100%;
  height: 100%;
}

.performance-section {
  padding: clamp(100px, 12vw, 180px) var(--page-gutter);
}

.performance-content {
  width: min(100%, 710px);
  margin-inline: auto;
}

.performance-content h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55em;
  margin: 0 0 42px;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  line-height: 1;
  letter-spacing: 0.06em;
}

.heading-solid {
  color: #fff;
  font-weight: 700;
}

.heading-outline {
  color: transparent;
  font-weight: 700;
  -webkit-text-stroke: 1px #fff;
}

.video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  box-shadow:
    0 18px 28px rgb(0 0 0 / 50%),
    0 6px 12px rgb(0 0 0 / 30%);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 800px) {
  .performance-section {
    padding: 80px 24px;
  }

  .performance-content h2 {
    gap: 0.4em;
    margin-bottom: 28px;
    font-size: clamp(1.25rem, 6vw, 1.7rem);
  }
}

/* ========================================
   UPCOMING EVENTS
======================================== */

.events-section {
  padding: clamp(100px, 12vw, 180px) var(--page-gutter);
}

.events-content {
  width: min(100%, 710px);
  margin-inline: auto;
}

/* “UPCOMING EVENTS” heading */
.section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55em;
  margin: 0 0 42px;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  line-height: 1;
  letter-spacing: 0.06em;
}

.heading-solid {
  color: #fff;
  font-weight: 700;
}

.heading-outline {
  color: transparent;
  font-weight: 700;
  -webkit-text-stroke: 1px #fff;
}

/* Contains all event rows */
.events-grid {
  display: grid;
  gap: clamp(10px, 1.5vw, 24px);
}

/* One record player + description row */
.event {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 75px);
}

/* Alternates the second row */
.event-reversed {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.event-reversed .record-player {
  grid-column: 2;
  grid-row: 1;
}

.event-reversed .event-copy {
  grid-column: 1;
  grid-row: 1;
}

/* ========================================
   LAYERED RECORD PLAYER
======================================== */

.record-player {
  position: relative;
  width: 330px;
  min-width: 330px;
  flex-shrink: 0;
  aspect-ratio: 2048 / 1606;
  justify-self: center;
}

.record-player img {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
}

.record-base,
.record-needle {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.record-base {
  z-index: 1;
}

.record-wheel {
  z-index: 2;
  top: 4%;
  left: 25%;
  width: 70%;
  height: auto;
  transform-origin: center;
  animation: record-spin 6s linear infinite;
}
.record-needle {
  z-index: 3;
}

@keyframes record-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Record spins faster on hover */


/* Music-note container */
.music-notes {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

/* Notes are hidden until hover */
.music-notes span {
  position: absolute;
  bottom: 42%;
  left: 57%;
  color: var(--yellow);
  font-family: Arial, sans-serif;
  font-size: 1.6rem;
  opacity: 0;
}

/* Let the notes float when hovering */
.record-player:hover .music-notes span {
  animation: float-note 1.8s ease-out infinite;
}

.record-player:hover .music-notes span:nth-child(1) {
  left: 52%;
  animation-delay: 0s;
}

.record-player:hover .music-notes span:nth-child(2) {
  left: 61%;
  animation-delay: 0.4s;
}

.record-player:hover .music-notes span:nth-child(3) {
  left: 68%;
  animation-delay: 0.8s;
}

.record-player:hover .music-notes span:nth-child(4) {
  left: 56%;
  animation-delay: 1.2s;
}

.record-one {
  animation-duration: 8s;
  animation-delay: -2s;
}

.record-two {
  animation-duration: 8s;
  animation-delay: -6s;
  animation-direction: reverse;
}

.record-three {
  animation-duration: 8s;
  animation-delay: -4s;
}

@keyframes float-note {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(-8deg) scale(0.7);
  }

  20% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(45px, -110px) rotate(14deg) scale(1.2);
  }
}

/* ========================================
   EVENT TEXT
======================================== */

.event-copy {
  min-width: 0;
}

/* Right-align text in normal rows */
.event:not(.event-reversed) .event-copy {
  text-align: right;
}

.event-reversed .event-copy {
  text-align: left;
}

@media (max-width: 800px) {
  .event:not(.event-reversed) .event-copy,
  .event-reversed .event-copy {
    text-align: center;
  }
}

.event-copy h3 {
  margin: 0 0 14px;
  color: var(--yellow);
  font-family: var(--body-font);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.2;
}

.event-copy p {
  margin: 0;
  color: #fff;
  font-family: var(--body-font);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.025em;
}

/* ========================================
   EVENTS — TABLET AND MOBILE
======================================== */

@media (max-width: 800px) {
  .events-section {
    padding: 80px 24px;
  }

  .events-content {
    width: 100%;
  }

  .section-heading {
    gap: 0.4em;
    margin-bottom: 60px;
    font-size: clamp(1.25rem, 6vw, 1.7rem);
  }

  .events-grid {
    gap: 90px;
  }

  .event,
  .event-reversed {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  /* Keeps the image above the text on every row */
  .event-reversed .record-player {
    order: 1;
  }

  .event-reversed .event-copy {
    order: 2;
  }

.event .record-player,
.event-reversed .record-player {
  width: 330px;
  min-width: 330px;
}

  .record-player,
  .event .record-player,
  .event-reversed .record-player {
    width: min(100%, 330px);
    min-width: 0;
  }

  .event-copy {
    width: min(100%, 420px);
    margin-inline: auto;
    text-align: center;
  }
}

/* Slightly smaller record player on narrow phones */
@media (max-width: 420px) {
  .record-player,
  .event .record-player,
  .event-reversed .record-player {
    width: min(100%, 290px);
    min-width: 0;
  }

  .events-grid {
    gap: 75px;
  }
}

/* Accessibility: stops spinning if reduced motion is enabled */
@media (prefers-reduced-motion: reduce) {
  .record-wheel {
    animation: none;
  }
}

/* ========================================
   CONTACT / LEAVE US A NOTE
======================================== */

.contact-section {
  padding:
    clamp(100px, 12vw, 180px)
    var(--page-gutter)
    clamp(120px, 14vw, 200px);
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(120px, 1fr);
  align-items: center;
  width: min(100%, 710px);
  margin-inline: auto;
  gap: 35px;
}

.contact-copy {
  min-width: 0;
}

.contact-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55em;
  margin: 0 0 42px;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  line-height: 1;
  letter-spacing: 0.06em;
}

.contact-copy p {
  max-width: 650px;
  margin: 0 0 30px;
  color: #fff;
  font-family: var(--body-font);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.045em;
}

.contact-email {
  display: inline-block;
  color: var(--yellow);
  font-weight: 600;
  overflow-wrap: anywhere;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: #fff;
  transform: translateY(-1px);
}

/* Social icon row */
.contact-socials {
  display: flex;
  align-items: center;
  gap: 25px;
  min-height: 44px;
  margin-top: 50px;
}

/* Empty placeholders remain visible while adding SVGs */
.contact-socials a {
  display: grid;
  width: 35px;
  height: 35px;
  color: var(--yellow);
  place-items: center;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.contact-socials a:hover,
.contact-socials a:focus-visible {
  color: #fff;
  transform: translateY(-3px);
}

.contact-socials svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Large logo on the right */
.contact-logo {
  display: grid;
  place-items: center;
  overflow: visible;
}

.contact-logo img {
  width: 260px;
  max-width: none;
  height: auto;
  object-fit: contain;
  opacity: 0.75;
  transform: translateX(45px);
}

/* ========================================
   CONTACT — TABLET AND MOBILE
======================================== */

@media (max-width: 800px) {
  .contact-section {
    padding: 80px 24px 110px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .contact-heading {
    gap: 0.4em;
    margin-bottom: 28px;
    font-size: clamp(1.25rem, 6vw, 1.7rem);
  }

  .contact-copy p {
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.045em;
  }


  .contact-socials {
    gap: 30px;
    margin-top: 40px;
  }

  .contact-logo {
    justify-content: center;
  }

  .contact-logo img {
    width: min(65vw, 220px);
    max-width: 100%;
    transform: none;
  }

}

/* ========================================
   FOOTER
======================================== */

.site-footer {
  width: 100%;
  padding: 65px var(--page-gutter) 35px;
  color: #fdeeda;
  background: #000000c6;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 1120px);
  margin-inline: auto;
  text-align: center;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-socials a {
  display: grid;
  width: 18px;
  height: 18px;
  color: #fdeeda;
  place-items: center;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--yellow);
  transform: translateY(-2px);
}

.footer-socials svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 25px;
}

.footer-nav a {
  color: #fff;
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--yellow);
}

.footer-logo {
  display: block;
  width: 55px;
  margin-bottom: 28px;
}

.footer-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-disclaimer {
  margin: 0 0 20px;
  color: #f1ede5;
  font-size: clamp(0.75rem, 1.1vw, 0.95rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.footer-disclaimer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-disclaimer a:hover,
.footer-disclaimer a:focus-visible {
  color: var(--yellow);
}

.footer-copyright {
  margin: 0;
  color: rgb(255 255 255 / 45%);
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  letter-spacing: 0.06em;
}

/* ========================================
   FOOTER — MOBILE
======================================== */

@media (max-width: 800px) {
  .site-footer {
    padding: 55px 24px 30px;
  }

  .footer-socials {
    gap: 25px;
  }

  .footer-nav {
    gap: 12px 18px;
  }

  .footer-logo {
    width: 50px;
  }

  .footer-disclaimer {
    max-width: 540px;
  }
}