:root {
  --bg: #f8f3df;
  --paper: #fffaf0;
  --surface: #fffaf0;
  --surface-strong: #ffffff;
  --ink: #10221f;
  --ink-2: #17342f;
  --text: #13231f;
  --muted: #5c625b;
  --faint: #85867d;
  --border: #e8ddc3;
  --border-soft: #efe6cf;
  --frog: #2dbf82;
  --frog-dark: #167a55;
  --heat: #f06f3e;
  --amber: #f6b24a;
  --brand: #f06f3e;
  --brand-dark: #b84629;
  --dark: #10221f;
  --dark-2: #17342f;
  --warm-silver: #e7dcc5;
  --radius: 22px;
  --shadow: rgba(16, 34, 31, 0.10) 0 22px 70px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(45,191,130,.18), transparent 28rem),
    radial-gradient(circle at 92% 4%, rgba(246,178,74,.20), transparent 24rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(240,111,62,.45); outline-offset: 3px; }
img { max-width: 100%; height: auto; display:block; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 12px; background: var(--dark); color: white; padding: 8px 12px; z-index: 20; }
.skip-link:focus { left: 12px; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(248,243,223,.86); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(232,221,195,.85); }
.nav-shell { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 238px; max-width: 58vw; height:auto; }
nav { display: flex; gap: 22px; align-items: center; font-size: 0.95rem; color: var(--muted); font-weight: 700; }
nav a { padding: 8px 0; border-bottom: 2px solid transparent; }
nav a.active { color: var(--ink); border-bottom-color: var(--heat); }
.hero { padding: 92px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: auto -10% -22% 45%; height: 460px; background: radial-gradient(circle, rgba(240,111,62,.28), transparent 62%); pointer-events: none; }
.hero-grid { display:grid; grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr); gap: 38px; align-items: center; }
.hero-grid.wide { grid-template-columns: minmax(0, 1fr) minmax(380px, .95fr); }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--brand-dark); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.eyebrow.live span { width: 10px; height:10px; border-radius:50%; background: var(--frog); box-shadow: 0 0 0 0 rgba(45,191,130,.55); animation: pulse 2.4s infinite; }
h1, h2, h3 { font-family: Fraunces, Georgia, 'Times New Roman', serif; line-height: 1.04; letter-spacing: -.045em; margin: 0; font-weight: 650; }
h1 { font-size: clamp(3.2rem, 7.2vw, 7.2rem); max-width: 1000px; }
h2 { font-size: clamp(2.1rem, 4.9vw, 4.2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.95rem); }
p { color: var(--muted); margin: 0; }
.lede { font-size: clamp(1.12rem, 1.75vw, 1.42rem); max-width: 790px; margin-top: 24px; }
.lede.sharper { color: var(--ink-2); font-weight: 650; }
.section-intro { max-width: 720px; margin-top: 14px; font-size: 1.06rem; }
.button-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 13px 19px; font-weight: 800; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 0 0 1px rgba(20,20,19,.02); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: rgba(16,34,31,.13) 0 16px 38px; }
.button.primary { background: linear-gradient(135deg, var(--heat), var(--amber)); color: var(--ink); border-color: transparent; }
.button.dark { background: var(--dark); color: var(--surface); border-color: var(--dark-2); }
.section { padding: 82px 0; }
.section.tight { padding: 52px 0; }
.section.dark { background: var(--dark); color: var(--surface); position: relative; overflow:hidden; }
.section.dark::before { content:''; position:absolute; inset:-20% -10% auto 40%; height:420px; background:radial-gradient(circle, rgba(240,111,62,.32), transparent 65%); }
.section.dark p, .section.dark .muted { color: var(--warm-silver); }
.section.dark .eyebrow { color: #f6b24a; }
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four, .card-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.align-start { align-items: start; }
.card { background: rgba(255,250,240,.86); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card.plain { box-shadow: none; background: rgba(255,250,240,.7); }
.card.dark-card { background: rgba(23,52,47,.92); border-color: rgba(255,250,240,.12); position:relative; z-index:1; }
.card h2, .post-card h2 { font-size: clamp(1.45rem, 3vw, 2.25rem); margin: 8px 0 12px; }
.card h3 { margin-bottom: 12px; }
.card-meta { display:flex; gap:10px; flex-wrap:wrap; color: var(--faint); font-size:.88rem; margin: 12px 0; }
.kicker { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .74rem; color: var(--brand-dark); letter-spacing: .06em; text-transform: uppercase; font-weight: 800; }
.callout { border-left: 4px solid var(--brand); padding: 18px 0 18px 24px; margin: 28px 0; }
.prose { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0; }
.prose h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 18px; }
.prose h2 { font-size: 2.2rem; margin: 54px 0 16px; }
.prose h3 { margin: 32px 0 10px; }
.prose p, .prose li { font-size: 1.08rem; color: var(--muted); }
.prose p + p { margin-top: 18px; }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.2rem; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-header { padding-bottom: 36px; border-bottom: 1px solid var(--border); margin-bottom: 34px; }
.article-footer { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 10px; }
.article-list { margin-top: 28px; }
.article-card { display: grid; gap: 10px; padding: 12px; border-radius: 16px; transition: background .18s ease, transform .18s ease; }
.article-card:hover { background: rgba(246,178,74,.16); transform: translateX(4px); }
.article-card + .article-card { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 6px; }
.check-list { padding-left: 1.1rem; color: var(--muted); }
.check-list li + li { margin-top: 8px; }
.check-list.light { color: var(--warm-silver); }
.site-footer { background: var(--dark); color: var(--surface); padding: 58px 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.site-footer p, .site-footer a { color: var(--warm-silver); display: block; margin-top: 10px; }
.site-footer h2 { font-family: Inter, system-ui, sans-serif; letter-spacing: .08em; font-size: .9rem; text-transform: uppercase; color: var(--surface); }
.footer-brand { color: var(--surface) !important; margin-top: 0 !important; }
.small { font-size: .9rem; }
.pill-list { display:flex; gap:10px; flex-wrap:wrap; margin-top: 20px; }
.pill { border:1px solid var(--border); border-radius:999px; padding:7px 11px; color:var(--muted); background:rgba(250,249,245,.7); font-size:.9rem; }
.stat-row { display:grid; grid-template-columns: repeat(4, 1fr); gap:14px; margin-top:34px; }
.stat { padding:20px; border-radius:16px; border:1px solid var(--border); background:rgba(250,249,245,.55); }
.stat strong { display:block; font-family:Fraunces, Georgia,serif; font-size:2rem; line-height:1; }
.hero-art-card { margin:0; background: rgba(16,34,31,.08); padding: 10px; border:1px solid rgba(16,34,31,.10); border-radius: 34px; box-shadow: rgba(16,34,31,.18) 0 30px 80px; transform: rotate(1deg); }
.hero-art-card img { border-radius: 26px; width:100%; }
.hero-art-card figcaption { padding: 12px 10px 4px; color: var(--muted); font-size:.92rem; font-weight:650; }
.section-heading-row { display:grid; grid-template-columns: 1.1fr .9fr; gap:34px; align-items:end; margin-bottom: 28px; }
.signal-dashboard { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:16px; }
.metric-card { min-height: 315px; display:flex; flex-direction:column; gap:12px; padding:24px; border-radius:24px; border:1px solid rgba(16,34,31,.10); background: linear-gradient(180deg, rgba(255,250,240,.96), rgba(255,250,240,.70)); box-shadow: var(--shadow); position:relative; overflow:hidden; transition: transform .2s ease, box-shadow .2s ease; }
.metric-card::before { content:''; position:absolute; left:0; right:0; bottom:0; height: calc(var(--i) * 12% + 18%); background: linear-gradient(180deg, rgba(45,191,130,.10), rgba(240,111,62,.22)); z-index:0; transform-origin:bottom; animation: rise 1.1s ease both; }
.metric-card > * { position:relative; z-index:1; }
.metric-card:hover { transform: translateY(-6px); box-shadow: rgba(16,34,31,.18) 0 26px 70px; }
.metric-card strong { font-family: Fraunces, Georgia, serif; font-size: clamp(2.45rem, 4.8vw, 4.5rem); line-height:.9; letter-spacing:-.06em; color: var(--ink); overflow-wrap:normal; white-space:nowrap; }
.metric-card h3 { font-size: 1.45rem; }
.source-link { margin-top:auto; font-weight:800; color:var(--frog-dark); }
.heat-card p + p { margin-top:16px; }
.heat-meter { height:22px; border-radius:999px; background:rgba(255,250,240,.12); margin-top:26px; overflow:hidden; border:1px solid rgba(255,250,240,.16); }
.heat-meter span { display:block; width:78%; height:100%; background:linear-gradient(90deg,var(--frog),var(--amber),var(--heat)); border-radius:999px; animation: temperature 3.8s ease-in-out infinite alternate; }
.now-list { display:grid; gap:14px; }
.now-item { display:grid; grid-template-columns: 62px 1fr; gap:14px; align-items:start; padding:18px; border-radius:18px; background:rgba(255,250,240,.72); border:1px solid var(--border-soft); }
.now-item span { font-family:'JetBrains Mono', monospace; color:var(--heat); font-weight:800; }
.now-item p { color:var(--ink-2); font-weight:650; }
.image-card { overflow:hidden; padding:0; }
.image-card img { width:100%; border-bottom:1px solid var(--border); background:var(--ink); }
.image-card .eyebrow, .image-card h2, .image-card p { margin-left:26px; margin-right:26px; }
.image-card .eyebrow { margin-top:24px; }
.image-card p { margin-top:14px; margin-bottom:26px; }
.path-card { transition: transform .18s ease, background .18s ease; border-color: rgba(16,34,31,.10); }
.path-card:hover { transform: translateY(-5px); background: rgba(45,191,130,.10); }
.publication-feature { background: linear-gradient(135deg, rgba(255,250,240,.95), rgba(246,178,74,.16)); }
.latest-card { background: rgba(255,250,240,.72); }
.book-showcase { margin:0; justify-self:center; perspective: 900px; }
.book-showcase img { width:min(360px, 78vw); border-radius:24px; box-shadow: rgba(16,34,31,.35) 26px 34px 80px; transform: rotateY(-10deg) rotateZ(1.5deg); border:1px solid rgba(255,250,240,.28); }
.gemini-hero-card { transform: rotate(.6deg); background: linear-gradient(135deg, rgba(255,250,240,.72), rgba(45,191,130,.12)); }
.gemini-hero-card img { aspect-ratio: 1 / 1; object-fit: cover; }
.footer-brand { background: rgba(255,250,240,.94); padding: 8px 12px; border-radius: 16px; width: fit-content; }
.trend-lab { border: 1px solid rgba(16,34,31,.10); border-radius: 30px; padding: 18px; background: rgba(255,250,240,.72); box-shadow: var(--shadow); }
.trend-tabs { display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 16px; }
.trend-tabs button { border:1px solid var(--border); border-radius:999px; background:rgba(255,250,240,.88); color:var(--muted); padding:10px 14px; font-weight:800; cursor:pointer; transition: transform .18s ease, background .18s ease, color .18s ease; }
.trend-tabs button:hover { transform: translateY(-2px); }
.trend-tabs button.active { background: var(--dark); color: var(--surface); border-color: var(--dark); }
.trend-panel { display:none; grid-template-columns: minmax(0,.95fr) minmax(320px,1.05fr); gap:28px; align-items:stretch; padding: 24px; border-radius: 24px; background: linear-gradient(135deg, rgba(255,250,240,.96), rgba(246,178,74,.13)); border:1px solid var(--border-soft); }
.trend-panel.active { display:grid; }
.trend-copy { display:flex; flex-direction:column; gap:14px; }
.trend-copy h3 { font-size: clamp(1.7rem, 3.4vw, 3.1rem); }
.animated-bars { min-height: 310px; display:flex; align-items:end; justify-content:center; gap: clamp(16px, 4vw, 34px); padding: 22px; border-radius: 22px; background: radial-gradient(circle at 50% 100%, rgba(240,111,62,.20), transparent 55%), rgba(16,34,31,.06); border:1px solid rgba(16,34,31,.08); }
.trend-bar-wrap { display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:10px; height: 270px; min-width: 74px; }
.trend-bar { position:relative; width: min(78px, 16vw); height: var(--h); min-height: 18px; border-radius: 18px 18px 8px 8px; background: linear-gradient(180deg, var(--frog), var(--amber) 56%, var(--heat)); box-shadow: rgba(16,34,31,.18) 0 18px 34px; animation: barGrow 1s cubic-bezier(.16,1,.3,1) both; animation-delay: var(--delay); transform-origin: bottom; }
.trend-bar::after { content:''; position:absolute; inset: 8px 8px auto 8px; height: 35%; border-radius: 999px; background: rgba(255,250,240,.28); }
.trend-bar span { position:absolute; left:50%; top:-34px; transform:translateX(-50%); white-space:nowrap; font-family: Fraunces, Georgia, serif; font-size: clamp(1.2rem, 2.8vw, 2rem); font-weight: 800; color: var(--ink); }
.trend-bar-wrap strong { font-family:'JetBrains Mono', monospace; color: var(--muted); font-size:.88rem; }
.visual-atlas { display:grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.atlas-card { grid-column: span 2; transition: transform .2s ease, box-shadow .2s ease; }
.atlas-card:nth-child(1), .atlas-card:nth-child(2) { grid-column: span 3; }
.atlas-card:hover { transform: translateY(-6px); box-shadow: rgba(16,34,31,.18) 0 26px 70px; }
.atlas-card img { aspect-ratio: 1 / 1; object-fit: cover; }
.question-map { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.question-map button { text-align:left; border:1px solid var(--border-soft); background:rgba(255,250,240,.78); padding: 20px; border-radius: 20px; cursor:pointer; box-shadow: rgba(16,34,31,.06) 0 12px 34px; transition: transform .18s ease, background .18s ease; }
.question-map button:hover, .question-map button:focus-visible { transform: translateY(-4px) rotate(-.4deg); background: linear-gradient(135deg, rgba(45,191,130,.14), rgba(246,178,74,.22)); }
.question-map strong { display:block; font-family: Fraunces, Georgia, serif; font-size:1.45rem; line-height:1.05; color:var(--ink); margin-bottom:8px; }
.question-map span { color: var(--muted); }
@keyframes barGrow { from { transform: scaleY(.08); opacity:.3; } to { transform: scaleY(1); opacity:1; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(45,191,130,0); } 100% { box-shadow: 0 0 0 0 rgba(45,191,130,0); } }
@keyframes rise { from { transform: scaleY(.15); opacity:.2;} to { transform: scaleY(1); opacity:1;} }
@keyframes temperature { from { width:62%; } to { width:86%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior:auto !important; } }
@media (max-width: 1100px) { .visual-atlas { grid-template-columns: repeat(2, minmax(0, 1fr)); } .atlas-card, .atlas-card:nth-child(1), .atlas-card:nth-child(2) { grid-column: auto; } }
@media (max-width: 960px) { .signal-dashboard { grid-template-columns: repeat(2, minmax(0,1fr)); } .section-heading-row { grid-template-columns:1fr; } .trend-panel { grid-template-columns:1fr; } }
@media (max-width: 820px) {
  .nav-shell { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  nav { gap: 14px; flex-wrap: wrap; }
  .grid.two, .grid.three, .grid.four, .footer-grid, .stat-row, .hero-grid, .hero-grid.wide { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .container, .prose { width: min(100% - 28px, 1120px); }
  .hero-art-card { transform:none; }
  .visual-atlas, .question-map { grid-template-columns: 1fr; }
  .animated-bars { overflow-x:auto; justify-content:flex-start; }
}
@media (max-width: 560px) { .signal-dashboard { grid-template-columns: 1fr; } .brand img { width:190px; } h1 { font-size: clamp(2.75rem, 15vw, 4.4rem); } .trend-panel { padding:16px; } .trend-bar-wrap { min-width:62px; } }
