/* Base styles for essay pages - matches pareidoliallc.com exactly */

:root {
  --bg-main: #F5F7FA;
  --bg-section: #FFFFFF;
  --bg-subtle: #F9FAFB;
  --border-subtle: #E5E7EB;
  --text-main: #111827;
  --text-muted: #6B7280;
  --accent: #2563EB;
  --accent-soft: #DBEAFE;
  --accent-dark: #1D4ED8;
  --footer-bg: #1E293B;
  --footer-text: #94A3B8;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header - dark theme matching main site */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-block img {
  height: 60px;
  width: auto;
}

.logo-mark {
  display: none;
}

.logo-text {
  display: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

nav a:hover {
  color: #ffffff;
}

.nav-cta {
  padding: 10px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4ecdc4, #44a8b3);
  color: #000 !important;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(78, 205, 196, 0.3);
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
}

/* Legacy header styles for simple headers */
.hero {
  background: rgba(245, 247, 250, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  padding: 1.5rem 0;
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: #6B7280;
  font-weight: 500;
}

/* Main content */
.main-content {
  background: var(--bg-section);
  flex: 1;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 48px 0 32px;
  background: #050505;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-logo img {
  height: 48px;
  width: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.footer-section h4 {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
}

.footer-section p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13px;
  color: var(--footer-text);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 12px;
  color: var(--footer-text);
}

.footer-bottom p {
  margin: 4px 0;
}
