Jessiter's picture
Sync with GitHub main (c2b0fd8)
14a4d4b verified
Raw History Blame Contribute Delete
14.8 kB
/* Deck layout: every slide is one full viewport. Inside it, a fixed 1728 x 1117 "stage" (the Figma frame size)
is scaled to fit and centred, so positions match the Figma frames at any window size.
Look: newspaper graphics (serif headline and dek, a Franklin-style sans for subheads, labels and legends, plain
white charts with hairline grids, soft corners). */
:root {
--ink: #121212;
--ink-2: #333;
--ink-3: #666;
--muted: #b5b5b5;
--rule: #e2e2e2;
--paper: #fff;
--font-head: "Source Serif 4", Georgia, "Times New Roman", serif; /* headlines, deks, quote */
--font-sub: "Libre Franklin", "Franklin Gothic Medium", Arial, sans-serif; /* subheads, kickers, chart labels */
--font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; /* body text */
--radius: 10px;
--s: 1; /* stage scale, set by deck.js */
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--paper); color: var(--ink); font-family: var(--font); }
.deck { height: 100vh; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { .deck { scroll-behavior: auto; } }
.slide { position: relative; height: 100vh; width: 100%; overflow: hidden; scroll-snap-align: start; background: var(--paper); }
.stage {
position: absolute; left: 50%; top: 50%; width: 1728px; height: 1117px;
transform: translate(-50%, -50%) scale(var(--s)); transform-origin: center center;
}
.abs { position: absolute; margin: 0; }
/* ---------- type ---------- */
.kicker { font-family: var(--font-sub); font-weight: 700; font-size: 18px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.h1 { font-family: var(--font-head); font-weight: 700; font-size: 76px; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
.h2 { font-family: var(--font-head); font-weight: 700; font-size: 50px; line-height: 1.1; letter-spacing: -.005em; }
.dek { font-family: var(--font-head); font-weight: 400; font-size: 30px; line-height: 1.3; color: var(--ink-2); text-wrap: balance; }
.takeaway { font-family: var(--font-head); font-weight: 600; font-size: 44px; line-height: 1.2; text-wrap: balance; }
.sub { font-family: var(--font-sub); font-weight: 600; font-size: 28px; color: var(--ink); }
.lead, .label { font-size: 26px; line-height: 1.35; }
.bullets { padding-left: 26px; font-size: 23px; line-height: 1.38; color: var(--ink-2); }
.bullets li + li { margin-top: 8px; }
.bullets li::marker { color: var(--muted); }
.bullets strong { color: var(--ink); font-weight: 600; }
.note { font-family: var(--font-sub); color: var(--ink-3); font-size: 18px; line-height: 1.4; }
.source { font-family: var(--font-sub); font-size: 16px; color: #888; }
a { color: inherit; text-decoration-color: var(--muted); text-underline-offset: 4px; }
/* ---------- the historical-data template: title, dek, then Trends / Findings ---------- */
.story > * { margin: 0; }
.story .dek { margin-top: 10px; font-size: 28px; }
.story .cols { display: grid; grid-template-columns: 580px 1fr; column-gap: 64px; margin-top: 28px; }
.story .cols .sub { margin: 0 0 8px; }
.story .bullets { margin: 0; }
/* ---------- side navigation ---------- */
.toc { left: 103px; top: 348px; display: flex; flex-direction: column; gap: 12px; font-family: var(--font-sub); }
.toc a { display: block; text-decoration: none; color: var(--muted); font-size: 24px; line-height: normal; transition: color .15s; }
.toc a:hover, .toc a:focus-visible { color: var(--ink); }
.toc a.is-active { color: var(--ink); font-weight: 600; }
.toc .sub { margin: 0; padding-left: 28px; list-style: disc; color: var(--muted); font-size: 20px; line-height: 1.5; font-family: var(--font-sub); font-weight: 400; }
.toc .sub a { font-size: 20px; }
.toc .sub a.is-active { font-weight: 600; color: var(--ink); }
.toc-bar { width: 6px; border-radius: 6px; background: var(--ink); left: 78px; transition: top .2s; }
.back {
left: 64px; top: 260px; width: 44px; height: 44px; padding: 4px; border: 0; border-radius: 50%; background: none; cursor: pointer;
}
.back:hover { background: #f1f1f1; }
.back img { display: block; width: 36px; height: 36px; transform: rotate(90deg); }
.back:focus-visible, .toc a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
/* ---------- charts ---------- */
.chart { position: absolute; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart text { font-family: var(--font-sub); fill: #555; font-size: 16px; }
.chart [role="button"] { cursor: pointer; }
.chart [role="button"]:focus { outline: none; }
.chart [role="button"]:focus-visible rect { stroke: var(--ink); stroke-width: 2; }
.tip {
position: fixed; pointer-events: none; background: rgba(255, 255, 255, .97); border: 1px solid #ddd; border-radius: 8px;
padding: 9px 12px; font-family: var(--font-sub); font-size: 15px; line-height: 1.45; color: var(--ink); max-width: 300px;
box-shadow: 0 6px 22px rgba(0, 0, 0, .12); z-index: 5;
}
.tip[hidden] { display: none; }
/* ---------- definitions slide ---------- */
.quote { font-family: var(--font-head); font-size: 48px; line-height: 1.28; text-align: center; color: var(--ink); text-wrap: balance; }
.quote mark { background: none; color: inherit; font-weight: 600; box-shadow: inset 0 -0.36em 0 var(--hl, #ffd6a5); padding: 0 .06em; border-radius: 3px; }
.quote .qmark { font-size: 90px; line-height: .5; display: block; color: #c9c9c9; }
.mini-label { font-family: var(--font-sub); font-weight: 600; font-size: 20px; color: var(--ink); }
.mini-sub { font-family: var(--font-sub); font-size: 16px; color: var(--ink-3); line-height: 1.35; }
.connector { border-color: #9a9a9a; border-style: dashed; border-width: 0; position: absolute; }
/* ---------- policy slide: gap -> fix -> who ---------- */
.plan-head, .plan-row { display: grid; grid-template-columns: 430px 520px 1fr; column-gap: 28px; }
.plan-head { font-family: var(--font-sub); font-size: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.plan-row { padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.plan .tag { margin: 0 0 4px; font-family: var(--font-sub); font-weight: 700; font-size: 22px; color: var(--ink); }
.plan .ev { margin: 0; font-size: 18px; line-height: 1.4; color: var(--ink-2); }
.plan .act { font-size: 20px; line-height: 1.4; color: var(--ink); }
.plan .who { font-family: var(--font-sub); font-size: 17px; line-height: 1.4; color: var(--ink-3); }
.plan strong, .both strong { font-weight: 600; color: var(--ink); }
.both { display: grid; grid-template-columns: 650px 1fr; column-gap: 40px; background: #f4f7fb; border-radius: var(--radius); padding: 18px 22px; }
.both-text { margin: 0; font-size: 20px; line-height: 1.42; color: var(--ink-2); }
.both .bullets { padding-left: 22px; }
.both .bullets li + li { margin-top: 4px; }
/* ---------- limitations slide ---------- */
.loss { display: flex; flex-direction: column; gap: 10px; }
.loss-row { display: grid; grid-template-columns: 420px 1fr 70px; column-gap: 16px; align-items: center; }
.loss-lb { font-family: var(--font-sub); font-size: 19px; color: var(--ink-2); text-align: right; }
.loss-tr { position: relative; height: 26px; background: #f3f3f1; border-radius: 4px; }
.loss-tr i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: #b9b9b9; }
.loss-tr i.hl { background: #d9622b; }
.loss-v { font-family: var(--font-sub); font-weight: 600; font-size: 20px; color: var(--ink); }
.lim { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
.lim .lane { border-top: 1.5px solid var(--ink); padding-top: 10px; }
.lim .sub { margin: 0 0 10px; }
.lim .bullets { margin: 0; font-size: 19px; line-height: 1.38; padding-left: 22px; }
.lim .bullets li + li { margin-top: 8px; }
/* ---------- conclusion slide ---------- */
.finds { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
.find { border-top: 1.5px solid var(--ink); padding-top: 14px; }
.find > * { margin: 0; }
.find .big { font-family: var(--font-head); font-weight: 700; font-size: 88px; line-height: 1; color: #d9622b; }
.find .big .of { font-size: 40px; color: var(--ink-3); font-weight: 600; }
.find .sub { margin: 14px 0 8px; }
.find .txt { font-size: 21px; line-height: 1.42; color: var(--ink-2); }
.so { background: #f4f7fb; border-radius: var(--radius); padding: 22px 26px; }
.so-text { margin: 0; font-family: var(--font-head); font-size: 32px; line-height: 1.35; color: var(--ink); text-wrap: pretty; }
.so-text strong { font-weight: 600; }
/* ---------- reproducibility slide ---------- */
.repro { display: grid; grid-template-columns: 430px 360px 360px; column-gap: 20px; }
.repro .lane { border-top: 1.5px solid var(--ink); padding-top: 10px; padding-right: 12px; }
.repro .lane:first-child { padding-right: 0; }
.repro .num { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1; color: var(--muted); }
.repro .sub { margin: 6px 0 12px; }
.repro .bullets { margin: 0; font-size: 20px; line-height: 1.38; padding-left: 22px; }
.repro .bullets li + li { margin-top: 8px; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; font-size: .86em; background: #f3f3f1; padding: 1px 5px; border-radius: 4px; color: var(--ink); }
.cmd {
margin: 16px 0 0; padding: 12px 12px; background: #f3f3f1; border-radius: var(--radius); white-space: pre; overflow: hidden;
font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; font-size: 14px; line-height: 1.7; color: var(--ink);
}
.chain { list-style: none; margin: 0; padding: 0; counter-reset: c; font-size: 19px; line-height: 1.35; color: var(--ink-2); }
.chain li { position: relative; padding: 0 0 22px 34px; }
.chain li::before {
counter-increment: c; content: counter(c); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
background: var(--ink); color: #fff; font-family: var(--font-sub); font-size: 14px; font-weight: 600; text-align: center; line-height: 24px;
}
.chain li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 30px; bottom: 4px; border-left: 1.5px dashed #9a9a9a; }
.gaps { background: #faf7f2; border-radius: var(--radius); padding: 18px 22px 20px; }
.gap-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
.gap-grid p { margin: 0; font-size: 17px; line-height: 1.4; color: var(--ink-2); }
.gap-grid strong { display: block; color: var(--ink); font-family: var(--font-sub); font-weight: 600; font-size: 18px; margin-bottom: 4px; }
/* ---------- intro ---------- */
.need-list { margin: 10px 0 0; padding-left: 26px; font-size: 22px; line-height: 1.45; }
.need-list li::marker { font-size: 1.2em; }
/* ---------- policy slide: one tab per policymaker ---------- */
.ptabs { display: flex; gap: 10px; border-bottom: 1.5px solid var(--ink); }
.ptabs button {
font-family: var(--font-sub); font-weight: 600; font-size: 22px; padding: 12px 22px; border: 0; cursor: pointer;
background: #f3f3f1; color: var(--ink-3); border-radius: var(--radius) var(--radius) 0 0; transition: background .15s, color .15s;
}
.ptabs button:hover { color: var(--ink); }
.ptabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.ptabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ppanel[hidden] { display: none; }
.pwho { margin: 0 0 22px; font-family: var(--font-head); font-size: 26px; line-height: 1.35; color: var(--ink-2); text-wrap: pretty; }
.pcols { display: grid; grid-template-columns: 1fr 1fr 330px; column-gap: 34px; }
.pcols > div { border-top: 1.5px solid var(--ink); padding-top: 12px; }
.pcols .sub { margin: 0 0 10px; font-size: 24px; }
.ptxt { margin: 0 0 14px; font-size: 20px; line-height: 1.45; color: var(--ink-2); }
.ptxt strong { color: var(--ink); font-weight: 600; }
.pq { margin: 0; font-size: 20px; line-height: 1.42; }
.pnote { margin: 16px 0 0; padding: 12px 14px; background: #f4f7fb; border-radius: var(--radius); font-size: 18px; line-height: 1.4; color: var(--ink-2); }
.ev-list { list-style: none; margin: 0; padding: 0; font-family: var(--font-sub); }
.ev-list li { padding: 0 0 14px; }
.ev-list a { font-weight: 600; font-size: 20px; color: var(--ink); text-decoration-color: #d9622b; }
.ev-list a::after { content: " \2192"; }
.ev-list span { display: block; font-size: 17px; line-height: 1.38; color: var(--ink-3); margin-top: 2px; }
/* ---------- policy pages: risk band, next link, bottom band, sustainability, references ---------- */
.risk { background: #fdf3ea; border-left: 6px solid #d9622b; border-radius: var(--radius); padding: 14px 22px; }
.risk-k { margin: 0 0 4px; font-family: var(--font-sub); font-weight: 700; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: #b24a17; }
.risk-t { margin: 0; font-size: 21px; line-height: 1.42; color: var(--ink-2); }
.risk-t strong { color: var(--ink); font-weight: 600; }
.pband { background: #f4f7fb; border-radius: var(--radius); padding: 16px 22px; }
.nextlink { font-family: var(--font-sub); font-weight: 600; font-size: 22px; color: var(--ink); text-decoration-color: #d9622b; }
.ptxt a, .refs a, .fail a { text-decoration-color: #d9622b; }
.sus { display: flex; flex-direction: column; gap: 10px; }
.susc { display: grid; grid-template-columns: 250px 1fr 330px; column-gap: 30px; border-top: 1.5px solid var(--ink); padding-top: 12px; align-items: start; }
.susc .ptxt { font-size: 18px; line-height: 1.38; margin: 0; }
.susc .sub { margin: 0 0 6px; grid-column: 1; grid-row: 1; }
.susc .susk { grid-column: 1; grid-row: 2; }
.susc .ptxt { grid-column: 2; grid-row: 1 / span 2; }
.susc .fail { grid-column: 3; grid-row: 1 / span 2; }
.susk { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--ink); }
.fail { margin: 0; padding: 10px 12px; background: #faf7f2; border-radius: var(--radius); font-size: 16px; line-height: 1.38; color: var(--ink-2); }
.fail strong { color: #b24a17; font-weight: 600; }
.refs { margin-top: 18px; border-top: 1.5px solid var(--ink); padding-top: 12px; }
.refs ol { margin: 0; padding-left: 26px; font-size: 13.5px; line-height: 1.3; color: var(--ink-3); columns: 2; column-gap: 40px; }
.refs li { break-inside: avoid; padding-bottom: 6px; }
.refs a { color: var(--ink-3); }