:root {
  --blush: #f7e9e4;
  --petal: #f3d5cb;
  --peach: #e8a090;
  --peach-deep: #d48474;
  --sage: #7d9b8a;
  --sage-deep: #5f7f6e;
  --ink: #3d342f;
  --muted: #7a6d66;
  --cream: #fffaf7;
  --mist: #f0ebe6;
  --line: rgba(61, 52, 47, 0.08);
  --shadow: 0 18px 50px rgba(90, 60, 50, 0.08);
  --radius: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: var(--blush);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 10% -10%, #ffe2d6 0%, transparent 60%),
    radial-gradient(800px 480px at 100% 0%, #dce8df 0%, transparent 55%),
    linear-gradient(180deg, #f9efea 0%, #f4ebe4 45%, #efe6df 100%);
}

.shell {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.hero {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--sage-deep);
}

.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0.4rem 0 0.6rem;
}

.lede {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 1rem;
  line-height: 1.5;
  font-weight: 300;
}

.mode-pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(125, 155, 138, 0.15);
  color: var(--sage-deep);
  font-size: 0.85rem;
  font-weight: 500;
}

.money {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.money article,
.cardish,
.chart-panel {
  background: rgba(255, 250, 247, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
}

.money h2,
.cardish h2,
.chart-panel h2 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.figure {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.2rem;
  margin: 0.45rem 0 0;
}
.figure.sage { color: var(--sage-deep); }
.figure.small { font-size: 1.25rem; line-height: 1.35; }

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
}
#lollipop {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdfb, #f7f1ec);
}

.tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tabs button {
  border: none;
  background: var(--mist);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  cursor: pointer;
}
.tabs button.active {
  background: var(--sage);
  color: white;
}

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

.equal-panels .panel {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.equal-panels .scroll-feed {
  flex: 1;
}

.cardish,
.chart-panel,
.learning-banner {
  margin-bottom: 1.25rem;
}

.plain, .feed {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
}
.plain li, .feed li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
  font-size: 0.95rem;
}
.feed li:last-child { border-bottom: none; }

.scroll-feed {
  max-height: 17.5rem;
  overflow-y: auto;
  padding-right: 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--peach) transparent;
}
.scroll-feed.short {
  max-height: 11rem;
}
.stories.scroll-feed {
  max-height: 28rem;
  margin-top: 0.85rem;
}
.scroll-feed::-webkit-scrollbar { width: 8px; }
.scroll-feed::-webkit-scrollbar-thumb {
  background: var(--peach);
  border-radius: 999px;
}

.feel {
  text-transform: capitalize;
  color: var(--sage-deep);
}
.feel-detail {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 300;
}
.conf-line { margin-top: 0; }
.learning-text {
  margin: 0.55rem 0 0;
  line-height: 1.5;
  font-weight: 300;
}

.muted { color: var(--muted); font-size: 0.85rem; }
.tag-sage { color: var(--sage-deep); font-weight: 500; }
.tag-peach { color: var(--peach-deep); font-weight: 500; }

.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
button {
  font: inherit;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  background: var(--sage);
  color: white;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
button:hover { transform: translateY(-1px); background: var(--sage-deep); }
button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(61, 52, 47, 0.15);
}
button.ghost:hover { background: var(--mist); }
.status { min-height: 1.2rem; color: var(--muted); font-size: 0.9rem; }

.stories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.85rem;
}
.story {
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdfb, #f8f1ec);
  border: 1px solid var(--line);
}
.story h3 {
  margin: 0 0 0.45rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--sage-deep);
}
.story.kind-close h3 { color: var(--ink); }
.story.kind-skip h3 { color: var(--peach-deep); }
.story.kind-surprise h3 { color: var(--peach-deep); }
.story p {
  margin: 0;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 300;
}
.story .meta {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.story .sources {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.story .sources a {
  color: var(--sage-deep);
  text-decoration: none;
  font-size: 0.88rem;
}
.story .sources a:hover { text-decoration: underline; }

footer {
  text-align: center;
  color: var(--muted);
  margin-top: 2rem;
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .money, .two { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .money, .two { grid-template-columns: 1fr; }
  .brand { font-size: 2.1rem; }
}
