:root {
  --bg: #f5f8f2;
  --bg-2: #eef5ea;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #183126;
  --muted: #50665b;
  --line: rgba(24, 49, 38, 0.1);
  --green: #4f8f6b;
  --green-deep: #2f6948;
  --gold: #d7a34f;
  --lavender: #8570b5;
  --rose: #d97a8f;
  --blue: #7bb6d9;
  --shadow: 0 14px 32px rgba(28, 47, 36, 0.10);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(123, 182, 217, 0.16), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(215, 163, 79, 0.12), transparent 18%),
    radial-gradient(circle at 50% 90%, rgba(133, 112, 181, 0.08), transparent 24%),
    linear-gradient(180deg, #f6fbf4 0%, #eff7eb 42%, #edf2ea 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

button,
input,
select {
  font: inherit;
}

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

/* =========================
   TOP NAV
========================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(245, 248, 242, 0.76);
  border-bottom: 1px solid rgba(24, 49, 38, 0.08);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .01em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(79, 143, 107, 0.2),
    rgba(215, 163, 79, 0.25)
  );
  box-shadow: inset 0 0 0 1px rgba(79, 143, 107, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.94rem;
  padding: 9px 13px;
  border-radius: 999px;
  transition: .18s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  background: rgba(79, 143, 107, 0.09);
  color: var(--text);
  outline: none;
}

/* =========================
   PAGE LAYOUT
========================= */

.page {
  padding: 28px 0 70px;
}

.hero-grid,
.two-col,
.cards-grid,
.story-layout,
.footer-grid {
  display: grid;
  gap: 22px;
}

.hero-grid {
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
}

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

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

.story-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}

.footer-grid {
  grid-template-columns: 1.1fr .9fr;
}

/* =========================
   SURFACES
========================= */

.panel,
.card,
.story-panel,
.feeling-card,
.footer-panel,
.story-card,
.quote-banner {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.panel {
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.panel-glow::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -90px;
  background: radial-gradient(
    circle,
    rgba(79, 143, 107, 0.14),
    transparent 68%
  );
  pointer-events: none;
}

.card,
.story-card,
.footer-panel {
  padding: 20px;
}

.story-panel {
  padding: 24px;
  min-height: 480px;
}

/* =========================
   TYPOGRAPHY
========================= */

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(79, 143, 107, 0.1);
  border: 1px solid rgba(79, 143, 107, 0.14);
  color: var(--green-deep);
  font-size: .80rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: .02em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
  font-weight: 600;
  color: var(--text);
}

h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.18;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.24;
  margin-bottom: 12px;
}

h3 {
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  line-height: 1.35;
  margin-bottom: 10px;
}

h4 {
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 8px;
}

.lead,
.copy,
.card p,
.story-panel p,
.story-card p,
.footer-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  max-width: 62ch;
}

p {
  font-size: 0.98rem;
}

/* =========================
   BUTTONS / ACTIONS
========================= */

.hero-actions,
.pills,
.feelings-grid,
.choice-row,
.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: .18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--green), #66a97f);
  box-shadow: 0 10px 22px rgba(79, 143, 107, 0.22);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(24,49,38,.1);
}

.btn-soft {
  color: var(--green-deep);
  background: rgba(79,143,107,.09);
  border: 1px solid rgba(79,143,107,.12);
}

.pill {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(24,49,38,.08);
  color: var(--muted);
  font-size: .88rem;
}

/* =========================
   SECTIONS
========================= */

.section {
  margin-top: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

/* =========================
   COVER / IMAGES
========================= */

.cover-card {
  padding: 18px;
}

.cover-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 14px 28px rgba(0,0,0,.10);
}

.hope-image {
  float: right;
  width: 320px;
  height: auto;
  margin: 10px 0 20px 25px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

/* =========================
   QUOTES
========================= */

.quote-banner {
  padding: 22px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.9),
    rgba(245,252,247,.9)
  );
}

.quote-banner p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
}

.quote-banner strong {
  display: block;
  margin-bottom: 10px;
}

.quote-strip {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(24,49,38,.08);
  color: var(--green-deep);
  font-weight: 600;
  line-height: 1.6;
}

/* =========================
   FEELING CARDS
========================= */

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

.feeling-card {
  padding: 20px;
  text-decoration: none;
  transition: .2s ease;
  color: var(--text);
}

.feeling-card:hover,
.feeling-card:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.feeling-card .emoji {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.feeling-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.feeling-card.sad {
  background: linear-gradient(
    135deg,
    rgba(123,182,217,.18),
    rgba(255,255,255,.85)
  );
}

.feeling-card.confused {
  background: linear-gradient(
    135deg,
    rgba(133,112,181,.16),
    rgba(255,255,255,.85)
  );
}

.feeling-card.angry {
  background: linear-gradient(
    135deg,
    rgba(217,122,143,.15),
    rgba(255,255,255,.85)
  );
}

.feeling-card.curious {
  background: linear-gradient(
    135deg,
    rgba(215,163,79,.18),
    rgba(255,255,255,.85)
  );
}

.feeling-card.happy {
  background: linear-gradient(
    135deg,
    rgba(134,199,105,.18),
    rgba(255,255,255,.85)
  );
}

.feeling-card.blank {
  background: linear-gradient(
    135deg,
    rgba(170,170,180,.16),
    rgba(255,255,255,.85)
  );
}

.pill-link {
  text-decoration: none;
  cursor: pointer;
  transition: .2s ease;
}

.pill-link:hover,
.pill-link:focus-visible {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}

/* =========================
   FORMS
========================= */

.select,
.search {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(24,49,38,.1);
  background: rgba(255,255,255,.82);
  color: var(--text);
}

/* =========================
   STORY NAV
========================= */

.story-nav {
  display: grid;
  gap: 10px;
}

.story-nav button {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(24,49,38,.08);
  background: rgba(255,255,255,.82);
  color: var(--text);
  cursor: pointer;
  transition: .18s ease;
}

.story-nav button:hover,
.story-nav button.active {
  background: linear-gradient(
    135deg,
    rgba(79,143,107,.12),
    rgba(215,163,79,.12)
  );
  border-color: rgba(79,143,107,.2);
}

.story-nav strong {
  display: block;
  margin-bottom: 4px;
}

.story-nav span {
  color: var(--muted);
  font-size: .90rem;
}

/* =========================
   STORY CARDS
========================= */

.story-kicker {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(133,112,181,.12);
  color: #5c4984;
  font-size: .80rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.story-tags .pill {
  background: rgba(79,143,107,.08);
  color: var(--green-deep);
}

.story-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.story-card {
  min-height: 100%;
}

.story-card .meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* =========================
   CTA BAND
========================= */

.cta-band {
  padding: 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    rgba(79,143,107,.12),
    rgba(215,163,79,.14),
    rgba(133,112,181,.12)
  );
  border: 1px solid rgba(255,255,255,.56);
  box-shadow: var(--shadow);
}

/* =========================
   FOOTER
========================= */

.footer {
  padding: 0 0 38px;
}

.footer-panel small,
.small {
  color: var(--muted);
  line-height: 1.7;
}

/* =========================
   SPARKLES
========================= */

.sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .72;
}

.sparkle {
  position: absolute;
  border-radius: 50%;
  animation: drift linear infinite;
}

@keyframes drift {
  from {
    transform: translateY(0) scale(.8);
    opacity: .12;
  }

  45% {
    opacity: .7;
  }

  to {
    transform: translateY(-120px) scale(1.2);
    opacity: 0;
  }
}

.hidden {
  display: none !important;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .cards-grid,
  .story-layout,
  .footer-grid,
  .story-grid-page,
  .feelings-grid {
    grid-template-columns: 1fr;
  }

  .story-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .hope-image {
    float: none;
    display: block;
    margin: 20px auto;
    width: 80%;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max));
  }

  .nav {
    padding: 10px 0;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .page {
    padding-top: 22px;
  }

  .panel,
  .story-panel,
  .card,
  .footer-panel,
  .quote-banner,
  .cta-band {
    padding: 18px;
  }

  h1 {
    line-height: 1.2;
  }
}