/* All presentation for the static Health Ranger page. No JavaScript required. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../Fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../Fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --background: hsl(230 62% 6%);
  --foreground: hsl(220 30% 96%);
  --border: hsl(228 35% 18%);
  --primary: hsl(224 92% 62%);
  --secondary: hsl(228 45% 12%);
  --muted: hsl(225 18% 66%);
  --accent: hsl(214 100% 66%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: "Schibsted Grotesk", system-ui, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 20px; }
.skip-link { position: fixed; left: 8px; top: -100px; z-index: 100; padding: 8px 16px; background: var(--primary); color: white; }
.skip-link:focus { top: 8px; }
.site-header { position: sticky; top: 0; z-index: 50; background: hsl(230 62% 6% / .85); backdrop-filter: blur(12px); }
.site-header nav { min-height: 72px; display: flex; justify-content: center; align-items: center; }
.nav-links { display: flex; justify-content: center; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a { display: block; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; transition: background .2s; }
.nav-links a:hover { background: var(--secondary); }
.nav-links .follow-button { background: var(--primary); margin-left: 12px; padding: 10px 20px; font-weight: 600; }
.nav-links .follow-button:hover { background: var(--primary); }
.hero { margin-top: -72px; padding-top: 72px; overflow: hidden; background-image: radial-gradient(ellipse 70% 60% at 50% 105%, hsl(222 100% 58% / .45), transparent 70%), radial-gradient(ellipse 40% 35% at 75% 40%, hsl(222 100% 58% / .18), transparent 70%); }
.hero-grid { display: grid; gap: 32px; align-items: end; min-height: 88dvh; }
.hero-copy { padding-block: 64px; }
.eyebrow { color: var(--primary); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.hero .eyebrow { letter-spacing: .22em; margin-bottom: 0; }
h1 { font-size: 51px; font-weight: 800; line-height: .88; letter-spacing: -.025em; margin-top: 24px; }
.hero-description { max-width: 576px; margin-top: 32px; font-size: 18px; line-height: 1.625; color: var(--muted); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; transition: transform .2s, background .2s, color .2s; }
.hero-buttons .button { min-width: 224px; text-align: center; }
.button-primary { background: var(--primary); color: white; }
.button-primary:hover, .button-accent:hover, .button-outline:hover { transform: translateY(-2px); }
.button-outline { border: 2px solid hsl(220 30% 96% / .8); }
.button-outline:hover { color: var(--background); background: var(--foreground); }
blockquote { margin-top: 56px; border-left: 2px solid var(--accent); padding-left: 20px; max-width: 576px; font-size: 21.6px; font-style: italic; line-height: 1.375; }
.quote-attribution { margin-top: 8px; font-size: 14px; font-style: normal; color: var(--muted); line-height: 1.5; }
.portrait { position: relative; align-self: end; }
.portrait img { position: relative; width: 100%; max-width: 448px; margin-inline: auto; }
.section { padding-block: 96px; }
.section-border { border-top: 1px solid var(--border); }
.muted-section { background: hsl(229 50% 9% / .6); border-block: 1px solid var(--border); }
.section-heading { margin-bottom: 48px; }
.centered { text-align: center; }
h2 { font-size: 48px; font-weight: 600; line-height: .95; letter-spacing: -.025em; text-wrap: balance; }
.courses-grid, .books-grid, .podcasts-grid, .about-grid, .lab-grid, .censorship-grid { display: grid; gap: 48px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.artwork { display: block; position: relative; overflow: hidden; border-radius: 12px; background: var(--secondary); box-shadow: 0 24px 50px -28px hsl(222 100% 50% / .25); }
.artwork img { width: 100%; object-fit: cover; transition: transform .7s; }
a.artwork:hover img { transform: scale(1.04); }
.course .artwork img, .podcast .artwork img { aspect-ratio: 16 / 9; }
.book .artwork img { aspect-ratio: 1; }
.card h3 { margin-top: 24px; font-size: 24px; font-weight: 600; line-height: 1.25; }
.card p { margin-top: 12px; color: var(--muted); line-height: 1.625; flex: 1; }
.visit-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; font-weight: 600; border-bottom: 2px solid var(--primary); padding-bottom: 4px; }
.visit-link:hover { gap: 12px; }
.course-dates { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.books-grid { column-gap: 32px; row-gap: 64px; }
.podcasts-section { background: var(--secondary); }
.podcasts-section .eyebrow { color: var(--accent); }
.podcast h3 { margin-top: 28px; font-size: 30px; font-weight: 600; line-height: 1.2; }
.podcast p { margin-top: 12px; font-size: 18px; line-height: 1.625; color: hsl(220 30% 96% / .7); }
.podcast-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button-accent { background: var(--accent); color: var(--background); padding: 12px 20px; }
.podcast-buttons .button-accent { background: var(--primary); color: #fff; }
.about-grid, .lab-grid { gap: 40px; }
.prose, .lab-copy { font-size: 18px; line-height: 1.625; min-width: 0; }
.prose > * + * { margin-top: 24px; }
.lead { font-size: 24px; line-height: 1.375; }
.muted { color: var(--muted); }
.prose a, .lab-copy a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.prose a:hover, .lab-copy a:hover { opacity: .8; }
.lab-copy > * + * { margin-top: 20px; }
.lab-list { border-block: 1px solid var(--border); }
.lab-list li { display: flex; gap: 20px; padding-block: 20px; font-size: 16px; }
.lab-list li + li { border-top: 1px solid var(--border); }
.lab-icon { color: var(--primary); width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.censorship-section { background: var(--primary); color: white; }
.narrow { max-width: 1024px; }
.censorship-section h2 { line-height: .92; }
.censorship-grid { margin-top: 48px; gap: 32px; font-size: 18px; line-height: 1.625; color: hsl(0 0% 100% / .85); }
.social-columns { display: grid; gap: 32px; max-width: 768px; margin-inline: auto; text-align: center; }
.social-columns li + li { margin-top: 16px; }
.social-columns a { font-size: 24px; font-weight: 600; }
.social-columns a:hover { color: var(--primary); }
/* Distinct navy backgrounds for homepage sections; the hero stays unchanged. */
#connect { background: #101d38; padding-bottom: 64px; }
#courses { background: #080f23; }
#audiobooks { background: #142340; }
#podcasts { background: #0b1830; }
#about { background: #182b46; }
#lab { background: #0c2035; }
.copyright { text-align: center; font-size: 14px; color: var(--muted); margin-top: 200px; }
.censorship-section .copyright { margin-top: 200px; color: white; }
.back-to-top { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff; box-shadow: 0 4px 20px #0006; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 150ms ease, visibility 0s linear 150ms, transform .2s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.back-to-top:hover { transform: translateY(-2px); }
@media (max-width: 639px) {
  .nav-links { gap: 0; }
  .nav-links a { font-size: 12px; padding: 10px 8px; }
  .nav-links .follow-button { margin-left: 4px; padding: 8px 12px; }
  .hero-buttons .button { width: 100%; }
}
@media (min-width: 640px) {
  h1 { font-size: 61.2px; }
  .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: left; }
}
@media (min-width: 768px) {
  .container { padding-inline: 32px; }
  .hero-grid { grid-template-columns: 7fr 5fr; }
  .portrait { align-self: start; margin-top: 112px; }
  .hero-copy { padding-block: 112px; }
  .hero-description { font-size: 20px; }
  .section { padding-block: 144px; }
  .section-heading { margin-bottom: 64px; }
  h2 { font-size: 72px; }
  .courses-grid, .podcasts-grid, .lab-grid, .censorship-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .courses-grid { gap: 40px; }
  .course h3 { font-size: 30px; }
  .podcast h3 { font-size: 36px; }
  .about-grid { grid-template-columns: 5fr 7fr; }
  .lead { font-size: 30px; }
  .censorship-section h2 { font-size: 96px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 102px; white-space: nowrap; }
  .books-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---- The Financial Big Bang page (scoped) ---- */
.financial-page .fbb-hero-grid { display: grid; gap: 48px; align-items: center; min-height: 88dvh; padding-block: 64px; }
.financial-page .fbb-title { font-size: 46px; line-height: .92; white-space: normal; }
.financial-page .fbb-title span { display: block; color: var(--accent); }
.financial-page .fbb-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 48px 0 0; padding: 0; list-style: none; }
.financial-page .fbb-toc a { display: inline-flex; gap: 8px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--muted); transition: border-color .2s, color .2s; }
.financial-page .fbb-toc a span { font-family: "JetBrains Mono", ui-monospace, monospace; color: var(--primary); }
.financial-page .fbb-toc a:hover { border-color: var(--primary); color: var(--foreground); }
.financial-page .fbb-cover { position: relative; max-width: 460px; margin-inline: auto; width: 100%; }
.financial-page .fbb-cover::before { content: ""; position: absolute; inset: -12%; background: radial-gradient(circle, hsl(222 100% 58% / .35), transparent 65%); pointer-events: none; }
.financial-page .fbb-cover img { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 40px 80px -30px hsl(222 100% 50% / .45); }
.financial-page .fbb-cover-tag { position: relative; margin-top: 20px; text-align: center; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.financial-page .fbb-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.financial-page .fbb-chapter { display: grid; gap: 28px; padding-block: 48px; border-bottom: 1px solid var(--border); scroll-margin-top: 84px; }
.financial-page .fbb-meta { min-width: 0; }
.financial-page .fbb-num { font-size: 72px; font-weight: 800; line-height: .9; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--primary); margin-bottom: 20px; transition: color .3s; }
.financial-page .fbb-chapter:hover .fbb-num { color: hsl(224 92% 62% / .25); }
.financial-page .fbb-meta .eyebrow { margin-bottom: 10px; }
.financial-page .fbb-meta h3 { font-size: 26px; font-weight: 600; line-height: 1.2; text-wrap: balance; }
.financial-page .fbb-meta p:not(.eyebrow):not(.fbb-num) { margin-top: 14px; color: var(--muted); font-size: 17px; line-height: 1.625; }
.financial-page .fbb-player { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--secondary); border: 1px solid var(--border); box-shadow: 0 24px 50px -28px hsl(222 100% 50% / .35); }
.financial-page .fbb-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.financial-page .fbb-outro h2 { max-width: 820px; }
.financial-page .fbb-outro .hero-buttons { margin-top: 48px; }
.financial-page .fbb-button-light { background: white; color: var(--primary); }
.financial-page .fbb-button-light:hover { transform: translateY(-2px); }
.financial-page .fbb-footer { padding-block: 64px; }
.financial-page .fbb-footer .copyright { margin-top: 0; }
@media (max-width: 639px) {
}
@media (min-width: 768px) {
  .financial-page .fbb-hero-grid { grid-template-columns: 7fr 5fr; padding-block: 96px; }
  .financial-page .fbb-title { font-size: 76px; }
  .financial-page .fbb-chapter { grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding-block: 64px; }
  .financial-page .fbb-num { font-size: 112px; }
  .financial-page .fbb-meta h3 { font-size: 30px; }
}
@media (min-width: 1024px) {
  .financial-page .fbb-title { font-size: 96px; }
}
