/* Lost Christmas page. Every class is prefixed lc- so it can't clash with the WordPress theme.
   Images are /img/lc-*.v1.*; rename this file and the images together when either changes. */
@font-face { font-family: Poppins; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/poppins-300-latin.v24.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/poppins-400-latin.v24.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/poppins-500-latin.v24.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/fonts/jetbrainsmono-latin.v24.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/poppins-700-latin.v24.woff2) format("woff2"); }

.lc-body {
  --lc-navy: #0c0a4d;
  --lc-link: #0b6dc2;
  --lc-edge: #d9d9d9;
  --lc-max: 1400px;
  --lc-hsize: clamp(1.5rem, 6.4vw, 2rem);   /* the heading and the screenings button share this size */
  margin: 0;
  background: #fff;
  color: var(--lc-navy);
  font-family: Poppins, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
}
.lc-body *, .lc-body *::before, .lc-body *::after { box-sizing: border-box; }

/* Nothing grows past 1400px: centred, with a 1px grey edge on the left and right only. */
.lc-page {
  max-width: var(--lc-max);
  min-height: 100vh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  border-inline: 1px solid var(--lc-edge);
  background: #fff;
}

.lc-banner { position: relative; z-index: 1; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.lc-banner__link { display: block; }
.lc-banner__img { display: block; width: 100%; height: auto; }

/* Background starts directly under the banner and fades to white. */
.lc-main {
  flex: 1;
  padding: clamp(32px, 6vw, 80px) clamp(24px, 10.4vw, 146px) 0;
  background: #fff url(/img/lc-bg-1400.v1.jpg) no-repeat top center / max(100%, 800px) auto;
}
/* Falling snow (public/js/lc-snow.v1.js): a canvas over the banner and background, under the content, never in the way of clicks.
   It sits after the banner (z-index 1) and before the main content (z-index 1), so DOM order sets the layering. */
.lc-page { position: relative; }
.lc-snow { position: absolute; top: 0; left: 0; width: 100%; z-index: 1; pointer-events: none; }
.lc-main > * { position: relative; z-index: 1; }
@supports (background-image: image-set(url(a.avif) type("image/avif"))) {
  .lc-main {
    background-image: image-set(
      url(/img/lc-bg-1400.v1.avif) type("image/avif") 1x, url(/img/lc-bg-1889.v1.avif) type("image/avif") 2x,
      url(/img/lc-bg-1400.v1.webp) type("image/webp") 1x, url(/img/lc-bg-1889.v1.webp) type("image/webp") 2x,
      url(/img/lc-bg-1400.v1.jpg) type("image/jpeg") 1x, url(/img/lc-bg-1889.v1.jpg) type("image/jpeg") 2x);
  }
}
@media (max-width: 800px) {
  .lc-main { background-image: url(/img/lc-bg-800.v1.jpg); }
  @supports (background-image: image-set(url(a.avif) type("image/avif"))) {
    .lc-main { background-image: image-set(
      url(/img/lc-bg-800.v1.avif) type("image/avif") 1x, url(/img/lc-bg-1400.v1.avif) type("image/avif") 2x,
      url(/img/lc-bg-800.v1.webp) type("image/webp") 1x, url(/img/lc-bg-1400.v1.webp) type("image/webp") 2x,
      url(/img/lc-bg-800.v1.jpg) type("image/jpeg") 1x, url(/img/lc-bg-1400.v1.jpg) type("image/jpeg") 2x); }
  }
}

/* Yellow button above the heading (same yellow and type as the strip on the root page poster), linking to the screenings page. */
/* The screenings link is set exactly like the heading (same type, weight, size, colour), with the heading's "or" on its own line below it. */
.lc-cta { margin: 0; text-align: center; }   /* no extra gap: the three lines (link, or, Stream/Download) are one evenly spaced stack */
.lc-cta__button {
  display: inline-block; max-width: 100%;
  color: var(--lc-navy); text-decoration: none;
  font-family: Poppins, system-ui, sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: var(--lc-hsize); line-height: 1.15; text-wrap: balance;
}
/* Button under the screenings link: 1px black outline, yellow with a slight gradient, black text. */
.lc-cta__row { display: block; margin: clamp(10px, 1.6vw, 18px) 0; }
.lc-btn {
  display: inline-block; padding: .65em 1.6em;
  color: #000; text-decoration: none; border: 1px solid #000; border-radius: 6px;
  background: linear-gradient(to bottom, #fff9b0 0%, #faf08f 45%, #efd930 100%);
  font-family: Poppins, system-ui, sans-serif; font-weight: 400; font-size: clamp(.95rem, 3.4vw, 1.15rem); line-height: 1.2;
  transition: background .15s, box-shadow .15s, transform .15s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 2px 0 rgba(0, 0, 0, .25), 0 3px 8px rgba(0, 0, 0, .2);
  cursor: pointer;
}
.lc-btn:hover {
  background: linear-gradient(to bottom, #fffdd2 0%, #fff27a 45%, #ffe733 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 #fff, 0 4px 0 rgba(0, 0, 0, .15), 0 8px 16px rgba(0, 0, 0, .3);
}
.lc-btn:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.lc-btn:focus-visible { outline: 3px solid var(--lc-navy); outline-offset: 3px; }
.lc-cta__button:hover { text-decoration: underline; text-underline-offset: 3px; }
.lc-cta__button:focus-visible { outline: 3px solid var(--lc-navy); outline-offset: 3px; }

.lc-title {
  margin: 0 0 clamp(20px, 5vw, 70px);
  text-align: center;
  text-transform: uppercase;
  font-weight: 300;
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  line-height: 1.15;
  text-wrap: balance;
}
.lc-title strong { font-weight: 700; display: block; }
.lc-title a { color: inherit; text-decoration: none; }
@media (min-width: 640px) {
  .lc-title { font-size: clamp(2.5rem, 5.2vw, 4.55rem); }
  .lc-title strong { display: inline; }
}

/* One column: poster, find, about. Two columns from 900px. */
.lc-grid { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.lc-poster { display: block; width: min(72%, 360px); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.lc-poster__img { display: block; width: 100%; height: auto; }

.lc-find { width: 100%; max-width: 436px; text-align: center; }
/* One column: the dropdown comes before the poster so it sits above the fold on a phone. */
.lc-find { order: 1; }
.lc-trailer { order: 2; width: min(100%, 476px); margin-top: 40px; }
.lc-poster { order: 3; margin-top: 40px; }
.lc-about { order: 4; }
.lc-trailer__frame { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.lc-trailer__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.lc-find__label { display: block; font-size: 1.1rem; font-weight: 400; margin-bottom: 18px; }
/* The jump links move focus here (for screen readers). It isn't interactive, so no focus ring. */
.lc-find__label:focus { outline: none; }
.lc-find__label strong, .lc-prompt__text strong { font-weight: 700; }

.lc-select { position: relative; }
.lc-select::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 7px; height: 7px;
  border-right: 1.5px solid var(--lc-navy); border-bottom: 1.5px solid var(--lc-navy);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.lc-select__input {
  display: block; width: 100%; height: 63px; padding: 0 44px 0 20px;
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--lc-navy); border-radius: 6px; background: #faf08f; color: var(--lc-navy);
  font: 500 1.05rem/1 Poppins, system-ui, sans-serif; text-align: left; cursor: pointer;
}
.lc-select__input:disabled { cursor: default; opacity: .7; }
.lc-select__input:focus-visible, .lc-list a:focus-visible, .lc-show__tickets a:focus-visible, .lc-poster:focus-visible, .lc-title a:focus-visible {
  outline: 3px solid var(--lc-link); outline-offset: 3px;
}

.lc-results { margin-top: 36px; text-align: left; }
.lc-prompt { display: flex; align-items: flex-end; gap: 14px; padding-left: 28px; }
.lc-prompt__arrow { flex: none; width: 62px; height: auto; margin-bottom: 18px; }
.lc-prompt__text { margin: 0; font-size: 1.2rem; line-height: 1.45; }
/* No room for the arrow on a phone. */
@media (max-width: 639px) { .lc-prompt { display: block; padding: 0; text-align: center; } .lc-prompt__arrow { display: none; } }

.lc-list { list-style: none; margin: 0; padding: 0; }
.lc-list[hidden], .lc-prompt[hidden] { display: none; }
.lc-list li { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.lc-list img { flex: none; width: 87px; height: 87px; border-radius: 10px; }
.lc-list__name { margin: 0; font-size: 1rem; line-height: 1.4; }
.lc-list a { display: inline-block; color: var(--lc-link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lc-list a:hover { text-decoration-thickness: 2px; }
.lc-noscript { margin-top: 24px; }

.lc-about { width: 100%; max-width: 480px; margin-top: 40px; padding-top: 40px; border-top: 2px dashed #9aa1b5; }
.lc-about p { margin: 0 0 1.2em; }
.lc-about__meta { font-weight: 500; }
.lc-about__credits { line-height: 1.55; }
.lc-about__credits strong { font-weight: 700; }

/* Same as the root page's footer: JetBrains Mono, 0.875rem, regular, grey. */
.lc-footer { margin-top: 80px; padding: 0 24px 48px; text-align: center; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .875rem; font-weight: 400; line-height: 1.25; color: #767676; }
.lc-footer p { margin: 0; }
.lc-footer__link { margin-bottom: 14px; }
.lc-footer__link:last-of-type { margin-bottom: 14px; }
.lc-footer__link a { color: var(--lc-link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lc-footer__link a:hover { text-decoration-thickness: 2px; }
.lc-footer__link a:focus-visible { outline: 3px solid var(--lc-link); outline-offset: 3px; }

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

@media (min-width: 900px) {
  .lc-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "trailer find" "poster find" "about find";
    column-gap: clamp(32px, 6.4vw, 90px);
    justify-items: stretch;
    align-items: start;
  }
  .lc-trailer { grid-area: trailer; order: 0; margin-top: 0; }
  .lc-poster { grid-area: poster; width: min(100%, 476px); margin-top: 32px; order: 0; }
  .lc-find { grid-area: find; justify-self: center; order: 0; }
  .lc-about { grid-area: about; order: 0; max-width: none; margin-top: 56px; padding-top: 0; border-top: 0; }
  .lc-find__label { font-size: 1.25rem; }
  .lc-prompt__text { font-size: 1.35rem; }
}
/* Poster and list are only links to the find section on one column. */
@media (min-width: 900px) { .lc-poster, .lc-title a, .lc-banner__link { cursor: default; } }

/* Screenings page (/lost-christmas/screenings/). The dates take the dropdown's column. Same layout as the root page's dates
   (day, show, where, link), in Lost Christmas navy, blue and Poppins. */
.lc-title--stream { font-size: var(--lc-hsize); }
.lc-title__pre { display: block; text-transform: none; font-weight: 300; }   /* lower case "or" before Stream/Download */
.lc-title--screenings { font-size: clamp(1.3rem, 7vw, 1.9rem); }   /* phones: between the old 8vw size (6 lines) and the 6vw one; four lines */
.lc-title--screenings strong { display: block; }   /* "for film screening and Q&A" always on its own line */
@media (min-width: 640px) { .lc-body { --lc-hsize: clamp(1.75rem, 3.3vw, 2.9rem); } .lc-title--stream { font-size: var(--lc-hsize); } .lc-title--screenings { font-size: clamp(2rem, 4vw, 3.4rem); } }
.lc-dates { width: 100%; max-width: 436px; order: 1; text-align: center; }
.lc-dates__month { margin: 40px 0 14px; font-size: 2.25rem; font-weight: 300; line-height: 1.15; }
.lc-dates__month:first-of-type { margin-top: 0; }
.lc-dates__list { list-style: none; margin: 0; padding: 0; }
.lc-show { margin-top: 28px; font-size: .9375rem; line-height: 1.4; }
.lc-show:first-child { margin-top: 0; }
.lc-show p { margin: 0; }
.lc-show__day { font-weight: 700; font-size: 1.1rem; }
.lc-show__where { text-wrap: balance; }
.lc-part { display: inline-block; max-width: 100%; }
.lc-show__tickets, .lc-show__status { margin-top: 2px; font-weight: 700; font-size: 1.1rem; }
.lc-show__status--soldout { color: #000; }
.lc-show__tickets a { color: var(--lc-link); text-decoration: underline; text-underline-offset: 3px; }
.lc-show__tickets a:hover { text-decoration-thickness: 2px; }
.lc-dates__empty { font-size: 1.25rem; }
/* The dates column is taller than the poster: give the spare height to the row under the poster, so the film details sit right below it. */
@media (min-width: 900px) { .lc-grid--screenings { grid-template-rows: auto 1fr; grid-template-areas: "poster find" "about find"; } .lc-grid--screenings .lc-poster { margin-top: 0; } }
@media (min-width: 900px) { .lc-dates { grid-area: find; justify-self: center; order: 0; } }

/* Phones: drop the "Find Lost Christmas in your region" line and the "Select your region..." prompt so the poster sits higher.
   The label stays for screen readers (it names the dropdown and is the jump target). */
@media (max-width: 639px) {
  .lc-find__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .lc-prompt { display: none; }
  .lc-results:has(.lc-list[hidden]) { margin-top: 0; }  /* no gap while nothing is chosen */
}

/* One column (under 900px): button, trailer, heading, then the dropdown (or dates), poster and film details.
   The grid steps aside (display: contents) so the trailer can sit above the heading. Two columns keep the grid as it is. */
@media (max-width: 899px) {
  .lc-main { display: flex; flex-direction: column; align-items: center; }
  .lc-main > .lc-title { width: 100%; order: 2; }
  .lc-main > .lc-grid { display: contents; }
  /* Same gap above the button (from the banner) as below it (to the video). */
  .lc-main:has(> .lc-cta) { padding-top: clamp(20px, 4vw, 40px); }
  .lc-main > .lc-cta { margin-bottom: clamp(20px, 4vw, 40px); }
  .lc-main .lc-trailer { order: 1; margin: 0 0 clamp(20px, 4vw, 40px); }   /* same gap as banner to link and link to video */
  .lc-main .lc-find, .lc-main .lc-dates { order: 3; }
  .lc-main .lc-poster { order: 4; }
  .lc-main .lc-about { order: 5; }
}
