/* ==========================================================================
   Menagerie of Monsters Productions — Stylesheet
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --bg:        #0a0a0a;
  --surface:   #141414;
  --text:      #e8e4df;
  --muted:     #8a8078;
  --accent:    #6b1d2a;
  --accent-hover: #8c2638;
  --border:    #252525;
  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 800px;
}

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

/* ---------- Base ---------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  position: relative;
}

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

::selection {
  background: var(--accent);
  color: var(--text);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: none;
  transition: color 0.15s ease;
}

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  padding: 2rem 0;
  border-bottom: none;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-nav a {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a + a {
  margin-left: 1.5rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  border-bottom: none;
}

.wordmark:hover {
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  animation: glitch-shift 8s infinite;
}

.hero .tagline {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Subtle glitch: text-shadow shift */
@keyframes glitch-shift {
  0%, 92%, 100% { text-shadow: none; }
  93% { text-shadow: -2px 0 var(--accent), 2px 0 rgba(107, 29, 42, 0.3); }
  93.5% { text-shadow: 1px 0 var(--accent); }
  94% { text-shadow: none; }
  97% { text-shadow: -1px 0 var(--accent), 1px 0 rgba(107, 29, 42, 0.4); }
  97.5% { text-shadow: none; }
}

/* ---------- Section ---------- */
.section {
  padding: 4rem 0;
}

.section + .section {
  border-top: none;
}

.section-title {
  font-size: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ---------- Socials ---------- */
.socials-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.socials-list li {
  font-size: 1.05rem;
}

.socials-list .label {
  color: var(--muted);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 3rem 0;
  border-top: none;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Screener Card ---------- */
.screener {
  background: none;
  border: none;
  padding: 2.5rem 0;
  margin-bottom: 3rem;
}

.screener-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

.screener-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.screener-meta {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.screener-meta span + span::before {
  content: '·';
  margin: 0 0.5rem;
}

.screener-logline {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 2rem;
}

/* ---------- Video Embed ---------- */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: var(--surface);
  border-radius: 0;
  margin-bottom: 2rem;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Content Notes ---------- */
.content-notes {
  margin-bottom: 2rem;
}

.content-notes .label {
  display: none;
}

.content-notes p {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

/* ---------- Director Bio ---------- */
.director-bio {
  margin-top: 2.5rem;
  padding-top: 0;
  border-top: none;
}

.director-bio h3 {
  font-size: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.director-bio p {
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ---------- Page Header (subpages) ---------- */
.page-header {
  padding: 4rem 0 2rem;
  border-bottom: none;
}

.page-header h1 {
  font-size: 2rem;
}

.page-header .subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ---------- Age Gate Overlay ---------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.age-gate[hidden] {
  display: none;
}

.age-gate-card {
  text-align: center;
  max-width: 420px;
  padding: 3rem 2.5rem;
}

.age-gate-card .wordmark {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.age-gate-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 2rem;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.age-gate-btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.age-gate-btn--enter {
  background: var(--accent);
  color: var(--text);
}

.age-gate-btn--enter:hover,
.age-gate-btn--enter:focus-visible {
  background: var(--accent-hover);
}

.age-gate-btn--leave {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.age-gate-btn--leave:hover,
.age-gate-btn--leave:focus-visible {
  color: var(--text);
  border-color: var(--muted);
}

body.age-gate-active,
html.age-gate-active {
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.4rem; }

  .hero {
    padding: 5rem 0 4rem;
  }

  .screener {
    padding: 1.5rem 0;
  }

  .screener-title {
    font-size: 1.5rem;
  }

  .site-header .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
