@font-face {
  font-family: "Futura Condensed Extra Bold";
  src: url("./assets/futura-condensed-extra-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Apercu Pro";
  src: url("./apercupro.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Apercu Pro Bold";
  src: url("./apercupro-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color: #111;
  background: #f8f3ef;
  --red: #aa0e0e;
  --content: 932px;
  --body-size: 17px;
  --body-description-size: 14px;
  --section-gap: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; font: var(--body-size)/1.58 "Apercu Pro", Arial, sans-serif; }
.body-description { font-size: var(--body-description-size); }
img { max-width: 100%; }
a { color: inherit; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 10;
  max-width: 968px;
  margin: 0 auto;
  padding: 16px 18px 0;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav a {
  padding: 2px 0 8px;
  color: #111;
  font: 700 14px/1 "Futura Condensed Extra Bold", "Apercu Pro Bold", "Apercu Pro", Arial, sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .15s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] { color: var(--red); }
.site-nav a:focus-visible,
.site-footer a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.mobile-home { display: none; }
.menu-toggle { display: none; }

.display {
  font-family: "Futura Condensed Extra Bold", "Apercu Pro Bold", "Apercu Pro", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.018em;
}
.page-container { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; }
.site-footer {
  margin: 100px auto 0;
  padding: 0 20px 40px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.social-links { display: flex; justify-content: center; gap: 18px; margin-bottom: 25px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: #111; }
.social-links svg { display: block; width: 26px; height: 26px; }
.workshops-page, .whirling-page, .simple-page { padding-bottom: 100px; }

/* Home */
.home-body { min-height: 100svh; display: flex; flex-direction: column; }
.home-body .site-header { width: 100%; }
.home-page { flex: 1; display: grid; place-items: center; min-height: 0; padding: 28px 12px 22px; overflow: hidden; }
.home-artwork {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(416px, calc(100vw - 24px), calc((100svh - 250px) / 1.3));
  max-width: 100%;
  container-type: inline-size;
  transform: translateY(-14px);
}
.home-artwork h1, .home-artwork p { margin: 0; }
.home-artwork img {
  display: block;
  width: 100%;
  height: auto;
}
.home-logo { width: 100%; line-height: 0; }
.home-artwork .home-slogan,
.home-artwork .home-registration {
  width: 100%;
  color: #231f20;
  font: 700 clamp(12px, 4.2cqw, 20px)/1.05 "Futura Condensed Extra Bold", "Apercu Pro Bold", "Apercu Pro", Arial, sans-serif;
  text-align: center;
}
.home-artwork .home-slogan { margin-top: 2.7%; }
.home-artwork .home-photo { width: 92.4%; margin-top: 4%; mix-blend-mode: multiply; }
.home-artwork .home-dates { width: 100%; margin-top: 4.4%; line-height: 0; }
.home-artwork .home-registration { margin-top: 4.3%; }
.home-page + .site-footer { margin-top: 0; padding-bottom: 20px; }

.event-button {
  display: inline-block;
  border: 0;
  border-radius: 0;
  padding: 10px 16px;
  color: #fff;
  background: var(--red);
  font: 700 14px/1 "Futura Condensed Extra Bold", "Apercu Pro Bold", "Apercu Pro", Arial, sans-serif;
  letter-spacing: .055em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.event-button:hover:not(:disabled),
.event-button:focus-visible:not(:disabled) { background: #86100d; }
.event-button:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.event-button:disabled { opacity: 1; cursor: not-allowed; }

/* Workshops */
.workshops-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro photo" "tracks tracks" "teachers-media about";
  gap: var(--section-gap) 72px;
  align-items: start;
  padding-top: 126px;
}
.workshops-intro { grid-area: intro; min-width: 0; }
.workshops-photo-frame { grid-area: photo; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
.workshops-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.tracks-content {
  grid-area: tracks;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
}
.workshops-teachers-media { grid-area: teachers-media; min-width: 0; }
.workshops-teachers-photo { display: block; width: 100%; height: auto; margin: 0 0 22px; }
.workshops-teachers-media p { margin: 0 0 22px; }
.page-title, .section-title {
  margin: 0;
  font-size: 64px;
  line-height: 1.02;
}
.page-title { text-transform: uppercase; }
.title-line { display: block; white-space: nowrap; }
.intro-copy { margin-top: 26px; }
.intro-copy p, .track p, .night-intro p, .band-card p, .venue p { margin: 0 0 22px; }
.intro-copy p:last-of-type { margin-bottom: 16px; }
.workshops-about { grid-area: about; min-width: 0; }
.workshops-about .section-title { margin-bottom: 26px; }
.workshops-about p { margin: 0 0 22px; }
.workshops-teachers-media .teachers-bio { font-style: italic; }
.teachers-website { color: var(--red); font-weight: 700; text-decoration: none; }
.teachers-website:hover, .teachers-website:focus-visible { text-decoration: underline; }
.track { min-width: 0; }
.small-title-caps {
  margin: 0 0 12px;
  color: var(--red);
  font: 700 20px/1.1 "Futura Condensed Extra Bold", "Apercu Pro Bold", "Apercu Pro", Arial, sans-serif;
  text-transform: uppercase;
}
.track h3 {
  margin: 35px 0 8px;
  color: var(--red);
  font: 700 18px/1.1 "Futura Condensed Extra Bold", "Apercu Pro Bold", "Apercu Pro", Arial, sans-serif;
}
.track .red-note { color: var(--red); }
.track .compact { margin-bottom: 0; }
.track-details summary {
  display: inline-block;
  color: var(--red);
  cursor: pointer;
  list-style: none;
}
.track-details summary::-webkit-details-marker { display: none; }
.track-details summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.track-details summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.track-details .when-open, .track-details[open] .when-closed { display: none; }
.track-details[open] .when-open { display: inline; }
.track-details-copy { padding-top: 22px; }
.track-details-copy h3:first-child { margin-top: 0; }
/* Whirling Nights */
.whirling-page { padding-top: 126px; }
.night-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro schedule";
  gap: 72px;
  align-items: start;
}
.night-intro { grid-area: intro; }
.night-intro p { margin-top: 26px; }
.night-schedule { grid-area: schedule; }
.night-schedule section { margin-bottom: 25px; }
.night-schedule h2 { margin-bottom: 3px; }
.night-schedule p { margin: 0; }
.live-music-title { margin-top: var(--section-gap); margin-bottom: 20px; }
.live-music-copy { max-width: 590px; margin: 0 0 64px; }
.bands {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
}
.band-card h2 { margin-bottom: 8px; }
.band-card p { font-style: normal; }
.band-card p:last-child { margin-bottom: 0; }
.band-card .body-description { font-size: var(--body-size); }
.band-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0 0 22px;
}
.band-card img.band-photo-uncropped { height: auto; aspect-ratio: auto; object-fit: contain; }
.band-card:first-child img { filter: grayscale(1); }
.disc-jockeys-section { margin-top: var(--section-gap); }
.disc-jockeys-section p { max-width: 590px; margin: 18px 0 0; }
.shows-section { margin-top: var(--section-gap); }
.shows-section p { max-width: 590px; margin: 18px 0 26px; }
.shows-photo { display: block; width: 100%; height: auto; }

/* Locations and registration */
.simple-page { padding-top: 126px; }
.simple-page > h1 { margin-bottom: 42px; }
.locations-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}
.locations-hero-copy { min-width: 0; }
.locations-hero .page-title { margin-bottom: 24px; }
.locations-intro { max-width: 680px; margin: 0; }
.locations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: var(--section-gap); }
.venue h2 { margin: 0 0 24px; font-size: 64px; line-height: 1.02; }
.venue-photo { display: block; width: 100%; height: auto; margin-bottom: 25px; }
.venue-photo-right { aspect-ratio: 1; object-fit: cover; object-position: right center; }
.venue .body-description { font-size: var(--body-size); font-style: normal; }
.venue .address { margin-top: 24px; }
.venue .address a { text-decoration: underline; text-underline-offset: 3px; }
.venue .address a:hover, .venue .address a:focus-visible { color: var(--red); }
.locations-map { min-width: 0; }
.venue-map { width: 100%; aspect-ratio: 3 / 2; min-height: 300px; background: #e7e3de; }
.map-fallback { margin: 0; padding: 20px; }
.locations-map.is-ready .map-fallback { display: none; }
.venue-pin {
  width: 32px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.venue-pin::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--red);
  box-shadow: 0 2px 5px rgb(0 0 0 / 35%);
  transform: rotate(-45deg);
}
.venue-pin::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.venue-map .maplibregl-popup.venue-popup .maplibregl-popup-content {
  border: 1px solid #111;
  border-radius: 0;
  background: #f8f3ef;
  box-shadow: 0 2px 7px rgb(0 0 0 / 15%);
  padding: 12px 32px 12px 12px;
  color: #111;
  font: 12px/1.25 "Apercu Pro", Arial, sans-serif;
}
.venue-popup strong, .venue-popup span { display: block; }
.venue-popup strong { font-weight: 700; }
.venue-map .maplibregl-popup.venue-popup .maplibregl-popup-close-button {
  color: #111;
  font: 22px/22px Arial, sans-serif;
  right: 5px;
  top: 5px;
}
.venue-map .maplibregl-popup.venue-popup .maplibregl-popup-close-button:hover,
.venue-map .maplibregl-popup.venue-popup .maplibregl-popup-close-button:focus-visible { color: var(--red); }
.register-page { min-height: 63vh; }
.register-page .register-note { margin-top: 25px; }
.register-status { color: var(--red); }
.registration-form-button { margin-top: 0; }
.registration-form-button + .register-note { margin-top: 40px; }

/* Schedule */
.schedule-page {
  padding: 126px 0 100px;
}
.schedule-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 620px;
  gap: var(--section-gap);
  align-items: start;
}
.schedule-day h2 { margin-bottom: 18px; }
.schedule-venue + .schedule-venue { margin-top: 30px; }
.schedule-venue h3 {
  margin: 0 0 6px;
  color: #111;
  font: 700 var(--body-size)/1.58 "Apercu Pro Bold", "Apercu Pro", Arial, sans-serif;
}
.schedule-venue p { margin: 0; line-height: 1.58; }
.schedule-note { margin: var(--section-gap) 0 0; font-style: italic; }

@media (max-width: 950px) {
  :root { --section-gap: 64px; }
  .schedule-page { padding-top: 78px; }
  .schedule-grid { gap: var(--section-gap); }
  .locations-hero { grid-template-columns: 1fr; gap: 35px; }
  .locations-grid { margin-top: var(--section-gap); }
}

@media (min-width: 641px) and (max-width: 760px) {
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 12px; }
}

@media (max-width: 950px) {
  .workshops-page, .night-grid, .bands, .locations-grid { grid-template-columns: 1fr; }
  .workshops-page { grid-template-areas: "intro" "photo" "tracks" "about" "teachers-media"; row-gap: 0; }
  .workshops-photo-frame, .workshops-teachers-media { margin-top: 24px; }
  .tracks-content, .workshops-about { margin-top: var(--section-gap); }
  .tracks-content { grid-template-columns: 1fr; gap: 48px; }
  .bands { gap: 45px; }
  .locations-grid { gap: var(--section-gap); }
  .workshops-page, .whirling-page, .simple-page { padding-top: 78px; }
  .night-grid { grid-template-areas: "intro" "schedule"; row-gap: var(--section-gap); }
  .live-music-title { margin-top: var(--section-gap); margin-bottom: 20px; }
  .live-music-copy { margin-bottom: 58px; }
  .disc-jockeys-section, .shows-section { margin-top: var(--section-gap); }
  .site-footer { margin-top: 85px; }
}

@media (max-width: 640px) {
  .home-page {
    flex: 0 0 auto;
    display: block;
    padding: 36px 12px 0;
    overflow: visible;
  }
  .home-artwork { width: 100%; max-width: none; margin-inline: auto; transform: none; }
  .home-artwork .home-slogan { margin-top: 2.9%; }
  .home-artwork .home-photo { width: 100%; margin-top: 4.2%; }
  .home-artwork .home-dates { margin-top: 4.7%; }
  .home-artwork .home-registration { margin-top: 4.5%; }
  .home-page + .site-footer { margin-top: 64px; }
  .schedule-page { padding-top: 78px; }
  .schedule-grid { gap: var(--section-gap); }
  .schedule-note { margin-top: var(--section-gap); }
  .page-container { width: calc(100% - 24px); }
  .band-card .body-description,
  .venue .body-description {
    font-size: var(--body-size);
    font-style: normal;
  }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 8px 12px;
    background: #f8f3ef;
  }
  .mobile-home { display: inline-flex; align-items: center; min-width: 56px; min-height: 44px; }
  .home-header { justify-content: flex-end; }
  .mobile-home img { display: block; width: 56px; height: auto; }
  .mobile-home:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    color: #111;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
  .menu-bars { display: grid; gap: 5px; }
  .menu-bars span { display: block; width: 24px; height: 2px; background: currentColor; }
  .menu-toggle:hover, .menu-toggle[aria-expanded="true"] { color: var(--red); }
  .site-nav { display: none; }
  .site-header.menu-open .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
    padding: 24px 28px;
    background: #f8f3ef;
    box-shadow: 0 14px 18px rgb(0 0 0 / 12%);
    text-align: right;
  }
  .site-header.menu-open .site-nav a { font-size: 16px; }
}

@media (max-width: 540px) {
  .workshops-page, .whirling-page, .simple-page { padding-top: 66px; }
  .page-title, .section-title { font-size: clamp(36px, 11vw, 60px); }
  .venue h2 { font-size: clamp(36px, 10vw, 48px); }
}

