/* True Cosmic Scale: generated from config/brand.json by tools/build_site.py. Dark theme, mobile first. */
@font-face {font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/Inter-Medium.woff2") format("woff2");}
@font-face {font-family: "Inter"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/Inter-ExtraBold.woff2") format("woff2");}
@font-face {font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/SpaceGrotesk-Bold.woff2") format("woff2");}
:root {
  --bg: #0B0F1A; --panel: #151B2B; --text: #F2F5FA; --muted: #9AA7BC;
  --accent: #4FC3F7; --highlight: #FFB74D; --series: #B39DDB;
  --fault: #FF5A6E; --fixed: #66E3A4;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head: "Space Grotesk", "Inter", system-ui, sans-serif;
}
* {box-sizing: border-box;}
html {-webkit-text-size-adjust: 100%;}
body {margin: 0; background: var(--bg); color: var(--text); font: 500 18px/1.65 var(--body);}
a {color: var(--accent); text-underline-offset: 3px;}
a:hover, a:focus {color: var(--text);}
img {max-width: 100%; height: auto; display: block;}
.wrap {max-width: 70ch; margin: 0 auto; padding: 0 20px;}
.wide {max-width: 1040px; margin: 0 auto; padding: 0 20px;}
header.site {border-bottom: 1px solid var(--panel);}
header.site .wide {display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px;}
.brand {font: 700 22px/1.2 var(--head); color: var(--text); text-decoration: none;}
nav a {margin-right: 18px; color: var(--muted); text-decoration: none; font-size: 17px;}
nav a:hover, nav a:focus {color: var(--text);}
h1, h2, h3 {font-family: var(--head); font-weight: 700; line-height: 1.2; margin: 1.6em 0 .5em;}
h1 {font-size: 2rem; margin-top: .6em;}
h2 {font-size: 1.45rem;}
h3 {font-size: 1.15rem;}
.meta {color: var(--muted); font-size: 16px; margin: 0 0 1em;}
.tag {display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--panel); color: var(--series); font: 700 14px/1.6 var(--head); letter-spacing: .04em; text-transform: uppercase;}
.draft-banner {background: #7a1226; color: #fff; text-align: center; padding: 8px; font: 800 15px/1.4 var(--body);}
figure {margin: 1.6em 0;}
figcaption {color: var(--muted); font-size: 15px; margin-top: 6px; line-height: 1.45;}
.yt {position: relative; aspect-ratio: 16 / 9; background: var(--panel); border-radius: 10px; overflow: hidden; margin: 1.4em 0;}
.yt img, .yt iframe, .yt a.fallback {position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover;}
.yt button, .yt a.play {position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 54px; border: 0; border-radius: 14px; background: var(--fault); color: #0B0F1A; font: 800 26px/54px var(--body); text-align: center; cursor: pointer; text-decoration: none;}
.yt button:focus-visible, .yt a.play:focus-visible {outline: 3px solid var(--text); outline-offset: 3px;}
.fact {white-space: nowrap; color: var(--highlight);}
.fact sup a {color: var(--accent); text-decoration: none; font-size: 12px; padding: 0 1px;}
ol.sources li {margin: .5em 0; font-size: 16px;}
ol.sources .note {color: var(--muted);}
ul.credits {padding-left: 1.1em; font-size: 15px; color: var(--muted);}
.cards {display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; padding: 0; list-style: none; margin: 1.5em 0;}
.card {background: var(--panel); border-radius: 12px; overflow: hidden;}
.card a {text-decoration: none; color: var(--text); display: block; height: 100%;}
.card .body {padding: 14px 16px 18px;}
.card h2 {font-size: 1.2rem; margin: .4em 0 .3em;}
.card p {margin: .3em 0; color: var(--muted); font-size: 16px; line-height: 1.5;}
.button {display: inline-block; padding: 10px 20px; border-radius: 10px; background: var(--accent); color: #0B0F1A; font: 800 17px/1.4 var(--body); text-decoration: none;}
.button:hover, .button:focus {background: var(--text); color: #0B0F1A;}
.pager {display: flex; justify-content: space-between; gap: 16px; margin: 2.5em 0 1em; font-size: 16px;}
footer.site {border-top: 1px solid var(--panel); margin-top: 3em; padding: 22px 0 40px; color: var(--muted); font-size: 15px;}
footer.site a {color: var(--muted);}
.skip {position: absolute; left: -999px;}
.skip:focus {left: 8px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 5;}
.consent {position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--panel); padding: 16px 20px; font-size: 16px; line-height: 1.5; box-shadow: 0 -4px 16px rgba(0, 0, 0, .4);}
.consent[hidden] {display: none;}
.consent p {max-width: 70ch; margin: 0 auto 10px;}
.consent .button {border: 0; cursor: pointer; font-size: 16px; margin-right: 8px;}
.consent .button.ghost {background: transparent; color: var(--text); border: 1px solid var(--muted);}
@media (min-width: 720px) {body {font-size: 19px;} h1 {font-size: 2.5rem;}}