/* The Queer Gaze – site styles */
:root {
  --ink: #22103A;          /* main text */
  --ink-2: #3E2C55;        /* body copy on tinted panels */
  --muted: #5E4D73;        /* secondary text, 7.5:1 on white */
  --link: #B0166C;         /* links, 6.6:1 on white */
  --accent: #E83E8C;       /* rules and underlines (decorative) */
  --pink: #FF6FB5;         /* buttons */
  --pink-soft: #FF8CC6;    /* Patreon box */
  --lilac: #F4EEFA;        /* panels */
  --blush: #FFF0F7;        /* latest-episode band */
  --line: #E3D7EE;
  --line-2: #B9A7CC;
  --purple: #6A2BB8;
  --tiff: #8AD8EE;
  --tiff-text: #0E6E8C;
  --new: #FF8CC6;
  --head: "Elms Sans", "Avenir Next", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 17px/1.55 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
h1, h2 { font-family: var(--head); font-weight: 500; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }
h3 { font-family: var(--head); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 20px; }
.logo { font-family: var(--head); font-weight: 600; font-size: 24px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: 26px; align-items: center; font-weight: 500; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.nav a:hover { color: var(--link); }
.nav a[aria-current="page"] { color: var(--link); box-shadow: inset 0 -3px 0 var(--accent); }
.nav a.btn { padding: 11px 18px; box-shadow: none; }
.menu-btn { display: none; align-items: center; gap: 8px; font: 600 15px var(--body); color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); padding: 8px 12px; min-height: 44px; cursor: pointer; }

/* Buttons and tags */
.btn { display: inline-block; background: var(--pink); color: var(--ink) !important; font-weight: 600; padding: 12px 20px; text-decoration: none; border: 0; cursor: pointer; font-size: inherit; font-family: inherit; }
.btn:hover { background: #ff85c0; }
.btn-dark { background: var(--ink); color: #fff !important; }
.btn-dark:hover { background: #3a2258; }
.btn-white { background: #fff; color: var(--ink) !important; }
.btn-outline { display: inline-block; border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; padding: 11px 18px; text-decoration: none; background: transparent; cursor: pointer; font: inherit; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 8px; color: var(--ink); white-space: nowrap; line-height: 1.4; }
.eyebrow { font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--link); border-top: 2px solid var(--accent); padding-top: 10px; max-width: 360px; margin: 0; }
.crumb { font-size: 14px; color: var(--muted); }
.crumb a { color: var(--muted); }

/* Bands */
.band { padding: 48px 0; }
.band-blush { background: var(--blush); border-top: 1px solid #F6D3E5; }
.band-lilac { background: var(--lilac); border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: #B54FC8; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 100%; }
.hero .wrap { position: relative; min-height: clamp(440px, 46vw, 640px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 40px; padding-bottom: 44px; }
.hero h1 { font-weight: 500; font-size: clamp(64px, 10vw, 150px); line-height: 0.86; letter-spacing: -0.02em; max-width: 7.2ch; color: var(--ink); }
.hero .strap { margin-top: 20px; background: #fff; padding: 10px 14px; max-width: 32ch; font-weight: 500; }
.strap-mobile { display: none; }

/* Episode lists */
.ep-list { list-style: none; margin: 0; padding: 0; }
.ep-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ep-row .n .tag { font-size: 13px; }
.ep-row .t { font-weight: 600; }
.ep-row .t a { color: var(--ink); text-decoration: none; }
.ep-row .t a:hover { color: var(--link); text-decoration: underline; }
.ep-row .yr { font-weight: 400; color: var(--muted); }
.ep-row .s { display: block; font-style: italic; color: #9A3D0A; font-size: 14.5px; font-weight: 400; }
.ep-row .d { font-size: 13.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.ep-row.soon .n { font-size: 14px; color: var(--muted); font-weight: 600; }
.ep-row.soon .t, .ep-row.soon .s, .ep-row.soon .yr { color: #6E5C84; }
.ep-row.soon { border-bottom-style: dashed; }

/* Art */
.art { aspect-ratio: 1; width: 150px; background: var(--lilac); object-fit: cover; }

/* Patreon */
.patreon { background: var(--pink-soft); color: var(--ink); padding: 22px 24px; }
.patreon h3 { font-size: 24px; }
.patreon p { margin-top: 6px; }
.patreon .btn { margin-top: 14px; }

/* Cards */
.card { background: var(--lilac); padding: 18px; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 18px; }

/* Now running */
.running { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.running > div { border-top: 4px solid var(--ink); padding-top: 10px; }
.running > div.soon { border-top-style: dashed; }
.running a { color: var(--ink); font-weight: 600; text-decoration: none; }
.running a:hover { text-decoration: underline; }
.running span { font-size: 13px; }

/* Themes page */
.season-row { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: end; margin-top: 22px; }
.season-row p { margin: 0 0 8px; font-weight: 600; }
.timeline { display: flex; gap: 4px; height: 74px; }
.timeline a, .timeline div { display: flex; align-items: flex-end; padding: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.15; overflow: hidden; text-decoration: none; min-width: 0; }
.timeline a:hover { outline: 2px solid var(--ink); outline-offset: -2px; }
.timeline .soon { border: 2px dashed #8E6BD6; color: #5A2E9E; background: #fff !important; }
.theme-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.theme-card { display: flex; flex-direction: column; gap: 6px; background: var(--lilac); padding: 18px; color: var(--ink); text-decoration: none; }
.theme-card:hover { outline: 2px solid var(--ink); }
.theme-card .sw { width: 28px; height: 8px; }
.theme-card h3 { font-size: 21px; }
.theme-card p { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.theme-card .meta { font-size: 13px; color: var(--muted); margin-top: auto; }
.theme-card.wide { grid-column: span 2; }
.subs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.subs div { background: #fff; padding: 10px 12px; font-size: 14px; }
.subs b { display: block; font-family: var(--head); font-weight: 600; font-size: 16px; color: var(--purple); }
.mobile-list { display: none; }

/* Theme page */
.theme-hero { color: var(--ink); }
.theme-hero .wrap { padding-top: 28px; padding-bottom: 34px; }
.theme-hero h1 { font-size: clamp(44px, 7vw, 84px); }
.theme-hero .crumb, .theme-hero .crumb a { color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
.sub-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 30px 0 4px; }
.sub-head h2 { font-size: 28px; }
.break-note { margin-top: 18px; padding: 12px 16px; border: 1px dashed var(--line-2); font-size: 15px; color: var(--ink-2); }
.side h3 { font-size: 20px; }
.side .see { display: block; background: var(--lilac); color: var(--ink); text-decoration: none; padding: 12px 14px; margin-bottom: 10px; }
.side .see small { display: block; color: var(--tiff-text); font-weight: 600; font-size: 12px; }

/* Episode page */
.ep-top { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; margin-top: 18px; }
.ep-top .art { width: 200px; }
.ep-top .info { flex: 1 1 420px; min-width: 0; }
.ep-top h1 { font-size: clamp(36px, 5vw, 60px); margin-top: 10px; }
.ep-top h1 .yr { color: var(--muted); }
.ep-sub { font-family: var(--head); font-weight: 600; font-size: 21px; color: #9A3D0A; margin-top: 8px; }
.player { margin-top: 16px; background: var(--lilac); padding: 8px; }
.player audio { width: 100%; display: block; }
.ep-body { font-size: 18px; margin-top: 28px; }
.ep-body p + p { margin-top: 12px; }
.note { margin-top: 20px; padding: 12px 16px; background: #FFF6E5; border-left: 4px solid #C76A00; font-size: 15px; }
.pos { margin-top: 20px; padding: 14px 16px; background: var(--lilac); font-size: 15px; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; font-size: 14px; }
.prevnext > * { border: 1px solid var(--line); padding: 10px 12px; color: var(--ink); text-decoration: none; }
.prevnext a:hover { border-color: var(--ink); }
.prevnext small { display: block; color: var(--muted); }
.prevnext .next { text-align: right; }
.film dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 12px 0 0; font-size: 15px; }
.film dt { color: var(--muted); }
.film dd { margin: 0; }
.quote { margin: 28px 0 0; background: var(--pink-soft); padding: 28px; }
.quote blockquote { margin: 0; font-family: var(--head); font-weight: 500; font-size: 28px; line-height: 1.25; }

/* About page */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }

/* Bonus page */
.bonus-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 30px; }
.simple-list { list-style: none; margin: 10px 0 0; padding: 0; font-size: 15.5px; }
.simple-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.simple-list a { color: var(--ink); text-decoration: none; }
.simple-list a:hover { color: var(--link); text-decoration: underline; }
.simple-list .muted { font-size: 13px; white-space: nowrap; }
.fest-year { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; }
.fest-year h3 { font-size: 22px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 24px; align-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font: 600 15px var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); }
select, input[type="search"] { min-height: 44px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font: 15px var(--body); padding: 0 12px; }

/* Films table */
.table-wrap { overflow-x: auto; margin-top: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 500; color: var(--muted); border-bottom: 2px solid var(--accent); padding: 8px 12px 8px 0; }
td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td a { color: var(--ink); font-weight: 600; text-decoration: none; }
td a:hover { color: var(--link); text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--lilac); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 26px; padding-bottom: 30px; font-size: 14px; color: var(--muted); }
main { display: block; }
.page-pad { padding-top: 40px; padding-bottom: 56px; }
.loading { padding: 40px 0; color: var(--muted); }

@media (max-width: 1000px) {
  .theme-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 18px; border-bottom: 1px solid var(--line); z-index: 5; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav a.btn { margin-top: 12px; text-align: center; border: 0; }
  .site-header { position: relative; }
  .site-header .wrap { min-height: 60px; }
  .logo { font-size: 21px; }
  .hero .wrap { min-height: 480px; justify-content: flex-start; padding-top: 26px; }
  .hero img { object-position: 93% 100%; }
  .hero .strap { display: none; }
  .strap-mobile { display: block; margin: 22px 0 0; font-size: 17px; font-weight: 500; }
  .ep-row { grid-template-columns: 1fr; gap: 4px; }
  .ep-row .d { text-align: left; }
  .two-col, .bonus-cols, .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .season-row, .timeline { display: none; }
  .mobile-list { display: block; }
  .theme-cards { grid-template-columns: 1fr; }
  .theme-card.wide { grid-column: auto; }
  .subs { grid-template-columns: 1fr; }
  .ep-top .art { width: 120px; }
  .prevnext { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
