/* Pernout Studios: page CSS.
   The system (system.css, layout.css, motion.css) does the layout, type and motion.
   This file only holds the client's own logo sizes and what sits inside the film frame. */

/* the client's wordmark (brand/pernout-studios-*.svg), rebuilt from the business card */
.nav__logo img { display: block; width: auto; height: 30px; }
.nav--split .nav__logo img { height: 32px; }
.footer .nav__logo img { height: 64px; }
@media (max-width: 639px) {
  .nav__logo img, .nav--split .nav__logo img { height: 26px; }
  .footer .nav__logo img { height: 48px; }
}

/* the close's photograph on a phone: the crop keeps the lit window in the frame */
@media (max-width: 639px) { .close__media > img { object-position: 88% 55%; } }

/* the film frame: 16:9, the film contained on the brand's dark ground */
#film .frame { --ratio: 56.25%; background: var(--p-inv-bg); }
#film .frame > video.frame__img { object-fit: contain; background: var(--p-inv-bg); }

/* three facts about the film as ruled rows: from the page's column 8 beside the heading on a desktop
   (five of the twelve columns, ending on the right line), under the heading on a tablet and a phone */
.film-facts { display: grid; width: 100%; margin: 0; }
.film-facts > div { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 44px; border-bottom: 1px solid var(--line); }
.film-facts dt { color: var(--muted); }
.film-facts dd { margin: 0; font-weight: 500; text-align: right; }
@media (min-width: 1024px) {
  #film .section-head--split { flex-wrap: nowrap; align-items: start; }
  #film .section-head--split > div { flex: 1 1 0; min-width: 0; }
  .film-facts { flex: none; width: calc((100% - 11 * var(--gutter)) / 12 * 5 + 4 * var(--gutter)); }
}

/* the film frame takes what one screen leaves under the section's head (its three rows, or a two-line h2) */
#film { --ly-head: 136px; }
@media (min-width: 1024px) and (max-width: 1279px) { #film { --ly-head: 172px; } }

/* a phone: the footer's two columns stack, so the email address has the full width */
@media (max-width: 639px) { .closing__links .footer__col { grid-column: 1 / -1; } }
