:root {
  color-scheme: light;
  --bg: #f4f1e8;
  --panel: rgba(255, 252, 244, 0.88);
  --panel-strong: #fffaf0;
  --text: #1f1a17;
  --muted: #5d524b;
  --line: rgba(67, 51, 38, 0.16);
  --accent: #7d3c98;
  --accent-strong: #5b2c6f;
  --shadow: 0 24px 60px rgba(50, 31, 14, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  background:
    radial-gradient(circle at top left, rgba(125, 60, 152, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(46, 134, 193, 0.12), transparent 28%),
    linear-gradient(180deg, #fbf8ef 0%, var(--bg) 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 0 4px;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand-icon,
.card-symbol,
.section-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent-strong);
}

.brand-icon {
  width: 28px;
  height: 28px;
  background: rgba(125, 60, 152, 0.12);
  border: 1px solid rgba(125, 60, 152, 0.18);
  font-size: 0.88rem;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.topbar-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.hero,
.panel {
  backdrop-filter: blur(14px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 28px;
  padding: 48px;
  margin-bottom: 28px;
}

.eyebrow,
.section-label,
.card-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin: 0 0 14px;
}

h1,
h2,
h3,
p,
ol {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 0.95;
  margin-bottom: 20px;
}

.hero-text {
  max-width: 62ch;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-support {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.hero-panel {
  position: relative;
  align-self: stretch;
  background: linear-gradient(180deg, rgba(125, 60, 152, 0.08), rgba(255, 255, 255, 0.84));
  border: 1px solid rgba(67, 51, 38, 0.12);
  border-radius: var(--radius-md);
  padding: 24px;
}

.panel-ornament {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.panel-ornament span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(67, 51, 38, 0.1);
  color: var(--accent-strong);
  font-weight: 700;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.hero-metrics article {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(67, 51, 38, 0.1);
  border-radius: 16px;
  padding: 16px 14px;
}

.hero-metrics strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.hero-metrics span,
.hero-note {
  color: var(--muted);
  line-height: 1.55;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.hero-strip article {
  background: rgba(255, 252, 244, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.hero-strip h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.section-symbol {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(67, 51, 38, 0.12);
  font-size: 0.95rem;
}

.hero-strip p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 700;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(67, 51, 38, 0.28);
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffefb;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button-small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.95rem;
}

.panel {
  padding: 34px;
  margin-bottom: 24px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0;
}

.section-text {
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 12px;
  margin-bottom: 0;
}

.filter-tools {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.search-field {
  display: grid;
  gap: 8px;
}

.search-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.search-field input {
  min-height: 44px;
  width: 100%;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(67, 51, 38, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font: inherit;
}

.search-field input:focus {
  outline: 2px solid rgba(125, 60, 152, 0.18);
  outline-offset: 2px;
  border-color: rgba(125, 60, 152, 0.24);
}

.filter-summary,
.filter-empty {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(67, 51, 38, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(67, 51, 38, 0.24);
}

.filter-chip.is-active {
  background: rgba(125, 60, 152, 0.12);
  color: var(--accent-strong);
  border-color: rgba(125, 60, 152, 0.22);
}

.filter-chip-secondary {
  margin-left: auto;
}

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

.journey-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 250, 240, 0.94));
  border: 1px solid rgba(67, 51, 38, 0.12);
  border-radius: var(--radius-md);
  padding: 24px;
}

.journey-card h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
}

.presentation-panel {
  align-items: center;
}

.presentation-note {
  margin-top: 16px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.presentation-note-resources {
  max-width: 64ch;
}

.presentation-resource-link {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(125, 60, 152, 0.4);
}

.presentation-resource-link:hover,
.presentation-resource-link:focus-visible {
  color: var(--accent);
}

.presentation-resource-source {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

.presentation-podcast {
  margin-top: 16px;
  max-width: min(100%, 440px);
}

.presentation-podcast-label {
  margin: 0 0 8px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.presentation-audio {
  display: block;
  width: 100%;
  vertical-align: middle;
}

.presentation-qr-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 240, 0.98));
  border: 1px solid rgba(67, 51, 38, 0.12);
  border-radius: var(--radius-md);
  padding: 22px;
}

.presentation-qr {
  width: min(100%, 280px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(67, 51, 38, 0.12);
  padding: 10px;
}

.presentation-qr-card p {
  margin-bottom: 0;
}

.presentation-qr-card p:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.path-list p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.path-list p:last-child {
  margin-bottom: 0;
}

.summary-grid,
.card-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.summary-card,
.card,
.callout {
  background: var(--panel-strong);
  border: 1px solid rgba(67, 51, 38, 0.12);
  border-radius: var(--radius-md);
  padding: 22px;
}

.summary-card h3,
.card h3,
.callout h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-heading h3 {
  margin-bottom: 0;
}

.card-symbol {
  min-width: 34px;
  width: 34px;
  height: 34px;
  background: rgba(125, 60, 152, 0.1);
  border: 1px solid rgba(125, 60, 152, 0.16);
  font-size: 0.92rem;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: rgba(125, 60, 152, 0.1);
  border: 1px solid rgba(125, 60, 152, 0.16);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.card-focus {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 10px;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(50, 31, 14, 0.08);
  border-color: rgba(67, 51, 38, 0.2);
}

.summary-card p,
.card p,
.callout p,
.steps li {
  color: var(--muted);
  line-height: 1.65;
}

.split-panel {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 20px;
  align-items: start;
}

.steps {
  padding-left: 20px;
  margin-bottom: 0;
}

.steps li + li {
  margin-top: 10px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 4px 0;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 0;
}

.site-footer a {
  text-decoration: none;
  font-weight: 700;
}

.link-list {
  display: grid;
  gap: 14px;
}

.link-list a {
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero,
  .filter-tools,
  .start-grid,
  .summary-grid,
  .hero-strip,
  .compact-grid,
  .card-grid,
  .split-panel {
    grid-template-columns: 1fr;
  }

  .hero,
  .panel {
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 18px;
  }

  h1 {
    max-width: none;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
  }

  .topbar-links {
    gap: 10px;
  }
}
