/* ==========================================================================
   1. GLOBAL RESETS & VARIABLE DEFINITIONS
   ========================================================================== */
:root {
  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Forest & Parchment Palette */
  --bg-main: #f7f7f2;          /* Light cream background */
  --bg-card: #ffffff;
  --text-primary: #141f17;     /* Deep forest black */
  --text-secondary: #3f4e43;   /* Soft dark sage text */
  --text-muted: #6b7a6f;       /* Muted sage */
  --accent-primary: #166534;   /* Rich deep forest green */
  --accent-light: #f0fdf4;     /* Pale green tint */
  --border-color: #e2e5df;     /* Pale organic border */
  
  /* Layout */
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1.375rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Anchor offset for fixed sticky headers */
section, 
footer {
  scroll-margin-top: 5rem; 
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  background-color: var(--bg-main);
  z-index: 100;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.navbar {
  width: 100%;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.wordmark a {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.menu-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
  min-width: 140px;
  z-index: 10;
}

.dropdown:hover .dropdown-menu {
  display: flex;
  flex-direction: column;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
}

.dropdown-menu a:hover {
  background-color: var(--accent-light);
}

/* Mobile Layout (Screens smaller than 768px) */
@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* Show hamburger button on mobile */
  }

  .nav-links {
    display: none; /* Hide navigation links by default */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    padding: 1.5rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    padding: 0.5rem 0;
  }
}

/* ==========================================================================
   3. HERO SECTION (2-COLUMN LAYOUT)
   ========================================================================== */
.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0 5rem 0;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-image-wrapper {
  width: 100%;
}

.hero-image-wrapper img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.12);
  display: block;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-title .accent {
  font-style: italic;
  color: var(--accent-primary);
}

.lead-paragraph {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.secondary-paragraph {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Feature Checklist */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.feature-item span {
  color: var(--accent-primary);
  font-weight: bold;
}

/* Buttons */
.cta-button {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-right: 0.75rem;
  margin-bottom: 0.75rem;
}

.cta-button:first-of-type {
  background-color: var(--text-primary);
  color: #ffffff;
}

.cta-button:first-of-type:hover {
  background-color: var(--accent-primary);
  transform: translateY(-1px);
}

.cta-button:nth-of-type(2) {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  background-color: var(--bg-card);
}

.cta-button:nth-of-type(2):hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background-color: var(--accent-light);
}

/* ==========================================================================
   4. CONTENT SECTIONS (ABOUT, NEWSLETTER, ACTOR PORTAL)
   ========================================================================== */
section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  section {
    grid-template-columns: 240px 1fr;
  }
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.about-content p, 
.newsletter-content p {
  margin-bottom: 1.25rem;
}

.about-content .lead,
.newsletter-content .lead {
  font-size: 1.65rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.frequency {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 500px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-card);
  outline: none;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--accent-primary);
}

.newsletter-form button {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  background-color: var(--text-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter-form button:hover {
  background-color: var(--accent-primary);
}

.newsletter-message {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.newsletter-message.success { color: #059669; }
.newsletter-message.error { color: #dc2626; }

/* Actor Portal Styling */
.passcode-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 480px;
}

.passcode-form input[type="password"] {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-card);
  outline: none;
  color: var(--text-primary);
}

.passcode-form input[type="password"]:focus {
  border-color: var(--accent-primary);
}

.passcode-form button {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  background-color: var(--text-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.passcode-form button:hover {
  background-color: var(--accent-primary);
}

.passcode-message {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.passcode-message.error { color: #dc2626; }
.passcode-message.success { color: var(--accent-primary); }

/* Sides Vault File List */
.sides-vault {
  margin-top: 2rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(20, 31, 23, 0.04);
}

.vault-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.lock-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
}

.lock-btn:hover {
  color: #dc2626;
}

.file-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--border-color);
}

.file-item:last-child {
  border-bottom: none;
}

.file-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.file-info strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-primary);
}

.file-meta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.download-link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent-primary);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.download-link:hover {
  background-color: var(--accent-primary);
  color: #ffffff;
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
footer {
  padding: 3rem 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

.footer-inner a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 1rem;
}

.footer-inner a:hover {
  color: var(--accent-primary);
}