/* sopp.css — Four Medicinal Mushrooms page
   Scoped to block classNames. No outer page wrapper needed.
   Uses theme CSS custom properties from _var.scss where possible.
*/

/* ─── Reset inherited color cascade inside scoped sections ─── */
.sopp-section :is(p, h2, h3, h4, li, blockquote, figcaption, a),
.sopp-intro :is(p, h2, h3),
.sopp-sammenligning :is(p, h2, h3, td, th),
.sopp-ritual :is(p, h2, h3, li, blockquote),
.sopp-cta :is(p, h2, h3, a) {
  color: inherit;
}

/* ─── Hero ─── */
.sopp-hero {
  background-color: var(--color-brown-900, #1a0f08);
  color: var(--color-cream-50, #fdf8f0);
}

.sopp-hero .kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.sopp-hero .display {
  font-family: "New Spirit", Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  font-weight: 700;
  color: var(--color-cream-50, #fdf8f0);
  margin-bottom: 0.5rem;
}

.sopp-hero .display--italic {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  opacity: 0.85;
}

/* ─── Intro section ─── */
.sopp-intro {
  max-width: 72ch;
  margin-inline: auto;
  padding: 4rem 2rem;
  color: var(--text-color, #2a1a10);
}

.sopp-intro .lede {
  font-family: "New Spirit", Georgia, serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* ─── Divider ─── */
.sopp-divider {
  border-color: var(--border-color-light, rgba(42, 26, 16, 0.15));
  margin-block: 0;
}

/* ─── Shared mushroom section ─── */
/* Section numbers are positional chrome → CSS counters, not blocks.
   Reorder the sections in Gutenberg and the numbers follow. */
body { counter-reset: sopp-section; }

.sopp-section {
  padding: 4rem 2rem;
  max-width: 80ch;
  margin-inline: auto;
  counter-increment: sopp-section;
}

.sopp-section::before {
  content: "№ " counter(sopp-section, decimal-leading-zero);
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-color, #8b5e3c);
  margin-bottom: 1rem;
  font-family: "Roca", sans-serif;
}

.sopp-naam,
.sopp-navn {
  font-family: "New Spirit", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-brown-900, #1a0f08);
  margin-bottom: 0.25rem;
}

.sopp-latin {
  font-size: 0.9rem;
  color: var(--accent-color, #8b5e3c);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.sopp-section .lede {
  font-family: "New Spirit", Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.sopp-egenskaper-tittel {
  font-family: "Roca", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-color, #8b5e3c);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.sopp-section .wp-block-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.sopp-section .wp-block-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-bottom: 1px solid var(--border-color-light, rgba(42, 26, 16, 0.1));
  position: relative;
  font-size: 0.95rem;
}

.sopp-section .wp-block-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent-color, #8b5e3c);
}

/* Section accent tints */
.sopp-art    { border-left: 3px solid var(--color-cream-900, #c8a97e); }
.sopp-reishi { border-left: 3px solid var(--color-brown-600, #6b3f28); }
.sopp-chaga  { border-left: 3px solid var(--color-brown-900, #1a0f08); }
.sopp-cordyceps { border-left: 3px solid var(--accent-color, #8b5e3c); }

/* ─── Footnote atoms ─── */
.sopp-fotnote {
  font-size: 0.78rem;
  color: var(--accent-color, #8b5e3c);
  border-left: 2px solid currentColor;
  padding-left: 0.75rem;
  margin-top: 1.5rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* ─── Comparison table ─── */
.sopp-sammenligning {
  padding: 4rem 2rem;
  background-color: var(--bg-color-light, #fdf5eb);
}

.sopp-sammenligning .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-color, #8b5e3c);
  margin-bottom: 0.5rem;
}

.sopp-sammenligning h2 {
  font-family: "New Spirit", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 2rem;
}

.sopp-tabell {
  width: 100%;
  margin-top: 1.5rem;
}

.sopp-tabell table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.sopp-tabell th,
.sopp-tabell td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color-light, rgba(42, 26, 16, 0.12));
  vertical-align: top;
}

.sopp-tabell thead th {
  font-family: "Roca", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-color, #8b5e3c);
  border-bottom: 2px solid var(--border-color, rgba(42, 26, 16, 0.25));
}

.sopp-tabell tbody tr:last-child td {
  border-bottom: none;
}

.sopp-tabell tbody td:first-child {
  font-weight: 600;
  color: var(--color-brown-900, #1a0f08);
  white-space: nowrap;
}

.sopp-sammenligning .marginalia {
  font-size: 0.78rem;
  color: var(--accent-color, #8b5e3c);
  margin-top: 1.5rem;
  opacity: 0.7;
}

/* ─── Ritual section ─── */
.sopp-ritual {
  padding: 4rem 2rem;
  max-width: 72ch;
  margin-inline: auto;
}

.sopp-ritual .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-color, #8b5e3c);
  margin-bottom: 0.5rem;
}

.sopp-ritual h2 {
  font-family: "New Spirit", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.sopp-ritual .lede {
  font-family: "New Spirit", Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.sopp-ritual .wp-block-list {
  padding-left: 0;
  list-style: none;
  counter-reset: ritual-steps;
}

.sopp-ritual .wp-block-list li {
  counter-increment: ritual-steps;
  padding: 1rem 1rem 1rem 3.5rem;
  margin-bottom: 0.75rem;
  background: var(--bg-color-light, #fdf5eb);
  border-radius: var(--border-radius, 3px);
  position: relative;
  line-height: 1.6;
  font-size: 0.95rem;
}

.sopp-ritual .wp-block-list li::before {
  content: counter(ritual-steps, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-family: "Roca", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--accent-color, #8b5e3c);
  font-weight: 600;
}

.sopp-sitat {
  margin-top: 2.5rem;
  border-top: 2px solid var(--border-color-light, rgba(42, 26, 16, 0.15));
  border-bottom: none;
  padding-top: 1.5rem;
}

.sopp-sitat blockquote p {
  font-family: "New Spirit", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--color-brown-900, #1a0f08);
  line-height: 1.5;
}

/* ─── CTA section ─── */
.sopp-cta {
  padding: 5rem 2rem;
  text-align: center;
  background-color: var(--color-brown-900, #1a0f08);
  color: var(--color-cream-50, #fdf8f0);
}

.sopp-cta h2 {
  font-family: "New Spirit", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-cream-50, #fdf8f0);
  margin-bottom: 1rem;
}

.sopp-cta p {
  color: var(--color-cream-50, #fdf8f0);
  opacity: 0.85;
  font-size: 1rem;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.sopp-cta .wp-block-button__link {
  background: var(--accent-color, #8b5e3c);
  color: var(--color-cream-50, #fdf8f0);
  padding: 0.9rem 2.5rem;
  border-radius: var(--border-radius, 3px);
  font-family: "Roca", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.sopp-cta .wp-block-button__link:hover {
  opacity: 0.85;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .sopp-section,
  .sopp-intro,
  .sopp-ritual {
    padding: 2.5rem 1.25rem;
  }

  .sopp-sammenligning {
    padding: 2.5rem 1.25rem;
    overflow-x: auto;
  }

  .sopp-tabell table {
    min-width: 480px;
  }

  .sopp-cta {
    padding: 3rem 1.25rem;
  }
}
