:root {
  --bg: #f5efe2;
  --bg-soft: #fbf7ef;
  --ink: #1e1f26;
  --ink-soft: #2e3340;
  --muted: #5d606f;
  --line: rgba(30, 31, 38, 0.12);
  --line-strong: rgba(30, 31, 38, 0.22);
  --accent: #d85c3d;
  --accent-dark: #8f2d1c;
  --accent-soft: #f0b89d;
  --teal: #2e7c7a;
  --teal-soft: #d7eeeb;
  --gold: #c6962d;
  --gold-soft: #f4e5b6;
  --rose: #f4d7cb;
  --card: rgba(255, 250, 241, 0.82);
  --card-strong: rgba(255, 252, 247, 0.94);
  --shadow: 0 18px 40px rgba(54, 38, 24, 0.12);
  --shadow-strong: 0 24px 60px rgba(35, 25, 16, 0.18);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  background:
    linear-gradient(rgba(249, 242, 231, 0.92), rgba(243, 234, 216, 0.94)),
    url("./assets/texture-collage.jpg") center top / cover fixed no-repeat,
    radial-gradient(circle at 18% 4%, rgba(216, 92, 61, 0.22), transparent 28%),
    radial-gradient(circle at 96% 8%, rgba(46, 124, 122, 0.18), transparent 24%),
    linear-gradient(180deg, #f9f2e7 0%, #f3ead8 100%);
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.page-shell {
  min-height: 100vh;
}

.hero,
.dashboard,
.section {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 1.25rem 0 2.5rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, #f59a52 100%);
  color: white;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow);
}

.brand-title,
.eyebrow,
.muted,
.stat-label {
  margin: 0;
}

.brand-title {
  font-size: 0.98rem;
  font-weight: 700;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
}

.topbar-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-links a,
.chapter-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1.5rem;
}

.hero-copy,
.hero-panel,
.dashboard-card,
.primer-card,
.lesson-card,
.tool-card,
.case-card,
.quiz-card,
.source-card {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.hero-copy {
  padding: 2.3rem;
}

.hero-copy h1,
.section-heading h2,
.hero-panel h2,
.block-head h3,
.lesson-card h4,
.tool-card h3,
.source-card h3,
.case-card h3 {
  font-family: "Fraunces", serif;
  line-height: 1.02;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  margin: 0.45rem 0 1rem;
  max-width: 12ch;
}

.lede,
.section-heading p,
.lesson-card p,
.tool-card p,
.case-card p,
.details-body p,
.mini-callout p,
.muted {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:hover,
.lesson-toggle:hover,
.response-choice:hover {
  transform: translateY(-1px);
}

.button.primary,
.lesson-toggle {
  background: var(--ink);
  color: white;
  box-shadow: 0 12px 24px rgba(30, 31, 38, 0.18);
}

.button.ghost {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button.wide {
  width: 100%;
}

.hero-points,
.checklist {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.1rem;
  margin: 0;
}

.hero-points li,
.checklist li {
  color: var(--muted);
  line-height: 1.6;
}

.hero-panel {
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 150, 45, 0.18), transparent 70%);
}

.visual-stage {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 420px;
  box-shadow: var(--shadow-strong);
}

.hero-illustration {
  width: 100%;
  min-height: 420px;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visual-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 22, 28, 0.04), rgba(18, 22, 28, 0.22));
  pointer-events: none;
}

.visual-badge {
  position: absolute;
  z-index: 1;
  max-width: 240px;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 36px rgba(28, 26, 24, 0.14);
  border-radius: 18px;
  padding: 0.85rem 0.95rem;
  backdrop-filter: blur(10px);
}

.visual-badge-top {
  top: 1rem;
  right: 1rem;
}

.visual-badge-bottom {
  left: 1rem;
  bottom: 1rem;
}

.badge-kicker,
.tool-label,
.lesson-number,
.subheading {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.pathway,
.primer-grid,
.case-grid,
.tool-grid {
  display: grid;
  gap: 1rem;
}

.path-card {
  position: relative;
  padding: 1rem 1rem 1rem 4.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(30, 31, 38, 0.08);
}

.path-step {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(216, 92, 61, 0.14);
  color: var(--accent-dark);
  font-weight: 700;
}

.dashboard {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-card,
.primer-card,
.tool-card,
.case-card,
.quiz-card,
.source-card {
  padding: 1.4rem;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.8rem 0 0.5rem;
}

.progress-bar {
  flex: 1;
  height: 15px;
  border-radius: 999px;
  background: rgba(30, 31, 38, 0.08);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
  border-radius: inherit;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 1.2rem 0 2.8rem;
}

.section-heading {
  margin-bottom: 1.3rem;
  max-width: 74ch;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0.3rem 0 0.8rem;
}

.primer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.primer-card {
  padding: 1.4rem;
}

.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.chapter-nav a {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(30, 31, 38, 0.08);
}

.chapter-block {
  margin-top: 1.8rem;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.88), rgba(250, 244, 235, 0.8)),
    rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.block-head {
  margin-bottom: 1.1rem;
  max-width: 72ch;
}

.block-head h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0.25rem 0 0.7rem;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.lesson-card {
  padding: 1.35rem;
  background: var(--card-strong);
}

.lesson-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.lesson-toggle {
  padding: 0.72rem 0.95rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
}

.lesson-toggle.is-complete {
  background: var(--teal);
}

.lesson-card h4 {
  font-size: 1.5rem;
  margin: 0 0 0.7rem;
}

.mini-callout,
.report-box,
.feedback-card,
.matrix-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(30, 31, 38, 0.08);
}

.criteria-grid,
.quete-grid,
.roles-grid,
.plan-pillars {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.criteria-grid,
.quete-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.criteria-card,
.quete-card,
.role-card,
.pillar-card {
  padding: 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(30, 31, 38, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 245, 236, 0.72));
}

.quete-card strong {
  font-size: 1.3rem;
}

details {
  margin-top: 0.9rem;
  border: 1px solid rgba(30, 31, 38, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1rem 1rem 1.15rem;
  font-weight: 700;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-dark);
}

details[open] summary::after {
  content: "−";
}

.details-body {
  padding: 0 1rem 1rem;
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  min-height: 180px;
}

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

.tool-card {
  padding: 1.35rem;
}

.tool-card-wide {
  grid-column: span 2;
}

.field,
.planner-form label,
.score-form label,
.community-form label {
  display: grid;
  gap: 0.45rem;
}

.score-form,
.planner-form,
.community-form {
  display: grid;
  gap: 1rem;
}

.score-checks,
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.score-checks label,
.checkbox-grid label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(30, 31, 38, 0.08);
  background: rgba(255, 255, 255, 0.66);
}

input[type="checkbox"] {
  width: auto;
  margin-top: 0.15rem;
}

.response-options,
.network-list,
.report-badges,
.thermometer {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.response-choice {
  border: 1px solid rgba(30, 31, 38, 0.08);
  border-radius: 16px;
  padding: 1rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.response-choice.good {
  border-color: rgba(46, 124, 122, 0.4);
  background: rgba(215, 238, 235, 0.9);
}

.response-choice.bad {
  border-color: rgba(216, 92, 61, 0.4);
  background: rgba(244, 215, 203, 0.9);
}

.network-item {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(30, 31, 38, 0.08);
}

.network-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
}

.dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  display: inline-block;
}

.dot.leader,
.legend-chip.leader::before {
  background: var(--accent);
}

.dot.bridge,
.legend-chip.bridge::before {
  background: var(--gold);
}

.dot.support,
.legend-chip.support::before {
  background: var(--teal);
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(30, 31, 38, 0.08);
}

.legend-chip::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.planner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tactics-section {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(30, 31, 38, 0.08);
}

.campaign-report {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 248, 241, 0.88), rgba(247, 239, 223, 0.82));
  border: 1px solid rgba(30, 31, 38, 0.08);
}

.report-badges {
  grid-auto-rows: min-content;
  min-width: 220px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(46, 124, 122, 0.12);
  color: var(--ink);
  border: 1px solid rgba(46, 124, 122, 0.15);
}

.badge.warn {
  background: rgba(216, 92, 61, 0.1);
  border-color: rgba(216, 92, 61, 0.12);
}

.thermo-step {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.thermo-pill {
  height: 14px;
  background: rgba(30, 31, 38, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.thermo-pill span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e5c553 0%, #d85c3d 100%);
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.matrix-cell {
  min-height: 110px;
  padding: 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(46, 124, 122, 0.12);
}

.matrix-cell.danger {
  border-color: rgba(216, 92, 61, 0.18);
  background: rgba(255, 243, 239, 0.85);
}

.quiz-card {
  padding: 1.5rem;
}

.quiz-question {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(30, 31, 38, 0.08);
}

.quiz-question + .quiz-question {
  margin-top: 1rem;
}

.quiz-question h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.quiz-options {
  display: grid;
  gap: 0.6rem;
}

.quiz-options label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(30, 31, 38, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.quiz-result {
  margin: 1rem 0 0;
  font-weight: 700;
}

.source-card {
  margin-top: 1rem;
}

@media (max-width: 1080px) {
  .hero-grid,
  .dashboard,
  .lesson-grid,
  .primer-grid,
  .case-grid,
  .tool-grid,
  .planner-grid,
  .score-checks,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .tool-card-wide {
    grid-column: auto;
  }

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

  .campaign-report {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .hero,
  .dashboard,
  .section {
    width: min(100%, calc(100% - 1rem));
  }

  .hero {
    padding-top: 0.7rem;
  }

  .topbar,
  .lesson-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .hero-panel,
  .dashboard-card,
  .lesson-card,
  .tool-card,
  .case-card,
  .quiz-card,
  .source-card,
  .primer-card {
    padding: 1.1rem;
  }

  .hero-copy h1,
  .section-heading h2,
  .block-head h3 {
    max-width: none;
  }

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

  .criteria-grid,
  .quete-grid,
  .roles-grid,
  .plan-pillars,
  .matrix-grid {
    grid-template-columns: 1fr;
  }

  .thermo-step {
    grid-template-columns: 1fr;
  }
}
