/* ============================================================
   The Clean Cooking Transition — informational brief
   Aesthetic: institutional economics / consulting report
   ============================================================ */

:root {
  --ink:        #10243b;   /* deep navy — headings, text */
  --ink-soft:   #2c4258;
  --slate:      #5a6b7b;   /* secondary text */
  --slate-200:  #8a99a6;
  --line:       #dcd7cd;   /* hairlines on warm paper */
  --paper:      #f7f4ee;   /* warm off-white background */
  --paper-2:    #fffdf9;   /* card surface */
  --ember:      #c0712a;   /* primary accent — warm, thematic */
  --ember-soft: #e0a85e;
  --teal:       #2f6b6b;   /* secondary data accent */
  --teal-soft:  #6fa3a3;
  --gold:       #b08828;
  --rule:       #c9bfae;

  --serif: "Source Serif 4", "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;

  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(16,36,59,.05), 0 8px 28px rgba(16,36,59,.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.15; }

a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,238,.88);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: .2px; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.brand small { font-family: var(--sans); font-weight: 500; color: var(--slate); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--ember); text-decoration: none; }
@media (max-width: 760px){ .nav { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.eyebrow {
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ember); margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content:""; width: 28px; height: 2px; background: var(--ember); display:inline-block; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -.5px; margin: 0 0 22px; max-width: 17ch; }
.hero .lede { font-size: clamp(17px, 2.1vw, 21px); color: var(--ink-soft); max-width: 60ch; margin: 0 0 30px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--slate); border-top: 1px solid var(--line); padding-top: 18px; }
.hero .meta b { color: var(--ink); font-weight: 600; }

/* ---------- Stat band ---------- */
.statband { background: var(--ink); color: #eaf0f5; padding: 46px 0; }
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat .num { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); font-weight: 600; color: #fff; line-height: 1; }
.stat .num .u { font-size: .5em; color: var(--ember-soft); margin-left: 3px; font-weight: 600; }
.stat .lab { font-size: 13.5px; color: #aebccb; margin-top: 10px; line-height: 1.45; }
.stat .src { font-size: 11.5px; color: #7f93a6; margin-top: 6px; }
@media (max-width: 820px){ .statgrid { grid-template-columns: repeat(2,1fr); gap: 30px 24px; } }
@media (max-width: 440px){ .statgrid { grid-template-columns: 1fr; } }

/* ---------- Section scaffolding ---------- */
section.block { padding: 76px 0; border-bottom: 1px solid var(--line); }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 14px; }
.block h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 18px; letter-spacing: -.3px; }
.block .intro { font-size: 18px; color: var(--ink-soft); max-width: 64ch; margin: 0 0 38px; }

.lead-2col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: start; }
@media (max-width: 880px){ .lead-2col { grid-template-columns: 1fr; gap: 34px; } }
.prose p { margin: 0 0 18px; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 22px; }
.cards.c3 { grid-template-columns: repeat(3,1fr); }
.cards.c2 { grid-template-columns: repeat(2,1fr); }
@media (max-width: 880px){ .cards.c3 { grid-template-columns: 1fr; } .cards.c2 { grid-template-columns: 1fr; } }
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 26px 24px; box-shadow: var(--shadow); position: relative;
}
.card .ico { width: 30px; height: 30px; color: var(--ember); margin-bottom: 14px; }
.card h3 { font-size: 19px; margin: 0 0 9px; }
.card p { margin: 0; color: var(--slate); font-size: 14.5px; }
.card .tag { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }

/* ---------- Pathway ladder ---------- */
.ladder { display: grid; gap: 14px; }
.rung {
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 20px;
  background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--ember);
  border-radius: 8px; padding: 18px 22px;
}
.rung .r-n { font-family: var(--serif); font-size: 22px; color: var(--ember); font-weight: 600; }
.rung h3 { font-size: 18px; margin: 0 0 4px; }
.rung p { margin: 0; font-size: 14px; color: var(--slate); max-width: 64ch; }
.rung .r-meta { text-align: right; font-size: 12px; color: var(--slate); min-width: 120px; }
.rung .r-meta .k { display:block; font-weight: 700; color: var(--ink); font-size: 13px; }
@media (max-width: 720px){ .rung { grid-template-columns: 36px 1fr; } .rung .r-meta { grid-column: 1 / -1; text-align: left; padding-left: 56px; } }

/* ---------- Chart: stacked horizontal ---------- */
.chart-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 30px; box-shadow: var(--shadow); }
.chart-title { font-family: var(--serif); font-size: 19px; margin: 0 0 4px; }
.chart-sub { font-size: 13px; color: var(--slate); margin: 0 0 24px; }
.barrow { margin-bottom: 18px; }
.barrow .blab { display:flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.barrow .blab .v { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.track { height: 13px; background: #ece6da; border-radius: 7px; overflow: hidden; }
.fill { height: 100%; width: 0; border-radius: 7px; transition: width 1.1s cubic-bezier(.22,.61,.36,1); }
.legend { display:flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; font-size: 12.5px; color: var(--slate); }
.legend span { display:inline-flex; align-items:center; gap: 7px; }
.dot { width: 11px; height: 11px; border-radius: 3px; display:inline-block; }

/* ---------- Pull / quote ---------- */
.pull { border-left: 3px solid var(--ember); padding: 6px 0 6px 26px; margin: 8px 0; }
.pull p { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--ink); margin: 0 0 10px; font-style: italic; }
.pull cite { font-style: normal; font-size: 13px; color: var(--slate); }

/* ---------- Barriers / list ---------- */
.deflist { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 46px; }
@media (max-width: 760px){ .deflist { grid-template-columns: 1fr; } }
.deflist .item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.deflist h4 { font-size: 16px; margin: 0 0 6px; display:flex; align-items:baseline; gap: 10px; }
.deflist h4 .n { font-family: var(--sans); font-size: 12px; color: var(--ember); font-weight: 700; }
.deflist p { margin: 0; font-size: 14px; color: var(--slate); }

/* ---------- Callout ---------- */
.callout {
  background: linear-gradient(180deg, #fffdf9, #f4efe6);
  border: 1px solid var(--rule); border-radius: 12px; padding: 30px 32px; display: grid;
  grid-template-columns: auto 1fr; gap: 24px; align-items: center;
}
.callout .big { font-family: var(--serif); font-size: clamp(40px,6vw,58px); color: var(--ember); font-weight: 600; line-height: 1; }
.callout p { margin: 0; color: var(--ink-soft); }
.callout p b { color: var(--ink); }
@media (max-width: 620px){ .callout { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Outlook timeline ---------- */
.timeline { display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 130px 1fr; gap: 26px; padding: 22px 0; border-top: 1px solid var(--line); }
.tl:last-child { border-bottom: 1px solid var(--line); }
.tl .yr { font-family: var(--serif); font-size: 20px; color: var(--teal); font-weight: 600; }
.tl h4 { margin: 0 0 6px; font-size: 17px; }
.tl p { margin: 0; font-size: 14.5px; color: var(--slate); }
@media (max-width: 620px){ .tl { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Sources ---------- */
.sources { padding: 64px 0; background: var(--ink); color: #c4d0dc; }
.sources h2 { color: #fff; font-size: 26px; margin: 0 0 8px; }
.sources p.note { color: #93a4b5; font-size: 14px; max-width: 64ch; margin: 0 0 28px; }
.srclist { columns: 2; column-gap: 46px; font-size: 13px; }
@media (max-width: 720px){ .srclist { columns: 1; } }
.srclist li { margin: 0 0 12px; break-inside: avoid; color: #aebccb; }
.srclist li b { color: #e7eef4; font-weight: 600; }

/* ---------- Footer ---------- */
.foot { background: #0b1a2b; color: #7e90a2; padding: 34px 0; font-size: 13px; }
.foot .wrap { display:flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot .brand { color: #cdd8e2; }
.foot a { color: #9fb2c4; }

/* ============================================================
   REPORT COMPONENTS
   ============================================================ */

/* ---------- Cover ---------- */
.cover { padding: 70px 0 56px; border-bottom: 2px solid var(--ink); position: relative; }
.cover .series {
  display: flex; align-items: center; gap: 14px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin: 0 0 30px;
}
.cover .series .badge {
  background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 4px;
  letter-spacing: .1em; font-size: 11.5px;
}
.cover h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -.6px; margin: 0 0 18px; max-width: 16ch; }
.cover .sub { font-family: var(--serif); font-size: clamp(18px,2.4vw,24px); color: var(--ink-soft); font-style: italic; max-width: 52ch; margin: 0 0 40px; }
.cover .docmeta {
  display: grid; grid-template-columns: repeat(4,auto); gap: 0 46px; justify-content: start;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0;
}
.cover .docmeta dt { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-200); margin: 0 0 5px; }
.cover .docmeta dd { margin: 0; font-size: 14.5px; color: var(--ink); font-weight: 600; }
@media (max-width: 760px){ .cover .docmeta { grid-template-columns: 1fr 1fr; gap: 22px 30px; } }

/* ---------- Contents ---------- */
.toc { padding: 52px 0; border-bottom: 1px solid var(--line); }
.toc h2 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); font-family: var(--sans); font-weight: 700; margin: 0 0 22px; }
.toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; column-count: 2; column-gap: 56px; }
@media (max-width: 760px){ .toc ol { column-count: 1; } }
.toc li { break-inside: avoid; border-bottom: 1px dotted var(--rule); padding: 13px 0; }
.toc li a { display: flex; align-items: baseline; gap: 14px; color: var(--ink); font-size: 16px; font-family: var(--serif); }
.toc li a:hover { color: var(--ember); text-decoration: none; }
.toc li a .tn { counter-increment: toc; font-size: 13px; font-family: var(--sans); font-weight: 700; color: var(--ember); min-width: 26px; }
.toc li a .tt { flex: 1; }
.toc li a .tt small { display:block; font-family: var(--sans); font-size: 12.5px; color: var(--slate); font-weight: 400; margin-top: 2px; }

/* ---------- Executive summary ---------- */
.exec { padding: 70px 0; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.exec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 880px){ .exec-grid { grid-template-columns: 1fr; gap: 36px; } }
.exec h2 { font-size: clamp(26px,3.4vw,36px); margin: 0 0 18px; }
.exec .prose p { font-size: 16.5px; }
.keyfindings { background: var(--ink); color: #e7eef4; border-radius: 12px; padding: 30px 30px 12px; }
.keyfindings h3 { color: #fff; font-size: 14px; font-family: var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; }
.keyfindings ul { list-style: none; margin: 0; padding: 0; }
.keyfindings li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 0 0 18px; font-size: 14.5px; color: #c6d3df; line-height: 1.5; }
.keyfindings li b { color: #fff; font-weight: 600; }
.keyfindings li .kn { font-family: var(--serif); color: var(--ember-soft); font-weight: 600; font-size: 18px; line-height: 1.2; }

/* ---------- Section numbering for report ---------- */
.block .secno { font-family: var(--serif); color: var(--ember); }

/* ---------- Exhibit captions ---------- */
.exhibit { margin-top: 14px; }
figure.exhibit { margin: 0; }
.exh-cap { font-size: 12.5px; color: var(--slate); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.exh-cap b { color: var(--ink); font-weight: 700; }
.exh-tag { display:inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--teal); padding: 3px 9px; border-radius: 4px; margin-bottom: 12px; }

/* ---------- Footnote markers ---------- */
sup.fn { font-size: 11px; color: var(--ember); font-weight: 700; vertical-align: super; line-height: 0; }
sup.fn a { color: var(--ember); }

/* ---------- Comparison table ---------- */
.rtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.rtable th, .rtable td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.rtable thead th { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); font-weight: 700; border-bottom: 2px solid var(--ink); }
.rtable tbody tr:hover { background: #f1ece2; }
.rtable td b { color: var(--ink); }
.rtable .risk { font-weight: 700; }
.rtable .r-ext { color: #a23a1e; }
.rtable .r-high { color: #c0712a; }
.rtable .r-mod { color: #b08828; }
.rtable .r-low { color: #2f6b6b; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; transition:none; } .fill { transition:none; } html{scroll-behavior:auto;} }
