/* BRAND: change these values to update the whole page. */
@font-face {
  font-family: Festival;
  src: url("/assets/display.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: Literata;
  src: url("/assets/literata-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
:root {
  --red: #c52127;
  --red-dark: #9e1a1f;
  --gold: #ffcd3f;
  --teal: #badddb;
  --ink: #231f20;
  --white: #fff;
  --muted: #58585a;
  --font: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button,
input,
textarea {
  font: inherit;
}
a,
button,
input,
textarea {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}
::selection {
  background: var(--gold);
  color: var(--ink);
}
.wrap {
  width: min(1240px, calc(100% - 112px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: -6rem;
  left: 1rem;
  z-index: 5;
  background: var(--ink);
  color: white;
  padding: 1rem;
}
.skip-link:focus {
  top: 1rem;
}
h1, h2, h3, h4, h5, h6 {
  font-family: Literata, Georgia, serif;
  font-weight: 600;
}
/* The 404 page uses this plain heading; the home page uses .hero h1. */
h1 {
  font-size: clamp(1.6rem, 14.4cqi, 5.2rem);
  overflow-wrap: anywhere;
  line-height: 1.03;
  margin: 0;
  letter-spacing: -0.018em;
}
h2 {
  font-size: clamp(3.5rem, 5.3vw, 5rem);
  line-height: 1.03;
  margin: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.2rem;
  max-width: 100%;
  min-height: 48px;
  background: var(--red);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 99px;
  padding: 15px 25px;
  cursor: pointer;
  transition:
    background 0.18s,
    transform 0.18s;
}
.button:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}
.button span {
  font-size: 1.35rem;
  line-height: 1;
}
/* HEADER */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-block: 28px;
  border-bottom: 1px solid #231f2025;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  width: 271px;
  flex-shrink: 0;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 2.6rem;
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.site-header nav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.nav-contact {
  border: 1px solid var(--ink);
  border-radius: 99px;
  padding: 10px 20px;
}
.nav-contact span {
  margin-left: 14px;
}
/* HERO: a festival masthead above an oversized performance. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  align-items: center;
  gap: 20px 36px;
  padding-block: 32px 48px;
}
.hero-copy {
  grid-column: 1 / -1;
  text-align: center;
}
.place {
  margin: 0 0 16px;
  font-size: 1.32rem;
  color: var(--red);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.hero h1 {
  font-size: clamp(1.12rem, 2.52vw, 2.38rem);
  line-height: 1.15;
}
.hero h1 span {
  display: inline-block;
}
.hero-art {
  position: relative;
  isolation: isolate;
  margin: 0;
  width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.jester {
  display: block;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 100%;
  /* Reserve room for the navigation, headline, and breathing space.
     Convert the available height to width using the artwork aspect ratio. */
  max-width: clamp(220px, calc((100svh - 320px) * 1040 / 1080), 760px);
  flex-shrink: 0;
  align-self: center;
  aspect-ratio: 1040 / 1080;
  overflow: hidden;
  background: white;
}
.jester-still, .jester-video {
  /* Keep both layers out of native button content layout on Safari. */
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Show source pixels 420–1460 to center the visible cityscape. */
  object-position: 47.7273% center;
  /* Match compressed video whites to the page, including the final still. */
  filter: brightness(1.02);
}
.jester-video {
  opacity: 0;
  pointer-events: none;
}
.jester-video.is-playing { opacity: 1; }
.hero-details {
  align-self: center;
  padding-block: 24px;
}
.hero-details strong {
  display: inline-block;
  color: var(--red);
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.hero-details .button { gap: 1rem; }
.hero-intro {
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 32rem;
}
/* A static ribbon, not an endlessly moving marquee. */
.festival-band {
  background: var(--gold);
  padding: 16px 20px;
}
.festival-band > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5em 1em;
  font-family: Festival, Georgia, serif;
  font-size: clamp(0.875rem, 2.05vw, 2rem);
  line-height: 1.4;
  text-align: center;
}
.festival-band span {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.festival-band b {
  font-family: var(--font);
  color: var(--red);
  font-weight: 400;
  margin-right: 0.35em;
}
/* ABOUT */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6rem;
  padding-block: 100px;
}
.about-copy {
  align-self: center;
  max-width: 480px;
}
.about-copy .lead {
  font-family: Literata, Georgia, serif;
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1.35;
  letter-spacing: -0.025em;
  margin-top: 0;
}
.about-copy > p:not(.lead) {
  font-size: 1.1rem;
  color: var(--muted);
  margin-block: 1.1rem;
}
.text-link {
  align-items: center;
  min-height: 44px;
  display: inline-flex;
  gap: 1.7rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  margin-top: 0.7rem;
}
.text-link:hover {
  color: var(--red);
}
/* CONTACT */
.contact {
  background: var(--teal);
}
.contact-inner {
  padding-block: 76px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 5rem;
}
.contact-copy h2 {
  font-size: clamp(4.3rem, 7vw, 6.6rem);
}
.contact-copy > p {
  font-size: 1.1rem;
  margin-block: 1.8rem 1.1rem;
}
.email-link {
  font-weight: 600;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}
.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.field {
  min-width: 0;
  margin-bottom: 22px;
}
label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}
label span {
  font-weight: 400;
}
input:not([type="file"]),
textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #231f2055;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 140px;
}
input[type="file"] {
  font-size: 1rem;
  min-width: 0;
  width: 100%;
  color: var(--ink);
}
input[type="file"]::file-selector-button {
  min-height: 44px;
  background: transparent;
  border: 1px solid #231f2066;
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  margin-right: 10px;
  cursor: pointer;
}
.form-note {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0.65rem 0 0;
  color: #354946;
}
.button-dark {
  background: var(--ink);
  min-width: min(235px, 100%);
}
.button-dark:hover {
  background: #000;
}
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.form-status {
  font-size: 0.95rem;
  margin: 14px 0;
  min-height: 1.6em;
}
.form-status a {
  text-underline-offset: 3px;
}
.form-status[data-state="error"] {
  color: #801319;
}
.honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#verification {
  margin-bottom: 16px;
}
.contact :focus-visible {
  outline-color: var(--ink);
}
/* FOOTER */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 30px;
}
.site-footer img {
  width: 175px;
}
.site-footer small {
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-credit {
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 3px;
}
/* Text zoom and missing fonts must reflow rather than spill into other columns. */
.hero-copy, .hero-art, .about-heading, .about-copy,
.contact-copy, #contact-form, .footer-credit { min-width: 0; }
h2, .place, .form-status, .footer-credit { overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 64px);
  }
  h1 {
    font-size: clamp(1.6rem, 14.4cqi, 4.48rem);
  }
  .about {
    gap: 3rem;
    padding-block: 74px;
  }
  .contact-inner {
    gap: 3rem;
  }
  /* Keep tablet widths and landscape phones comfortable. */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .site-footer small {
    width: 100%;
  }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 16px; }
  .hero h1 { font-size: clamp(1.12rem, 3.08vw, 1.904rem); }
  .jester {
    max-width: clamp(220px, calc((100svh - 280px) * 1040 / 1080), 620px);
  }
  .hero-details { text-align: center; padding-block: 0; }
  .hero-intro { max-width: 34rem; margin: 0 auto 22px; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 740px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    padding-block: 20px;
    gap: 12px;
  }
  .brand {
    width: clamp(161px, 43.7vw, 200px);
  }
  .site-header nav {
    gap: 0;
  }
  .site-header nav > a:first-child {
    display: none;
  }
  .nav-contact {
    padding: 8px 12px;
  }
  .nav-contact span {
    margin-left: 5px;
  }
  .site-header nav a {
    font-size: 0.875rem;
  }
  .place {
    font-size: 1.155rem;
  }
  h1 {
    font-size: clamp(1.6rem, 14.4cqi, 4.16rem);
  }
  .hero-art {
    justify-self: center;
  }
  .festival-band {
    padding-block: 10px;
  }
  .festival-band > div {
    flex-direction: column;
    font-size: clamp(1rem, 3.7vw, 1.55rem);
    gap: 0.25em;
  }
  .festival-band b { display: none; }
  .about {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 56px;
  }
  .about-heading h2 {
    font-size: clamp(2.5rem, 10vw, 3.6rem);
  }
  .about-copy .lead {
    font-size: 1.6rem;
  }
  .about-copy > p:not(.lead) {
    font-size: 1rem;
  }
  .contact-inner {
    padding-block: 45px;
  }
  .contact-copy h2 {
    font-size: clamp(2.75rem, 11vw, 4.3rem);
  }
  .contact-copy > p {
    margin-block: 20px 12px;
  }
  .button-dark {
    width: 100%;
  }
  .site-footer {
    gap: 12px;
    padding-block: 26px;
  }
  .site-footer small {
    font-size: 0.8rem;
  }
  .footer-credit {
    text-align: left;
  }
}
@media (max-width: 480px) {
  .hero { padding-top: 24px; }
  .hero h1 { font-size: clamp(0.924rem, 3.92vw, 1.176rem); }
  .hero-art { width: calc(100% + 24px); }
  .hero-details strong { font-size: 1.2rem; }
}
@media (max-width: 374px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { gap: 8px; padding-block: 16px; }
  .nav-contact span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  .button:hover {
    transform: none;
  }
}
