@font-face {
  font-family: "Jost Medieval";
  src: url("../fonts/jost-medieval.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Jost Medieval";
  src: url("../fonts/jost-medieval-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #151515;
  --orange: #e98211;
  --gold: #d37a18;
  --brown: #833809;
  --cream: #f6dfc3;
  --line: rgba(233, 130, 17, 0.46);
  --font: "Jost Medieval", Georgia, serif;
  --page: 74rem;
  color-scheme: dark;
}

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

html {
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  min-height: 100%;
  background: transparent;
  color: var(--cream);
  font-family: var(--font);
  font-size: 1.08rem;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(21, 21, 21, 0.12), rgba(21, 21, 21, 0.12)),
    url("../images/background.png") center top / cover no-repeat;
  pointer-events: none;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
p + p { margin-top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .65rem 1rem;
  color: var(--ink);
  background: var(--orange);
}

.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: 4.6rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .75rem max(1.25rem, calc((100vw - var(--page)) / 2));
  background: rgba(21, 21, 21, .92);
  border-bottom: 1px solid rgba(131, 56, 9, .8);
  backdrop-filter: blur(12px);
}

.header-logo { margin-right: auto; }
.header-logo img { display: block; width: 9.5rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.8rem);
}

.site-nav a {
  color: var(--orange);
  font-size: .88rem;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] { color: var(--cream); }

.site-nav a.site-nav__tickets {
  padding: .55rem .85rem;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
}

.site-nav a.site-nav__tickets:hover,
.site-nav a.site-nav__tickets:focus-visible,
.site-nav a.site-nav__tickets[aria-current="true"] {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

.menu-button {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: .65rem;
  border: 1px solid var(--brown);
  background: transparent;
}

.menu-button > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: .25rem 0;
  background: var(--orange);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 8rem 1.25rem 3.5rem;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 58rem);
  text-align: center;
}

.eyebrow,
.chapter__kicker {
  color: var(--orange);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero h1 { margin: 1.5rem 0 1rem; }
.hero h1 img { width: min(100%, 45rem); }

.hero__facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.4rem;
}

.hero__facts span {
  padding: 0;
  color: var(--orange);
  text-transform: uppercase;
}

.hero__lead {
  max-width: 40rem;
  margin: 1.6rem auto 0;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.35;
}

.hero__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero__socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: .75rem 1.5rem;
  color: var(--ink);
  background: var(--orange);
  border: 1px solid var(--orange);
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: polygon(4% 0, 96% 0, 100% 18%, 98% 50%, 100% 82%, 96% 100%, 4% 100%, 0 82%, 2% 50%, 0 18%);
  transition: background .2s ease, color .2s ease;
}

.button:hover { background: var(--cream); border-color: var(--cream); }
.button--social {
  min-height: 2.9rem;
  padding: .65rem 1.15rem;
  font-size: .88rem;
  clip-path: none;
}
.button--secondary {
  color: var(--orange);
  background: var(--ink);
  border: 1px solid var(--orange);
  clip-path: none;
}
.button--secondary:hover { color: var(--ink); background: var(--cream); }
.button--outline {
  color: var(--orange);
  background: transparent;
  border-inline: 0;
  clip-path: none;
}

.text-link {
  color: var(--orange);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.text-link span { display: inline-block; margin-left: .35rem; }

.hero__castle {
  display: block;
  width: min(16rem, 55vw);
  margin: 2.3rem auto 0;
}

.chapter {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: center;
  padding: clamp(6rem, 10vw, 10rem) 1.25rem;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.chapter__inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--page));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.chapter--reverse .chapter__copy { grid-column: 2; grid-row: 1; }
.chapter--reverse .chapter__media { grid-column: 1; grid-row: 1; }

.chapter__copy {
  width: 100%;
  max-width: 31rem;
}

.chapter:not(.chapter--reverse) .chapter__copy { justify-self: end; }

.chapter h2,
.interlude h2,
.ticket-section h2,
.error-page h1,
.contacts h2 {
  margin: .6rem 0 1.5rem;
  color: var(--orange);
  font-size: clamp(2rem, 4.5vw, 4.6rem);
  line-height: .98;
  text-transform: uppercase;
}

.chapter__copy > p:not(.chapter__kicker) {
  color: rgba(246, 223, 195, .86);
  font-size: 1.2em;
}

.chapter__cta { margin-top: 1rem; }

.chapter__media {
  min-width: 0;
  margin: 0;
}

.chapter__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.04);
}

.chapter__media--single {
  aspect-ratio: 4 / 3;
  padding: .45rem;
  border: 1px solid var(--orange);
  background: var(--ink);
  clip-path: polygon(1.5% 0, 100% 0, 100% 96%, 97% 100%, 0 100%, 0 4%);
}

.chapter__media--landscape {
  aspect-ratio: 3 / 2;
  padding: .45rem;
  border: 1px solid var(--orange);
  background: var(--ink);
}

.chapter__media--portrait {
  justify-self: start;
  width: min(100%, 31rem);
  height: min(66svh, 44rem);
  padding: .45rem;
  border: 1px solid var(--orange);
  background: var(--ink);
}

.chapter__media--pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.chapter__media--pair figure {
  position: relative;
  height: clamp(22rem, 54vw, 36rem);
  margin: 0;
  padding: .4rem;
  border: 1px solid var(--orange);
  background: var(--ink);
}

.chapter__media--pair figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: .25rem .65rem;
  color: var(--ink);
  background: var(--orange);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.chapter__media--stack {
  display: grid;
  gap: 1rem;
}

.chapter__media--stack figure {
  position: relative;
  aspect-ratio: 3 / 2;
  margin: 0;
  padding: .4rem;
  border: 1px solid var(--orange);
  background: var(--ink);
}

.chapter__media--stack figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: .25rem .65rem;
  color: var(--ink);
  background: var(--orange);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.interlude,
.ticket-section,
.contacts {
  position: relative;
  padding: clamp(7rem, 12vw, 11rem) 1.25rem;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.interlude__inner,
.ticket-section__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 54rem);
  margin-inline: auto;
  text-align: center;
}

.interlude p,
.ticket-section p { max-width: 39rem; margin: 0 auto 2rem; }

.ticket-section { min-height: 78svh; display: grid; place-items: center; }

.ticket-widget {
  width: min(100%, 46rem);
  min-height: 8rem;
  margin-inline: auto;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  color: var(--cream);
  background: rgba(21, 21, 21, .92);
  border: 1px solid var(--brown);
  text-align: left;
}

.ticket-widget iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  margin-inline: auto;
  border: 0;
}

.ticket-widget__fallback {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}

.contacts__inner {
  width: min(100%, var(--page));
  margin-inline: auto;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.contacts__details {
  display: grid;
  align-content: center;
  gap: 1.3rem;
  font-size: clamp(1.1rem, 1.45vw, 1.35rem);
}

.contacts__details p {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  align-items: baseline;
  column-gap: clamp(1rem, 2.5vw, 2rem);
  padding-bottom: .85rem;
  border-bottom: 1px solid rgba(131, 56, 9, .75);
}

.contacts__details p span { color: var(--orange); text-transform: uppercase; }
.contacts__details p a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem max(1.25rem, calc((100vw - var(--page)) / 2));
  background: rgba(21, 21, 21, .92);
  border-top: 1px solid var(--brown);
}

.site-footer img { width: 9rem; }
.site-footer p { color: rgba(246, 223, 195, .7); }
.site-footer__copyright { display: block; margin-top: .3rem; }
.site-footer a { color: var(--orange); text-decoration: none; }

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { min-height: 4rem; padding-block: .55rem; }
  .menu-button { display: block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .75rem 1.25rem 1rem;
    background: rgba(21, 21, 21, .98);
    border-bottom: 1px solid var(--brown);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid rgba(131, 56, 9, .5); }
  .site-nav a.site-nav__tickets {
    margin-block: .45rem;
    padding: .8rem 1rem;
    border-bottom-color: var(--orange);
    text-align: center;
  }

  .hero { min-height: auto; padding-top: 7.5rem; }

  .chapter { min-height: auto; padding-block: 6rem; }
  .chapter__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .chapter--reverse .chapter__copy,
  .chapter--reverse .chapter__media { grid-column: 1; }
  .chapter--reverse .chapter__copy { grid-row: 1; }
  .chapter--reverse .chapter__media { grid-row: 2; }
  .chapter__copy { max-width: 42rem; }
  .chapter:not(.chapter--reverse) .chapter__copy { justify-self: start; }
  .chapter__media--portrait { justify-self: start; width: min(100%, 34rem); height: 38rem; }
  .contacts__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .header-logo img { width: 7.8rem; }
  .hero__facts { flex-direction: column; align-items: center; }
  .hero__lead { font-size: 1.2rem; }
  .hero__actions { flex-direction: column; }
  .hero__socials { flex-direction: column; align-items: stretch; width: min(100%, 22rem); margin-inline: auto; }
  .chapter h2,
  .interlude h2,
  .ticket-section h2,
  .error-page h1,
  .contacts h2 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .chapter__media--pair { grid-template-columns: 1fr; }
  .chapter__media--pair figure { height: 26rem; }
  .chapter__media--portrait { height: 32rem; }
  .contacts__details p { grid-template-columns: 1fr; gap: .2rem; }
  .site-footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
