/* ==========================================================================
   Bare Gold — editorial stylesheet
   Mobile-first. White paper, black ink, a whisper of gold.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-rgb: 255, 255, 255;
  --ink: #111111;
  --ink-soft: #4a4a4a;
  --ink-muted: #8a8a8a;
  --rule: #e5e5e5;
  --gold: #b08d45;
  --brand: #c8433b;
  --brand-rgb: 200, 67, 59;
  --star-empty: var(--rule);
  --verdict-star-empty: #444;
  --poster-shadow: rgba(0, 0, 0, 0.45);

  --font-brand: "Playfair Display", "Didot", Georgia, serif;
  /* Digital type system: tight grotesk headlines, screen-first body,
     mono for data (labels, dates, counts), serif italic only as accent */
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-accent: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  /* Form factors */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --surface: #f3f2ef;

  /* Fluid type scale: 375px → 1440px */
  --step--1: clamp(0.75rem, 0.73rem + 0.08vw, 0.8rem);
  --step-0: clamp(1.0625rem, 1.03rem + 0.15vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.18rem + 0.3vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.45rem + 0.65vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.8rem + 1.3vw, 3.2rem);
  --step-4: clamp(2.6rem, 2.1rem + 2.3vw, 4.75rem);

  /* Weights — slightly heavier than default for a richer colour on the page */
  --w-body: 450;
  --w-ui: 500;

  --gutter: 1.25rem;
  --measure: 38rem;
  --wide: 72rem;
  --hairline: 1px;
  --header-h: 4rem; /* refined at runtime by main.js */
}

/* Dark theme — warm charcoal paper, ivory ink, brighter gold */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #121110;
    --paper-rgb: 18, 17, 16;
    --ink: #ece7df;
    --ink-soft: #b7b1a7;
    --ink-muted: #7f7a72;
    --rule: #2c2a27;
    --gold: #cfae66;
    --brand: #e5675e;
    --brand-rgb: 229, 103, 94;
    --verdict-star-empty: #bdb7ad;
    --poster-shadow: rgba(0, 0, 0, 0.8);
    --surface: #1d1c1a;
    --w-body: 420; /* light-on-dark reads heavier; ease it back */
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121110;
  --paper-rgb: 18, 17, 16;
  --ink: #ece7df;
  --ink-soft: #b7b1a7;
  --ink-muted: #7f7a72;
  --rule: #2c2a27;
  --gold: #cfae66;
  --brand: #e5675e;
  --brand-rgb: 229, 103, 94;
  --verdict-star-empty: #bdb7ad;
  --poster-shadow: rgba(0, 0, 0, 0.8);
  --surface: #1d1c1a;
  --w-body: 420;
}

@media (min-width: 48em) { :root { --gutter: 2.5rem; } }

/* Retina: true hairlines on high-density screens */
@media (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 2) {
  :root { --hairline: 0.5px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: var(--w-body);
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--wide) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: calc(var(--measure) + var(--gutter) * 2);
}

.rule {
  border: 0;
  border-top: var(--hairline) solid var(--ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  z-index: 100;
}
.skip-link:focus { left: 1rem; }

/* ---------- Small caps labels ---------- */
.label {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.meta {
  font-family: var(--font-ui);
  font-weight: var(--w-ui);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.meta span + span::before {
  content: "·";
  margin-inline: 0.5em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--paper-rgb), 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: var(--hairline) solid var(--rule);
  color: var(--ink);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* On pages with a cover the header floats over the photo, then turns solid */
.has-cover .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #fff;
}

.has-cover .site-header.is-solid {
  background: rgba(var(--paper-rgb), 0.94);
  border-bottom-color: var(--rule);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  color: var(--ink);
}

.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 4rem;
}

/* Brand wordmark — lowercase Playfair in brand red */
.wordmark {
  font-family: var(--font-brand);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--brand);
  text-transform: lowercase;
  white-space: nowrap;
  transition: color 0.35s ease;
}

.has-cover .site-header:not(.is-solid) .wordmark { color: #fff; }


.header-tools {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  border-radius: 50%;
  transition: opacity 0.2s ease;
}

.theme-toggle:hover { opacity: 0.6; }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; }

/* Show the moon in light mode (switch to dark), the sun in dark mode */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* Brief cross-fade while switching themes (class set by main.js) */
.theme-switching,
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease !important;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Header's backdrop-filter makes it the containing block, so size explicitly */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - 4rem);
  height: calc(100dvh - 4rem);
  overflow-y: auto;
  background: var(--paper);
  color: var(--ink);
  padding: 2rem var(--gutter);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
}

.site-nav li { border-bottom: var(--hairline) solid var(--rule); }

.site-nav a {
  display: block;
  padding-block: 0.9rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.1;
}

.site-nav a[aria-current="page"] { font-style: italic; color: var(--brand); }

/* Desktop: centred masthead row, thick rule, centred menu row (as per the sitemap) */
@media (min-width: 64em) {
  .nav-toggle { display: none; }

  .site-header .container {
    grid-template-columns: 1fr auto 1fr;
    min-height: 0;
    padding-top: 1rem;
  }

  .site-header .wordmark {
    grid-column: 2;
    font-size: 2.6rem;
    line-height: 1.15;
  }

  .header-tools { grid-column: 3; justify-self: end; }

  .site-nav {
    grid-column: 1 / -1;
    position: static;
    height: auto;
    overflow: visible;
    padding: 0;
    margin-top: 0.85rem;
    border-top: 3px solid currentColor;
    background: none;
    color: inherit;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 2.5rem;
  }

  .site-nav li { border: 0; }

  .site-nav a {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding-block: 0.85rem;
    position: relative;
  }

  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.55rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

  .site-nav a[aria-current="page"] { font-style: normal; color: inherit; }
}

.badge-21 {
  display: inline-block;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.3em 0.5em;
  border: 1px solid currentColor;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.5rem;
  position: relative;
  top: -0.15em;
}

/* ---------- Age gate (21+) ---------- */
.age-pending body { overflow: hidden; }
.age-pending body > :not(.age-gate) {
  filter: blur(18px);
  pointer-events: none;
  user-select: none;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(var(--paper-rgb), 0.78);
}

.age-gate-card {
  width: 100%;
  max-width: 27rem;
  background: var(--paper);
  border: var(--hairline) solid var(--ink);
  padding: 2.75rem 1.75rem 2.25rem;
  text-align: center;
}

.age-gate-card .mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1;
}

.age-gate-card .mark span { color: var(--brand); }

.age-gate-card h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.15;
  margin-top: 1rem;
}

.age-gate-card p {
  color: var(--ink-soft);
  font-size: 0.975rem;
  line-height: 1.6;
  margin-top: 0.85rem;
}

.age-gate-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn.btn-ghost {
  background: var(--paper);
  color: var(--ink);
}

.btn.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.age-gate-card .fine {
  font-family: var(--font-ui);
  font-weight: var(--w-ui);
  font-size: 0.7rem;
  color: var(--ink-muted);
  margin-top: 1.25rem;
}

/* ---------- Masthead (home) ---------- */
.masthead {
  text-align: center;
  padding-block: 3rem 2.5rem;
}

.masthead h1 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

.masthead h1 em { font-weight: 500; }

.masthead p {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--ink-soft);
}

.masthead .meta { margin-top: 1.5rem; }

@media (min-width: 48em) {
  .masthead { padding-block: 5rem 4rem; }
}

/* ---------- Featured article ---------- */
.featured {
  padding-block: 2.5rem 3rem;
  border-top: var(--hairline) solid var(--ink);
  border-bottom: var(--hairline) solid var(--rule);
}

.featured-inner {
  display: grid;
  gap: 1.75rem;
}

.featured h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: 0.85rem;
}

.featured h2 a:hover { opacity: 0.65; }

.featured .excerpt {
  color: var(--ink-soft);
  font-size: var(--step-0);
}

.featured .meta { margin-top: 1.25rem; }

.read-more {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: var(--hairline) solid var(--ink);
  padding-bottom: 0.2rem;
}

.read-more:hover { opacity: 0.6; }

@media (min-width: 64em) {
  .featured { padding-block: 4rem; }
  .featured-inner {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
    align-items: end;
  }
}

/* ---------- Article list ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 3rem 1.5rem;
}

.article-grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
}

.card {
  padding-block: 1.75rem;
  border-top: var(--hairline) solid var(--rule);
}

.card .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--brand);
}

.card h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.15;
  margin-top: 0.5rem;
}

.card h3 a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% var(--hairline);
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s ease;
}

.card h3 a:hover { background-size: 100% var(--hairline); }

.card p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.card .meta { margin-top: 1rem; }

@media (min-width: 40em) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.5rem;
  }
}

@media (min-width: 64em) {
  .article-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 3rem;
  }
  .card { padding-block: 2.25rem; }
}

/* ---------- Quote band ---------- */
.quote-band {
  margin-top: 4rem;
  padding-block: 4rem;
  border-block: var(--hairline) solid var(--ink);
  text-align: center;
}

.quote-band blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1.2;
  max-width: 44rem;
  margin-inline: auto;
}

.quote-band cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
}

/* ---------- Newsletter ---------- */
.newsletter {
  padding-block: 4rem;
  text-align: center;
}

.newsletter h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.1;
}

.newsletter p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

.subscribe {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 2rem auto 0;
}

.subscribe input {
  appearance: none;
  width: 100%;
  font: inherit;
  font-family: var(--font-ui);
  font-size: 1rem; /* ≥16px prevents iOS zoom */
  padding: 0.9rem 0;
  border: 0;
  border-bottom: var(--hairline) solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.subscribe input::placeholder { color: var(--ink-muted); }
.subscribe input:focus { outline: none; border-bottom-width: 1px; }

.btn {
  appearance: none;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover { background: var(--paper); color: var(--ink); }

@media (min-width: 40em) {
  .subscribe { flex-direction: row; align-items: end; gap: 1.25rem; }
  .subscribe .btn { flex-shrink: 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: var(--hairline) solid var(--ink);
  padding-block: 2.5rem;
  margin-top: 2rem;
}

.site-footer .container {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

/* Copyright: its own full-width line under a rule, aligned with the wordmark */
.site-footer .meta {
  grid-column: 1 / -1;
  justify-self: stretch;
  margin: 0;
  padding-top: 1.25rem;
  border-top: var(--hairline) solid var(--rule, currentColor);
}
.site-footer .build-no { white-space: nowrap; font-variant-numeric: tabular-nums; }

.site-footer ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer a:hover { opacity: 0.6; }

@media (min-width: 48em) {
  /* wordmark · links · social icons on one row; the copyright line below spans all three */
  .site-footer .container {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 3rem;
    row-gap: 1.75rem;
  }
  .site-footer .container > ul.label { justify-self: end; justify-content: flex-end; column-gap: 1.5rem; row-gap: 0.75rem; }
  .site-footer .container > .social-links { grid-column: 3; }
}

/* ==========================================================================
   Article page
   ========================================================================== */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 60;
}

/* Cover — full-viewport image with the headline overlaid on a fade to paper.
   Image and text scroll together; nothing is pinned. */
.cover {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}

.cover-media {
  position: absolute;
  inset: 0 0 26% 0; /* phones: photo fills the top, fading out above the headline */
  z-index: -2;
}

@media (min-width: 48em) { .cover-media { inset: 0; } }

.cover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: opacity 1.6s ease, transform 2.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Set by main.js until the photo has downloaded, so it fades in rather than pops */
.cover-media img.is-loading {
  opacity: 0;
  transform: scale(1.06);
}

@keyframes cover-in {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: none; }
}

/* Top shade keeps the header legible; bottom fade melts the photo into the page */
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(17, 17, 17, 0.55) 0, rgba(17, 17, 17, 0) 8rem),
    linear-gradient(to bottom,
      rgba(var(--paper-rgb), 0) 38%,
      rgba(var(--paper-rgb), 0.7) 54%,
      rgba(var(--paper-rgb), 0.95) 64%,
      var(--paper) 74%);
}

.post-header {
  width: 100%;
  text-align: center;
  padding-block: 0 2.5rem;
}

.post-header h1 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-top: 1rem;
  text-wrap: balance;
}

.post-header .dek {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-soft);
  margin-top: 1.25rem;
  text-wrap: balance;
}

.byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.avatar {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: var(--hairline) solid var(--ink);
  background: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
}

.byline .who { text-align: left; line-height: 1.4; }
.byline .who strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.25rem;
  color: var(--ink-muted);
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 2.5rem;
  background: currentColor;
  transform-origin: top;
  animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.post-body { padding-top: 1rem; }

@media (min-width: 48em) {
  .post-header { padding-bottom: 3.5rem; }
  .cover::before {
    background:
      linear-gradient(to bottom, rgba(17, 17, 17, 0.6) 0, rgba(17, 17, 17, 0) 13rem),
      linear-gradient(to bottom,
        rgba(var(--paper-rgb), 0) 36%,
        rgba(var(--paper-rgb), 0.72) 50%,
        rgba(var(--paper-rgb), 0.95) 62%,
        var(--paper) 80%);
  }
}

figcaption {
  font-family: var(--font-ui);
  font-weight: var(--w-ui);
  font-size: var(--step--1);
  color: var(--ink-muted);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* Prose */
.prose > * + * { margin-top: 1.5em; }

.prose p { hyphens: auto; -webkit-hyphens: auto; }

.prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 4.6em;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 2.5em;
}

.prose h2 + p { margin-top: 0.75em; }

.prose a {
  border-bottom: var(--hairline) solid var(--ink);
}
.prose a:hover { opacity: 0.6; }

.prose blockquote {
  margin-block: 2.5em;
  padding-block: 1.75rem;
  border-block: var(--hairline) solid var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.3;
  text-align: center;
}

.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--brand); }

.prose .divider {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.75em;
  color: var(--ink-muted);
  margin-block: 2.5em;
}

/* Pull quote breaks wider than the measure on large screens */
@media (min-width: 64em) {
  .prose blockquote {
    margin-inline: -6rem;
    font-size: var(--step-3);
  }
}

.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: var(--hairline) solid var(--ink);
}

.tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags a {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: var(--w-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.85rem;
  border: var(--hairline) solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.tags a:hover { background: var(--ink); color: var(--paper); }

.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 1.75rem 0;
  border-top: var(--hairline) solid var(--rule);
}

.author-box .avatar { width: 3.5rem; height: 3.5rem; font-size: 1.5rem; }
.author-box h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.2;
}
.author-box p { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.35rem; line-height: 1.6; }

.post-nav {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  border-top: var(--hairline) solid var(--ink);
}

.post-nav a {
  display: block;
  padding-block: 1.5rem;
  border-bottom: var(--hairline) solid var(--rule);
}

.post-nav a:hover h4 { opacity: 0.6; }

.post-nav h4 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0.4rem;
  transition: opacity 0.2s ease;
}

@media (min-width: 40em) {
  .post-nav { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .post-nav .next { text-align: right; }
}

/* ==========================================================================
   About page
   ========================================================================== */
.about-hero {
  padding-block: 3.5rem 3rem;
}

.about-hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-top: 1rem;
  max-width: 18ch;
  text-wrap: balance;
}

.about-hero .lede {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.35;
  color: var(--ink-soft);
  margin-top: 2rem;
  max-width: 40rem;
}

@media (min-width: 48em) {
  .about-hero { padding-block: 6rem 5rem; }
}

.split {
  display: grid;
  gap: 1.5rem;
  padding-block: 3rem;
  border-top: var(--hairline) solid var(--ink);
}

.split h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.15;
}

.split .prose p:first-of-type::first-letter {
  all: unset;
}

@media (min-width: 64em) {
  .split {
    grid-template-columns: 4fr 8fr;
    gap: 4rem;
    padding-block: 5rem;
  }
}

.principles {
  list-style: none;
  padding: 0;
  counter-reset: p;
  display: grid;
  gap: 0;
}

.principles li {
  counter-increment: p;
  padding-block: 1.5rem;
  border-top: var(--hairline) solid var(--rule);
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.5rem;
}

.principles li:first-child { border-top: 0; padding-top: 0; }

.principles li::before {
  content: counter(p, upper-roman) ".";
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--brand);
  line-height: 1.4;
}

.principles h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.3;
}

.principles p {
  color: var(--ink-soft);
  margin-top: 0.35rem;
  font-size: 1rem;
}

.team {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.member .avatar {
  width: 4.5rem;
  height: 4.5rem;
  font-size: 1.85rem;
}

.member h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  margin-top: 1rem;
  line-height: 1.2;
}

.member .label { color: var(--ink-muted); display: block; margin-top: 0.35rem; }

.member p {
  font-size: 0.975rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
  line-height: 1.6;
}

@media (min-width: 40em) {
  .team { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

@media (min-width: 64em) {
  .team { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

.contact-line {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.15;
}

.contact-line a {
  font-style: italic;
  border-bottom: var(--hairline) solid var(--ink);
}

.contact-line a:hover { opacity: 0.6; }

/* ==========================================================================
   Screening Room — movies & reviews
   ========================================================================== */
.page-hero {
  padding-block: 3rem 2rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-top: 0.85rem;
}

.page-hero p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-1);
  color: var(--ink-soft);
  margin-top: 0.85rem;
}

@media (min-width: 48em) {
  .page-hero { padding-block: 5rem 3rem; }
}

/* Search + filters */
.finder {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgba(var(--paper-rgb), 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding-block: 1rem;
  border-bottom: var(--hairline) solid var(--rule);
}


.search {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
}

.search svg {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
}

.search input {
  appearance: none;
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.5rem; /* well above 16px, so iOS won't zoom */
  font-weight: 500;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.search input::placeholder { color: var(--ink-muted); font-style: italic; }
.search input:focus { outline: none; }
.search input::-webkit-search-cancel-button { display: none; }

.search-clear {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 0;
  padding: 0.5rem 0 0.5rem 0.5rem;
  color: var(--ink-muted);
  cursor: pointer;
}

.search-clear:hover { color: var(--ink); }

.search kbd {
  display: none;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-muted);
  border: var(--hairline) solid var(--ink-muted);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
}

@media (hover: hover) and (min-width: 48em) {
  .search kbd { display: inline-block; }
  .search-clear:not([hidden]) + kbd { display: none; }
}

.finder-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.9rem;
}

.chips {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* Bleed to the left edge on phones; fade out where they meet the sort menu */
  margin-left: calc(var(--gutter) * -1);
  padding: 0 1.5rem 0 var(--gutter);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent);
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.95rem;
  border: var(--hairline) solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.chip:hover,
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.sort {
  flex-shrink: 0;
  appearance: none;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.6rem 0.5rem 0.25rem;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  cursor: pointer;
  background: transparent;
}

.sort-wrap { position: relative; flex-shrink: 0; }
.sort-wrap::after {
  content: "";
  position: absolute;
  right: 0.3rem;
  top: 50%;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.2px solid currentColor;
  border-bottom: 1.2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.sort option { background: var(--paper); color: var(--ink); }

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 1.5rem 1rem;
}

/* Poster grid */
.poster-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
}

@media (min-width: 40em) { .poster-list { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.5rem; } }
@media (min-width: 64em) { .poster-list { grid-template-columns: repeat(4, 1fr); gap: 3rem 2rem; } }

.poster-grid--teaser .poster-list li:nth-child(n + 3) { display: none; }
@media (min-width: 40em) { .poster-grid--teaser .poster-list li:nth-child(3) { display: block; } }
@media (min-width: 64em) { .poster-grid--teaser .poster-list li:nth-child(4) { display: block; } }

.poster-card { display: block; }

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(160deg, var(--p-bg1), var(--p-bg2));
  color: var(--p-fg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 12px 28px -14px var(--poster-shadow);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.5s ease;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.poster.has-image { padding: 0; background: var(--rule); }
.poster.has-image img { width: 100%; height: 100%; object-fit: cover; }

/* Soft film grain + vignette so flat colour reads as print */
.poster:not(.has-image)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    radial-gradient(140% 100% at 50% 120%, rgba(0, 0, 0, 0.35), transparent 60%);
}

.poster-card:hover .poster,
.poster-card:focus-visible .poster {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 22px 40px -16px rgba(0, 0, 0, 0.55);
}

.poster-kicker {
  font-family: var(--font-ui);
  font-size: clamp(0.5rem, 0.45rem + 0.3vw, 0.65rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.poster-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.1rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.poster-year {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--p-accent);
}

/* Layout A: title anchored bottom-left, year top-right */
.poster--a .poster-kicker { order: 1; }
.poster--a .poster-year { order: 0; align-self: flex-end; font-size: 1.1rem; }
.poster--a .poster-title { order: 2; margin-top: auto; }
.poster--a .poster-title::before {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--p-accent);
  margin-bottom: 0.75rem;
}

/* Layout B: centred, framed */
.poster--b {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
}
.poster--b::before {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border: 1px solid currentColor;
  opacity: 0.35;
  pointer-events: none;
}
.poster--b .poster-title { font-style: italic; font-weight: 500; }
.poster--b .poster-year { font-size: 1rem; }

/* Layout C: oversized year as graphic, title at top */
.poster--c .poster-title { order: 1; margin-top: 0.5rem; }
.poster--c .poster-kicker { order: 0; }
.poster--c .poster-year {
  order: 2;
  margin-top: auto;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(3.5rem, 2.5rem + 5vw, 6rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  opacity: 0.9;
}

.poster-info { padding-top: 0.9rem; }

.poster-info h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.15;
}

.poster-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

.poster-info .meta { margin-top: 0.25rem; }
.poster-info .stars { margin-top: 0.4rem; }

.stars {
  display: inline-flex;
  gap: 0.1em;
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 0;
}

.star { color: var(--star-empty); }
.star.full { color: var(--gold); }
.star.half {
  background: linear-gradient(90deg, var(--gold) 50%, var(--star-empty) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.empty-state {
  text-align: center;
  padding-block: 4rem;
}

.empty-state h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
}

.empty-state p { color: var(--ink-soft); margin-top: 0.5rem; }
.empty-state .btn { margin-top: 1.5rem; }

/* Review cover without a still: typographic backdrop in the film's palette */
.cover-type {
  background: linear-gradient(160deg, var(--p-bg1), var(--p-bg2));
  color: var(--p-fg);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
  animation: cover-in 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.cover-type-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(4rem, 2rem + 12vw, 13rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-align: center;
  padding-inline: 1rem;
  opacity: 0.22;
  text-wrap: balance;
}

.review-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.review-rating .stars { font-size: 1.1rem; }

.film-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  padding-block: 1.5rem;
  margin-bottom: 2.5rem;
  border-block: var(--hairline) solid var(--ink);
}

.film-facts dt {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.film-facts dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (min-width: 48em) {
  .film-facts { grid-template-columns: repeat(4, 1fr); }
}

.verdict {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.verdict .label { color: var(--paper); display: block; }
.verdict .stars { margin-top: 0.85rem; font-size: 1.1rem; }
.verdict { --star-empty: var(--verdict-star-empty); }

.verdict p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-1);
  line-height: 1.4;
  margin-top: 1rem;
}

.not-found { padding-block: 8rem 4rem; text-align: center; }
.not-found h1 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  margin-top: 1rem;
}

/* ==========================================================================
   Sex Festivals — calendar, events index & event pages
   ========================================================================== */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Brand tagline, letter-spaced as on the masthead */
.tagline {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(0.72rem, 0.6rem + 0.55vw, 1.05rem);
  letter-spacing: 0.32em;
  line-height: 1.8;
  text-transform: uppercase;
  text-wrap: balance;
}

.masthead h1.tagline {
  font-family: var(--font-ui);
  font-size: clamp(0.78rem, 0.6rem + 0.7vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1.9;
  max-width: 62rem;
  margin-inline: auto;
}
.select-wrap::after { right: 0.9rem; }
.masthead .tagline-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-1);
  color: var(--ink-soft);
  margin-top: 1rem;
}

/* Status badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.status--now { background: var(--brand); border-color: var(--brand); color: #fff; }
.status--now::before {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}
.status--upcoming { color: var(--ink); }
.status--past { color: var(--ink-muted); border-color: var(--rule); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* Calendar */
.cal { user-select: none; }

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cal-title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}

.cal-nav {
  width: 2.5rem;
  height: 2.5rem;
  border: var(--hairline) solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cal-nav:hover { border-color: var(--ink); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 0;
}

.cal-dow {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: 0.5rem;
}

.cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  border: 0;
  background: none;
  color: var(--ink-muted);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: default;
}

.cal-day.has-events { color: var(--ink); font-weight: 600; cursor: pointer; }
.cal-day.is-outside { opacity: 0.35; }

.cal-num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.cal-day.has-events:hover .cal-num { background: var(--rule); }
.cal-day.is-today .cal-num { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.cal-day.is-selected .cal-num,
.cal-day.is-selected:hover .cal-num { background: var(--ink); color: var(--paper); box-shadow: none; }

/* Highlighted run of days for the event being viewed */
.cal-day.in-range { background: rgba(var(--brand-rgb), 0.12); }
.cal-day.range-start { border-radius: 999px 0 0 999px; }
.cal-day.range-end { border-radius: 0 999px 999px 0; }
.cal-day.range-start.range-end { border-radius: 999px; }
.cal-day.in-range .cal-num { color: var(--brand); font-weight: 700; }

.cal-dots {
  display: flex;
  gap: 2px;
  height: 5px;
}

.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.dot--now { background: var(--brand); }
.dot--upcoming { background: transparent; box-shadow: inset 0 0 0 1px var(--ink); }
.dot--past { background: var(--ink-muted); opacity: 0.6; }

.cal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: var(--hairline) solid var(--rule);
}

.cal-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.cal-today {
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0.15rem 0;
  color: var(--ink);
  cursor: pointer;
}

/* Events index layout */
.events-layout {
  display: grid;
  gap: 2.5rem;
  padding-block: 1rem 2rem;
}

.events-side .cal {
  padding: 1.25rem;
  border: var(--hairline) solid var(--ink);
}

.events-filters {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.events-filters .search input { font-size: 1.25rem; }

.select {
  appearance: none;
  width: 100%;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.7rem 2rem 0.7rem 0.85rem;
  border: var(--hairline) solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.chips.wrap {
  flex-wrap: wrap;
  overflow: visible;
  margin: 0;
  padding: 0;
  -webkit-mask-image: none;
  mask-image: none;
}

.chips.is-muted .chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

.day-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.5rem 0.45rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
}

.day-filter button {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

.day-filter[hidden] { display: none; }

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: var(--hairline) solid var(--ink);
}

.event-month { margin-top: 2rem; }
.event-month > .label { color: var(--ink-muted); }

.event-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  margin-top: 0.75rem;
}

.event-card {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.1rem;
  padding-block: 1.25rem;
  border-top: var(--hairline) solid var(--rule);
}

.event-list li:first-child .event-card { border-top: 0; }

/* Photo with the date pinned on top; palette gradient shows while it loads */
.event-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(160deg, var(--p-bg1), var(--p-bg2));
  align-self: start;
}

.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.event-card:hover .event-thumb img { transform: scale(1.05); }
.event-card.is-past .event-thumb { filter: grayscale(1); opacity: 0.6; }

.event-date {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  min-width: 2.9rem;
  padding: 0.35rem 0.4rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  line-height: 1;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5);
}

.event-date .m {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.event-date .d {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.event-date .r {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.7rem;
  color: var(--ink-soft);
  margin-top: 0.1rem;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.event-body h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.1;
  margin-top: 0.5rem;
}

.event-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

.event-where { margin-top: 0.35rem; }

.event-summary {
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

.event-cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.event-card.is-past .event-cta { color: var(--ink-muted); }

@media (min-width: 40em) {
  .event-card { grid-template-columns: 13rem 1fr; gap: 1.75rem; padding-block: 1.75rem; }
  .event-thumb { aspect-ratio: 4 / 3; }
  .event-date { left: 0.75rem; top: 0.75rem; min-width: 3.4rem; }
  .event-date .d { font-size: 1.9rem; }
}

@media (min-width: 80em) {
  .event-card { grid-template-columns: 15rem 1fr; }
}

@media (min-width: 64em) {
  .events-layout {
    grid-template-columns: 22rem minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
    padding-top: 2rem;
  }
  .events-side {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

/* Event detail page */
.event-headline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1rem;
  margin-top: 1.5rem;
}

.event-layout {
  display: grid;
  gap: 2.5rem;
  padding-top: 1rem;
}

.event-main { min-width: 0; }

.event-facts { grid-template-columns: 1fr 1fr; }
.event-facts .wide { grid-column: 1 / -1; }
.event-facts small {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  margin-top: 0.3rem;
}

.event-note {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--brand);
  background: rgba(var(--brand-rgb), 0.06);
  line-height: 1.6;
}

.event-aside {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.aside-card {
  padding: 1.25rem;
  border: var(--hairline) solid var(--ink);
}

.aside-card > .label { display: block; margin-bottom: 1rem; }
.aside-card .read-more { margin-top: 1.25rem; }

.btn-block { display: block; width: 100%; margin-top: 1.25rem; }

.mini-events { list-style: none; padding: 0; }

.mini-events a {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.75rem;
  border-top: var(--hairline) solid var(--rule);
}

.mini-events li:first-child a { border-top: 0; padding-top: 0; }

.mini-date {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.mini-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
}

.mini-title small { display: block; margin-top: 0.15rem; }
.mini-events a:hover .mini-title { text-decoration: underline; text-underline-offset: 0.15em; }

/* One centred column: nothing sits beside the text, so centred and wide pictures have the full width */
.event-layout { grid-template-columns: minmax(0, var(--measure)); justify-content: center; }

.event-more { margin-top: 3rem; padding-top: 2rem; border-top: var(--hairline) solid var(--ink); }
.event-more > .label { display: block; margin-bottom: 1rem; }
.event-more-links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 1.5rem; }

/* Floating date bar: status, dates, "add to my calendar" */
.event-dock {
  position: fixed; z-index: 40; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.9rem;
  width: max-content; max-width: calc(100vw - 2rem);
  padding: 0.55rem 0.6rem 0.55rem 1rem;
  background: var(--paper); color: var(--ink);
  border: var(--hairline) solid var(--rule); border-radius: 999px;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.35);
}
.event-dock .status { flex: none; }
.event-dock-when { display: grid; line-height: 1.25; min-width: 0; }
.event-dock-when strong { font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.event-dock-when small { font-family: var(--font-ui); font-size: 0.72rem; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-dock-add { flex: none; margin: 0; padding: 0.6rem 1.1rem; border-radius: 999px; white-space: nowrap; }
.event-dock .wallet-btn { flex: none; margin: 0; }
.event-dock .wallet-btn img { height: 2.25rem; }
.event-dock .wallet-btn span { width: auto; padding: 0.55rem 0.9rem; border-radius: 999px; font-size: 0.8rem; white-space: nowrap; }
/* Room at the bottom of the page so the bar never covers the last lines or the footer */
#event { padding-bottom: 2rem; }
body:has(.event-dock) .site-footer { padding-bottom: 6.5rem; }

@media (max-width: 40em) {
  .event-dock {
    left: 0.75rem; right: 0.75rem; transform: none; width: auto; max-width: none;
    border-radius: 16px; padding: 0.6rem 0.6rem 0.6rem 0.85rem; gap: 0.65rem;
  }
  .event-dock-when { flex: 1; }
  .event-dock-when small { display: none; }
  .event-dock-when strong { white-space: normal; font-size: 0.8rem; }
  .event-dock .dock-long { display: none; }
  .event-dock-add { padding: 0.55rem 0.9rem; font-size: 0.78rem; }
  .event-dock .wallet-btn { display: none; }
}

@media (min-width: 64em) {
  .event-facts { grid-template-columns: repeat(2, 1fr); }
}

/* Category pages (Icons, Stardom, Real Voices) */
.category-hero {
  text-align: center;
  padding-block: 3rem 2.5rem;
  border-bottom: var(--hairline) solid var(--ink);
}

.category-hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-top: 0.85rem;
  text-wrap: balance;
}

.category-hero p {
  max-width: 36rem;
  margin: 1rem auto 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-soft);
}

@media (min-width: 48em) {
  .category-hero { padding-block: 5rem 4rem; }
}

/* ==========================================================================
   Image posts — cards, featured story, article media
   ========================================================================== */
.post-grid {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 40em) { .post-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.75rem; } }
@media (min-width: 64em) { .post-grid { grid-template-columns: repeat(3, 1fr); gap: 3.25rem 2.25rem; } }

.post-card a { display: block; }

.post-thumb {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--rule);
}

.post-thumb img,
.post-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
}

.post-card a:hover .post-thumb img,
.post-feature-media:hover img { transform: scale(1.04); }

.post-card-body { padding-top: 1rem; }
.post-card-body .label { color: var(--brand); }

.post-card h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.12;
  margin-top: 0.45rem;
  text-wrap: balance;
}

.post-card a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

.post-card p {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.post-card .meta { margin-top: 0.85rem; }

/* Compact horizontal card (search results) */
.post-card--row a {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.1rem;
  align-items: center;
}
.post-card--row .post-card-body { padding-top: 0; }
.post-card--row h3 { font-size: var(--step-1); }
.post-card--row .meta { margin-top: 0.4rem; }
@media (min-width: 40em) { .post-card--row a { grid-template-columns: 10rem 1fr; gap: 1.5rem; } }

/* Featured story: big image + text */
.post-feature {
  display: grid;
  gap: 1.5rem;
  padding-block: 2rem 3rem;
  border-bottom: var(--hairline) solid var(--rule);
}

.post-feature-media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--rule);
}

.post-feature h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-top: 0.75rem;
  text-wrap: balance;
}

.post-feature h2 a:hover { opacity: 0.65; }
.post-feature .label { color: var(--brand); }
.post-feature .excerpt { color: var(--ink-soft); margin-top: 1rem; }
.post-feature .meta { margin-top: 1.1rem; }

@media (min-width: 64em) {
  .post-feature {
    grid-template-columns: 7fr 5fr;
    gap: 3.5rem;
    align-items: center;
    padding-block: 3rem 4rem;
  }
}

.related {
  margin-top: 4rem;
  padding-top: 0.5rem;
  border-top: var(--hairline) solid var(--ink);
}

/* Article media blocks */
.prose .media { margin-block: 2.5em; }
.prose .media img,
.prose .media video { width: 100%; height: auto; display: block; background: var(--rule); }
.prose .media figcaption { margin-top: 0.75rem; }

/* Image shapes (chosen per image in the editor). Shaped images are cropped to fill the shape... */
.media--landscape img { aspect-ratio: 3 / 2; object-fit: cover; }
.media--wide img { aspect-ratio: 16 / 9; object-fit: cover; }
.media--banner img { aspect-ratio: 3 / 1; object-fit: cover; }
.media--square img { aspect-ratio: 1 / 1; object-fit: cover; }
.media--portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
.media--tall img { aspect-ratio: 9 / 16; object-fit: cover; }
/* ...unless "show the whole image" is chosen: fitted inside the shape, nothing cut off, spare space shaded */
.media--whole img { object-fit: contain; }
/* Original: the picture's own proportions (the browser takes them from the image's width and height), never
   cropped; very tall ones are kept within the screen */
.media--original img { object-fit: contain; max-height: 90vh; }

/* Upright images (portrait, tall, square, upright originals): centred and narrower on phones, beside the text on desktop */
.media--upright {
  width: 78%;
  margin-inline: auto;
}

.media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.media-pair img { aspect-ratio: 4 / 5; object-fit: cover; }

/* Video: 16:9 landscape or 9:16 vertical; click-to-load embeds */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.media--video-portrait .video-frame { aspect-ratio: 9 / 16; max-width: 22rem; margin-inline: auto; }
.media--video-portrait figcaption { text-align: center; }

.video-frame video,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.embed-play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: #111 center / cover no-repeat;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
}

.embed-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  transition: transform 0.3s ease, background 0.3s ease;
}
.embed-icon::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent #fff;
}
.embed-play:hover .embed-icon { transform: scale(1.06); background: var(--brand); }

.embed-note {
  position: absolute;
  bottom: 0.75rem;
  right: 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.placeholder-note {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-muted);
  padding: 1rem 1.25rem;
  border: 1px dashed var(--rule);
}
.placeholder-note code { font-size: 0.8rem; }

@media (min-width: 64em) {
  /* Broad images (landscape, wide, banner, wide originals) break out wider than the text column */
  .prose .media--broad,
  .prose .media--pair,
  .prose .media--video-landscape {
    width: min(60rem, calc(100vw - 2 * var(--gutter)));
    margin-left: 50%;
    transform: translateX(-50%);
  }

  .prose .media--upright {
    width: 22rem;
    margin-block: 0.4em 1.5em;
  }
  .prose .media--upright.media--right { float: right; margin-left: 2.5rem; margin-right: -9rem; }
  .prose .media--upright.media--left { float: left; margin-right: 2.5rem; margin-left: -9rem; }
  .prose h2 { clear: both; }
}

/* ---------- Region & country picker (Sex Festivals) ---------- */
.region-picker > .label { display: block; margin-bottom: 0.75rem; }

.region-list {
  display: grid;
  gap: 0;
  border-top: var(--hairline) solid var(--ink);
}

.region-list .count {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-left: 0.35rem;
}

.region-all,
.region-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  padding: 0.8rem 0 0.35rem;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.region-all { padding-bottom: 0.8rem; border-bottom: var(--hairline) solid var(--rule); }

.region-all[aria-pressed="true"],
.region-name[aria-pressed="true"],
.region-group.is-active .region-name { color: var(--brand); }

.region-all:hover,
.region-name:hover { color: var(--brand); }

.region-group {
  padding-bottom: 0.8rem;
  border-bottom: var(--hairline) solid var(--rule);
}

.country-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  margin-top: 0.25rem;
}

.country {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border: var(--hairline) solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.country:hover { border-color: var(--ink); color: var(--ink); }
.country[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Header search button ---------- */
.search-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: inherit;
  transition: opacity 0.2s ease;
}

.search-toggle:hover { opacity: 0.6; }
.search-toggle svg { width: 1.2rem; height: 1.2rem; }

/* ---------- Global search page ---------- */
.search-hero {
  padding-block: 3rem 1.5rem;
  text-align: center;
}

.search-hero > .label { display: block; margin-bottom: 1.25rem; }

.search--hero { border-bottom-width: 2px; }
.search--hero svg { width: 1.6rem; height: 1.6rem; }
.search--hero input { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); padding-block: 0.6rem; }

.search-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.search-tabs {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: var(--hairline) solid var(--ink);
}

.search-tabs::-webkit-scrollbar { display: none; }
.search-tabs[hidden] { display: none; }

.search-tab {
  flex-shrink: 0;
  padding: 0.9rem 0;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: var(--ink-muted);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.search-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.search-tab .count,
.result-group .count {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--ink-muted);
  margin-left: 0.25rem;
}

.search-summary { padding-top: 1.5rem; }
.search-empty { text-align: center; padding-block: 2rem 4rem; }

.result-group { margin-top: 1rem; }
.result-group .section-head { padding-block: 2rem 1.25rem; }

.result-list {
  display: grid;
  gap: 1.25rem;
}

.result-list .post-card { padding-bottom: 1.25rem; border-bottom: var(--hairline) solid var(--rule); }

@media (min-width: 64em) {
  .result-list { grid-template-columns: 1fr 1fr; gap: 1.75rem 3rem; }
  .search-hero { padding-block: 5rem 2rem; }
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* About page editor portraits */
.member-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--rule);
}

.member-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Home hero slider — full-screen featured articles & films
   ========================================================================== */
.hero-slider {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 34rem;
  overflow: hidden;
  background: #0b0b0b;
  color: #fff;
  touch-action: pan-y; /* vertical scroll stays native; horizontal swipes change slide */
  isolation: isolate;
}

.slides { position: absolute; inset: 0; }

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 1.1s;
}

.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.08);
  transition: transform 8s linear;
}

/* Slow push-in on the active slide */
.slide.is-active .slide-media img { transform: scale(1); }

/* Top shade for the header, bottom shade for the caption */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0, rgba(0, 0, 0, 0) 13rem),
    linear-gradient(to top, rgba(0, 0, 0, 0.88) 0, rgba(0, 0, 0, 0.45) 42%, rgba(0, 0, 0, 0) 72%);
}

/* Film slides without a still: palette backdrop, giant title, poster */
.slide-media--film {
  background: linear-gradient(160deg, var(--p-bg1), var(--p-bg2));
  color: var(--p-fg);
}

.slide-film-title {
  position: absolute;
  left: -0.05em;
  top: 14%;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(5rem, 3rem + 14vw, 17rem);
  line-height: 0.82;
  letter-spacing: -0.03em;
  opacity: 0.13;
  white-space: nowrap;
}

.slide-poster {
  position: absolute;
  left: 50%;
  top: 15%;
  width: 46vw;
  max-width: 15rem;
  transform: translateX(-50%) rotate(-2deg) translateY(12px);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s, opacity 1s ease 0.2s;
}

.slide.is-active .slide-poster { transform: translateX(-50%) rotate(-2deg); opacity: 1; }
.slide-poster .poster { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }

.slide-content {
  position: relative;
  z-index: 2;
  padding-bottom: 6.5rem;
}

.slide-content > * {
  max-width: 40rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.slide.is-active .slide-content > * { opacity: 1; transform: none; }
.slide.is-active .slide-content > :nth-child(2) { transition-delay: 0.12s; }
.slide.is-active .slide-content > :nth-child(3) { transition-delay: 0.22s; }
.slide.is-active .slide-content > :nth-child(4) { transition-delay: 0.32s; }
.slide.is-active .slide-content > :nth-child(5) { transition-delay: 0.42s; }

.slide-content .label { color: rgba(255, 255, 255, 0.85); }

.slide-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 4vw, 5.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-top: 0.75rem;
  text-wrap: balance;
}

.slide-title a:hover { opacity: 0.8; }

.slide-rating { margin-top: 0.75rem; }
.slide-rating .stars { font-size: 1.05rem; }
.slide-rating .star:not(.full):not(.half) { color: rgba(255, 255, 255, 0.3); }

.slide-text {
  margin-top: 0.9rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-cta {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid currentColor;
}

.slide-cta span { display: inline-block; transition: transform 0.3s ease; }
.slide-cta:hover span { transform: translateX(4px); }

/* Progress bars, counter, arrows */
.slider-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.slider-progress { display: flex; gap: 0.4rem; }

.slider-bar {
  width: 1.75rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.slider-bar span {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.slider-bar span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left;
  transform: scaleX(0);
}

.slider-bar.is-done span::after,
.slider-bar[aria-selected="true"] span::after { transform: scaleX(1); }
.is-running .slider-bar[aria-selected="true"] span::after { animation: slider-fill var(--slide-interval, 6500ms) linear both; }

@keyframes slider-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-count {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 0.5rem;
}

.slider-count b { color: #fff; font-weight: 600; }

.slider-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.slider-btn:hover { background: #fff; color: #111; border-color: #fff; }

@media (max-width: 39.99em) {
  .slider-count { display: none; }
  .slider-btn { width: 2.4rem; height: 2.4rem; }
}

@media (min-width: 48em) {
  .slider-bar { width: 3rem; }
  .slide-content { padding-bottom: 7.5rem; }
}

@media (min-width: 64em) {
  .slide-poster {
    left: auto;
    right: 9%;
    top: 50%;
    width: clamp(14rem, 19vw, 21rem);
    max-width: none;
    transform: translateY(-46%) rotate(-3deg);
  }
  .slide.is-active .slide-poster { transform: translateY(-50%) rotate(-3deg); }
  .slide-film-title { top: auto; bottom: 30%; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .newsletter, .post-nav, .progress, .nav-toggle, .finder, .scroll-cue, .age-gate, .slider-ui, .event-dock { display: none !important; }
  body { font-size: 11pt; }
  .prose a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* Small phones: keep wordmark + 21+ + three icons on one line */
@media (max-width: 63.99em) {
  .header-tools { gap: 0; }
  .search-toggle,
  .theme-toggle,
  .nav-toggle { width: 40px; height: 40px; }
  .nav-toggle { padding: 10px 8px; margin-right: -8px; }
  .header-tools .badge-21 { margin: 0 0.15rem 0 0; }
}

@media (max-width: 24em) {
  .wordmark { font-size: 1.4rem; }
}

/* ==========================================================================
   Digital layer — modern type, form factors and surfaces.
   Loaded last so it refines the editorial base above.
   ========================================================================== */

/* ---------- Type ---------- */
body {
  font-feature-settings: "cv11", "ss01"; /* Inter: single-storey a, open digits */
  letter-spacing: -0.006em;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.meta,
.event-date .r,
.slider-count,
.search-tab,
.cal-dow,
.film-facts dt,
.mini-date,
.event-cta,
.read-more,
.slide-cta,
.status,
.badge-21 {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.meta { font-size: 0.75rem; font-weight: 400; }
.event-date .r { font-style: normal; }

/* Headlines: tight grotesk */
.masthead h1:not(.tagline),
.post-header h1,
.page-hero h1,
.category-hero h1,
.about-hero h1,
.slide-title,
.post-feature h2,
.featured h2,
.newsletter h2,
.not-found h1,
.contact-line,
.empty-state h2 {
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.post-card h3,
.poster-info h3,
.event-body h3,
.split h2,
.prose h2,
.author-box h3,
.member h3,
.cal-title,
.mini-title,
.post-nav h4,
.age-gate-card h2,
.principles h3,
.film-facts dd {
  font-weight: 600;
  letter-spacing: -0.025em;
}

.post-card h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); line-height: 1.18; }
.event-body h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); }
.poster-info h3 { font-size: 1.1rem; line-height: 1.25; }
.film-facts dd { font-size: 1.05rem; }

/* Serif italic is reserved for accents: highlighted words and quotes */
h1 em, h2 em, .slide-title em,
.quote-band blockquote,
.prose blockquote,
.verdict p,
.contact-line a,
.poster--b .poster-title,
.poster-year,
.principles li::before,
.avatar,
.age-gate-card .mark {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.prose blockquote,
.quote-band blockquote { line-height: 1.15; }

/* Standfirsts and intros: plain sans, not italic */
.post-header .dek,
.page-hero p,
.category-hero p,
.masthead p,
.masthead .tagline-sub,
.slide-text {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.search input::placeholder { font-style: normal; }
.site-nav a[aria-current="page"] { font-style: normal; }
.site-nav a { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; }
@media (min-width: 64em) {
  .site-nav a { font-family: var(--font-ui); font-weight: 500; letter-spacing: -0.005em; }
}

/* Giant watermark titles in grotesk */
.cover-type-title,
.slide-film-title {
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.poster-title { letter-spacing: -0.03em; }
.poster--b .poster-title { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem); }

/* No print drop cap — a larger digital lede instead */
.prose > p:first-of-type::first-letter {
  float: none;
  font: inherit;
  padding: 0;
}

.post-body .prose > p:first-of-type {
  font-size: 1.2em;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.prose { line-height: 1.75; }

/* ---------- Image form factors ---------- */
.post-thumb {
  aspect-ratio: 4 / 5;                 /* portrait, social-native */
  border-radius: var(--radius);
}

.post-card--row .post-thumb {
  aspect-ratio: 1 / 1;                 /* square thumbnails in lists */
  border-radius: var(--radius-sm);
}

.post-feature-media {
  aspect-ratio: 16 / 9;                /* widescreen feature */
  border-radius: var(--radius-lg);
}

.event-thumb { border-radius: var(--radius); }
@media (min-width: 40em) { .event-thumb { aspect-ratio: 16 / 10; } }
.event-date { border-radius: var(--radius-sm); }

.poster { border-radius: var(--radius-sm); }
.poster--b::before { border-radius: 4px; }

.member-photo { border-radius: var(--radius); aspect-ratio: 1 / 1; }

.prose .media img,
.prose .media video,
.media-pair img,
.video-frame { border-radius: var(--radius); }
.media-pair { gap: 0.75rem; }

.slide-poster .poster { border-radius: var(--radius); }

/* ---------- Surfaces, buttons, inputs ---------- */
.events-side .cal,
.aside-card {
  border: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}

.cal-nav { background: var(--paper); border-color: transparent; }
.cal-foot { border-top-color: rgba(127, 127, 127, 0.18); }

.film-facts {
  border: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
}

.verdict,
.age-gate-card { border-radius: var(--radius-lg); }
.age-gate-card { border: 0; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.35); }

.event-note {
  border-left: 0;
  border-radius: var(--radius);
  background: rgba(var(--brand-rgb), 0.08);
}

.placeholder-note { border-radius: var(--radius); }

.btn {
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
}

.btn-block { padding-block: 1rem; }

/* Search fields: filled pills */
.search {
  border: 0;
  background: var(--surface);
  border-radius: 999px;
  padding: 0 1rem 0 1.15rem;
}

.search input {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 450;
  padding: 0.85rem 0.6rem;
}

.search--hero { padding: 0.25rem 1.25rem 0.25rem 1.5rem; border: 0; }
.search--hero input { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.03em; }
.events-filters .search input { font-size: 1rem; }

.subscribe input {
  border: 0;
  background: var(--surface);
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
}

.subscribe input:focus { outline: 2px solid var(--ink); outline-offset: 2px; }

.tags a,
.select { border-radius: 999px; }

.chip,
.country { font-family: var(--font-ui); letter-spacing: 0; }

.read-more,
.slide-cta { text-transform: uppercase; font-size: 0.72rem; }

/* ---------- Swipeable rails on phones ---------- */
@media (max-width: 39.99em) {
  .post-grid--rail,
  .poster-grid--teaser .poster-list {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 74%;
    gap: 0.9rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 0.5rem;
    scrollbar-width: none;
  }

  .poster-grid--teaser .poster-list { grid-auto-columns: 46%; }

  .post-grid--rail::-webkit-scrollbar,
  .poster-grid--teaser .poster-list::-webkit-scrollbar { display: none; }

  .post-grid--rail > *,
  .poster-grid--teaser .poster-list > li {
    scroll-snap-align: start;
    display: block !important; /* teaser shows every poster in the rail */
  }

  .post-grid--rail .post-card p { display: none; }
}

/* ==========================================================================
   Admin v2: rich text, image positions, highlights, NSFW blur, tags, ads, social
   ========================================================================== */

/* Body text is justified, with hyphenation so the spacing stays even */
.prose p, .prose li { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.prose figcaption, .prose blockquote { text-align: left; }
.prose blockquote { text-align: center; }

/* Highlights picked in the editor */
.prose mark { color: inherit; padding: 0.05em 0.15em; border-radius: 2px; }
.prose mark.hl-gold { background: #f6e3a1; }
.prose mark.hl-rose { background: #f8c9d0; }
.prose mark.hl-green { background: #cdebc8; }
.prose mark.hl-blue { background: #c9dcf5; }
.prose mark.hl-violet { background: #dfd0f3; }
:root[data-theme="dark"] .prose mark.hl-gold { background: rgba(214, 178, 82, 0.35); }
:root[data-theme="dark"] .prose mark.hl-rose { background: rgba(232, 120, 140, 0.32); }
:root[data-theme="dark"] .prose mark.hl-green { background: rgba(120, 190, 110, 0.3); }
:root[data-theme="dark"] .prose mark.hl-blue { background: rgba(110, 150, 220, 0.32); }
:root[data-theme="dark"] .prose mark.hl-violet { background: rgba(160, 120, 220, 0.32); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .prose mark.hl-gold { background: rgba(214, 178, 82, 0.35); }
  :root:not([data-theme="light"]) .prose mark.hl-rose { background: rgba(232, 120, 140, 0.32); }
  :root:not([data-theme="light"]) .prose mark.hl-green { background: rgba(120, 190, 110, 0.3); }
  :root:not([data-theme="light"]) .prose mark.hl-blue { background: rgba(110, 150, 220, 0.32); }
  :root:not([data-theme="light"]) .prose mark.hl-violet { background: rgba(160, 120, 220, 0.32); }
}
.prose a.mention { border-bottom-style: dotted; font-weight: 600; }
.prose u { text-underline-offset: 0.18em; }

/* Image positions: left / right of the text, or centred. Phones always stack. */
.media--upright.media--center { width: 78%; margin-inline: auto; }
@media (min-width: 48em) {
  .prose .media--left,
  .prose .media--right { width: 46%; margin-block: 0.35em 1.25em; }
  .prose .media--left { float: left; margin-right: 1.75rem; }
  .prose .media--right { float: right; margin-left: 1.75rem; }
  .prose .media--upright.media--left,
  .prose .media--upright.media--right { width: 40%; }
  .prose h2, .prose blockquote, .prose .media--center, .prose .divider, .prose .ad-slot { clear: both; }
}
@media (min-width: 64em) {
  /* Broad images beside the text stay inside the column (only centred ones break out wider) */
  .prose .media--broad.media--left, .prose .media--broad.media--right {
    width: 50%; margin-left: 0; transform: none;
  }
  .prose .media--broad.media--left { margin-left: -6rem; margin-right: 2rem; }
  .prose .media--broad.media--right { margin-right: -6rem; margin-left: 2rem; }
  .prose .media--upright.media--center { width: 26rem; float: none; margin-inline: auto; }
}
.prose::after { content: ""; display: block; clear: both; }

/* NSFW images: blurred until tapped (works without JS; JS adds the button) */
img[data-nsfw] { filter: blur(28px) saturate(0.6); transform: scale(1.04); transition: filter 0.35s ease; }
img[data-nsfw].is-revealed { filter: none; transform: none; }
.nsfw-wrap { position: relative; display: block; overflow: hidden; }
.nsfw-reveal {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; gap: 0.35rem;
  width: 100%; border: 0; cursor: pointer; color: #fff; background: rgba(0, 0, 0, 0.18);
  font-family: var(--font-ui); text-align: center;
}
.nsfw-reveal strong { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.nsfw-reveal span { font-size: 0.8rem; opacity: 0.85; }
.nsfw-reveal:hover { background: rgba(0, 0, 0, 0.3); }
.is-revealed + .nsfw-reveal, .nsfw-wrap.is-open .nsfw-reveal { display: none; }

/* ---------- Film verdict: a quiet signed note rather than a black box ---------- */
.verdict {
  position: relative;
  margin: 3.5rem auto 0;
  max-width: 34rem;
  padding: 2.25rem 1.5rem 1.75rem;
  background: none;
  color: var(--ink);
  text-align: center;
  border-top: var(--hairline) solid var(--gold);
  border-bottom: var(--hairline) solid var(--rule);
  --star-empty: var(--rule);
}
.verdict-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 0.9rem;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.verdict .stars { margin-top: 0; font-size: 0.95rem; letter-spacing: 0.2em; color: var(--gold); }
.verdict p {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.3;
  margin-top: 0.9rem;
  text-align: center;
  text-wrap: balance;
}
.verdict-sign {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

/* ---------- Film posters: front, and back beside it when there is one ---------- */
.film-posters { margin: 0 0 2.75rem; }
.film-posters > .film-poster { width: min(60%, 17rem); margin-inline: auto; }
.film-posters--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.film-posters--pair > .film-poster { width: auto; margin: 0; }
.film-posters--pair figcaption { grid-column: 1 / -1; }
@media (min-width: 48em) { .film-posters--pair { gap: 1.5rem; padding-inline: 2rem; } }
.film-poster { position: relative; }
.film-poster .poster { box-shadow: 0 24px 48px -28px var(--poster-shadow); }
.film-poster .poster.has-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-poster-side {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}
.film-posters figcaption { text-align: center; margin-top: 0.9rem; }

/* ---------- "Join the conversation on X" ---------- */
.x-post {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.75rem;
  padding: 1rem 1.25rem;
  border: var(--hairline) solid var(--ink);
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
}
.x-post svg { width: 1.6rem; height: 1.6rem; flex: none; }
.x-post span:nth-child(2) { display: grid; gap: 0.15rem; flex: 1; }
.x-post strong { font-family: var(--font-display); font-weight: 650; }
.x-post small { font-family: var(--font-ui); font-size: 0.8rem; color: var(--ink-muted); }
.x-post:hover { background: var(--ink); color: var(--paper); }
.x-post:hover small { color: inherit; opacity: 0.75; }

/* ---------- Advertisements: after the content, clearly labelled, never inside the text ---------- */
.ad-slot {
  clear: both;
  margin: 3rem auto 0;
  padding-top: 0.75rem;
  border-top: var(--hairline) solid var(--rule);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}
.ad-slot--listing { margin-top: 3.5rem; }
.ad-label {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ad-body img { max-width: 100%; height: auto; margin-inline: auto; }
.ad-body iframe { max-width: 100%; }

/* ---------- Festival calendar: upcoming and past as separate parts ---------- */
.event-segment + .event-segment { margin-top: 3.5rem; }
.segment-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 2rem 0 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: var(--hairline) solid var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.segment-title .meta { font-size: 0.8rem; }
.segment-note, .segment-empty { margin: 0.5rem 0 0; }
.event-segment--past .event-card { opacity: 0.85; }
.event-segment--past .event-thumb img { filter: grayscale(0.6); }
.event-segment--past .event-card:hover { opacity: 1; }
.event-month h3.label { margin-top: 1.75rem; }
.event-website { border-bottom: var(--hairline) solid var(--ink); }

/* ---------- Footer social icons ---------- */
.social-links { list-style: none; display: flex; gap: 0.5rem; padding: 0; margin: 0; }
.social-links a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: var(--hairline) solid var(--ink);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}
.social-links a:hover { background: var(--ink); color: var(--paper); opacity: 1; }
.social-links svg { width: 1.05rem; height: 1.05rem; }

/* ---------- Pages made in Admin → Pages ---------- */
.custom-page .about-hero { padding-bottom: 2rem; }
.page-cover { margin: 0 0 3rem; }
.page-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); display: block; }

/* ---------- Home slider: film poster(s) with name and year ---------- */
.slide-posters {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: calc(var(--header-h) + 1.25rem);
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  width: min(40vw, 11rem);
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s, opacity 1s ease 0.2s;
}
.slide-posters--pair { grid-template-columns: 1fr 1fr; width: min(64vw, 18rem); column-gap: 0; }
.slide.is-active .slide-posters { transform: translateX(-50%); opacity: 1; }
.slide-poster-card { margin: 0; width: 100%; }
.slide-poster-card .poster { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75); border-radius: var(--radius-sm); overflow: hidden; }
.slide-poster-card .poster.has-image img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; }
.slide-posters--pair .slide-poster-card:first-child { transform: rotate(-4deg) translateX(8%); z-index: 1; }
.slide-posters--pair .slide-poster-card:nth-child(2) { transform: rotate(3deg) translateX(-8%) translateY(6%); }
.slide-poster-card figcaption {
  margin-top: 0.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.slide-poster-name {
  grid-column: 1 / -1;
  margin-top: 0.85rem;
  padding: 0.35rem 0.8rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.85rem;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slide-poster-name span { font-family: var(--font-mono); font-weight: 500; opacity: 0.75; margin-left: 0.35rem; }
.slide-year { font-family: var(--font-mono); font-weight: 400; font-size: 0.45em; letter-spacing: 0.04em; opacity: 0.8; vertical-align: 0.35em; }
/* Phones in portrait: the posters sit above the headline, so keep them small */
@media (max-width: 47.99em) and (max-height: 760px) { .slide-posters { width: min(30vw, 8rem); } .slide-posters--pair { width: min(52vw, 13rem); } }
/* Tablets and up: posters to the right of the headline */
@media (min-width: 40em) {
  .slide-posters { left: auto; right: 6%; top: 50%; width: clamp(8.5rem, 17vw, 19rem); transform: translateY(-44%); }
  .slide-posters--pair { width: clamp(14rem, 28vw, 30rem); }
  .slide.is-active .slide-posters { transform: translateY(-50%); }
  .slide-content .slide-title, .slide-content .slide-text { max-width: min(36rem, 58vw); }
}
@media (min-width: 64em) { .slide-poster-name { font-size: 1rem; } }

/* ---------- Review page: film name, awards, cast ---------- */
.film-name {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  opacity: 0.9;
}
.film-name span { font-family: var(--font-mono); font-weight: 400; font-size: 0.75em; opacity: 0.75; margin-left: 0.4rem; }

.film-awards, .film-cast { margin-top: 3rem; }
.film-awards > .label, .film-cast > .label { display: block; padding-bottom: 0.75rem; border-bottom: var(--hairline) solid var(--ink); }
.film-awards ul { list-style: none; padding: 0; margin: 0; }
.award {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: var(--hairline) solid var(--rule);
}
.award-year { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-muted); }
.award-what { display: grid; gap: 0.15rem; }
.award-what strong { font-family: var(--font-display); font-weight: 650; }
.award-what span { font-family: var(--font-ui); font-size: 0.85rem; color: var(--ink-soft); }
.award-result {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: var(--hairline) solid var(--rule);
  color: var(--ink-muted);
}
.award--won .award-result { border-color: var(--gold); color: var(--gold); }
.award--won .award-what strong::before { content: "✦ "; color: var(--gold); font-size: 0.8em; }

.cast-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 40em) { .cast-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.cast {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: var(--hairline) solid var(--rule);
  font-family: var(--font-ui);
  font-size: 0.92rem;
}
.cast-role { color: var(--ink-muted); font-style: italic; text-align: right; }
.cast--lead .cast-name { font-weight: 700; }
.cast--lead .cast-name::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: 0.15em;
}
.cast-more { margin-top: 0.25rem; }
.cast-more summary {
  cursor: pointer;
  padding: 0.85rem 0;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  list-style: none;
}
.cast-more summary::-webkit-details-marker { display: none; }
.cast-more summary::before { content: "+ "; color: var(--gold); }
.cast-more[open] summary::before { content: "− "; }

/* ---------- Follow us (pages with "show X and Instagram") ---------- */
.follow { margin-top: 3.5rem; padding-top: 1.5rem; border-top: var(--hairline) solid var(--ink); }
.follow-cards { display: grid; gap: 0.75rem; margin-top: 1rem; }
@media (min-width: 40em) { .follow-cards { grid-template-columns: 1fr 1fr; } }
.follow-card { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.15rem; border: var(--hairline) solid var(--ink); border-radius: var(--radius); transition: background 0.2s ease, color 0.2s ease; }
.follow-card svg { width: 1.6rem; height: 1.6rem; flex: none; }
.follow-card span { display: grid; gap: 0.1rem; }
.follow-card strong { font-family: var(--font-display); font-weight: 650; }
.follow-card small { font-family: var(--font-ui); font-size: 0.8rem; color: var(--ink-muted); }
.follow-card:hover { background: var(--ink); color: var(--paper); }
.follow-card:hover small { color: inherit; opacity: 0.75; }
.insta-feed { margin-top: 1.25rem; display: grid; gap: 0.5rem; justify-items: start; }
.insta-grid { display: grid; gap: 1rem; width: 100%; }
@media (min-width: 48em) { .insta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.insta-grid .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }

/* ---------- Featured items at the top of index pages: edge to edge, slides when there are several ---------- */
.feature-hero {
  position: relative;
  width: 100%;
  height: clamp(26rem, 72vh, 46rem);
  margin: 0 0 3rem;
  overflow: hidden;
  background: #0b0b0b;
  color: #fff;
  isolation: isolate;
  touch-action: pan-y;
}
.feature-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s;
}
.feature-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.feature-media { position: absolute; inset: 0; overflow: hidden; background-size: cover; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.05); transition: transform 8s linear; }
.feature-slide.is-active .feature-media img { transform: scale(1); }
.feature-media .nsfw-wrap { height: 100%; }
.feature-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86) 0, rgba(0, 0, 0, 0.4) 45%, rgba(0, 0, 0, 0) 75%);
}
.feature-content { position: relative; z-index: 2; padding-bottom: 4.5rem; max-width: var(--wide); }
.feature-content .label { color: rgba(255, 255, 255, 0.8); }
.feature-title {
  margin-top: 0.75rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.feature-meta { margin-top: 0.75rem; }
.feature-text { margin-top: 1rem; max-width: 34rem; font-size: var(--step-0); line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.feature-cta {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 0.2rem;
}
.feature-ui {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.feature-dots { display: flex; gap: 0.45rem; }
/* A thin bar to look at, a 24px-tall target to tap */
.feature-dot { width: 1.6rem; height: 1.5rem; padding: 0.625rem 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, 0.35); background-clip: content-box; cursor: pointer; }
.feature-dot[aria-selected="true"] { background: #fff; }
.feature-arrows { display: flex; gap: 0.5rem; }
.feature-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}
.feature-btn:hover { background: #fff; color: #000; }
/* Film features: poster(s) beside the headline */
.feature-hero .slide-posters { z-index: 2; }
.feature-slide.is-active .slide-posters { opacity: 1; transform: translateX(-50%); }
@media (min-width: 40em) { .feature-slide.is-active .slide-posters { transform: translateY(-50%); } .feature-hero .feature-title, .feature-hero .feature-text { max-width: min(36rem, 58vw); } }
@media (max-width: 39.99em) { .feature-hero .slide-posters { top: 1.25rem; width: min(26vw, 7rem); } .feature-hero .slide-posters--pair { width: min(44vw, 11rem); } .feature-hero { height: clamp(30rem, 80vh, 40rem); } }
.feature-byline { color: rgba(255, 255, 255, 0.75); }
.feature-meta .stars { color: var(--gold); }

/* ---------- Home: latest featured story from each section, two by two ---------- */
.section-quad { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 48em) { .section-quad { grid-template-columns: 1fr 1fr; } }
.quad-card { display: grid; align-content: start; gap: 0.75rem; }
.quad-media { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--rule); }
.quad-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.quad-card a:hover .quad-media img { transform: scale(1.03); }
.quad-body { display: grid; gap: 0.5rem; margin-top: 1rem; }
.quad-body h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 650; line-height: 1.1; letter-spacing: -0.02em; }
.quad-body p { color: var(--ink-soft); }
.quad-more { justify-self: start; border-bottom: var(--hairline) solid currentColor; }

/* ---------- Public forms (List your event) ---------- */
.list-event { padding-bottom: 4rem; }
.site-form { display: grid; gap: 1.5rem; }
.site-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 40em) { .site-form fieldset { grid-template-columns: 1fr 1fr; } .site-form .wide, .site-form legend { grid-column: 1 / -1; } }
.site-form legend { font-family: var(--font-display); font-weight: 650; font-size: var(--step-1); padding-bottom: 0.5rem; border-bottom: var(--hairline) solid var(--ink); width: 100%; margin-bottom: 0.25rem; }
.site-form label { display: grid; gap: 0.35rem; font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; }
.site-form label small { font-weight: 400; color: var(--ink-muted); }
.site-form input:not([type="checkbox"]), .site-form select, .site-form textarea {
  width: 100%; font: 400 1rem/1.5 var(--font-body); color: var(--ink); background: var(--paper);
  padding: 0.7rem 0.8rem; border: var(--hairline) solid var(--ink-muted); border-radius: var(--radius-sm);
}
.site-form input:focus, .site-form select:focus, .site-form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.site-form .check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; }
.site-form .check input { margin-top: 0.2rem; }
.site-form .btn { justify-self: start; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-family: var(--font-ui); }
.form-note p { margin-top: 0.35rem; }
.form-note--ok { background: rgba(47, 125, 74, 0.12); }
.form-note--error { background: rgba(var(--brand-rgb), 0.12); }
.list-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding: 1.5rem; border: var(--hairline) solid var(--ink); border-radius: var(--radius); }
.list-cta h2 { font-family: var(--font-display); font-size: var(--step-1); font-weight: 650; margin-top: 0.35rem; }
.list-cta p { color: var(--ink-soft); }

/* Add to Apple Wallet (official badge when present in site/wallet/, otherwise a plain black button) */
.wallet-btn { display: flex; justify-content: center; margin-top: 0.75rem; }
.wallet-btn img { height: 2.75rem; width: auto; }
.wallet-btn span { display: block; width: 100%; text-align: center; padding: 0.8rem 1rem; border-radius: 0.6rem; background: #000; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font-ui); font-weight: 600; font-size: 0.9rem; }
:root[data-theme="dark"] .wallet-btn span { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }

/* ---------- Actors: index, profile, cast links ---------- */
.people-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.person-card { display: grid; gap: 0.5rem; }
.person-face { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--rule); display: grid; place-items: center; }
.person-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 0.5s ease; }
.person-card:hover .person-face img { transform: scale(1.04); }
.person-card h2 { font-family: var(--font-display); font-weight: 650; font-size: var(--step-1); line-height: 1.15; }
.person-initial { font-family: var(--font-display); font-weight: 700; font-size: 3rem; color: var(--ink-muted); }

.person-hero { position: relative; color: #fff; background: #0b0b0b; min-height: clamp(22rem, 60vh, 38rem); display: flex; align-items: flex-end; overflow: hidden; margin-bottom: 3rem; }
.person-hero--plain { background: linear-gradient(160deg, #2a2420, #0b0b0b); }
.person-hero-media { position: absolute; inset: 0; }
.person-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.person-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.1)); }
.person-hero-inner { position: relative; z-index: 1; display: grid; gap: 1.5rem; align-items: end; padding-block: 6rem 2.5rem; }
@media (min-width: 48em) { .person-hero-inner { grid-template-columns: 13rem 1fr; } }
.person-portrait { margin: 0; width: 10rem; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8); background: #222; display: grid; place-items: center; }
@media (min-width: 48em) { .person-portrait { width: 13rem; } }
.person-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.person-intro .label { color: rgba(255, 255, 255, 0.8); }
.person-intro h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-4); line-height: 0.98; letter-spacing: -0.035em; margin-top: 0.5rem; }
.person-intro .meta { color: rgba(255, 255, 255, 0.75); margin-top: 0.75rem; }
.person-short { margin-top: 0.85rem; max-width: 36rem; color: rgba(255, 255, 255, 0.88); font-size: var(--step-0); }
.person-films { margin-bottom: 3rem; }
.person-poster-list .poster.has-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.best-flag { display: inline-block; margin-top: 0.4rem; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

.cast-person { display: inline-flex; align-items: center; gap: 0.6rem; }
.cast-person:hover .cast-name { text-decoration: underline; text-underline-offset: 0.2em; }
.cast-face { width: 2.4rem; height: 2.4rem; border-radius: 50%; overflow: hidden; flex: none; background: var(--rule); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.cast-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.cast-face .nsfw-reveal span, .cast-face .nsfw-reveal strong { display: none; }
.cast--linked { align-items: center; }
.fact-link { border-bottom: var(--hairline) solid currentColor; }

/* ---------- Tags under cards (articles: their tags; films: genres) ---------- */
.card-tags { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.card-tags a {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: var(--hairline) solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.card-tags a:hover { border-color: var(--ink); color: var(--ink); }
.poster-list .card-tags { margin-top: 0.5rem; }
.cast-person .cast-name { white-space: nowrap; }

/* ---------- Profile: born line and the black-and-white gallery (colour on hover, focus or tap) ---------- */
.person-born { margin-top: 0.5rem; font-family: var(--font-ui); color: rgba(255, 255, 255, 0.85); }
.person-gallery { margin-bottom: 3rem; }
.gallery-row { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.gallery-row--portrait { grid-template-columns: repeat(2, 1fr); }
.gallery-row--landscape { grid-template-columns: 1fr; }
@media (min-width: 48em) {
  .gallery-row--portrait { grid-template-columns: repeat(4, 1fr); }
  .gallery-row--landscape { grid-template-columns: repeat(2, 1fr); }
}
.gallery-item { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--rule); outline-offset: 3px; }
.gallery-row--portrait .gallery-item { aspect-ratio: 4 / 5; }
.gallery-row--landscape .gallery-item { aspect-ratio: 3 / 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); transition: filter 0.45s ease, transform 0.6s ease; }
.gallery-item:hover img, .gallery-item:focus-within img, .gallery-item:focus img { filter: none; transform: scale(1.02); }
/* NSFW images stay blurred (and grey) until revealed; then they behave like the rest */
.gallery-item img[data-nsfw]:not(.is-revealed) { filter: blur(28px) grayscale(1); transform: scale(1.04); }
.gallery-item .nsfw-wrap { height: 100%; }

/* ---------- Home: no tagline band; sections sit right under the slider ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.home-top { height: calc(var(--header-h) + 1.5rem); }
.home-block { margin-top: 3rem; }
.hero-slider + .home-block, .home-top + .home-block { margin-top: 2.25rem; }
@media (min-width: 48em) { .home-block { margin-top: 4rem; } .hero-slider + .home-block, .home-top + .home-block { margin-top: 3rem; } }
.people-grid--home { grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }

/* ---------- Film page: lead actors with a large portrait ("Starring" spotlight) ---------- */
.spotlight { margin: 0 0 3rem; padding-top: 1.25rem; border-top: var(--hairline) solid var(--ink); }
.spotlight-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
.spotlight--one .spotlight-list { grid-template-columns: minmax(0, 20rem); justify-content: center; }
@media (min-width: 48em) { .spotlight-list { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); } }
.spotlight-card { display: grid; gap: 0.35rem; text-align: center; }
.spotlight-portrait { margin: 0 0 0.5rem; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--rule); box-shadow: 0 24px 48px -28px var(--poster-shadow); }
.spotlight-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 0.6s ease; }
.spotlight-card:hover .spotlight-portrait img, .spotlight-card:focus-visible .spotlight-portrait img { transform: scale(1.03); }
.spotlight-name { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); line-height: 1.15; }
.spotlight-role { font-family: var(--font-accent); font-style: italic; font-size: 1.05rem; color: var(--ink-soft); }
.spotlight-card .best-flag { margin-top: 0.15rem; }

/* ---------- Film page: where to watch (affiliate links) ---------- */
.watch-jump { margin-left: 1rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.watch { margin-top: 3rem; padding: 1.5rem; border: var(--hairline) solid var(--ink); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 1rem); }
.watch-group + .watch-group { margin-top: 1.25rem; }
.watch-type { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
.watch-links { list-style: none; padding: 0; margin: 0.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.watch-link {
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  padding: 0.65rem 1rem; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-family: var(--font-ui); font-size: 0.9rem; transition: opacity 0.2s ease;
}
.watch-link:hover { opacity: 0.85; }
.watch-cta { opacity: 0.75; font-size: 0.8rem; }
.watch-note { opacity: 0.75; font-size: 0.78rem; }
.watch-disclosure { margin-top: 1.25rem; font-size: 0.75rem; }

/* Shown only to signed-in staff while maintenance mode is on */
.maintenance-note { padding: 0.55rem 1rem; text-align: center; font: 500 0.85rem/1.4 system-ui, sans-serif; background: #7d1f19; color: #fff; }
.maintenance-note a { color: inherit; }

/* ---------- Article: paid-site profiles and the floating X profile button ---------- */
.profiles { margin-top: 2.5rem; padding: 1.5rem; border: var(--hairline) solid var(--ink); border-radius: var(--radius); }
.profiles > .label { display: block; margin-bottom: 1rem; }
.profile-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.profile-links a {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.1rem;
  border: var(--hairline) solid var(--ink); border-radius: 999px;
  font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.profile-links a:hover { background: var(--ink); color: var(--paper); }

.x-float {
  position: fixed; z-index: 40; right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 0;
  height: 3.25rem; min-width: 3.25rem; padding: 0 1rem; border-radius: 999px;
  background: #000; color: #fff; text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.55);
  transition: gap 0.2s ease, transform 0.2s ease;
}
.x-float svg { width: 1.25rem; height: 1.25rem; flex: none; }
/* The handle slides out on hover or keyboard focus */
.x-float-label { max-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; transition: max-width 0.25s ease; }
.x-float:hover, .x-float:focus-visible { gap: 0.6rem; transform: translateY(-2px); }
.x-float:hover .x-float-label, .x-float:focus-visible .x-float-label { max-width: 12rem; }
:root[data-theme="dark"] .x-float, .dark .x-float { background: #fff; color: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .x-float { background: #fff; color: #000; } }
body:has(.x-float) .site-footer { padding-bottom: 5.5rem; }
@media (prefers-reduced-motion: reduce) { .x-float, .x-float-label { transition: none; } }
@media print { .x-float { display: none !important; } }

/* ---------- Events: dates to be announced, several dates, no longer running, notice ---------- */
.status--tba { color: var(--ink); border-style: dashed; }
.status--ended { background: var(--ink-muted); border-color: var(--ink-muted); color: var(--paper); }
.dot--ended { background: var(--ink-muted); opacity: 0.35; }
.event-date .d--tba { font-size: 1.15rem; letter-spacing: 0.04em; }
.event-more-dates { font-weight: 600; color: var(--brand); }
.event-card.is-ended .event-thumb { filter: grayscale(1); opacity: 0.55; }
.event-card.is-ended .event-cta, .event-card.is-ended h3 { color: var(--ink-muted); }
.event-card.is-ended h3 { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(127, 127, 127, 0.6); }
.event-ended-flag {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; text-align: center;
  padding: 0.35rem 0.5rem; background: rgba(20, 20, 20, 0.82); color: #fff;
  font-family: var(--font-ui); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.event-thumb { position: relative; }
.event-segment--ended { opacity: 0.95; }

/* Detail page */
#event.is-ended .cover-media { filter: grayscale(1) contrast(0.95); }
.event-ended {
  display: grid; gap: 0.3rem; margin: 0 0 2rem; padding: 1rem 1.25rem;
  border: 1.5px solid var(--ink); border-radius: var(--radius); background: rgba(127, 127, 127, 0.08);
  font-family: var(--font-ui);
}
.event-ended strong { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.event-ended span { color: var(--ink-muted); font-size: 0.92rem; }
.event-notice {
  margin: 2rem 0 2.25rem; padding: 1.1rem 1.35rem;
  border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(var(--brand-rgb), 0.07);
  font-family: var(--font-ui); font-size: 0.95rem; line-height: 1.6;
}
.event-notice > .label { display: block; margin-bottom: 0.5rem; color: var(--brand); }
.event-notice p + p { margin-top: 0.6rem; }
.event-dates { list-style: none; padding: 0; display: grid; gap: 0.25rem; }
.event-dates .is-main { font-weight: 700; }
.event-dates .is-past { color: var(--ink-muted); }
.event-dates small { font-family: var(--font-ui); font-size: 0.75rem; color: var(--ink-muted); }

/* Space between a page heading's divider and the grid of cards below it (actors, tags), so pictures never sit on the line */
.category-hero + section.container:not(.list-event) { padding-top: clamp(2rem, 1.25rem + 2.5vw, 3.5rem); }
/* Profile facts line: when it wraps, no line starts with a stray "·" */
.person-intro .meta { display: flex; flex-wrap: wrap; column-gap: 0.75rem; row-gap: 0.2rem; }
.person-intro .meta span + span::before { content: none; }
.person-intro .meta span:not(:last-child)::after { content: "·"; margin-left: 0.75rem; }

/* ---------- Article: people in this story (links to their profiles) ---------- */
.story-people { margin-top: 2.5rem; padding-top: 1.75rem; border-top: var(--hairline) solid var(--rule); }
.story-people > .label { display: block; margin-bottom: 1.1rem; }
.story-people-list { list-style: none; padding: 0; display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.story-person {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: center;
  padding: 0.75rem; border: var(--hairline) solid var(--rule); border-radius: var(--radius); text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.story-person:hover, .story-person:focus-visible { border-color: var(--ink); background: rgba(127, 127, 127, 0.06); }
.story-person-face { margin: 0; aspect-ratio: 4 / 5; border-radius: calc(var(--radius) * 0.75); overflow: hidden; background: var(--rule); display: grid; place-items: center; }
.story-person-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.story-person-face span { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--ink-muted); }
.story-person-text { display: grid; gap: 0.2rem; min-width: 0; }
.story-person-text strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 650; line-height: 1.15; }
.story-person-cta { font-family: var(--font-ui); font-size: 0.78rem; font-weight: 600; color: var(--brand); margin-top: 0.2rem; }

/* ---------- Profile: stories featuring the person, two at a time, sideways scroll for more ---------- */
.story-rail { --rail-gap: 1.75rem; }
.story-rail .rail-nav { display: flex; gap: 0.5rem; }
.rail-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  border: var(--hairline) solid var(--rule); background: var(--paper, #fff); color: inherit;
  font-size: 1.15rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}
.rail-btn:hover:not(:disabled) { background: var(--ink, #111); color: var(--paper, #fff); }
.rail-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.rail-btn:disabled { opacity: 0.35; cursor: default; }
.story-rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--rail-gap)) / 2);
  gap: var(--rail-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
}
.story-rail-track > * { scroll-snap-align: start; min-width: 0; }
.story-rail-track:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.story-rail-track .post-card h3 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem); }
@media (max-width: 39.99em) {
  .story-rail { --rail-gap: 0.9rem; }
  .story-rail-track {
    grid-auto-columns: 85%;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .story-rail-track::-webkit-scrollbar { display: none; }
  .story-rail:not(.is-scrolling) .story-rail-track { grid-auto-flow: row; grid-auto-columns: auto; margin-inline: 0; padding-inline: 0; gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) { .story-rail-track { scroll-behavior: auto; } }
