/* Modern Editorial Design - PYQ Wovrix */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --bg: #fcfcfb;
  --surface: #ffffff;
  --text: #18181b;
  --text-muted: #52525b;
  --text-muted-faint: #71717a;
  --border: #e4e4e7;
  --border-light: #f4f4f5;
  --primary: #18181b;
  --primary-hover: #27272a;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-subtle: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-card: 0 4px 12px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 252, 251, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-monogram {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}

.brand-name {
  font-size: 15px;
  color: var(--text);
}

.brand-slash {
  color: #a1a1aa;
  font-weight: 400;
  margin: 0 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-highlight {
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.nav-highlight:hover {
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
}

.nav-cta-pill {
  background: var(--primary);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-cta-pill:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ======================================================== */
/* Full Screen Hero Viewport (Full Background Paper & Shapes) */
/* ======================================================== */
.landing-main {
  width: 100%;
}

.hero-fullscreen-viewport {
  position: relative;
  min-height: calc(92vh - 68px);
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #fafaf9;
}

/* Expansive Full-bleed background graphic */
.hero-bg-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-bg-graphic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Clean Left Column Content sitting above background */
.hero-content-left {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: max(24px, calc((100vw - 1360px) / 2 + 24px));
  padding: 48px 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 4px 14px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero-big-type {
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-italic-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
}

.hero-editorial-lead {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 2px solid var(--border);
}

.hero-editorial-lead strong {
  color: var(--text);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-dark-pill {
  background: var(--primary);
  color: #ffffff;
  padding: 13px 26px;
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-dark-pill:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.btn-outline-pill {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  color: var(--accent);
  border: 1.5px solid rgba(37, 99, 235, 0.3);
  padding: 12px 22px;
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-outline-pill:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-ghost-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 14px;
  transition: color 0.15s ease;
}

.btn-ghost-link:hover {
  color: var(--text);
}

/* ======================================================== */
/* Telemetry Status Bar */
/* ======================================================== */
.telemetry-status-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
}

.status-bar-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.status-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 2px;
}

.status-title {
  font-size: 10.5px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted-faint);
  text-transform: uppercase;
}

.status-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ======================================================== */
/* Chapters Directory Section */
/* ======================================================== */
.chapters-directory-section {
  max-width: 1360px;
  margin: 64px auto;
  padding: 0 24px;
}

.section-lead-header {
  margin-bottom: 40px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-heading {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.subject-column {
  display: flex;
  flex-direction: column;
}

.subject-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 16px;
}

.subject-header h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subj-badge {
  font-size: 11.5px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chapter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.15s ease;
}

.chapter-card:hover {
  border-color: #a1a1aa;
  transform: translateY(-1px);
  box-shadow: var(--shadow-subtle);
}

.ch-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  padding: 4px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.ch-info {
  display: flex;
  flex-direction: column;
}

.ch-info h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.ch-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ======================================================== */
/* Massive Modern Editorial Footer */
/* ======================================================== */
.site-footer {
  background: #111113;
  color: #a1a1aa;
  border-top: 1px solid #27272a;
  padding: 64px 24px 24px;
  margin-top: 80px;
  overflow: hidden;
}

.footer-top-grid {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #27272a;
}

.footer-brand-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #71717a;
  max-width: 320px;
}

.footer-col-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list li a {
  font-size: 13px;
  color: #a1a1aa;
  transition: color 0.15s ease;
}

.footer-links-list li a:hover {
  color: #ffffff;
}

.footer-legal-bar {
  max-width: 1360px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-legal-bar .disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: #52525b;
}

.footer-copy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #71717a;
  padding-top: 16px;
  border-top: 1px solid #1f1f23;
}

/* Massive Typographic WOVRIX Wordmark spanning the footer */
.footer-massive-wovrix {
  max-width: 1400px;
  margin: 40px auto 0;
  text-align: center;
  border-top: 1px solid #222226;
  padding-top: 24px;
}

.footer-massive-wovrix span {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(72px, 16vw, 220px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.82;
  color: #1c1c20;
  text-transform: uppercase;
  user-select: none;
  transition: color 0.3s ease;
}

.footer-massive-wovrix span:hover {
  color: #27272e;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .directory-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .hero-fullscreen-viewport {
    min-height: auto;
    padding: 32px 0 48px;
  }
  .hero-content-left {
    margin-left: 0;
    max-width: 100%;
    background: rgba(252, 252, 251, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 24px 18px;
    margin: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  }
}

@media (max-width: 640px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .footer-copy-row {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .nav-links .nav-link {
    display: none;
  }
}
