/* Colours and type follow the draft reference images. */
:root {
  --blue: #5189b4;
  --purple: #baa0e4;
  --pink: #d5a1e4;
  --placeholder: #46698e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1.5;
}

main {
  max-width: 1800px;
  margin: auto;
}

section {
  padding: 70px 5%;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  line-height: 1.15;
}

h2, h3 {
  text-transform: uppercase;
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(36px, 6.5vw, 110px);
  font-weight: normal;
}

p {
  margin-bottom: 32px;
}

/* The centered, text-only header from HEADER TEXT.jpg. */
.opening {
  min-height: 100svh;
  display: grid;
  align-items: center;
  text-align: center;
}

h1 {
  margin-bottom: 95px;
  font-size: clamp(48px, 8vw, 140px);
  font-weight: normal;
}

.film-title p {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(20px, 2.3vw, 36px);
  line-height: 1.6;
}

.film-title .credit-label {
  margin-bottom: 55px;
  font-weight: bold;
  font-size: clamp(23px, 2.8vw, 44px);
}

/* Introduction and synopsis share one section in the draft. */
.synopsis {
  padding: 90px 10%;
}

.introduction {
  color: var(--purple);
  margin-bottom: 50px;
}

.synopsis h2 {
  margin: 0;
  font-size: inherit;
  font-weight: bold;
}

.synopsis p {
  margin-bottom: 45px;
}

/* Portrait-shaped trailer space beside the film information. */
.film-details {
  display: grid;
  grid-template-columns: 35% 1fr;
  align-items: center;
  gap: 35px;
  padding-inline: 3%;
}

.placeholder {
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--placeholder);
  color: #fff;
  text-align: center;
  font-size: 16px;
}

.trailer {
  aspect-ratio: 4 / 5;
}

/* Images/videos can replace the placeholders without changing layout. */
.film-details > img, .film-details > video {
  width: 100%;
  display: block;
}

dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 45px 20px;
}

dl > div {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
}

dt {
  text-align: right;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--blue);
  font-weight: bold;
}

dl > div:nth-child(even) dd {
  color: var(--purple);
}

dl > div:nth-child(2) dd {
  font-weight: normal;
}

.team, .support, .follow, .sponsors {
  text-align: center;
}

.team > p {
  max-width: 1400px;
  margin-inline: auto;
  font-weight: bold;
  font-size: .85em;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 45px;
  margin-top: 25px;
}

.portrait, .team-members img {
  width: 85%;
  margin-inline: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  display: block;
}

.portrait {
  display: grid;
}

.team-members h3 {
  margin: 40px 0 15px;
  font-size: clamp(20px, 2.2vw, 36px);
  line-height: 1.5;
  font-weight: normal;
}

.team-members p {
  color: var(--pink);
  font-size: .85em;
  font-weight: bold;
}

.embed {
  background: transparent;
  color: #bdbdbd;
  min-height: 120px;
  max-width: 650px;
  margin: 30px auto;
}

.support p {
  margin-bottom: 45px;
}

.thank-you {
  color: var(--pink);
}

.follow, .sponsors {
  min-height: 65svh;
}

.sponsor-placeholder {
  width: 260px;
  max-width: 100%;
  margin-top: 50px;
  color: var(--blue);
  text-align: center;
}

/* Future sponsor logo links remain plain HTML. */
.sponsors img {
  max-width: 260px;
  height: auto;
}

a {
  color: var(--purple);
}

a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

@media (max-width: 750px) {
  section, .synopsis {
    padding: 55px 6%;
  }

  h1 {
    margin-bottom: 65px;
  }

  .film-title .credit-label {
    margin-bottom: 35px;
  }

  .film-details {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .trailer {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }

  dl {
    gap: 28px 12px;
  }

  .team-members {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
  }

  .portrait, .team-members img {
    width: 100%;
  }

  .team-members h3 {
    margin-top: 22px;
    font-size: 20px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 400px) {
  dl {
    grid-template-columns: 1fr;
  }

  dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  dt {
    text-align: left;
  }
}
