/* ==========================================================================
   Applied Memory & Cognitive Performance Lab - Light Mode Design System
   Warm Off-White Aesthetic & High-Legibility Typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

/* CSS Variables - Light Mode Palette */
:root {
  /* Core Brand Colors */
  --bg-main: #FAF9F6;
  --bg-surface: #FFFFFF;
  --bg-card: #F4F3F0;
  --bg-card-hover: #ECEAE4;
  --border-color: #E5E3DD;
  --border-focus: #2B4C7E;

  /* Typography Colors */
  --text-main: #1A1A1A;
  --text-muted: #4A5568;
  --text-dim: #718096;

  /* Accent Palette */
  --accent-slate: #2B4C7E;
  --accent-slate-hover: #1E375C;
  --accent-teal: #0D9488;
  --accent-amber: #D97706;
  --accent-rose: #E11D48;
  --accent-emerald: #059669;

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, #2B4C7E 0%, #3B82F6 100%);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout & Geometry */
  --container-max-width: 1140px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }
}

/* Header Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: #1A1A1A;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #2B4C7E;
}

/* Hero Section */
.hero-section {
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .hero-section {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
  }
}

.hero-text-container {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(43, 76, 126, 0.08);
  border: 1px solid rgba(43, 76, 126, 0.2);
  color: var(--accent-slate);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.35rem;
  }
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-lead {
    font-size: 1.2rem;
  }
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 600px) {
  .hero-cta-group {
    flex-direction: row;
    gap: 1.25rem;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--accent-slate);
  border: 1px solid var(--accent-slate);
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(43, 76, 126, 0.25);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-slate-hover);
  border-color: var(--accent-slate-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 76, 126, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-slate);
  background: transparent;
  border: 1.5px solid var(--accent-slate);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(43, 76, 126, 0.08);
  transform: translateY(-2px);
}

/* Featured Article Spotlight Box */
.featured-spotlight-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 2.5rem 0 var(--spacing-xl);
  text-align: left;
}

.spotlight-header-bar {
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spotlight-badge-left {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-slate);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

.spotlight-badge-right {
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.spotlight-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .spotlight-body {
    flex-direction: row;
    align-items: center;
    padding: 2.25rem;
    gap: 2.25rem;
  }
}

.spotlight-img-wrap {
  width: 100%;
  max-height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .spotlight-img-wrap {
    width: 44%;
    max-height: 260px;
  }
}

.spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.featured-spotlight-card:hover .spotlight-img {
  transform: scale(1.03);
}

.spotlight-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
}

.spotlight-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.28;
  margin-bottom: 0.85rem;
}

@media (min-width: 768px) {
  .spotlight-title {
    font-size: 1.75rem;
  }
}

.spotlight-excerpt {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Pillar Cards Grid */
.pillars-section {
  padding: var(--spacing-lg) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-slate);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.35rem;
  }
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--accent-slate);
  box-shadow: var(--shadow-md);
}

.card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(43, 76, 126, 0.1);
  border: 1px solid rgba(43, 76, 126, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-slate);
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-highlights {
  list-style: none;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-highlights li {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-highlights li svg {
  color: var(--accent-slate);
  flex-shrink: 0;
}

/* Meet the Builder Section */
.builder-section {
  padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.builder-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .builder-card {
    flex-direction: row;
    padding: 3rem;
  }
}

.builder-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.builder-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-slate);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .builder-avatar {
    width: 170px;
    height: 170px;
  }
}

.builder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .builder-content {
    align-items: flex-start;
    text-align: left;
  }
}

.builder-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.builder-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-slate);
  margin-bottom: 1rem;
}

.builder-bio {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Footer Section */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background: #F0EFEA;
  padding: 2.5rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  align-items: center;
}

.disclaimer-box {
  font-size: 0.8125rem;
  color: #6A6A6A;
  max-width: 820px;
  line-height: 1.6;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-slate);
}

.copyright {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* Standalone Long-Form Article Template Styles */
.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-slate);
  text-decoration: none;
  transition: color var(--transition-fast);
  margin-bottom: 1.5rem;
}

.breadcrumb-link:hover {
  color: var(--accent-slate-hover);
  text-decoration: underline;
}

.article-reading-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

@media (min-width: 768px) {
  .article-reading-container {
    padding: 3.5rem 0 5rem;
  }
}

.article-header-area {
  margin-bottom: 2.25rem;
}

.article-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.article-pill-tag {
  font-size: 0.78125rem;
  font-weight: 700;
  color: var(--accent-slate);
  background: rgba(43, 76, 126, 0.08);
  border: 1px solid rgba(43, 76, 126, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-date-read {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

.article-h1-title {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 800;
  color: #1A1A1A;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .article-h1-title {
    font-size: 2.85rem;
  }
}

.article-lead-excerpt {
  font-size: 1.15rem;
  color: #4A4A4A;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.article-author-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.author-byline-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-slate);
}

.author-byline-meta {
  display: flex;
  flex-direction: column;
}

.author-byline-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.3;
}

.author-byline-role {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* Hero Diagram Container */
.article-diagram-card {
  margin: 2rem 0 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}

.article-diagram-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.article-diagram-caption {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 0.85rem 1.25rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  line-height: 1.5;
  font-style: italic;
}

/* Body Content Typography */
.article-body-content {
  font-size: 18px;
  line-height: 1.65;
  color: #1A1A1A;
}

.article-body-content p {
  margin-bottom: 1.5rem;
}

.article-body-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #1A1A1A;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* N=1 Callout Box */
.n1-callout-box {
  background: #F4F3F0;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-slate);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0 2.5rem;
}

.callout-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-slate);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.callout-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.callout-list li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1A1A1A;
}

.callout-list li strong {
  color: var(--accent-slate);
}

/* Styled Article Lists */
.article-styled-list {
  margin: 1.25rem 0 2rem 1.25rem;
  list-style: none;
}

.article-styled-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.article-styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background-color: var(--accent-slate);
  border-radius: 50%;
}

/* Article Navigation Footer */
.article-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  font-weight: 700;
}

.article-nav-link {
  color: var(--accent-slate);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-fast);
}

.article-nav-link:hover {
  color: var(--accent-slate-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Email Notification Signup Card Component
   ========================================================================== */

.email-signup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  margin: 3rem 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .email-signup-card {
    padding: 2.5rem 3rem;
  }
}

.signup-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(43, 76, 126, 0.1);
  color: var(--accent-slate);
  margin-bottom: 1rem;
}

.signup-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #1A1A1A;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .signup-title {
    font-size: 1.85rem;
  }
}

.signup-description {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 520px;
  margin: 0 auto;
}

@media (min-width: 580px) {
  .signup-form {
    flex-direction: row;
    align-items: center;
  }
}

.signup-input {
  flex-grow: 1;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #1A1A1A;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.signup-input:focus {
  border-color: var(--accent-slate);
  box-shadow: 0 0 0 3px rgba(43, 76, 126, 0.15);
}

.signup-submit-btn {
  white-space: nowrap;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.signup-reassurance {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.signup-success-message {
  display: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}
