:root {
  --ink: #172016;
  --muted: #657064;
  --cream: #f5efe1;
  --paper: #fff9ee;
  --moss: #314c2e;
  --fern: #587c3a;
  --gold: #d7a84a;
  --rose: #ad6a53;
  --shadow: 0 24px 80px rgba(28, 40, 23, .18);
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(215, 168, 74, .28), transparent 34rem),
    radial-gradient(circle at 85% 10%, rgba(88, 124, 58, .22), transparent 28rem),
    linear-gradient(180deg, #fbf4e6 0%, #efe4cd 48%, #162015 100%);
  line-height: 1.55;
}
a { color: inherit; }
.hero {
  min-height: 94vh;
  padding: 28px clamp(18px, 5vw, 72px) 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 8% -10% auto auto;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle, rgba(49, 76, 46, .22), transparent 67%);
  border-radius: 999px;
  pointer-events: none;
}
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--gold);
  box-shadow: 0 12px 30px rgba(49, 76, 46, .25);
}
.nav-links { display: flex; gap: clamp(12px, 2vw, 28px); color: var(--muted); font-size: .95rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--moss); }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .58fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(60px, 9vw, 120px);
}
.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 800;
  color: var(--rose);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 980px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 7.9rem);
  line-height: .9;
  letter-spacing: -.07em;
  margin-bottom: 26px;
}
h2 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.045em;
  margin-bottom: 18px;
}
h3 { font-size: 1.35rem; margin-bottom: 10px; }
.lede { max-width: 760px; color: #485344; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  border: 1px solid rgba(23, 32, 22, .18);
  border-radius: 999px;
  padding: 13px 20px;
  text-decoration: none;
  font-weight: 800;
}
.button.primary { background: var(--moss); color: #fff9ef; box-shadow: 0 18px 45px rgba(49, 76, 46, .28); }
.button.ghost { background: rgba(255, 249, 238, .48); backdrop-filter: blur(16px); }
.status-card, .glass-card, .blend-card, .safety article {
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255, 249, 238, .67);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.status-card { padding: 34px; position: relative; overflow: hidden; }
.orb { width: 124px; height: 124px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff4bb, var(--gold) 42%, var(--fern)); box-shadow: inset -18px -20px 40px rgba(49,76,46,.34), 0 30px 90px rgba(215,168,74,.45); margin-bottom: 28px; }
.status-label { color: var(--rose); text-transform: uppercase; font-weight: 900; letter-spacing: .16em; font-size: .76rem; }
.status-card ul { padding-left: 20px; color: #4d594a; }
main { background: rgba(255, 249, 238, .9); border-radius: 48px 48px 0 0; padding: clamp(34px, 6vw, 88px) clamp(18px, 5vw, 72px); }
.section { max-width: 1240px; margin: 0 auto clamp(64px, 9vw, 132px); }
.section-heading { max-width: 720px; margin-bottom: 28px; }
.section-heading.wide { max-width: 920px; }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.intel-grid, .safety-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.glass-card, .safety article { padding: 26px; box-shadow: 0 18px 50px rgba(28, 40, 23, .1); }
.pill, .tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(88, 124, 58, .13);
  color: var(--moss);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.split { display: grid; grid-template-columns: .82fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: start; border-top: 1px solid rgba(23,32,22,.12); padding-top: 48px; }
.split-copy { font-size: clamp(1.15rem, 2vw, 1.55rem); color: #42503f; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.filter { cursor: pointer; border: 1px solid rgba(49,76,46,.18); background: #fff9ee; color: var(--moss); border-radius: 999px; padding: 10px 15px; font-weight: 850; }
.filter.active, .filter:hover { background: var(--moss); color: #fff9ee; }
.blend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.blend-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 50px rgba(28, 40, 23, .11); }
.blend-topline { display: flex; flex-wrap: wrap; gap: 8px; }
.tag.muted { background: rgba(173, 106, 83, .12); color: var(--rose); }
.blend-card h3 { font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.04em; margin-bottom: -8px; }
.subtitle { color: var(--rose); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.target { font-size: 1.05rem; color: #445040; }
.mini-section { padding-top: 12px; border-top: 1px solid rgba(23,32,22,.1); }
.mini-section h4 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
ul { margin: 0; padding-left: 18px; }
.risk li::marker { color: var(--rose); }
.card-foot { margin-top: auto; display: grid; gap: 8px; color: var(--muted); font-size: .87rem; }
.card-foot span:first-child { font-weight: 900; color: var(--moss); }
.safety { background: linear-gradient(135deg, rgba(49,76,46,.95), rgba(20,32,19,.98)); color: #fbf4e6; padding: clamp(28px, 5vw, 62px); border-radius: 42px; box-shadow: var(--shadow); }
.safety .eyebrow { color: #f0bd64; }
.safety article { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #ede4d4; box-shadow: none; }
.safety h3 { color: #fff9ee; }
.evidence-list { display: grid; gap: 12px; }
.evidence-list a { padding: 18px 20px; background: #fff9ee; border: 1px solid rgba(23,32,22,.1); border-radius: 18px; text-decoration: none; color: #40503d; box-shadow: 0 12px 32px rgba(28,40,23,.07); }
.evidence-list a:hover { transform: translateY(-1px); border-color: rgba(88,124,58,.4); }
.timeline { counter-reset: step; display: grid; gap: 16px; padding: 0; list-style: none; }
.timeline li { background: #fff9ee; border-left: 4px solid var(--gold); border-radius: 18px; padding: 20px; box-shadow: 0 12px 32px rgba(28,40,23,.07); }
.footer { background: #162015; color: rgba(255,249,238,.75); display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(18px, 5vw, 72px); }
.footer p { margin: 0; max-width: 780px; }
.footer a { color: #f0bd64; text-decoration: none; font-weight: 800; white-space: nowrap; }
@media (max-width: 880px) {
  .hero-grid, .split, .intel-grid, .safety-grid, .blend-grid { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; }
  .nav-links { display: none; }
  .hero { min-height: auto; }
  .footer { flex-direction: column; }
}
@media (prefers-reduced-motion: no-preference) {
  .blend-card, .evidence-list a, .button, .filter { transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }
  .blend-card:hover { transform: translateY(-4px); }
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  padding: 8px 12px;
  margin: 0 0 14px;
  background: rgba(88, 124, 58, .12);
  color: var(--moss);
  font-size: .82rem;
  font-weight: 900;
}
.live-indicator span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #39a96b;
  box-shadow: 0 0 0 7px rgba(57, 169, 107, .14);
}
.pulse {
  padding: clamp(28px, 5vw, 62px);
  border-radius: 42px;
  background:
    radial-gradient(circle at 10% 20%, rgba(215,168,74,.22), transparent 32rem),
    linear-gradient(135deg, rgba(255,249,238,.96), rgba(239,228,205,.8));
  border: 1px solid rgba(23,32,22,.08);
  box-shadow: var(--shadow);
}
.pulse-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}
.pulse-meta span {
  display: inline-flex;
  border: 1px solid rgba(49,76,46,.14);
  background: rgba(255,255,255,.55);
  color: var(--moss);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 850;
  font-size: .86rem;
}
.pulse-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}
.pulse-card {
  min-height: 390px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,249,238,.82);
  border: 1px solid rgba(23,32,22,.09);
  box-shadow: 0 16px 44px rgba(28,40,23,.1);
}
.pulse-card h3 { font-size: 1.22rem; line-height: 1.12; }
.pulse-card p { color: #445040; }
.pulse-card .source-line { color: var(--muted); font-size: .85rem; margin-top: auto; }
.pulse-card a { color: var(--moss); font-weight: 900; text-decoration: none; }
.remedy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.remedy-card {
  padding: 24px;
  border-radius: 28px;
  background: #fff9ee;
  border: 1px solid rgba(23,32,22,.09);
  box-shadow: 0 16px 44px rgba(28,40,23,.09);
}
.remedy-card h3 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -.04em;
}
.remedy-herbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 18px;
}
.remedy-herbs span {
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(215,168,74,.16);
  color: #6d4c11;
  font-size: .76rem;
  font-weight: 900;
}
.remedy-detail {
  display: grid;
  gap: 10px;
  color: #465342;
}
.remedy-detail strong { color: var(--moss); }
.watch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.watch-list span {
  border-radius: 999px;
  padding: 11px 14px;
  background: rgba(49,76,46,.08);
  border: 1px solid rgba(49,76,46,.12);
  color: var(--moss);
  font-weight: 850;
}
@media (max-width: 880px) {
  .remedy-grid { grid-template-columns: 1fr; }
  .pulse-grid { grid-template-columns: repeat(5, 82vw); }
}
.source-radar {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.source-card {
  min-height: 180px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,249,238,.72);
  border: 1px solid rgba(23,32,22,.08);
  box-shadow: 0 12px 32px rgba(28,40,23,.08);
}
.source-card h3 { font-size: 1rem; margin: 10px 0 8px; }
.source-card p { color: #445040; font-size: .92rem; }
.lab {
  padding: clamp(28px, 5vw, 62px);
  border-radius: 42px;
  background:
    radial-gradient(circle at 88% 18%, rgba(173,106,83,.18), transparent 28rem),
    linear-gradient(135deg, rgba(22,32,21,.98), rgba(49,76,46,.94));
  color: #fff9ee;
  box-shadow: var(--shadow);
}
.lab .eyebrow { color: #f0bd64; }
.lab .section-heading p { color: rgba(255,249,238,.72); }
.lab-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
}
.chat-panel,
.prompt-card {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
}
.chat-panel { overflow: hidden; }
.chat-log {
  display: grid;
  gap: 14px;
  min-height: 420px;
  max-height: 520px;
  overflow-y: auto;
  padding: 22px;
}
.chat-message {
  max-width: 86%;
  padding: 15px 17px;
  border-radius: 20px;
  color: #182016;
  background: #fff9ee;
}
.chat-message.user {
  justify-self: end;
  background: #f0bd64;
}
.chat-message.bot { justify-self: start; }
.chat-message p { margin: 0 0 10px; }
.chat-message p:last-child { margin-bottom: 0; }
.chat-warning {
  border-top: 1px solid rgba(23,32,22,.12);
  padding-top: 10px;
  color: #6d3e2d;
}
.inline-jump {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  margin: 2px;
  background: rgba(88,124,58,.14);
  color: var(--moss);
  font-weight: 900;
}
.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  background: rgba(0,0,0,.12);
  border-top: 1px solid rgba(255,255,255,.12);
}
.chat-form input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 13px 15px;
  background: rgba(255,249,238,.95);
  color: var(--ink);
  font: inherit;
}
.chat-form button,
.prompt-card button {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 12px 15px;
  background: #f0bd64;
  color: #172016;
  font-weight: 900;
}
.prompt-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prompt-card h3 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.8rem;
}
.prompt-card button {
  text-align: left;
  background: rgba(255,249,238,.94);
}
.prompt-card p { color: rgba(255,249,238,.72); font-size: .92rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 880px) {
  .source-radar { grid-template-columns: repeat(5, 78vw); }
  .lab-shell { grid-template-columns: 1fr; }
  .chat-message { max-width: 100%; }
  .chat-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .source-card, .prompt-card button, .inline-jump { transition: transform .18s ease, background .18s ease; }
  .source-card:hover, .prompt-card button:hover, .inline-jump:hover { transform: translateY(-2px); }
}
.chat-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.12);
  color: rgba(255,249,238,.78);
  font-size: .86rem;
  font-weight: 850;
}
.chat-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f0bd64;
  box-shadow: 0 0 0 6px rgba(240,189,100,.12);
}
.chat-status[data-mode="online"]::before { background: #39a96b; box-shadow: 0 0 0 6px rgba(57,169,107,.14); }
.chat-status[data-mode="fallback"]::before { background: #f0bd64; }
.chat-status[data-mode="thinking"]::before { background: #9fd6ff; box-shadow: 0 0 0 6px rgba(159,214,255,.14); }
.chat-message.loading { opacity: .78; }
.chat-message.loading p::after {
  content: "";
  display: inline-block;
  width: 1.1em;
  text-align: left;
  animation: botanicaDots 1.1s steps(4, end) infinite;
}
@keyframes botanicaDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}
.articles {
  padding: clamp(28px, 5vw, 62px);
  border-radius: 42px;
  background:
    radial-gradient(circle at 12% 0%, rgba(215,168,74,.18), transparent 30rem),
    linear-gradient(135deg, rgba(255,249,238,.98), rgba(246,238,220,.92));
  border: 1px solid rgba(23,32,22,.08);
  box-shadow: var(--shadow);
}
.article-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}
.article-filter {
  cursor: pointer;
  border: 1px solid rgba(49,76,46,.18);
  background: rgba(255,255,255,.58);
  color: var(--moss);
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 900;
}
.article-filter.active,
.article-filter:hover {
  background: var(--moss);
  color: #fff9ee;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.article-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
  padding: 24px;
  border-radius: 28px;
  background: #fff9ee;
  border: 1px solid rgba(23,32,22,.09);
  box-shadow: 0 16px 44px rgba(28,40,23,.09);
  outline: none;
}
.article-card:focus-visible {
  box-shadow: 0 0 0 4px rgba(215,168,74,.4), 0 16px 44px rgba(28,40,23,.09);
}
.article-card h3 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.article-signal {
  color: #465342;
  font-size: .98rem;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}
.article-tags span {
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(215,168,74,.16);
  color: #6d4c11;
  font-size: .74rem;
  font-weight: 900;
}
.article-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(23,32,22,.1);
  color: var(--muted);
  font-size: .88rem;
}
.article-foot strong { color: var(--moss); }
.article-modal[aria-hidden="true"] { display: none; }
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.article-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,22,14,.66);
  backdrop-filter: blur(10px);
}
.article-modal-card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(88vh, 940px);
  overflow-y: auto;
  border-radius: 34px;
  padding: clamp(24px, 5vw, 54px);
  background: #fff9ee;
  color: var(--ink);
  box-shadow: 0 30px 120px rgba(0,0,0,.34);
  outline: none;
}
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--moss);
  color: #fff9ee;
  font-size: 1.5rem;
  line-height: 1;
}
.article-modal-card h2 {
  max-width: 820px;
  margin-top: 16px;
}
.modal-date {
  color: var(--rose);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}
.modal-summary {
  font-size: 1.18rem;
  color: #42503f;
}
.modal-section {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(23,32,22,.12);
}
.modal-section h3 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.8rem;
}
.two-col-modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.citation-list {
  display: grid;
  gap: 10px;
}
.citation-list a {
  display: grid;
  gap: 4px;
  padding: 15px 16px;
  border-radius: 18px;
  text-decoration: none;
  background: rgba(49,76,46,.07);
  border: 1px solid rgba(49,76,46,.12);
}
.citation-list a span {
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 900;
}
.citation-list a strong { color: var(--moss); }
.empty-state {
  padding: 20px;
  border-radius: 18px;
  background: #fff9ee;
  color: var(--muted);
}
body.modal-open { overflow: hidden; }
@media (max-width: 1020px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .article-grid, .two-col-modal { grid-template-columns: 1fr; }
  .article-card { min-height: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .article-card, .article-filter, .citation-list a { transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
  .article-card:hover, .citation-list a:hover { transform: translateY(-3px); }
}
