/* ============================================
   Cordy — Mushroom Science, From Forest to Understanding
   Design System: Naturalist educator, evidence-curious, grounded
   ============================================ */

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

:root {
  /* Color Palette */
  --forest-moss: #2D4A2B;
  --bone-cream: #F5F0E6;
  --rust-spore: #B8651E;
  --deep-earth: #3B2F2F;
  --pale-sage: #A8B89C;

  /* Derived */
  --forest-moss-light: #3A5E38;
  --forest-moss-dark: #1E3320;
  --rust-spore-light: #D17829;
  --rust-spore-dark: #8E4E15;
  --bone-cream-dark: #E8E0D0;
  --pale-sage-light: #C5D0BB;
  --pale-sage-dark: #8A9B7E;
  --deep-earth-light: #5A4A4A;

  /* Typography */
  --font-display: 'Caudex', 'Georgia', serif;
  --font-body: 'Spline Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --content-width: 760px;
  --nav-height: 72px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(59, 47, 47, 0.08);
  --shadow-md: 0 4px 16px rgba(59, 47, 47, 0.1);
  --shadow-lg: 0 8px 32px rgba(59, 47, 47, 0.12);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bone-cream);
  color: var(--deep-earth);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--forest-moss);
  line-height: 1.3;
}

a {
  color: var(--rust-spore);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--rust-spore-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Accessibility ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--forest-moss);
  color: var(--bone-cream);
  padding: 8px 16px;
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--rust-spore);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ===== Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ===== Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 184, 156, 0.3);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--forest-moss);
  letter-spacing: 0.02em;
}

.nav-logo-tagline {
  font-size: 0.7rem;
  color: var(--pale-sage-dark);
  letter-spacing: 0.04em;
  display: block;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: var(--deep-earth);
  font-size: 0.92rem;
  font-weight: 500;
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rust-spore);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--forest-moss);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--forest-moss);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(45, 74, 43, 0.82) 0%,
    rgba(59, 47, 47, 0.65) 50%,
    rgba(45, 74, 43, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: var(--space-3xl) var(--space-xl);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pale-sage-light);
  margin-bottom: var(--space-md);
  padding: 4px 14px;
  border: 1px solid rgba(168, 184, 156, 0.5);
  border-radius: 50px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--bone-cream);
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(245, 240, 230, 0.88);
  margin-bottom: var(--space-xl);
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--rust-spore);
  color: var(--bone-cream);
  border-color: var(--rust-spore);
}

.btn-primary:hover {
  background: var(--rust-spore-dark);
  border-color: var(--rust-spore-dark);
  color: var(--bone-cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--bone-cream);
  border-color: rgba(245, 240, 230, 0.6);
}

.btn-secondary:hover {
  background: rgba(245, 240, 230, 0.1);
  border-color: var(--bone-cream);
  color: var(--bone-cream);
}

.btn-outline {
  background: transparent;
  color: var(--forest-moss);
  border-color: var(--forest-moss);
}

.btn-outline:hover {
  background: var(--forest-moss);
  color: var(--bone-cream);
}

/* ===== Section General ===== */
.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust-spore);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--deep-earth-light);
  max-width: 580px;
  margin: 0 auto;
}

/* ===== Featured Fungi Profile ===== */
.featured-fungi {
  background: linear-gradient(180deg, var(--bone-cream) 0%, var(--bone-cream-dark) 100%);
}

.fungi-profile-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.fungi-profile-image img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.fungi-profile-content {
  padding: var(--space-2xl);
}

.fungi-profile-content .section-eyebrow {
  margin-bottom: var(--space-md);
}

.fungi-profile-content h3 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.fungi-latin {
  font-style: italic;
  color: var(--pale-sage-dark);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.fungi-profile-content p {
  margin-bottom: var(--space-lg);
  color: var(--deep-earth-light);
}

.fungi-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.fungi-fact {
  padding: var(--space-md);
  background: var(--bone-cream);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--pale-sage);
}

.fungi-fact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pale-sage-dark);
  margin-bottom: 4px;
}

.fungi-fact-value {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--forest-moss);
}

/* ===== Research Spotlight ===== */
.research-spotlight {
  background: var(--forest-moss);
  color: var(--bone-cream);
  position: relative;
  overflow: hidden;
}

.research-spotlight::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 101, 30, 0.15) 0%, transparent 70%);
}

.research-spotlight .section-title {
  color: var(--bone-cream);
}

.research-spotlight .section-subtitle {
  color: rgba(245, 240, 230, 0.7);
}

.research-card {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(168, 184, 156, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  backdrop-filter: blur(10px);
}

.research-card .meta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.research-tag {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(184, 101, 30, 0.2);
  color: var(--rust-spore-light);
  border: 1px solid rgba(184, 101, 30, 0.3);
}

.research-card h3 {
  color: var(--bone-cream);
  font-size: 1.6rem;
  margin-bottom: var(--space-md);
}

.research-card p {
  color: rgba(245, 240, 230, 0.8);
  margin-bottom: var(--space-lg);
}

.research-citation {
  font-size: 0.85rem;
  color: var(--pale-sage-light);
  border-top: 1px solid rgba(168, 184, 156, 0.2);
  padding-top: var(--space-md);
}

/* ===== Foraging Safety Section ===== */
.foraging-safety {
  background: var(--bone-cream);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.safety-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--rust-spore);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.safety-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.safety-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--pale-sage);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.safety-card h4 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.safety-card p {
  font-size: 0.95rem;
  color: var(--deep-earth-light);
}

/* ===== Article Cards Grid ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.article-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-category {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-size: 0.75rem;
  padding: 4px 12px;
  background: rgba(245, 240, 230, 0.92);
  color: var(--forest-moss);
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.article-card-content {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-content h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  line-height: 1.35;
}

.article-card-content h3 a {
  color: var(--forest-moss);
}

.article-card-content h3 a:hover {
  color: var(--rust-spore);
}

.article-card-excerpt {
  font-size: 0.9rem;
  color: var(--deep-earth-light);
  margin-bottom: var(--space-md);
  flex: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--pale-sage-dark);
}

.article-card-meta .read-time::before {
  content: '·';
  margin: 0 var(--space-sm);
}

/* ===== Learning Path ===== */
.learning-path {
  background: linear-gradient(180deg, var(--bone-cream-dark) 0%, var(--bone-cream) 100%);
}

.path-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
}

.path-timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--pale-sage);
  opacity: 0.4;
}

.path-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.path-step-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-md);
  background: var(--bone-cream);
  border: 2px solid var(--pale-sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--forest-moss);
  transition: all var(--transition-base);
}

.path-step:hover .path-step-icon {
  background: var(--forest-moss);
  color: var(--bone-cream);
  border-color: var(--forest-moss);
}

.path-step h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.path-step p {
  font-size: 0.85rem;
  color: var(--deep-earth-light);
  padding: 0 var(--space-sm);
}

/* ===== Newsletter / CTA Banner ===== */
.cta-banner {
  background: var(--deep-earth);
  color: var(--bone-cream);
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 101, 30, 0.2) 0%, transparent 70%);
}

.cta-banner h3 {
  color: var(--bone-cream);
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-banner p {
  color: rgba(245, 240, 230, 0.75);
  margin-bottom: var(--space-lg);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* ===== Page Header (non-homepage) ===== */
.page-header {
  background: var(--forest-moss);
  color: var(--bone-cream);
  padding: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, rgba(168, 184, 156, 0.1) 0%, transparent 60%);
}

.page-header h1 {
  color: var(--bone-cream);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-sm);
  position: relative;
}

.page-header p {
  color: rgba(245, 240, 230, 0.75);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--pale-sage-light);
  margin-bottom: var(--space-md);
  position: relative;
}

.breadcrumbs a {
  color: var(--pale-sage-light);
}

.breadcrumbs a:hover {
  color: var(--bone-cream);
}

/* ===== Fungi Guide Page ===== */
.fungi-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.fungi-guide-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: grid;
  grid-template-columns: 140px 1fr;
}

.fungi-guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.fungi-guide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100%;
}

.fungi-guide-content {
  padding: var(--space-lg);
}

.fungi-guide-content h3 {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.fungi-guide-content .latin {
  font-style: italic;
  color: var(--pale-sage-dark);
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
}

.fungi-guide-content p {
  font-size: 0.9rem;
  color: var(--deep-earth-light);
  margin-bottom: var(--space-md);
}

.fungi-guide-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.fungi-guide-tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  background: var(--bone-cream);
  color: var(--forest-moss);
  border-radius: 50px;
  border: 1px solid var(--pale-sage);
}

/* ===== Article Page Layout ===== */
.article-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--bone-cream-dark);
}

.article-hero .container-narrow {
  text-align: center;
}

.article-category-badge {
  display: inline-block;
  font-size: 0.78rem;
  padding: 4px 14px;
  background: var(--pale-sage);
  color: var(--forest-moss-dark);
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.article-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  margin-bottom: var(--space-md);
}

.article-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  font-size: 0.85rem;
  color: var(--pale-sage-dark);
  flex-wrap: wrap;
}

.article-hero-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.article-hero-image {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.article-hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/2;
  object-fit: cover;
}

.article-hero-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--pale-sage-dark);
  margin-top: var(--space-sm);
  font-style: italic;
}

.article-body {
  padding: var(--space-2xl) 0;
}

.article-body .container-narrow {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--deep-earth);
}

.article-body h2 {
  font-size: 1.7rem;
  margin: var(--space-xl) 0 var(--space-md);
  color: var(--forest-moss);
}

.article-body h3 {
  font-size: 1.3rem;
  margin: var(--space-lg) 0 var(--space-sm);
  color: var(--forest-moss);
}

.article-body p {
  margin-bottom: var(--space-lg);
}

.article-body ul,
.article-body ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.article-body li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.article-body blockquote {
  border-left: 4px solid var(--rust-spore);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--bone-cream);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--deep-earth-light);
}

.article-body blockquote p {
  margin-bottom: 0;
}

.article-body figure {
  margin: var(--space-xl) 0;
}

.article-body figure img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.article-body figcaption {
  font-size: 0.85rem;
  color: var(--pale-sage-dark);
  text-align: center;
  margin-top: var(--space-sm);
  font-style: italic;
}

/* Info callout box */
.callout {
  background: linear-gradient(135deg, rgba(168, 184, 156, 0.15) 0%, rgba(168, 184, 156, 0.05) 100%);
  border-left: 4px solid var(--pale-sage);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.callout-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--forest-moss);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

/* Warning callout */
.callout-warning {
  background: linear-gradient(135deg, rgba(184, 101, 30, 0.12) 0%, rgba(184, 101, 30, 0.03) 100%);
  border-left: 4px solid var(--rust-spore);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.callout-warning .callout-title {
  color: var(--rust-spore-dark);
}

/* Medical disclaimer box in articles */
.medical-disclaimer-box {
  background: rgba(184, 101, 30, 0.06);
  border: 1px solid rgba(184, 101, 30, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  font-size: 0.9rem;
  color: var(--deep-earth-light);
}

.medical-disclaimer-box strong {
  color: var(--rust-spore-dark);
}

/* Table styles */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: 0.92rem;
}

.article-table th {
  background: var(--forest-moss);
  color: var(--bone-cream);
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 400;
}

.article-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--bone-cream-dark);
}

.article-table tr:nth-child(even) td {
  background: rgba(168, 184, 156, 0.06);
}

/* Article navigation (prev/next) */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--bone-cream-dark);
}

.article-nav-item {
  flex: 1;
  padding: var(--space-lg);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.article-nav-item:hover {
  box-shadow: var(--shadow-md);
}

.article-nav-item.next {
  text-align: right;
}

.article-nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pale-sage-dark);
  margin-bottom: var(--space-xs);
}

.article-nav-title {
  font-family: var(--font-display);
  color: var(--forest-moss);
  font-size: 1rem;
}

/* ===== Learn Page (Article Index) ===== */
.filter-bar {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  padding: 8px 18px;
  font-size: 0.88rem;
  border: 1px solid var(--pale-sage);
  background: transparent;
  color: var(--deep-earth);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-body);
}

.filter-btn:hover {
  border-color: var(--forest-moss);
  color: var(--forest-moss);
}

.filter-btn.active {
  background: var(--forest-moss);
  color: var(--bone-cream);
  border-color: var(--forest-moss);
}

/* ===== About Page ===== */
.about-content {
  max-width: 760px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: var(--space-lg);
  font-size: 1.08rem;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.about-value {
  text-align: center;
  padding: var(--space-lg);
}

.about-value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: var(--bone-cream);
  border: 2px solid var(--pale-sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--forest-moss);
}

.about-value h4 {
  margin-bottom: var(--space-sm);
}

.about-value p {
  font-size: 0.9rem;
  color: var(--deep-earth-light);
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
}

.contact-info p {
  margin-bottom: var(--space-lg);
  color: var(--deep-earth-light);
}

.contact-detail {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  align-items: flex-start;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--bone-cream);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail-content h5 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-detail-content p {
  font-size: 0.9rem;
  color: var(--deep-earth-light);
  margin: 0;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--forest-moss);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--pale-sage);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bone-cream);
  color: var(--deep-earth);
  transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--forest-moss);
  background: #fff;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.82rem;
  color: var(--pale-sage-dark);
  margin-top: var(--space-sm);
}

.form-success {
  display: none;
  padding: var(--space-md) var(--space-lg);
  background: rgba(168, 184, 156, 0.2);
  border: 1px solid var(--pale-sage);
  border-radius: var(--radius-md);
  color: var(--forest-moss-dark);
  margin-bottom: var(--space-lg);
  font-size: 0.92rem;
}

.form-success.visible {
  display: block;
}

/* ===== Legal Pages ===== */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: var(--space-xl) 0 var(--space-md);
}

.legal-content h3 {
  font-size: 1.2rem;
  margin: var(--space-lg) 0 var(--space-sm);
}

.legal-content p {
  margin-bottom: var(--space-md);
  font-size: 0.98rem;
  color: var(--deep-earth);
}

.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.legal-content li {
  margin-bottom: var(--space-sm);
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--pale-sage-dark);
  font-style: italic;
  margin-bottom: var(--space-2xl);
}

/* ===== Sitemap Page ===== */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.sitemap-section h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--pale-sage);
}

.sitemap-section ul {
  list-style: none;
  padding: 0;
}

.sitemap-section li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
  position: relative;
}

.sitemap-section li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--rust-spore);
}

.sitemap-section a {
  color: var(--deep-earth);
  font-size: 0.95rem;
}

.sitemap-section a:hover {
  color: var(--rust-spore);
}

/* ===== 404 Page ===== */
.error-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-404-content {
  max-width: 480px;
  padding: var(--space-2xl);
}

.error-404 .mushroom-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
}

.error-404 h1 {
  font-size: 5rem;
  color: var(--pale-sage);
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.error-404 h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.error-404 p {
  color: var(--deep-earth-light);
  margin-bottom: var(--space-xl);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--forest-moss-dark);
  color: rgba(245, 240, 230, 0.7);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .nav-logo-text {
  color: var(--bone-cream);
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: var(--space-md);
  color: rgba(245, 240, 230, 0.6);
  max-width: 300px;
}

.footer-col h4 {
  color: var(--bone-cream);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  color: rgba(245, 240, 230, 0.7);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--rust-spore-light);
}

.footer-disclaimer {
  background: rgba(184, 101, 30, 0.1);
  border: 1px solid rgba(184, 101, 30, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  font-size: 0.82rem;
  color: rgba(245, 240, 230, 0.6);
  line-height: 1.6;
}

.footer-disclaimer strong {
  color: var(--rust-spore-light);
}

.footer-bottom {
  border-top: 1px solid rgba(168, 184, 156, 0.15);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  color: rgba(245, 240, 230, 0.5);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(168, 184, 156, 0.2);
  border-radius: 50%;
  color: rgba(245, 240, 230, 0.7);
  transition: all var(--transition-base);
  font-size: 0.9rem;
}

.footer-social a:hover {
  background: var(--rust-spore);
  border-color: var(--rust-spore);
  color: var(--bone-cream);
}

/* ===== Scroll reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .articles-grid,
  .safety-grid,
  .path-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bone-cream);
    flex-direction: column;
    gap: 0;
    padding: var(--space-md) var(--space-xl);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--pale-sage);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--bone-cream-dark);
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 60vh;
  }

  .hero-content {
    padding: var(--space-2xl) var(--space-xl);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .container,
  .container-narrow {
    padding: 0 var(--space-lg);
  }

  .fungi-profile-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .fungi-guide-grid {
    grid-template-columns: 1fr;
  }

  .fungi-guide-card {
    grid-template-columns: 100px 1fr;
  }

  .articles-grid,
  .safety-grid,
  .about-values,
  .path-timeline,
  .sitemap-grid {
    grid-template-columns: 1fr;
  }

  .path-timeline::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-nav {
    flex-direction: column;
  }

  .article-nav-item.next {
    text-align: left;
  }

  .fungi-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-logo-tagline {
    display: none;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== Print ===== */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .hero-cta,
  .cta-banner {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
}

