/* MediaPitch — Ink Room Design System */
:root {
  --ink: #14110F;
  --charcoal: #221E1A;
  --newsprint: #F1EBDD;
  --vermillion: #D33A2C;
  --stone: #8B837A;
  --vermillion-dark: #b82f23;
  --newsprint-muted: #e5dfd1;
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 72rem;
  --header-height: 4.25rem;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--newsprint);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--vermillion);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--vermillion-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); margin-bottom: 0.75em; }
h3 { font-size: 1.25rem; font-weight: 500; }

p { margin: 0 0 1.15em; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.35em; }

/* Surfaces — paired bg + text only */
.surface-ink { background: var(--ink); color: var(--newsprint); }
.surface-ink a { color: var(--newsprint); text-decoration-color: var(--stone); }
.surface-newsprint { background: var(--newsprint); color: var(--ink); }
.surface-charcoal { background: var(--charcoal); color: var(--newsprint); }
.surface-charcoal a { color: var(--newsprint); }
.surface-vermillion { background: var(--vermillion); color: var(--newsprint); }
.surface-vermillion a { color: var(--newsprint); }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--vermillion);
  color: var(--newsprint);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  position: fixed;
  background: var(--newsprint);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(20, 17, 15, 0.08);
}

.site-header.is-scrolled .logo,
.site-header.is-scrolled .main-nav a {
  color: var(--ink);
}

.site-header.is-scrolled .main-nav a:hover,
.site-header.is-scrolled .main-nav a[aria-current="page"] {
  color: var(--vermillion);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  min-height: var(--header-height);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--newsprint);
  text-decoration: none;
}

.logo span { color: var(--vermillion); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--stone);
  color: var(--newsprint);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.main-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--newsprint);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--vermillion);
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .main-nav.is-open { max-height: 20rem; }
  .main-nav ul {
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.75rem;
  }
}

/* Hero — THE FRONT PAGE */
.hero-front-page {
  position: relative;
  min-height: 96vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink) url('../images/mediapitch-01-hero-newsroom.jpg') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 17, 15, 0.95) 0%,
    rgba(20, 17, 15, 0.75) 45%,
    rgba(20, 17, 15, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem 1.5rem 3rem;
  width: 100%;
}

.hero-masthead {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--newsprint);
  margin: 0 0 0.25em;
  line-height: 0.95;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--stone);
  max-width: 32rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(241, 235, 221, 0.2);
}

.section-rail {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin-bottom: 0.75rem;
}

.lead-story h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--newsprint);
  margin-bottom: 0.5em;
}

.lead-story h2 a {
  color: inherit;
  text-decoration: none;
}

.lead-story h2 a:hover { color: var(--vermillion); }

.lead-story p {
  color: var(--stone);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.secondary-rail article {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(241, 235, 221, 0.12);
}

.secondary-rail article:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.secondary-rail h3 {
  font-size: 1rem;
  margin-bottom: 0.35em;
}

.secondary-rail h3 a {
  color: var(--newsprint);
  text-decoration: none;
}

.secondary-rail h3 a:hover { color: var(--vermillion); }

.secondary-rail time {
  font-size: 0.8125rem;
  color: var(--stone);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn-primary {
  background: var(--vermillion);
  color: var(--newsprint);
}

.btn-primary:hover {
  background: var(--vermillion-dark);
  color: var(--newsprint);
}

.btn-outline {
  background: transparent;
  color: var(--newsprint);
  border: 1px solid var(--stone);
}

.btn-outline:hover {
  border-color: var(--newsprint);
  color: var(--newsprint);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Page header (inner pages) */
.page-header {
  padding: 6rem 1.5rem 2.5rem;
  background: var(--charcoal);
  color: var(--newsprint);
}

.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 { margin-bottom: 0.35em; }

.page-header .breadcrumb {
  font-size: 0.8125rem;
  color: var(--stone);
  margin-bottom: 1rem;
}

.page-header .breadcrumb a {
  color: var(--stone);
  text-decoration: none;
}

.page-header .breadcrumb a:hover { color: var(--newsprint); }

.page-header .dateline {
  font-size: 0.875rem;
  color: var(--stone);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Main content */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.content-narrow { max-width: 42rem; }

.content-wide { max-width: var(--max-width); }

/* Section rule draw */
.section-block {
  margin-bottom: 3.5rem;
  position: relative;
}

.section-block .section-rule {
  width: 0;
  height: 3px;
  background: var(--vermillion);
  margin-bottom: 1.5rem;
  transition: width 0.8s ease;
}

.section-block.is-visible .section-rule { width: 4rem; }

.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin-bottom: 0.5rem;
}

/* Story grid */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.story-card {
  background: var(--newsprint-muted);
  border: 1px solid rgba(20, 17, 15, 0.08);
}

.story-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }

.story-card-body { padding: 1.25rem; }

.story-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5em;
}

.story-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.story-card h3 a:hover { color: var(--vermillion); }

.story-card .meta {
  font-size: 0.8125rem;
  color: var(--stone);
}

.story-card .dek {
  font-size: 0.9375rem;
  color: var(--charcoal);
  margin-top: 0.5em;
}

/* Article layout */
.article-lead-img {
  margin: 0 -1.5rem 2rem;
  max-width: calc(100% + 3rem);
}

.article-lead-img figcaption {
  font-size: 0.8125rem;
  color: var(--stone);
  padding: 0.75rem 1.5rem 0;
  font-style: italic;
}

.article-body h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--vermillion);
  background: var(--newsprint-muted);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
}

.article-body figure {
  margin: 2rem 0;
}

.article-body figcaption {
  font-size: 0.8125rem;
  color: var(--stone);
  margin-top: 0.5rem;
  font-style: italic;
}

.byline {
  font-size: 0.875rem;
  color: var(--stone);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(20, 17, 15, 0.1);
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}

/* Membership box */
.membership-box {
  padding: 2rem;
  border: 2px solid var(--vermillion);
  margin: 2rem 0;
}

.membership-box h3 {
  color: var(--vermillion);
  margin-bottom: 0.5em;
}

.membership-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin: 0.5em 0;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--stone);
  background: var(--newsprint);
  color: var(--ink);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--vermillion);
  outline-offset: 1px;
}

.form-group textarea { min-height: 8rem; resize: vertical; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.form-check input { margin-top: 0.25rem; flex-shrink: 0; }

.form-check label { font-weight: 400; font-size: 0.9375rem; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* FAQ */
.faq-list { list-style: none; padding: 0; margin: 0; }

.faq-item {
  border-bottom: 1px solid rgba(20, 17, 15, 0.12);
  padding: 1.5rem 0;
}

.faq-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75em;
  color: var(--ink);
}

.faq-item p:last-child { margin-bottom: 0; }

/* Legal pages */
.legal-content h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: 1.75rem;
}

.legal-nav {
  background: var(--newsprint-muted);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.legal-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.legal-nav a { font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--stone);
  padding: 3rem 1.5rem 2rem;
  font-size: 0.875rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--newsprint);
  margin-bottom: 0.75rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li { margin-bottom: 0.4rem; }

.footer-grid a {
  color: var(--stone);
  text-decoration: none;
}

.footer-grid a:hover { color: var(--newsprint); }

.footer-editorial {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(241, 235, 221, 0.1);
  border-bottom: 1px solid rgba(241, 235, 221, 0.1);
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--stone);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--charcoal);
  color: var(--newsprint);
  padding: 1.5rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform var(--transition);
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-text {
  flex: 1 1 300px;
  font-size: 0.9375rem;
  margin: 0;
}

.cookie-text a { color: var(--newsprint); }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-actions .btn {
  padding: 0.6rem 1.15rem;
  font-size: 0.875rem;
}

.cookie-panel {
  display: none;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid rgba(241, 235, 221, 0.15);
  margin-top: 0.5rem;
}

.cookie-panel.is-open { display: block; }

.cookie-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.cookie-option input { flex-shrink: 0; }

/* Reveal animation — content visible without JS */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.error-page h1 { margin-bottom: 0.5em; }

.error-code {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 600;
  color: var(--vermillion);
  line-height: 1;
  margin-bottom: 0.25em;
}

/* Thanks page */
.thanks-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

/* Contact info block */
.contact-details {
  background: var(--newsprint-muted);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.contact-details dt {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone);
  margin-top: 1rem;
}

.contact-details dt:first-child { margin-top: 0; }

.contact-details dd {
  margin: 0.25rem 0 0;
  font-size: 1rem;
}

.contact-details a { color: var(--ink); }

/* Utility */
.text-stone { color: var(--stone); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-lg { margin-bottom: 2rem; }
