/* ============================================================
   BELMESARIUS PRODUCTIONS — belmesarius.com
   ============================================================ */

:root {
  --bg: #0d0c0a;
  --bg-2: #151310;
  --bg-3: #1d1a15;
  --ink: #ece6d4;
  --ink-dim: #b4ac97;
  --muted: #857d69;
  --gold: #c8a24b;
  --gold-bright: #e8c873;
  --gold-deep: #8a6d2f;
  --line: rgba(200, 162, 75, 0.28);
  --line-soft: rgba(200, 162, 75, 0.14);
  --serif: "Playfair Display", "Didot", "Bodoni MT", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --content: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #100e0a; }

/* ---------- Film grain + vignette ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---------- Typography ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 700; }

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.08; letter-spacing: 0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }

.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead { font-size: 1.12rem; color: var(--ink-dim); max-width: 62ch; }


a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--ink); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--content); margin: 0 auto; padding: 0 24px; }

section { padding: 88px 0; }

.divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 12, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand-mark { flex: 0 0 auto; }

.brand-text { display: flex; flex-direction: column; line-height: 1; }

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.42rem;
  letter-spacing: 0.10em;
  color: var(--ink);
}

.brand-sub {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: 30px; }

.nav a {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav a:hover { color: var(--gold-bright); }
.nav a.active { color: var(--gold-bright); border-bottom-color: var(--gold); }

/* ---------- Censor bar (the bleep) ---------- */
.censored {
  display: inline-block;
  background: #e2dcc8;
  color: transparent;
  border-radius: 1px;
  cursor: pointer;
  user-select: none;
  position: relative;
  height: 0.78em;
  vertical-align: baseline;
  top: 0.02em;
  padding: 0 0.14em;
  margin: 0 0.06em;
  min-width: 3.2em;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: box-shadow 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
}

.censored:hover {
  box-shadow: 0 0 14px rgba(232, 200, 115, 0.5), 0 0 0 1px rgba(232, 200, 115, 0.65);
}

.censored::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 7px,
    rgba(0, 0, 0, 0.1) 7px 8px
  );
  pointer-events: none;
}

.censored.w-s { min-width: 1.6em; }
.censored.w-m { min-width: 3.2em; }
.censored.w-l { min-width: 5.2em; }
.censored.w-xl { min-width: 7.4em; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  padding: 120px 0 110px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% -5%, rgba(200, 162, 75, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -140px;
  width: 640px;
  height: 640px;
  transform: translateX(-50%);
  background: conic-gradient(from 180deg, transparent, rgba(200, 162, 75, 0.08), transparent 30%);
  animation: sweep 14s linear infinite;
  pointer-events: none;
}

@keyframes sweep { to { transform: translateX(-50%) rotate(360deg); } }

.hero .wrap { position: relative; }

.hero-kicker { margin-bottom: 26px; }

.hero h1 { max-width: 20ch; margin: 0 auto; }

.hero h1 em { font-style: normal; color: var(--gold-bright); }

.motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  color: var(--ink-dim);
  margin: 30px auto 0;
}

.motto .censored { font-style: normal; }

.hero-actions { margin-top: 44px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  background: transparent;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  background: var(--gold);
  color: #14110a;
  box-shadow: 0 0 26px rgba(200, 162, 75, 0.35);
}

.btn.solid { background: var(--gold); color: #14110a; }
.btn.solid:hover { background: var(--gold-bright); box-shadow: 0 0 26px rgba(232, 200, 115, 0.4); }

/* ---------- Section head ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head .kicker { display: block; margin-bottom: 12px; }

/* ---------- Show cards ---------- */
.shows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.show-card {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}

.show-card:hover {
  transform: translateY(-6px);
  border-color: var(--line);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}

.show-card .poster { display: block; width: 100%; aspect-ratio: 3 / 4; }
.show-card .poster img, .show-card .poster svg { width: 100%; height: 100%; display: block; }

.show-card .card-body { padding: 24px 24px 28px; }
.show-card h3 { font-size: 1.35rem; margin-bottom: 6px; color: var(--ink); }
.show-card .years { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.show-card p { font-size: 0.92rem; color: var(--ink-dim); max-width: none; }

/* ---------- Home about strip ---------- */
.about-strip {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
}

.portrait-frame {
  border: 1px solid var(--line);
  padding: 10px;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
}

.portrait-frame img, .portrait-frame svg { display: block; width: 100%; height: auto; }

.about-strip .kicker { display: block; margin-bottom: 14px; }
.about-strip h2 { margin-bottom: 18px; }
.about-strip p { color: var(--ink-dim); margin-bottom: 16px; }

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding-left: 22px;
  margin: 28px 0 0;
}

/* ---------- News ---------- */
.news-list { display: flex; flex-direction: column; }

.news-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 30px;
  padding: 34px 8px;
  border-bottom: 1px solid var(--line-soft);
}

.news-item:first-child { border-top: 1px solid var(--line-soft); }

.news-date { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); padding-top: 6px; }
.news-item h3 { font-size: 1.35rem; margin-bottom: 8px; }
.news-item h3 a { color: var(--ink); }
.news-item h3 a:hover { color: var(--gold-bright); }
.news-item p { color: var(--ink-dim); font-size: 0.95rem; max-width: 70ch; margin-bottom: 12px; }
.news-item p:last-child { margin-bottom: 0; }
.news-item { scroll-margin-top: 100px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(ellipse 55% 60% at 50% 0%, rgba(200, 162, 75, 0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line-soft);
}

.page-hero .kicker { display: block; margin-bottom: 18px; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero .lead { margin: 0; }

/* ---------- Show detail page ---------- */
.show-hero {
  padding: 90px 0;
  background:
    radial-gradient(ellipse 55% 70% at 80% 10%, rgba(200, 162, 75, 0.08), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line-soft);
}

.show-hero .wrap {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: center;
}

.show-hero .poster-frame {
  border: 1px solid var(--line);
  padding: 12px;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

.show-hero .poster-frame img, .show-hero .poster-frame svg { display: block; width: 100%; height: auto; }

.show-title { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 14px 0 10px; }
.show-meta { font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.show-hero p { color: var(--ink-dim); margin-bottom: 14px; max-width: 62ch; }
.show-hero p:last-child { margin-bottom: 0; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: 36px;
}

.fact { background: var(--bg-2); padding: 18px 22px; }
.fact dt { font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fact dd { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }

/* ---------- Prose blocks ---------- */
.prose h2 { margin: 64px 0 20px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-dim); margin-bottom: 18px; max-width: 68ch; }
.prose .kicker { display: block; margin-bottom: 12px; }

blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding: 6px 0 6px 28px;
  margin: 40px 0;
  max-width: 46ch;
}

blockquote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 16px;
}

/* ---------- Bio page ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}

.bio-side { position: sticky; top: 110px; }

.bio-side .portrait-frame { margin-bottom: 20px; }

.bio-motto {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 22px 24px;
  text-align: center;
}

.bio-motto .kicker { display: block; margin-bottom: 10px; font-size: 0.64rem; }
.bio-motto .motto-text { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink); line-height: 1.45; }

.timeline { list-style: none; margin-top: 40px; border-left: 1px solid var(--line-soft); }
.timeline li { position: relative; padding: 0 0 34px 34px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.timeline .year { font-family: var(--serif); font-size: 1.05rem; color: var(--gold-bright); display: block; margin-bottom: 4px; }
.timeline p { color: var(--ink-dim); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--bg), #080706);
  padding: 64px 0 40px;
  margin-top: 40px;
}

.footer-grid { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }

.footer-brand .brand-name { font-size: 1.2rem; }

.footer-col h4 {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.86rem; color: var(--ink-dim); }
.footer-col a:hover { color: var(--gold-bright); }

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
}

.footer-bottom .censored { cursor: default; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .shows-grid { grid-template-columns: 1fr 1fr; }
  .show-hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .show-hero { padding: 64px 0; }
  .show-hero .poster-frame { max-width: 340px; margin: 0 auto; }
  .about-strip { grid-template-columns: 1fr; gap: 36px; }
  .about-strip .portrait-frame { max-width: 280px; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-side { position: static; max-width: 340px; }
  .nav { gap: 18px; }
  .nav a { font-size: 0.68rem; letter-spacing: 0.14em; }
}

@media (max-width: 640px) {
  .shows-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  section { padding: 64px 0; }
  .hero { padding: 88px 0 80px; }
  .site-header .wrap { min-height: 0; flex-wrap: wrap; row-gap: 6px; padding-top: 12px; padding-bottom: 10px; }
  .nav {
    order: 2;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; }
  .facts { grid-template-columns: 1fr; }
}

/* ---------- Show theme player ---------- */
.theme-player { margin-top: 30px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.theme-btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 11px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.theme-btn:hover { background: var(--gold); color: #14110a; box-shadow: 0 0 20px rgba(200, 162, 75, 0.35); }

.theme-btn.playing { background: var(--gold); color: #14110a; }

.theme-btn.waiting { animation: themepulse 1.6s ease-in-out infinite; }

@keyframes themepulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 162, 75, 0); }
  50% { box-shadow: 0 0 22px 2px rgba(200, 162, 75, 0.5); }
}

.theme-note { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .theme-btn.waiting { animation: none; }
}
