/*
Theme Name: MS Film Archive
Theme URI: http://msfilmfest.com
Description: An independent short film archive theme with cinema-inspired design
Author: MS Film Fest
Version: 1.0.0
Text Domain: ms-film-archive
*/

/* ── Design Tokens ── */
:root {
  --ms-red: #7a1720;
  --ms-red-dark: #59000e;
  --ms-gold: #d4a94a;
  --ms-gold-dark: #795900;
  --ms-cream: #f5ebd8;
  --ms-cream-light: #fff8f3;
  --ms-ink: #1a1511;
  --ms-muted: #574241;
  --ms-outline: #8a7170;
  --ms-outline-light: #dec0be;
  --ms-surface: #ffebd3;
  --ms-surface-low: #fff1e3;
  --ms-surface-high: #fae5cb;
  --ms-container: 1240px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  color: var(--ms-ink);
  background-color: var(--ms-cream);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  line-height: 1.2;
}

a { color: var(--ms-red); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--ms-gold); }

img { max-width: 100%; height: auto; display: block; border-radius: 0; }

/* ── Typography scale ── */
.t-display { font-family: 'Cormorant', serif; font-size: 4rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.t-headline-lg { font-family: 'Cormorant', serif; font-size: 3rem; font-weight: 500; line-height: 1.2; }
.t-headline-md { font-family: 'Cormorant', serif; font-size: 2rem; font-weight: 500; line-height: 1.3; }
.t-body-lg { font-family: 'Work Sans', sans-serif; font-size: 1.125rem; font-weight: 400; line-height: 1.6; }
.t-body-md { font-family: 'Work Sans', sans-serif; font-size: 1rem; font-weight: 400; line-height: 1.5; }
.t-label { font-family: 'Work Sans', sans-serif; font-size: 0.75rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── Layout ── */
.wrap { max-width: var(--ms-container); margin: 0 auto; padding: 0 1.5rem; }
.flex-grow-main { flex: 1; }

/* ── Masthead (Header) ── */
.masthead {
  height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ms-gold);
  background: var(--ms-cream);
  position: relative;
  z-index: 50;
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.wordmark {
  font-family: 'Cormorant', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ms-red);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.wordmark:hover { color: var(--ms-gold-dark); text-decoration: none; }

.film-nav { display: flex; gap: 2rem; list-style: none; align-items: center; }
.film-nav li { list-style: none; }
.film-nav a {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ms-ink);
  transition: color 0.2s ease;
  position: relative;
  padding: 0.25rem 0.5rem;
}
.film-nav a:hover { color: var(--ms-red); text-decoration: none; }
.film-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ms-gold);
  transition: width 0.3s ease;
}
.film-nav a:hover::after { width: 100%; }
.film-nav .current-menu-item a,
.film-nav .current_page_item a,
.film-nav .current-menu-ancestor a {
  color: var(--ms-red);
  border-bottom: 2px solid var(--ms-red);
  padding-bottom: 1px;
  opacity: 0.8;
}

.masthead-cta {
  display: inline-block;
  background: var(--ms-red);
  color: var(--ms-cream);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.3s ease;
  border: none;
}
.masthead-cta:hover { background: var(--ms-gold); color: var(--ms-ink); }

/* ── Hero Section (Front Page) ── */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--ms-gold);
  overflow: hidden;
}
.hero-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.8;
  mix-blend-mode: multiply;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,21,17,0.9), rgba(26,21,17,0.4), transparent);
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 1rem;
  max-width: 48rem;
}
.hero-content h1 { color: var(--ms-cream); margin-bottom: 1.5rem; }
.hero-content p { color: rgba(245,235,216,0.9); max-width: 42rem; margin: 0 auto 2.5rem; }
.hero-cta {
  display: inline-block;
  background: var(--ms-red);
  color: var(--ms-cream);
  padding: 1rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
}
.hero-cta:hover { background: var(--ms-gold); color: var(--ms-ink); }

/* ── Section headers ── */
.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--ms-gold);
  padding-bottom: 1rem;
  margin-bottom: 3rem;
}
.section-link {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ms-red);
}
.section-link:hover { color: var(--ms-gold); }

/* ── Film tiles / grid ── */
.reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.film-tile {
  border: 1px solid var(--ms-gold);
  padding: 1rem;
  background: var(--ms-cream-light);
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
}
.film-tile:hover { background: var(--ms-surface); }
.film-tile .tile-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid rgba(212,169,74,0.3);
  margin-bottom: 1.5rem;
}
.film-tile .tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.7s ease;
}
.film-tile:hover .tile-img img { filter: grayscale(0); }
.tile-year {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--ms-cream-light);
  border: 1px solid var(--ms-gold);
  padding: 0.125rem 0.5rem;
}
.tile-meta {
  border-top: 1px solid var(--ms-gold);
  padding-top: 1rem;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Year grid (Browse by Year) ── */
.year-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
}
.year-link {
  border: 1px solid var(--ms-gold);
  padding: 0.5rem 1rem;
  background: var(--ms-cream-light);
  color: var(--ms-ink);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}
.year-link:hover { background: var(--ms-red); color: white; text-decoration: none; }

.browse-section {
  padding: 5rem 0;
  background: var(--ms-surface-low);
  border-top: 1px solid var(--ms-gold);
  border-bottom: 1px solid var(--ms-gold);
  text-align: center;
}

/* ── Finalist Index (archive-film) ── */
.year-block {
  display: block;
  border: 1px solid var(--ms-gold);
  background: white;
  padding: 3rem;
  text-align: center;
  transition: border-color 0.3s ease;
}
.year-block:hover { border-color: var(--ms-red); text-decoration: none; }
.year-block .year-num {
  font-family: 'Cormorant', serif;
  font-size: 4rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}
.year-block:hover .year-num { color: var(--ms-red); }
.year-block .year-divider { width: 3rem; height: 1px; background: var(--ms-gold); margin: 1rem auto; }

.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }

/* ── Film entry (taxonomy-film_year) ── */
.film-entry {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--ms-outline);
  align-items: start;
}
.film-poster {
  background: white;
  border: 1px solid var(--ms-outline);
  padding: 0.25rem;
}
.film-poster .poster-frame { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.film-poster .poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s ease;
}
.film-poster:hover .poster-frame img { filter: grayscale(0); }
.poster-title {
  margin-top: 0.5rem;
  text-align: center;
  padding: 0.5rem 0;
  border-top: 1px solid var(--ms-outline-light);
}

/* ── The Dossier (metadata card) ── */
.dossier {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--ms-outline);
  background: white;
  margin-bottom: 1.5rem;
}
.dossier dt { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ms-outline); margin-bottom: 0.25rem; }
.dossier dd { font-weight: 600; }

/* ── Single film (single-film) ── */
.film-hero { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--ms-gold); overflow: hidden; margin-bottom: 3rem; }
.film-hero img { width: 100%; height: 100%; object-fit: cover; }

.film-layout { display: grid; grid-template-columns: 1fr 3fr; gap: 3rem; }
.film-sidebar .dossier {
  grid-template-columns: 1fr;
  gap: 0;
}
.film-sidebar .dossier-item {
  padding: 1rem;
}
.film-sidebar .dossier-item + .dossier-item {
  border-top: 1px solid rgba(212,169,74,0.5);
}

/* ── Directors index ── */
.directors-featured {
  border: 1px solid var(--ms-outline-light);
  padding: 1rem;
  margin-bottom: 5rem;
}
.directors-featured-inner {
  border: 1px solid var(--ms-outline-light);
  padding: 3rem;
}
.director-card { cursor: pointer; }
.director-card .portrait {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--ms-outline-light);
  padding: 0.5rem;
  background: white;
  margin-bottom: 1rem;
}
.director-card .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.5s ease;
}
.director-card:hover .portrait img { transform: scale(1.05); }

/* Director A-Z index */
.alpha-columns { columns: 3; gap: 3rem; }
.alpha-group { break-inside: avoid; margin-bottom: 3rem; }
.alpha-letter { font-family: 'Cormorant', serif; font-size: 4rem; font-weight: 600; color: var(--ms-outline-light); border-bottom: 1px solid var(--ms-outline-light); margin-bottom: 1rem; }
.alpha-list { list-style: none; }
.alpha-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(244,223,198,0.5);
  padding: 0.25rem 0;
  transition: border-color 0.3s ease;
}
.alpha-list li:hover { border-color: var(--ms-red); }

/* ── Single director ── */
.director-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; margin-bottom: 5rem; }
.director-portrait {
  border: 1px solid var(--ms-gold);
  padding: 0.5rem;
  background: white;
}
.director-portrait img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(1); }
.director-bio-header { border-bottom: 1px solid var(--ms-gold); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.director-role { color: var(--ms-gold-dark); }
.director-dossier {
  border: 1px solid var(--ms-gold);
  background: var(--ms-surface);
  padding: 1rem;
  width: max-content;
  margin-bottom: 3rem;
}
.director-dossier th { padding-right: 1.5rem; font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.1em; text-align: left; padding-top: 0.25rem; padding-bottom: 0.25rem; }
.director-dossier td { font-size: 0.75rem; color: var(--ms-muted); padding-top: 0.25rem; padding-bottom: 0.25rem; }

/* Filmography table */
.filmography { width: 100%; border-collapse: collapse; text-align: left; border-top: 1px solid var(--ms-gold); border-bottom: 1px solid var(--ms-gold); }
.filmography thead { background: var(--ms-surface); }
.filmography th { padding: 1rem; border-bottom: 1px solid var(--ms-gold); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.filmography td { padding: 1rem; border-bottom: 1px solid var(--ms-outline-light); vertical-align: top; }
.filmography tr:hover { background: var(--ms-surface-high); }
.filmography .festival-note { color: var(--ms-gold-dark); text-align: right; }
.filmography th:last-child, .filmography td:last-child { text-align: right; }

/* ── Features index ── */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.editorial-card {
  border: 1px solid var(--ms-gold);
  padding: 1rem;
  background: white;
  transition: background 0.3s ease;
  cursor: pointer;
}
.editorial-card:hover { background: var(--ms-outline-light); text-decoration: none; }
.editorial-card-inner {
  border: 1px solid var(--ms-gold);
  background: var(--ms-cream-light);
  padding: 0.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.editorial-img {
  border: 1px solid var(--ms-gold);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.editorial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.7s ease;
}
.editorial-card:hover .editorial-img img { filter: grayscale(0); }
.editorial-hero { grid-column: span 8; }
.editorial-hero .editorial-img { height: 400px; }
.editorial-side { grid-column: span 4; display: flex; flex-direction: column; }
.editorial-side .editorial-img { height: 240px; }
.editorial-dossier { grid-column: span 5; }
.editorial-portrait { grid-column: span 7; }

.tag-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ms-gold-dark); }

/* ── Single article (single.php) ── */
.article-wrap { max-width: 800px; margin: 0 auto; }
.article-header { margin-bottom: 3rem; border-bottom: 1px solid var(--ms-outline); padding-bottom: 1.5rem; }
.article-header h1 { color: var(--ms-red-dark); margin-bottom: 1rem; }
.article-header .subtitle { font-family: 'Cormorant', serif; font-size: 2rem; font-weight: 500; color: var(--ms-muted); font-style: italic; margin-bottom: 1.5rem; }
.byline { display: flex; align-items: center; gap: 0.75rem; border-top: 1px solid var(--ms-outline); padding-top: 0.5rem; }
.byline-avatar { width: 2.5rem; height: 2.5rem; border: 1px solid var(--ms-outline); overflow: hidden; }
.byline-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.byline-name { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ms-red); }
.byline-role { font-size: 0.875rem; color: var(--ms-muted); }
.byline-date { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ms-muted); }

.article-figure {
  border: 1px solid var(--ms-outline);
  padding: 1rem;
  background: white;
  margin-bottom: 3rem;
}
.article-figure .fig-frame { border: 1px solid var(--ms-outline); overflow: hidden; aspect-ratio: 16/9; }
.article-figure .fig-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0.9; }
.article-figure figcaption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ms-muted);
  border-top: 1px solid var(--ms-outline);
  padding-top: 0.5rem;
}

.entry-content { font-size: 1.125rem; line-height: 1.6; }
.entry-content p { margin-bottom: 2rem; }
.entry-content h2 { margin: 3rem 0 1rem; }

.drop-cap::first-letter {
  float: left;
  font-family: 'Cormorant', serif;
  font-size: 5rem;
  line-height: 0.8;
  padding-right: 0.5rem;
  padding-top: 0.5rem;
  color: var(--ms-red);
  font-weight: 600;
}

.entry-content blockquote {
  margin: 3rem 0;
  padding: 0 2rem;
  border-left: 2px solid var(--ms-red);
}
.entry-content blockquote p {
  font-family: 'Cormorant', serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ms-red);
  font-style: italic;
}
.entry-content blockquote footer { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ms-muted); margin-top: 1rem; }

.archival-dossier {
  border: 1px solid var(--ms-outline);
  background: var(--ms-cream-light);
  padding: 1.5rem 2rem;
}
.archival-dossier h3 { color: var(--ms-red); border-bottom: 1px solid var(--ms-outline); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
.archival-dossier dl { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; font-size: 0.75rem; letter-spacing: 0.1em; }
.archival-dossier dt { text-transform: uppercase; color: var(--ms-muted); }

/* ── Contact page ── */
.archival-frame {
  border: 1px solid var(--ms-gold);
  background: white;
  padding: 2rem;
  position: relative;
}
.archival-frame-inner { max-width: 48rem; margin: 0 auto; }
.corner-accent { position: absolute; width: 1rem; height: 1rem; }
.corner-accent--tl { top: 0; left: 0; border-top: 1px solid var(--ms-red); border-left: 1px solid var(--ms-red); }
.corner-accent--tr { top: 0; right: 0; border-top: 1px solid var(--ms-red); border-right: 1px solid var(--ms-red); }
.corner-accent--bl { bottom: 0; left: 0; border-bottom: 1px solid var(--ms-red); border-left: 1px solid var(--ms-red); }
.corner-accent--br { bottom: 0; right: 0; border-bottom: 1px solid var(--ms-red); border-right: 1px solid var(--ms-red); }

.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; }
.contact-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ms-gold); border-bottom: 1px solid rgba(212,169,74,0.3); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.masthead-list { list-style: none; }
.masthead-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(212,169,74,0.1);
  padding: 0.5rem 0;
}

/* ── Festivals guide ── */
.festival-table { border: 1px solid var(--ms-outline); background: white; width: 100%; }
.festival-table .table-header {
  display: grid;
  grid-template-columns: 4fr 3fr 3fr 2fr;
  border-bottom: 1px solid var(--ms-outline);
  background: var(--ms-outline-light);
}
.festival-table .table-header > div {
  padding: 1rem;
  border-right: 1px solid var(--ms-outline);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ms-muted);
}
.festival-table .table-header > div:last-child { border-right: none; }
.festival-row {
  display: grid;
  grid-template-columns: 4fr 3fr 3fr 2fr;
  border-bottom: 1px solid var(--ms-outline);
  transition: background 0.2s ease;
}
.festival-row:hover { background: var(--ms-cream-light); }
.festival-row > div {
  padding: 1rem;
  border-right: 1px solid var(--ms-outline);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.festival-row > div:last-child { border-right: none; }
.festival-name { font-family: 'Cormorant', serif; font-size: 2rem; font-weight: 500; color: var(--ms-red); }
.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.125rem 0.75rem;
}
.status-badge--closed { background: var(--ms-outline-light); border: 1px solid var(--ms-outline); }
.status-badge--open { color: var(--ms-red); border-bottom: 1px solid var(--ms-red); }

/* ── Streaming guide ── */
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.platform-card {
  border: 1px solid var(--ms-gold);
  padding: 1rem;
  background: var(--ms-cream-light);
  display: flex;
  flex-direction: column;
}
.platform-header { border-bottom: 1px solid var(--ms-gold); padding-bottom: 0.5rem; margin-bottom: 1.5rem; display: flex; justify-content: space-between; align-items: flex-end; }
.platform-header h2 { font-family: 'Cormorant', serif; font-size: 2rem; font-weight: 500; color: var(--ms-ink); }
.watch-list { border: 1px solid var(--ms-gold); background: white; padding: 1rem; margin-top: auto; }
.watch-list h3 { color: var(--ms-red); border-bottom: 1px solid var(--ms-gold); display: inline-block; padding-bottom: 0.25rem; margin-bottom: 1rem; }
.watch-item { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; }
.watch-icon { color: var(--ms-gold-dark); flex-shrink: 0; margin-top: 2px; }
.watch-item .watch-sub { font-size: 0.75rem; color: var(--ms-outline); font-weight: 600; letter-spacing: 0.1em; }

/* ── Colophon (Footer) ── */
.colophon {
  background: var(--ms-ink);
  color: var(--ms-cream);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.colophon a { color: var(--ms-gold); }
.colophon a:hover { color: var(--ms-cream); }
.colophon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.colophon-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ms-gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.colophon-col ul { list-style: none; }
.colophon-col li { margin-bottom: 0.5rem; }
.masthead-strip {
  border-top: 1px solid rgba(212, 169, 74, 0.3);
  padding-top: 1rem;
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.7;
}

/* ── Page header pattern ── */
.page-banner { text-align: center; border-bottom: 1px solid var(--ms-gold); padding-bottom: 1.5rem; margin-bottom: 5rem; }
.page-banner h1 { color: var(--ms-red); margin-bottom: 0.5rem; }
.page-banner .lead { color: var(--ms-muted); max-width: 42rem; margin: 0 auto; }

/* ── About page ── */
.about-header { text-align: center; max-width: 48rem; margin: 0 auto 5rem; }
.about-header h1 { color: var(--ms-red); margin-bottom: 1rem; }
.about-divider { width: 6rem; height: 1px; background: var(--ms-gold); margin: 1.5rem auto 0; }

.about-image {
  border: 1px solid var(--ms-gold);
  padding: 1rem;
  background: white;
  margin-bottom: 5rem;
}
.about-image img { width: 100%; height: 400px; object-fit: cover; border: 1px solid var(--ms-gold); }

.mission-grid { display: grid; grid-template-columns: 5fr 2fr 5fr; gap: 1.5rem; margin-bottom: 5rem; }
.mission-box { padding: 3rem; border: 1px solid var(--ms-gold); background: white; }
.mission-box h2 { color: var(--ms-red); margin-bottom: 1rem; }
.mission-divider { display: flex; justify-content: center; align-items: center; }
.mission-divider-line { width: 1px; height: 100%; background: var(--ms-gold); }
.standards-item { border-bottom: 1px solid var(--ms-gold); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.standards-item:last-child { border-bottom: none; margin-bottom: 0; }
.standards-item h3 { color: var(--ms-red); margin-bottom: 0.5rem; }

.history-box { border: 1px solid var(--ms-gold); padding: 2rem 4rem; background: white; }
.history-box h2 { margin-bottom: 2rem; }

/* ── Button styles ── */
.btn-outline {
  display: inline-block;
  border: 1px solid var(--ms-outline);
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ms-ink);
  background: transparent;
  transition: all 0.3s ease;
}
.btn-outline:hover { border-color: var(--ms-red); color: var(--ms-red); text-decoration: none; }

/* ── Related films ── */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.related-card { display: block; }
.related-card-inner {
  border: 1px solid var(--ms-gold);
  padding: 0.5rem;
  background: var(--ms-cream-light);
  transition: background 0.3s ease;
}
.related-card:hover .related-card-inner { background: var(--ms-outline-light); }
.related-card-frame {
  border: 1px solid var(--ms-gold);
  background: white;
  padding: 1rem;
  overflow: hidden;
}
.related-card-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(1); transition: filter 0.5s ease; }
.related-card:hover .related-card-frame img { filter: grayscale(0); }

/* ── MSF Historical (festivals guide) ── */
.matting-card {
  border: 1px solid var(--ms-outline);
  padding: 1rem;
  background: white;
}
.matting-card .matting-img { aspect-ratio: 3/4; overflow: hidden; position: relative; margin-bottom: 1.5rem; }
.matting-card .matting-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0.9; }

.dossier-card {
  border: 1px solid var(--ms-outline);
  padding: 1.5rem;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.2s ease;
}
.dossier-card:hover { background: var(--ms-cream-light); }
.dossier-card h3 { color: var(--ms-red); margin-bottom: 1rem; }
.dossier-card-footer { border-top: 1px solid var(--ms-outline); padding-top: 1rem; margin-top: 2rem; display: flex; justify-content: space-between; }

.highlight-card {
  border: 1px solid var(--ms-outline);
  padding: 1.5rem;
  background: var(--ms-red);
  color: var(--ms-cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.highlight-card h3 { color: white; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .editorial-hero { grid-column: span 12; }
  .editorial-side { grid-column: span 12; }
  .editorial-dossier { grid-column: span 6; }
  .editorial-portrait { grid-column: span 6; }
}

@media (max-width: 768px) {
  .colophon-grid { grid-template-columns: 1fr; }
  .film-nav { gap: 1rem; }
  .reel-grid { grid-template-columns: 1fr; }
  .film-entry { grid-template-columns: 1fr; }
  .film-layout { grid-template-columns: 1fr; }
  .director-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-divider { display: none; }
  .platform-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .alpha-columns { columns: 1; }
  .editorial-grid { display: flex; flex-direction: column; }
  .editorial-hero, .editorial-side, .editorial-dossier, .editorial-portrait { grid-column: span 12; }
  .related-grid { grid-template-columns: 1fr; }
  .festival-table .table-header { display: none; }
  .festival-row { grid-template-columns: 1fr; }
  .festival-row > div { border-right: none; border-bottom: 1px solid var(--ms-outline); padding: 0.75rem 1rem; }
  .t-display { font-size: 2.5rem; }
  .t-headline-lg { font-size: 2rem; }
  .hero-banner { min-height: 400px; }
}

/* ── WP specific ── */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.alignleft { float: left; margin-right: 2rem; margin-bottom: 1.5rem; }
.alignright { float: right; margin-left: 2rem; margin-bottom: 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1.5rem; }

/* ── Festival Filter Buttons ── */
.fest-filter {
  font-family: "Work Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--ms-outline-light);
  background: transparent;
  color: var(--ms-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.fest-filter:hover { border-color: var(--ms-gold); color: var(--ms-ink); }
.fest-filter--active {
  background: var(--ms-red);
  color: #fff;
  border-color: var(--ms-red);
}

/* ── Focus Tags ── */
.focus-tag {
  font-family: "Work Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--ms-outline-light);
  display: inline-block;
}
.focus-tag--narrative { border-color: var(--ms-gold); color: var(--ms-gold-dark); }
.focus-tag--documentary { border-color: #6b8f71; color: #3d6b45; }
.focus-tag--animation { border-color: #8b7ec8; color: #5b4fa0; }
.focus-tag--experimental { border-color: var(--ms-red); color: var(--ms-red); }
.focus-tag--all-genres { border-color: var(--ms-ink); color: var(--ms-ink); }
