/* WILD BEAUTY: MUSTANG SPIRIT OF THE WEST
   Hand-written stylesheet. No framework, no build step. */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Halant";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/halant-300.woff2") format("woff2");
}
@font-face {
  font-family: "Halant";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/halant-400.woff2") format("woff2");
}
@font-face {
  font-family: "Halant";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/halant-600.woff2") format("woff2");
}

/* ---------- tokens ---------- */
:root {
  --ink: #1a1a1a;
  --ink-2: #242424;
  --ink-3: #2e2e2e;
  --ink-4: #3a3a3a;
  --paper: #ffffff;

  /* Text on dark. #d9d9d9 on #242424 = 10.2:1 */
  --text: #dcdcdc;
  --text-dim: #b4b4b4;      /* on #242424 = 7.1:1 */
  --text-strong: #ffffff;

  /* Gold. #fcac49 on #242424 = 8.9:1. Deep gold for text on light. */
  --gold: #fcac49;
  --gold-soft: #ffd9a3;
  --gold-ink: #6d4405;

  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.3);

  --display: "Halant", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --wrap: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
  --pad-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 2px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink-2);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(0.975rem, 0.94rem + 0.18vw, 1.0625rem);
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 400; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-soft); }

/* ---------- focus, always visible ---------- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: #241500;
  font-weight: 700;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.5rem; color: #241500; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.h-display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-h {
  font-size: clamp(1.35rem, 1.05rem + 1.4vw, 2rem);
  color: var(--text-strong);
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.section-h--left { text-align: left; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.55);
  color: var(--text-strong);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { background: #000; border-color: var(--gold); color: var(--gold); }
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.72rem; }
.btn__arrow { font-size: 0.9em; }

.btn--solid {
  background: #000;
  border-color: #000;
  padding: 0.9rem 1.75rem;
  font-size: 0.85rem;
}
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: #241500; }
.btn__play { font-size: 0.75em; }

/* ---------- top bar ---------- */
.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding: 0.9rem 0;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.social {
  display: flex;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social__link {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.social__link:hover { background: var(--gold); color: #241500; }
.social__icon { display: grid; place-items: center; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(30rem, 72vh, 46rem);
  display: grid;
  align-items: center;
  background: #000;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.25) 35%, rgba(26, 26, 26, 0.7) 85%, var(--ink-2) 100%);
}
.hero__inner {
  text-align: center;
  padding: 7rem 0 4rem;
}
.hero__byline {
  font-size: clamp(0.7rem, 0.64rem + 0.3vw, 0.8rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 0.9rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}
.hero__title {
  font-size: clamp(2.75rem, 1.4rem + 6.4vw, 6.5rem);
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.25rem;
}
.hero__sub {
  font-size: clamp(1rem, 0.6rem + 1.9vw, 2.1rem);
  letter-spacing: 0.24em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85);
  margin-bottom: 2rem;
}

/* ---------- intro ---------- */
.intro {
  background: var(--ink-2);
  padding: clamp(2rem, 5vw, 3.5rem) 0 var(--pad-y);
}
.intro__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  max-width: 60rem;
  margin-inline: auto;
  text-align: center;
  background: rgba(0, 0, 0, 0.18);
}
.intro__card p + p { margin-top: 1.1em; }

.credits {
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  max-width: 62rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}
.credits__row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4ch;
  justify-content: center;
}
.credits dt {
  font-weight: 700;
  color: var(--text-strong);
}
.credits dd {
  margin: 0;
  color: var(--text-dim);
}
.production {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---------- galleries ---------- */
.gallery-section {
  background: var(--ink-3);
  padding: var(--pad-y) 0;
}
.gallery-section--alt { background: var(--ink-2); }

/* Nine photographs per gallery, so lock to three columns on wide screens
   and let them reflow to two and one below that. No orphan rows. */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 24rem) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 52rem) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  aspect-ratio: 3 / 2;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.25s ease;
}
.gallery__item:hover img { transform: scale(1.045); opacity: 0.88; }

/* ---------- videos ---------- */
.videos {
  background: var(--ink-3);
  padding: var(--pad-y) 0;
}
.video-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 1rem;
}
@media (min-width: 34rem) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .video-grid { grid-template-columns: repeat(4, 1fr); } }
.video {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}
.video__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.25s ease, transform 0.4s ease;
}
.video:hover .video__poster { opacity: 1; transform: scale(1.04); }
.video__play {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-size: 1rem;
  padding-left: 0.18rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.video:hover .video__play { background: var(--gold); color: #241500; border-color: var(--gold); }
.video__title {
  margin: 0.7rem 0 0;
  font-size: 0.825rem;
  line-height: 1.45;
  color: var(--text-dim);
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video__fallback { font-size: 0.85rem; }

/* ---------- awards + press ---------- */
.two-col-band {
  background: var(--ink-4);
  padding: var(--pad-y) 0;
}
.two-col {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 56rem) {
  .two-col { grid-template-columns: 1fr 1.25fr; }
}

.awards, .press {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.awards li, .press li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.7rem;
  align-items: start;
}
.awards__icon, .press__icon {
  color: var(--gold);
  line-height: 1.6;
}
.awards__event { color: var(--text-strong); font-weight: 600; }
.awards__prize { color: var(--gold); font-weight: 600; }

.press__head {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}
.press__body {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}
.press__link {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- screening schedule ---------- */
.schedule {
  background: var(--ink-4);
  padding: 0 0 var(--pad-y);
}
.schedule__inner {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  padding-top: var(--pad-y);
  grid-template-columns: 1fr;
}
@media (min-width: 56rem) {
  .schedule__inner { grid-template-columns: minmax(17rem, 22rem) 1fr; align-items: start; }
}
.schedule__h { margin-bottom: 0; line-height: 1.4; text-wrap: balance; }

.schedule__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr));
  gap: 0.65rem;
  align-items: start;
}
.month {
  background: #191919;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.month[open] { grid-column: 1 / -1; }
.month__summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--text-strong);
  list-style: none;
}
.month__summary::-webkit-details-marker { display: none; }
.month__summary:hover { color: var(--gold); }
.month__arrow { color: var(--gold); transition: transform 0.2s ease; }
.month[open] .month__arrow { transform: rotate(90deg); }

.month__items {
  list-style: none;
  margin: 0;
  padding: 0 1rem 1.1rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}
.screening p { margin: 0; }
.screening__date {
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9rem;
}
.screening__place { color: var(--text-strong); font-size: 0.875rem; }
.screening__event { color: var(--text-dim); font-size: 0.85rem; }
.screening__ticket {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
}

/* ---------- footer ---------- */
.sitefoot {
  background: #000;
  padding: var(--pad-y) 0 3rem;
  text-align: center;
}
.sitefoot__mark {
  font-family: var(--display);
  font-size: clamp(2rem, 1.1rem + 4.2vw, 4rem);
  letter-spacing: 0.16em;
  color: #fff;
  margin-bottom: 1.75rem;
}
.sitefoot__contact {
  list-style: none;
  margin: 0 0 2.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2.25rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}
.sitefoot__contact li { display: inline-flex; align-items: center; gap: 0.45rem; }
.sitefoot__contact .ic { color: var(--gold); display: grid; place-items: center; }

.sitefoot__never {
  font-size: clamp(1.25rem, 0.95rem + 1.35vw, 1.85rem);
  color: #fff;
  margin-bottom: 0.9rem;
}
.newsletter { margin-bottom: 2.75rem; }
.newsletter__note {
  max-width: 38rem;
  margin-inline: auto;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.legal {
  max-width: 46rem;
  margin-inline: auto;
  font-size: 0.76rem;
  line-height: 1.7;
  color: #9a9a9a;
}
.rule {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 2.5rem auto;
  max-width: 46rem;
}
.credit { font-size: 0.8rem; }
.credit a { color: #fff; }
.credit a:hover { color: var(--gold); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(0, 0, 0, 0.93);
}
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; max-width: 100%; text-align: center; }
.lightbox__fig img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius);
}
.lightbox__cap {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 46rem;
  margin-inline: auto;
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #000;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: var(--gold); color: #241500; border-color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
