@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@600;700&family=Rubik:ital,wght@0,500;1,500&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&family=Spectral:wght@600&display=swap');

:root {
  --bg: #090909;
  --surface: #151513;
  --ink: #f4f2ec;
  --soft: #d0cdc5;
  --muted: #96938c;
  --accent: #c8bd95;
  --cyan: #65aeb8;
  --amber: #c89548;
  --magenta: #a9688d;
  --lavender: #b6add0;
  --quote-ink: #aebbd6;
  --about-link: #9fb3cf;
  --divider-blue: #3268a8;
  --max: 1180px;
  --body-font: "Rubik", Arial, sans-serif;
  --nav-font: "Josefin Sans", Arial, sans-serif;
  --serif-font: "Source Serif 4", Georgia, "Times New Roman", serif;
  --title-font: "Spectral", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* 8% side margins on full layouts; 5% on smaller windows. */
.page {
  width: min(var(--max), 84%);
  margin: 0 auto;
  padding-bottom: 92px;
}

/* HEADER */
.site-head {
  position: relative;
  padding: 34px 0 26px;
  text-align: center;
}
.site-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bg) 0%, var(--divider-blue) 50%, var(--bg) 100%);
}
.site-title {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(42px, 4.8vw, 56px);
  font-weight: 600;
  line-height: .96;
  letter-spacing: .012em;
}
.site-title a { text-decoration: none; }
.site-role {
  margin: 11px 0 0;
  color: var(--soft);
  font-family: var(--nav-font);
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 26px;
  min-height: 30px;
  overflow-x: auto;
  scrollbar-width: none;
  font-family: var(--nav-font);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0 8px;
  color: var(--lavender);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active { color: var(--ink); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

main { padding-top: 38px; }
.section-title-block { margin-bottom: 32px; }
.section-title-block.centered { text-align: center; }
.section-heading {
  margin: 0;
  color: var(--amber);
  font-family: var(--body-font);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: .30em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
}
.section-kicker {
  margin: 7px 0 0;
  color: var(--accent);
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .31em;
  text-transform: uppercase;
}

/* ABOUT */
.about-layout {
  display: grid;
  grid-template-columns: minmax(230px, 30%) minmax(0, 1fr);
  gap: clamp(44px, 6.5vw, 78px);
  align-items: start;
}
.about-photo { margin: 0; }
.about-photo img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border: 0;
}
.about-copy { max-width: 720px; }
.about-copy p {
  margin: 0 0 18px;
  color: var(--soft);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.about-copy .lede {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.66;
}
.about-copy em { color: var(--ink); }
.about-copy .work-link {
  color: var(--about-link);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.about-copy .work-link em { color: inherit; }
.about-copy .work-link:hover,
.about-copy .work-link:focus-visible {
  color: #c0cce0;
  text-decoration-line: underline;
}

/* FILM */
.feature-films { container-type: inline-size; }
.film-page .section-heading { line-height: 1.15; }
.film-page .section-kicker { text-align: center; }
.film-stack { display: grid; gap: 48px; }
.film-feature,
.film-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}
.film-feature { align-items: center; }
.film-card { min-width: 0; }
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  background: var(--surface);
}
.media-frame img,
.media-frame iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame iframe {
  position: absolute;
  inset: 0;
  border: 0;
}
.video-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
}
.video-trigger img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.62));
  pointer-events: none;
}
.video-label {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.video-label::before {
  content: "▶";
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 50%;
  padding-left: 2px;
  font-family: var(--body-font);
  font-size: 9px;
}
.video-trigger.fallback {
  background: linear-gradient(135deg, rgba(200,189,149,.10), transparent 43%), var(--surface);
}
.video-trigger.fallback::before {
  content: attr(data-fallback-title);
  position: absolute;
  z-index: 1;
  left: 22px;
  top: 20px;
  max-width: 72%;
  color: rgba(244,242,236,.75);
  font-family: var(--serif-font);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.06;
}
.film-info { padding-top: 17px; }
.film-feature .film-info { padding-top: 0; }
.work-title,
.script h3 {
  font-family: var(--serif-font);
  font-weight: 600;
  text-wrap: balance;
}
.work-title {
  margin: 0 0 9px;
  font-size: clamp(27px, 3vw, 35px);
  line-height: 1.08;
}
.meta {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.logline,
.script p {
  margin: 0;
  color: var(--soft);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.screenplay-section,
.directing-section { margin-top: 88px; }
.scripts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.script {
  min-width: 0;
  padding: 20px 0 0;
  border-top: 2px solid var(--cyan);
}
.script:nth-child(2) { border-top-color: var(--amber); }
.script:nth-child(3) { border-top-color: var(--magenta); }
.script h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.15;
}

@container (max-width: 840px) {
  .feature-films .film-feature,
  .feature-films .film-pair { grid-template-columns: 1fr; }
  .feature-films .film-feature { gap: 0; }
  .feature-films .film-feature .film-info { padding-top: 17px; }
  .feature-films .film-pair { gap: 48px; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 1000px) {
    .feature-films .film-feature,
    .feature-films .film-pair { grid-template-columns: 1fr; }
    .feature-films .film-feature { gap: 0; }
    .feature-films .film-feature .film-info { padding-top: 17px; }
    .feature-films .film-pair { gap: 48px; }
  }
}

/* THEATER */
.theater-page .section-heading { line-height: 1.06; }
.theater-page .section-title-block {
  text-align: center;
  margin-bottom: 38px;
}
.theater-page .plays {
  width: min(520px, 100%);
  margin: 0 auto;
}
.ledger-play { padding: 40px 0 44px; }
.ledger-title {
  text-align: center;
  margin-bottom: 19px;
}
.ledger-title h3 {
  margin: 0 0 10px;
  font-family: var(--serif-font);
  font-size: 28px;
  line-height: 1.12;
  font-weight: 600;
}
.ledger-title .meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}
.ledger-body > p {
  max-width: 520px;
  margin: 0 auto 14px;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.68;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.ledger-body > p:last-child { margin-bottom: 0; }
.ledger-quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 17px;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}
.ledger-quote {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  color: var(--quote-ink);
  font-family: var(--body-font);
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.68;
  text-indent: 0;
}
.ledger-quote p { margin: 0; padding: 0; text-indent: 0; }
.quote-source {
  display: block;
  margin-top: 7px;
  color: #7f8ba5;
  font-family: var(--body-font);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.quote-source a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.quote-source a:hover,
.quote-source a:focus-visible {
  color: var(--ink);
  border-bottom-color: currentColor;
}

.theater-page .directing-section { margin-top: 90px; }
.directing-list {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 26px;
}
.directing-entry {
  min-width: 0;
  padding: 12px 0 0;
  border-top: 2px solid var(--cyan);
  text-align: left;
}
.directing-entry:nth-child(3n + 1) { border-top-color: var(--cyan); }
.directing-entry:nth-child(3n + 2) { border-top-color: var(--magenta); }
.directing-entry:nth-child(3n) { border-top-color: var(--amber); }
.directing-entry:nth-child(4) { border-top-color: var(--magenta); }
.directing-entry:nth-child(5) { border-top-color: var(--amber); }
.directing-entry:nth-child(6) { border-top-color: var(--cyan); }
.directing-entry:nth-child(7) { border-top-color: var(--amber); }
.directing-entry:nth-child(8) { border-top-color: var(--cyan); }
.directing-entry:nth-child(9) { border-top-color: var(--magenta); }
.directing-entry .work {
  display: block;
  color: var(--ink);
  font-family: var(--serif-font);
  font-size: 18px;
  font-style: normal;
  line-height: 1.28;
}
.directing-entry .work em { font-style: normal; }
.credit-byline {
  display: block;
  margin-top: 5px;
  color: var(--soft);
  font-family: var(--body-font);
  font-size: 13px;
  line-height: 1.42;
}
.directing-entry .venue {
  display: block;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
.credit-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* CONTACT */
.contact-only {
  display: block;
  min-height: 0;
  text-align: initial;
}
.contact-layout {
  width: min(520px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
.contact-unit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}
.contact-photo {
  width: 100%;
  margin: 0;
  overflow: hidden;
}
.contact-unit .contact-photo img {
  width: 100%;
  height: auto;
  border: 0;
  transform: scale(1);
  transition: transform 220ms ease-out;
}
.contact-email {
  display: block;
  width: 100%;
  margin: 0;
  text-align: right;
  color: var(--lavender);
  font-family: var(--nav-font);
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  text-decoration-line: underline;
  text-decoration-color: var(--lavender);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
  transition: color 160ms ease-out, text-decoration-color 160ms ease-out, text-decoration-thickness 160ms ease-out;
}
.contact-unit:hover .contact-photo img,
.contact-unit:focus-visible .contact-photo img { transform: scale(1.028); }
.contact-unit:hover .contact-email,
.contact-unit:focus-visible .contact-email {
  color: var(--ink);
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
}
.contact-unit:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 7px;
}

/* RESPONSIVE */
@media (max-width: 820px) {
  .page { width: min(var(--max), 90%); padding-bottom: 70px; }
  main { padding-top: 31px; }
  .film-feature,
  .film-pair { gap: 27px; }
  .scripts { gap: 22px; }
}

@media (max-width: 760px) {
  .directing-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
  }
}

@media (max-width: 680px) {
  /* Keep the header composition centered instead of snapping the nav to the edges. */
  main { padding-top: 26px; }

  .site-nav {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px clamp(14px, 4.2vw, 26px);
    overflow: visible;
    font-size: clamp(13px, 4vw, 17px);
    letter-spacing: .055em;
  }
  .site-nav a { flex: 0 0 auto; }

  .about-layout { display: block; }
  .about-layout::after { content: ""; display: table; clear: both; }
  .about-photo {
    float: left;
    width: clamp(132px, 38vw, 180px);
    margin: 4px 23px 12px 0;
  }
  .about-copy { max-width: none; }
  .about-copy p { text-align: left; hyphens: none; }
  .about-copy .lede { font-size: 16px; line-height: 1.66; }

  .film-feature,
  .film-pair,
  .scripts { grid-template-columns: 1fr; }
  .film-feature { gap: 0; }
  .film-feature .film-info { padding-top: 17px; }
  .film-pair { gap: 44px; }
  .scripts { gap: 30px; }
  .screenplay-section,
  .directing-section { margin-top: 66px; }

  .ledger-body > p { text-align: left; hyphens: none; }
}

/* Keep the Contact email in the first phone viewport by scaling the portrait down. */
@media (max-width: 680px) {
  .contact-layout { width: min(320px, 100%); }
}
@media (max-width: 680px) and (max-height: 760px) {
  .contact-layout { width: min(280px, 100%); }
}
@media (max-width: 680px) and (max-height: 640px) {
  .contact-layout { width: min(240px, 100%); }
  .contact-unit { gap: 12px; }
  .contact-email { font-size: 18px; }
}

@media (max-width: 500px) {
  .directing-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 410px) {
  .about-photo {
    width: 42vw;
    max-width: 155px;
    margin-right: 18px;
    margin-bottom: 9px;
  }
  .site-nav {
    gap: 8px clamp(10px, 3.4vw, 16px);
    font-size: clamp(12px, 3.8vw, 15px);
    letter-spacing: .035em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-unit .contact-photo img,
  .contact-email { transition: none; }
  .contact-unit:hover .contact-photo img,
  .contact-unit:focus-visible .contact-photo img { transform: none; }
}
