/* www.centauri.academy - hand-written, shared by every generated page.
   Dark navy like the app by default; a light version follows the device setting, and the
   header switch overrides it (stored in localStorage as "theme"). Picture areas (page heroes
   and division tiles) stay dark in both, so text over the night scenes always reads. */
@font-face { font-family: Montserrat; src: url(/fonts/Montserrat-VF.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url(/fonts/BarlowSemiCondensed-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url(/fonts/BarlowSemiCondensed-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }

/* Theme tokens. --mix darkens the division accents enough to read on a light page. */
:root, .hero, .tile {
  --bg: #0a111f; --paper: #131c2f; --ink: #eef2f8; --ink-soft: #d6dce8; --muted: #9aa7bd;
  --line: rgba(255,255,255,.13); --link: #e9d8b4; --top-bg: rgba(10,17,31,.92); --foot-bg: #070c17;
  --mix: 0%; color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f2e9; --paper: #ffffff; --ink: #142033; --ink-soft: #2a3650; --muted: #55607a;
  --line: rgba(20,32,51,.14); --link: #6b4e14; --top-bg: rgba(246,242,233,.94); --foot-bg: #ece6d8;
  --mix: 45%; color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f2e9; --paper: #ffffff; --ink: #142033; --ink-soft: #2a3650; --muted: #55607a;
    --line: rgba(20,32,51,.14); --link: #6b4e14; --top-bg: rgba(246,242,233,.94); --foot-bg: #ece6d8;
    --mix: 45%; color-scheme: light;
  }
}
:root {
  --accent: #e9d8b4; --radius: 14px;
  --head: 'Barlow Semi Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: Montserrat, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.hero, .tile { color: var(--ink); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.15; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin: 1.8em 0 .5em; }
h3 { font-size: 1.25rem; margin: .4em 0 .3em; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.block { padding: 28px 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; color: #000; padding: 8px 12px; }
/* accent as text, darkened on light pages */
.kicker, .facts dt, th, .cta-h, .box-h, .card-k { color: color-mix(in srgb, var(--accent), #000 var(--mix)); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: var(--top-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.15rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.top nav { flex: 1; overflow-x: auto; }
.top nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.top nav a { display: block; padding: 8px 10px; color: var(--muted); text-decoration: none; font-size: .9rem; white-space: nowrap; border-radius: 8px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.theme { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.theme:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.theme svg { width: 18px; height: 18px; }
.theme .sun { display: none; }
:root[data-theme="light"] .theme .sun { display: block; }
:root[data-theme="light"] .theme .moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme .sun { display: block; }
  :root:not([data-theme="dark"]) .theme .moon { display: none; }
}
@media (max-width: 860px) {
  .top-in { flex-wrap: wrap; gap: 6px 12px; padding: 8px 0; }
  .top nav { order: 3; flex-basis: 100%; }
  .brand span { font-size: 1rem; }
  .btn-small { margin-left: auto; }
}

/* buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000) 50%, var(--accent)); color: #fff; font-weight: 600; text-decoration: none; text-shadow: 0 1px 2px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.25); }
.btn:hover { color: #fff; filter: brightness(1.1); }
.btn-small { padding: 8px 14px; font-size: .85rem; --accent: #c7a96b; }
.btn-ghost { background: transparent; border-color: var(--line); text-shadow: none; color: var(--ink); }
.btn-ghost:hover { color: var(--ink); }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,17,31,.2), rgba(10,17,31,.75) 60%, var(--bg)); }
.hero-in { position: relative; z-index: 1; padding: 48px 0 40px; }
.hero-home .hero-in { padding: 110px 0 70px; max-width: 820px; margin-left: max(20px, (100% - 1160px) / 2); }
.kicker { font: 600 .95rem/1.3 var(--head); letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.lede { font-size: 1.15rem; max-width: 68ch; color: var(--ink-soft); }
.lede-s { max-width: 72ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.only-m { display: none; margin-top: 14px; }
@media (max-width: 900px) { .only-m { display: block; } }

/* crumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: '\203A'; margin-right: 6px; }
.crumbs a { color: var(--muted); }

/* mission page */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding: 28px 0 48px; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.prose { max-width: 72ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .55em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 20px; }
.facts div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.facts dt { font: 600 .8rem/1.2 var(--head); letter-spacing: .12em; text-transform: uppercase; }
.facts dd { margin: 4px 0 0; font-size: .95rem; }
.caution { border: 1px solid #e8b83a66; background: #e8b83a14; border-radius: var(--radius); padding: 14px 16px; margin: 0 0 8px; }
.caution-h { font: 600 .85rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, #e8b83a, #000 var(--mix)); }
.caution p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 .85rem/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; }
td.story { color: var(--muted); font-style: italic; }
.brief { margin: 0 0 1em; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--ink-soft); }
.brief p:last-child { margin: 0; }
.side { display: flex; flex-direction: column; gap: 16px; }
.side ul { list-style: none; padding: 0; margin: 0 0 8px; }
.side li { margin-bottom: 6px; }
.cta, .box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cta { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.cta-h, .box-h { font: 600 1rem/1.2 var(--head); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.cta .btn { margin: 4px 0 10px; }
.cta-wide { text-align: center; padding: 28px; }
@media (min-width: 901px) { .side .cta { position: sticky; top: 80px; } }

/* cards and tiles */
.cards, .tiles, .ages, .steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.card a:hover { border-color: var(--accent); }
.card-k { font: 600 .78rem/1.2 var(--head); letter-spacing: .12em; text-transform: uppercase; }
.card-t { font: 600 1.25rem/1.2 var(--head); }
.card-s { color: var(--muted); font-size: .9rem; }
.card-m { margin-top: auto; padding-top: 6px; font-size: .8rem; color: var(--muted); }
.tiles { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tile a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; padding: 16px; border-radius: var(--radius); overflow: hidden; background: var(--bg); color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; transition: opacity .2s; }
.tile a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(10,17,31,.92)); }
.tile a:hover img { opacity: .8; }
.tile span { position: relative; z-index: 1; }
.tile-t { font: 600 1.5rem/1.1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tile-s { font-size: .9rem; }
.tile-m { font-size: .8rem; color: var(--muted); }
.ages { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ages a { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.ages a:hover { border-color: var(--link); }
.steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e9d8b4; color: #0a111f; font-weight: 700; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0 24px; background: var(--foot-bg); font-size: .9rem; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 4px; }
.foot a { color: var(--muted); }
.foot-brand, .foot-h { font: 600 1rem/1.2 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--link); }

/* open books */
.money dd { font: 600 1.6rem/1.1 var(--head); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }
.bars { list-style: none; padding: 0; margin: 0; }
.bars li { display: grid; grid-template-columns: 9em 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: .92rem; }
.bar { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; }
.bar span { display: block; height: 100%; background: color-mix(in srgb, var(--accent), #000 var(--mix)); }
.bar-v { font-variant-numeric: tabular-nums; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* cookie consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto;
  background: var(--card, #121b2d); color: var(--ink, #f4efe4); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; box-shadow: 0 10px 40px rgba(0,0,0,.35); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 320px; font-size: .92rem; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: inherit; }

/* waiting list */
.starters { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.starter { padding: 16px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); }
.starter p { margin: 0 0 10px; }
.mail { white-space: pre-wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font: .92rem/1.55 var(--body, inherit); }

/* sector 7 */
.transmission { padding-top: 48px; }
.tx-k { font: 600 .82rem/1.3 var(--head); letter-spacing: .18em; color: #6be3a0; }
.transmission h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.tx { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; border-left: 3px solid #6be3a0; padding-left: 18px; margin: 24px 0; }
.tx p { opacity: 0; animation: tx-in .6s forwards; }
.tx p:nth-child(2) { animation-delay: .9s } .tx p:nth-child(3) { animation-delay: 1.8s } .tx p:nth-child(4) { animation-delay: 2.7s }
@keyframes tx-in { to { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .tx p { opacity: 1; animation: none } }

/* Guides */
.guide h2 { margin-top: 2.2rem; }
.roadmap { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .9rem; }
.roadmap li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; align-items: start; padding: 1rem; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 12px; }
.roadmap h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.roadmap p { margin: 0; }
.planner { border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 14px; padding: 1.1rem 1.2rem; margin: 1rem 0; }
.pl-row { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin: .6rem 0; }
.planner input, .planner select { font: inherit; padding: .45rem .55rem; border-radius: 8px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: transparent; color: inherit; }
.planner input[type=number] { width: 4.2rem; }
.pl-out { font-size: 1.08rem; min-height: 1.6em; }
.checks { list-style: none; padding-left: 0; }
.checks li { padding-left: 1.9rem; position: relative; margin: .45rem 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.05rem; height: 1.05rem; border: 2px solid var(--accent); border-radius: 4px; }
.sources a { word-break: break-word; }
@media print {
  .top, .foot, .cta, .crumbs, .cards, .consent, .btn, .planner, .skip { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .guide a { color: #000; text-decoration: none; }
  .checks li::before { border-color: #000; }
  .guide h2 { break-after: avoid; }
}

.guide-photo { margin: 1.6rem 0; }
.guide-photo img { width: 100%; height: auto; border-radius: 12px; display: block; }
