/* SERRANO website styles.
 * Rules remain in their original order to preserve the cascade.
 * Later overrides are labelled separately.
 */

/* ===== Fonts ===== */

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('barlow-600.ttf') format('truetype');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('dm-400.ttf') format('truetype');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('dm-500.ttf') format('truetype');
}

/* ===== Colours and typography variables ===== */

:root {
  color-scheme: light;
  --bg: #ead5aa;
  --panel: #e3c899;
  --ink: #4b2f1b;
  --muted: #6c5134;
  --accent: #794422;
  --rule: #a8875e;
  --serif: Georgia,'Times New Roman',serif;
  --sans: 'DM Sans',Arial,sans-serif;
  --display: 'Barlow Condensed','Arial Narrow',Impact,sans-serif;
}

/* ===== Base styles and accessibility ===== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse at 50% 0,rgba(255,242,204,.4),transparent 75%);
  color: var(--ink);
  font: 1rem/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: .3em;
}

a:hover {
  color: var(--accent);
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

p {
  margin: 0 0 1.25rem;
}

h1,
h2,
h3 {
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  font-family: var(--serif);
}

h1 {
  font-size: clamp(2.8rem,5.5vw,5.4rem);
}

h2 {
  font-size: clamp(1.8rem,3vw,2.7rem);
}

h3 {
  font-size: 1.8rem;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

.skip {
  position: absolute;
  z-index: 10;
  left: 1rem;
  top: -100px;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--bg);
}

.skip:focus {
  top: 1rem;
}

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

/* ===== Page layout and navigation ===== */

.wrap {
  max-width: 1400px;
  margin: auto;
  padding-inline: clamp(1.25rem,5vw,5rem);
}

.site-header {
  position: relative;
  z-index: 5;
}

.header-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
}

.brand {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: .15em;
  line-height: 1.3;
}

.nav {
  display: flex;
  gap: 2.1rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  font-size: .875rem;
  padding: .75rem 0;
  position: relative;
}

.nav a[aria-current=page] {
  color: var(--accent);
}

.nav a[aria-current=page]:after {
  content: '';
  height: 1px;
  background: var(--accent);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.menu-button {
  display: none;
  color: var(--ink);
  background: none;
  border: 1px solid var(--accent);
  min-height: 44px;
  padding: .4rem .85rem;
  font-size: .875rem;
}

/* ===== Home opening and shared buttons ===== */

.eyebrow {
  font-size: .875rem;
  line-height: 1.6;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.folio-opening {
  text-align: center;
  padding: 2.6rem 0 3rem;
}

.folio-opening>.eyebrow {
  margin-bottom: .7rem;
}

.film-title {
  font-family: var(--display);
  font-size: clamp(4.5rem,13.5vw,11rem);
  font-weight: 600;
  letter-spacing: .17em;
  padding-left: .17em;
  line-height: 1.05;
  position: relative;
  z-index: 1;
  overflow-wrap: anywhere;
}

.opening-stage {
  position: relative;
  max-width: 1130px;
  margin: -1.7rem auto 0;
  min-height: 530px;
  display: grid;
  place-items: center;
}

.opening-art {
  margin: 0;
  width: 390px;
  max-width: 100%;
}

.opening-art img {
  width: 100%;
  height: auto;
}

.opening-note {
  position: absolute;
  text-align: left;
  font: clamp(1.4rem,2.4vw,2.2rem)/1.28 var(--serif);
  width: 26%;
  max-width: 250px;
  margin: 0;
}

.opening-note.first {
  left: 3%;
  top: 25%;
}

.opening-note.second {
  right: 0;
  top: 57%;
}

.opening-note:before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--rule);
  margin-bottom: 1rem;
}

.byline {
  font-size: .875rem;
  letter-spacing: .035em;
  margin: .5rem 0 1.35rem;
  color: var(--muted);
}

.opening-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: .65rem 1.25rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: .875rem;
  line-height: 1.5;
  font-weight: 500;
}

.button.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.button:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.text-link {
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  line-height: 1.7;
  display: inline-block;
  padding-block: .4rem;
  min-height: 40px;
}

.buttons {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0;
}
/* ===== Home content and shared footer ===== */

/* ===== Home content and shared footer ===== */

.premise {
  border-top: 1px solid var(--rule);
  padding: 4rem 0 5rem;
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 5rem;
  max-width: 1090px;
  margin: auto;
}

.margin-label span {
  font-size: .875rem;
  display: block;
  margin-bottom: .8rem;
  color: var(--muted);
}

.margin-label h2 {
  font-size: 1.4rem;
}

.logline {
  font: clamp(1.5rem,2.35vw,2rem)/1.5 var(--serif);
  max-width: 760px;
  margin-bottom: 1.6rem;
}

.text {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 730px;
}

.island-study {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 4rem;
}

.island-study figure {
  margin: 0;
}

.island-study img {
  width: 100%;
}

.island-study figcaption,
.story-illustration figcaption {
  font-size: .75rem;
  color: var(--muted);
  padding-top: .8rem;
}

.island-note h2 {
  margin-bottom: 1.3rem;
}

.island-note p:not(.eyebrow) {
  color: var(--muted);
}

.colophon {
  border-block: 1px solid var(--rule);
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .8125rem;
}

.colophon p {
  margin: 0;
}

.request {
  max-width: 1080px;
  margin: 2.5rem auto 3rem;
  padding: 3.5rem clamp(1.25rem,5vw,4rem);
  background: var(--panel);
  border-block: 1px solid var(--rule);
  text-align: center;
}

.request p {
  font: 1.6rem/1.4 var(--serif);
  margin: 0 0 .5rem;
}

.site-footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: .8125rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  font-size: .8125rem;
}

/* ===== Synopsis and historical inspiration ===== */

.page-top {
  text-align: center;
  padding: 3.5rem 0 3rem;
}

.page-top .eyebrow {
  margin-bottom: 1rem;
}

.page-top .intro {
  font: 1.2rem/1.65 var(--serif);
  color: var(--muted);
  max-width: 640px;
  margin: 1.5rem auto 0;
}

.story-grid {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin: 0 auto 3rem;
}

.historical-inspiration {
  display: grid;
  grid-template-columns: minmax(0,1fr) 170px;
  gap: clamp(1.5rem,4vw,3rem);
  align-items: start;
  padding-bottom: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 1.125rem;
}

.history-copy {
  min-width: 0;
  font: 1.125rem/1.8 var(--sans);
  color: var(--ink);
}

.history-copy strong {
  font-weight: 500;
  color: var(--ink);
}

.historian-portrait {
  margin: 0;
  min-width: 0;
}

.historian-portrait img {
  width: 100%;
  height: auto;
  mix-blend-mode: normal;
}

.historian-portrait figcaption {
  font-size: .875rem;
  line-height: 1.6;
  margin-top: .9rem;
  color: var(--ink);
}

.portrait-credit {
  display: block;
  margin-top: .4rem;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--muted);
}

.historical-inspiration h2 {
  font: 400 1.65rem/1.55 var(--serif);
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.historical-inspiration .text-link {
  font-size: inherit;
}

.story-text>h2 {
  font: 400 2.4rem/1.12 var(--serif);
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.historical-inspiration p:last-child {
  margin-bottom: 0;
}

.story-text {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  font: 1.125rem/1.8 var(--sans);
  color: var(--ink);
}

.story-text>p:first-of-type {
  font: 1.65rem/1.55 var(--serif);
  color: var(--ink);
}

details {
  border-block: 1px solid var(--rule);
  margin-top: 2rem;
  padding: 1rem 0;
}

summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 44px;
  padding: .5rem 0;
}

summary::marker {
  color: var(--accent);
}

.full-story {
  padding-top: 1.5rem;
}

.full-story p {
  font: inherit;
  color: inherit;
}

.spoiler-note {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 0;
}

.story-illustration {
  max-width: 1000px;
  margin: 0 auto 1rem;
}

.story-illustration img {
  width: 100%;
}

/* ===== Character content ===== */

.character-study {
  display: grid;
  grid-template-columns: 1fr .95fr 1fr;
  gap: 2.8rem;
  align-items: start;
  padding-bottom: 3.5rem;
}

.character {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  min-width: 0;
}

.character h2 {
  font-size: clamp(1.65rem,2.1vw,2.15rem);
  margin-bottom: 1.5rem;
}

.character .lead {
  font: 1.25rem/1.5 var(--serif);
  color: var(--ink);
}

.character p {
  color: var(--muted);
  font-size: 1rem;
}

.characters-image {
  margin: 0;
  min-width: 0;
}

.characters-image img {
  width: 100%;
  height: auto;
}

.art-caption {
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
  margin-top: .7rem;
}

.conflict {
  padding: 2rem 0;
  border-block: 1px solid var(--rule);
  text-align: center;
}

.conflict h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.conflict ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 3rem;
  max-width: 850px;
  margin: auto;
  color: var(--muted);
}

.conflict li {
  font: 1.1rem/1.55 var(--serif);
}

/* ===== Contact page ===== */

.contact-letter {
  max-width: 880px;
  margin: 0 auto 4rem;
  padding: 3rem clamp(1.5rem,4vw,4rem);
  border: 1px solid var(--rule);
  background: rgba(255,244,220,.16);
}

.contact-letter h2 {
  font-size: 2.3rem;
  margin-bottom: 1.3rem;
}

.email {
  font: clamp(1.2rem,3.2vw,2.4rem)/1.5 var(--serif);
  color: var(--accent);
  display: inline-block;
  overflow-wrap: anywhere;
  margin: .8rem 0;
}

.contact-details {
  border-block: 1px solid var(--rule);
  padding: 1.5rem 0;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: .8rem 1rem;
}

.contact-details dt {
  font-size: .875rem;
  color: var(--muted);
}

.contact-details dd {
  margin: 0;
}

.contact-aside {
  padding-top: 1rem;
}

.contact-aside h2 {
  font-size: 1.6rem;
}

.contact-aside p {
  color: var(--muted);
}

.related {
  margin: 1rem 0 0;
  font-size: .875rem;
}

/* ===== Responsive layout: 1050px and below ===== */

@media (max-width: 1050px) {
  .opening-art {
    width: 360px;
  }

  .opening-note {
    font-size: 1.7rem;
    max-width: 190px;
  }

  .opening-note.first {
    left: 0;
  }

  .opening-note.second {
    right: 0;
  }

  .premise {
    gap: 3rem;
  }

  .island-study {
    gap: 2rem;
  }

  .character-study {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .characters-image {
    grid-column: 1/-1;
    grid-row: 1;
    max-width: 340px;
    justify-self: center;
  }

  .character {
    grid-row: 2;
  }

  .character h2 {
    font-size: 2rem;
  }

}

/* ===== Responsive layout: 800px and below ===== */

@media (max-width: 800px) {
  .opening-stage {
    min-height: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .opening-art {
    grid-column: 1/-1;
    width: 350px;
    justify-self: center;
  }

  .opening-note {
    position: static;
    width: auto;
    max-width: none;
    font-size: 1.8rem;
    align-self: start;
    margin-bottom: 1rem;
  }

  .opening-note.first {
    text-align: right;
  }

  .opening-note.first:before {
    margin-left: auto;
  }

  .opening-note.second {
    text-align: left;
  }

  .premise {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 0;
  }

  .margin-label {
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .margin-label span {
    margin: 0;
  }

  .island-study {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 3rem;
  }

  .island-note {
    max-width: 600px;
  }

  .island-note h2 br {
    display: none;
  }

  .folio-opening {
    padding-top: 2rem;
  }

  .film-title {
    font-size: clamp(4rem,15vw,7rem);
    letter-spacing: .1em;
    padding-left: .1em;
  }

  .opening-actions {
    gap: .7rem 1.25rem;
  }

  .byline {
    margin-top: 1rem;
  }

}

/* ===== Responsive layout: 700px and below ===== */

@media (max-width: 700px) {
  .header-inner {
    min-height: 76px;
    gap: 1rem;
  }

  .brand {
    font-size: 1.1rem;
  }

  .nav {
    width: 100%;
    gap: .7rem;
    justify-content: space-between;
    padding-bottom: 1rem;
  }

  .js .menu-button {
    display: block;
  }

  .js .nav {
    display: none;
  }

  .js .nav.open {
    display: flex;
  }

  .eyebrow {
    font-size: .875rem;
    letter-spacing: .075em;
  }

  .folio-opening>.eyebrow {
    max-width: 310px;
    margin: 0 auto 1rem;
  }

  .opening-art {
    width: 310px;
  }

  .opening-note {
    font-size: 1.5rem;
  }

  .premise {
    padding-top: 2rem;
  }

  .logline {
    font-size: 1.5rem;
  }

  .colophon {
    gap: .4rem;
    flex-direction: column;
  }

  .request {
    padding: 2.5rem 1.25rem;
  }

  .request p {
    font-size: 1.4rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-top {
    padding: 2.5rem 0;
  }

  .character-study {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .characters-image {
    grid-column: 1;
    grid-row: auto;
    width: 280px;
    max-width: 100%;
  }

  .character {
    grid-row: auto;
  }

  .conflict ul {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .contact-letter {
    margin-bottom: 3rem;
    padding: 1.6rem 1.25rem;
  }

  .contact-letter h2 {
    font-size: 1.8rem;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: .15rem;
  }

  .contact-details dd {
    margin-bottom: .8rem;
  }

  .button {
    padding-inline: 1rem;
  }

  .contact-letter .text {
    font-size: 1rem;
  }

  .contact-letter .email {
    font-size: 1.25rem;
  }

}

/* ===== Character portrait layout overrides ===== */

.portrait-study {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  max-width: 1080px;
  margin-inline: auto;
  gap: 2.5rem 3.5rem;
}

.character-portrait {
  margin: 0;
  min-width: 0;
}

.character-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: 50% 23%;
}

.portrait-alonso img {
  transform: scaleX(-1);
}

.character-portrait figcaption {
  font: 1.25rem/1.4 var(--serif);
  text-align: center;
  margin-top: 1rem;
}

.portrait-study .character {
  grid-row: 2;
  padding-top: 1.5rem;
}

/* ===== Responsive portrait layout ===== */

@media (max-width: 700px) {
  .portrait-study {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 1.6rem 1rem;
  }

  .character-portrait figcaption {
    font-size: 1rem;
    margin-top: .7rem;
  }

  .portrait-study .character {
    grid-column: 1/-1;
    grid-row: auto;
    margin-top: .8rem;
  }

}

/* ===== Trailer and pitch deck buttons ===== */

.colophon.trailer-strip {
  justify-content: center;
  align-items: flex-start;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2.4rem 0;
}

.trailer-strip .project-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  flex: 0 1 360px;
  min-width: 0;
  max-width: 100%;
}

.trailer-button {
  gap: .9rem;
  min-height: 70px;
  width: 100%;
  max-width: 100%;
  padding: 1.2rem clamp(.8rem,4vw,2rem);
  text-align: center;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: .015em;
  border-width: 2px;
}

/* Use the Concept Trailer appearance for both home page buttons. */
.trailer-strip .trailer-button,
.trailer-strip .trailer-button:hover {
  background: var(--ink);
  color: #fff1d2;
  border-color: var(--ink);
  box-shadow: none;
  opacity: 1;
}

.trailer-button:disabled,
.trailer-button:disabled:hover {
  background: var(--ink);
  color: #fff1d2;
  border-color: var(--ink);
  cursor: not-allowed;
  opacity: 1;
}

.trailer-play {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  mix-blend-mode: normal;
}

.trailer-strip p {
  font-size: .875rem;
  color: var(--muted);
}

/* ===== Central conflict layout overrides ===== */

.conflict {
  max-width: 1080px;
  margin-inline: auto;
  background: transparent;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,3fr);
  gap: clamp(1.5rem,3vw,3rem);
  padding: clamp(2rem,4vw,3rem) 0;
  text-align: left;
}

.conflict h2 {
  font-size: clamp(1.6rem,2.5vw,2rem);
  line-height: 1.25;
  margin: 0;
}

.conflict p {
  min-width: 0;
  max-width: none;
  margin: 0;
  padding-left: clamp(1.25rem,3vw,2.5rem);
  border-left: 1px solid var(--rule);
  text-align: left;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink);
}

/* ===== Responsive central conflict layout ===== */

@media (max-width: 700px) {
  .conflict {
    grid-template-columns: minmax(0,1fr);
    gap: 1.25rem;
  }

  .conflict p {
    padding-left: 0;
    border-left: 0;
  }

}

/* ===== Content overflow protection ===== */

.opening-note {
  min-width: 0;
  overflow-wrap: anywhere;
}

.premise>*,
.island-study>* {
  min-width: 0;
}

/* ===== Responsive opening grid correction ===== */

@media (max-width: 800px) {
  .opening-stage {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  }

}

/* ===== Reduced motion ===== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none!important;
    transition: none!important;
  }

}

/* ===== Responsive historical inspiration layout ===== */

@media (max-width: 700px) {
  .historical-inspiration {
    grid-template-columns: minmax(0,1fr);
    gap: 1.5rem;
  }

  .historian-portrait {
    display: grid;
    grid-template-columns: 90px minmax(0,1fr);
    gap: 1rem;
    align-items: center;
    width: 100%;
    max-width: 420px;
    justify-self: start;
  }

  .historian-portrait figcaption {
    margin-top: 0;
  }

  .story-text>h2 {
    font-size: 2rem;
  }

}

/* ===== Synopsis request panel width ===== */

.page-synopsis .request {
  max-width: 1000px;
}

/* ===== Home request panel width ===== */

.page-index .request {
  max-width: none;
}

/* ===== Home section dividers ===== */

.page-index .folio-opening {
  border-bottom: 1px solid var(--rule);
}

.page-index .premise {
  border-top: 0;
}

/* ===== Synopsis header and download button ===== */

.page-synopsis .page-top {
  padding: 3rem 0 2.5rem;
}

.page-synopsis .page-top h1 {
  font-size: clamp(2.8rem,5.5vw,4.4rem);
}

.page-synopsis .page-top .intro {
  margin-top: 1rem;
}

.synopsis-deck-action {
  max-width: 1000px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: center;
}

.synopsis-deck-action .button {
  min-height: 52px;
  padding: .85rem 1.75rem;
  font-size: 1rem;
}

/* ===== Synopsis image blending ===== */

.page-synopsis .civilization-vignette {
  mix-blend-mode: normal;
}

/* ===== Responsive historical heading and story introduction ===== */

@media (max-width: 700px) {
  .historical-inspiration h2,
  .story-text>p:first-of-type {
    font-size: 1.45rem;
  }
}

/* Preserve the storm image colours at every screen size. */
.island-study img {
  mix-blend-mode: normal;
}

/* ===== Vimeo trailer overlay ===== */

#open-trailer {
  cursor: pointer;
}

body.trailer-is-open {
  overflow: hidden;
}

.trailer-modal {
  width: min(1000px, 94vw, calc((94dvh - 48px) * 16 / 9));
  max-width: none;
  max-height: 94dvh;
  margin: auto;
  padding: 48px 0 0;
  border: 0;
  background: transparent;
  overflow: auto;
  color-scheme: dark;
}

.trailer-modal::backdrop {
  background: rgba(0, 0, 0, .88);
}

.trailer-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.trailer-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.trailer-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.trailer-close:hover {
  color: #fff1d2;
}

.trailer-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}
