/* SeriesScope.life — Premium forensic scope aesthetic */
:root {
  --charcoal: #0f0f1a;
  --charcoal-light: #1c1c30;
  --charcoal-mid: #282845;
  --amber: #f4a261;
  --amber-dark: #e76f51;
  --amber-light: #ffd4a8;
  --teal: #2a9d8f;
  --teal-light: #4ecdc4;
  --cream: #faf8f5;
  --text: #eceae6;
  --text-muted: #a5a3a0;
  --focus: #ffd4a8;
  --max-width: 1200px;
  --radius: 8px;
  --font-serif: "Libre Baskerville", Georgia, serif;
  --font-sans: "Work Sans", system-ui, sans-serif;
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 36px rgba(244, 162, 97, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--charcoal);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(42, 157, 143, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(244, 162, 97, 0.06) 0%, transparent 50%);
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover, a:focus-visible {
  color: var(--teal-light);
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--amber);
  color: var(--charcoal);
  font-weight: 600;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  background: var(--charcoal-light);
  border-bottom: 2px solid var(--teal);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
}

.logo-link:hover, .logo-link:focus-visible { color: var(--amber); }

.logo-icon { width: 44px; height: 44px; flex-shrink: 0; }

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.logo-tagline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--cream);
  line-height: 1.25;
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--teal-light);
  margin: 0 0 1rem;
}

.hero p { margin: 0 0 1rem; color: var(--text); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Scope panel grid */
.scope-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .scope-grid {
    grid-template-columns: 280px 1fr;
    gap: 2rem;
  }
}

/* Vertical episode index */
.episode-index {
  background: var(--charcoal-light);
  border: 1px solid var(--charcoal-mid);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: 5.5rem;
  align-self: start;
}

.episode-index h2 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--amber);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.episode-index ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ep;
}

.episode-index li {
  counter-increment: ep;
  border-bottom: 1px solid var(--charcoal-mid);
}

.episode-index li:last-child { border-bottom: none; }

.episode-index a {
  display: block;
  padding: 0.65rem 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
}

.episode-index a::before {
  content: counter(ep, decimal-leading-zero) " ";
  color: var(--teal);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.episode-index a:hover,
.episode-index a:focus-visible {
  color: var(--amber);
}

/* Scope panels */
.scope-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .scope-panels {
    grid-template-columns: repeat(2, 1fr);
  }
}

.scope-panel {
  background: var(--charcoal-light);
  border: 1px solid var(--charcoal-mid);
  border-radius: var(--radius);
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.scope-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 2px solid var(--teal);
}

.scope-panel-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.scope-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--cream);
  margin: 0 0 0.75rem;
}

.scope-panel p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.scope-panel .panel-link {
  font-weight: 600;
  font-size: 0.875rem;
}

.scope-panel-featured {
  grid-column: 1 / -1;
  border-left: 4px solid var(--teal);
}

.scope-panel-featured img {
  aspect-ratio: 21 / 9;
}

.arc-card {
  display: grid;
  gap: 0;
  background: var(--charcoal-light);
  border: 1px solid var(--charcoal-mid);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-glow);
}

@media (min-width: 720px) {
  .arc-card {
    grid-template-columns: 260px 1fr;
    align-items: stretch;
  }
}

.arc-card img {
  width: 100%;
  height: 100%;
  min-height: 12.5rem;
  object-fit: cover;
}

.arc-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.arc-body h2 {
  margin-top: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 640px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

.photo-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--charcoal-mid);
  background: var(--charcoal-light);
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-grid figcaption {
  padding: 0.65rem 0.85rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.location-photo {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--charcoal-mid);
}

.location-photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* Content pages */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.page-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  color: var(--cream);
  margin: 0 0 0.5rem;
}

.page-lead {
  font-size: 1.125rem;
  color: var(--teal-light);
  margin: 0 0 2rem;
  max-width: 65ch;
}

.page-content h2 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--amber);
  margin: 2rem 0 1rem;
}

.page-content h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--cream);
  margin: 1.5rem 0 0.75rem;
}

.page-content p,
.page-content li {
  max-width: 72ch;
}

.page-content ul, .page-content ol {
  padding-left: 1.5rem;
}

.page-content li { margin-bottom: 0.5rem; }

.content-image {
  margin: 2rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--charcoal-mid);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-card {
  background: var(--charcoal-light);
  border: 1px solid var(--charcoal-mid);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card h2 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--amber);
  margin: 0 0 1rem;
}

.contact-card p { margin: 0 0 0.5rem; }

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--charcoal-mid);
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

/* CTA block */
.cta-block {
  background: linear-gradient(135deg, var(--charcoal-light) 0%, var(--charcoal-mid) 100%);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
}

.cta-block a {
  font-weight: 600;
  font-size: 1.0625rem;
}

/* Footer */
.site-footer {
  background: var(--charcoal-light);
  border-top: 2px solid var(--teal);
  margin-top: 3rem;
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h2 {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}

.footer-col p, .footer-col address {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 0.35rem; }

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-col a:hover { color: var(--amber); }

.footer-disclaimer {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--charcoal-mid);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-copy {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Utility */
.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;
}

.tag {
  display: inline-block;
  background: rgba(42, 157, 143, 0.2);
  color: var(--teal-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .skip-link { display: none; }
  a { color: #000; text-decoration: underline; }
}

/* Premium Watch CTA */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0 1rem;
}

.btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.85rem;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #1a1008;
  background: linear-gradient(135deg, var(--amber-light) 0%, var(--amber) 50%, #e08a3a 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0 0 28px rgba(244, 162, 97, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-watch:hover,
.btn-watch:focus-visible {
  color: #1a1008;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(244, 162, 97, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-watch svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.btn-watch-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Cast / Key Voices */
.cast-section {
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--charcoal-mid);
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.cast-card {
  background: var(--charcoal-light);
  border: 1px solid var(--charcoal-mid);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.cast-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-bottom: 2px solid var(--teal);
}

.cast-card h3 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  margin: 0.85rem 0.75rem 0.25rem;
  color: var(--cream);
}

.cast-card p {
  font-size: 0.72rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0.75rem 0.85rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--charcoal-mid);
  aspect-ratio: 16 / 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cream);
  background: linear-gradient(transparent, rgba(15, 15, 26, 0.92));
}

.domain-strip {
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--charcoal-mid);
  background: rgba(42, 157, 143, 0.08);
}

.domain-strip strong {
  color: var(--amber-light);
  font-weight: 600;
}

.hero-visual img,
.content-image {
  box-shadow: var(--shadow-lg);
}

.scope-panel {
  box-shadow: var(--shadow-glow);
}

.site-header {
  backdrop-filter: blur(12px);
}

.cta-block {
  border: 2px solid var(--amber);
  box-shadow: var(--shadow-glow);
}
