@font-face {
  font-family: Lalezar;
  src: url("brand/web/fonts/Lalezar-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cf-marquee-red: #792D22;
  --cf-ticket-tan: #F6D7AB;
  --cf-popcorn-cream: #FCE8BF;
  --cf-lobby-ivory: #F7F5EE;
  --cf-projection-ink: #22272B;
  --display: P052, "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Noto Sans Display", system-ui, sans-serif;
  --gutter: clamp(1.125rem, 5vw, 6rem);
  --masthead-height: clamp(4.5rem, 11svh, 6.25rem);
  --end-margin: clamp(1.5rem, 5svh, 3.5rem);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cf-lobby-ivory);
  color: var(--cf-projection-ink);
  font: 400 1rem/1.5 var(--body);
}

body:has(.viewer[open]) {
  overflow: hidden;
}

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

button {
  font: 600 1rem/1.35 var(--body);
  cursor: pointer;
}

button, a {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--cf-marquee-red);
  outline-offset: 4px;
}

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  position: absolute;
  z-index: 1;
  top: .5rem;
  left: var(--gutter);
  padding: .65rem 1rem;
  background: var(--cf-marquee-red);
  color: var(--cf-popcorn-cream);
}

.page-width {
  max-width: 112rem;
  padding-inline: var(--gutter);
  margin-inline: auto;
}

.masthead {
  border-bottom: 1px solid var(--cf-marquee-red);
}

.masthead-inner {
  min-height: var(--masthead-height);
  display: flex;
  align-items: center;
}

.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.home-link img {
  width: 180px;
}

.studio {
  margin-bottom: var(--end-margin);
  background: var(--cf-ticket-tan);
  border-bottom: 1px solid var(--cf-marquee-red);
}

.spread {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  grid-template-areas: "billing ticket" "action .";
  align-content: center;
  align-items: center;
  gap: 1.5rem clamp(2.5rem, 4vw, 5rem);
  min-height: calc(100svh - var(--masthead-height) - var(--end-margin) - 2px);
  padding-block: clamp(3rem, 8svh, 7rem);
}

.billing {
  grid-area: billing;
  color: var(--cf-marquee-red);
}

h1 {
  margin: 0;
  font: 700 clamp(3rem, 5.6vw, 6.25rem)/1.01 var(--display);
  letter-spacing: -.043em;
}

h1 span {
  display: block;
}

.opening-ar {
  width: fit-content;
  max-width: 100%;
  margin: .6em 0 0;
  font: 400 clamp(1.875rem, 2.45vw, 2.75rem)/1.35 Lalezar, Tahoma, sans-serif;
  letter-spacing: normal;
  text-align: start;
}

.descriptor {
  margin: clamp(1.5rem, 3.75svh, 2.75rem) 0 0;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  color: var(--cf-projection-ink);
}

.ticket {
  grid-area: ticket;
  width: 100%;
}

.ident-launch {
  grid-area: action;
  justify-self: start;
  margin: 0;
}

.play-action {
  display: inline-flex;
  align-items: center;
  gap: .875rem;
  min-height: 50px;
  padding: .85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--cf-marquee-red);
  color: var(--cf-popcorn-cream);
}

.play-action::before {
  content: "";
  border-block: .35em solid transparent;
  border-left: .55em solid currentColor;
}

.play-action:is(:hover, :active) {
  background: var(--cf-projection-ink);
}

.viewer {
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(1rem, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right))
           max(1rem, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  border: 0;
  background: var(--cf-projection-ink);
  color: var(--cf-lobby-ivory);
  overscroll-behavior: contain;
}

.viewer[open] {
  display: flex;
  flex-direction: column;
  gap: .875rem;
}

.viewer::backdrop {
  background: var(--cf-projection-ink);
}

.screen {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  container-type: size;
}

.film-frame {
  position: relative;
  width: min(100%, calc(56.25vh - 4.5rem));
  width: min(100cqw, 56.25cqh);
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  background: var(--cf-ticket-tan);
}

.intact-ticket {
  width: 88%;
}

.film-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-error {
  margin: 0;
  text-align: center;
}

.media-error:empty {
  display: none;
}

.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  width: min(100%, 36rem);
  margin-inline: auto;
  padding-top: .5rem;
  border-top: 1px solid var(--cf-ticket-tan);
}

.viewer h2 {
  margin: 0;
  font: 700 clamp(1.25rem, 3vw, 1.625rem)/1.2 var(--display);
}

.viewer-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.viewer button {
  min-width: 4.5rem;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: .45rem .8rem;
  background: var(--cf-popcorn-cream);
  color: var(--cf-projection-ink);
}

#close-viewer {
  border-color: var(--cf-ticket-tan);
  background: transparent;
  color: var(--cf-popcorn-cream);
}

.viewer button:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.viewer :focus-visible {
  outline-color: var(--cf-popcorn-cream);
}

@media (max-width: 53rem) {
  :root {
    --gutter: clamp(1.125rem, 5.5vw, 3rem);
    --masthead-height: 4.5rem;
  }

  .home-link img {
    width: 148px;
  }

  .spread {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "billing" "ticket" "action";
    row-gap: clamp(1.75rem, 4.5svh, 3.25rem);
    padding-block: clamp(2.5rem, 7svh, 5rem);
  }

  h1 {
    font-size: clamp(2.25rem, 12.5vw, 4.75rem);
  }

  .opening-ar {
    font-size: clamp(1.45rem, 7.35vw, 2.35rem);
  }
}

@media (forced-colors: active) {
  .play-action, .viewer button {
    border-color: ButtonText;
  }
}
