/* os.galactik.tech — one stylesheet, no build step. Brand: Galactik Brand Playbook (Satoshi; Galactik palette; Deep Space ground). */
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  /* Light: Off white ground, Midnight blue ink, Cosmic blue actions */
  --bg: #EAF2F9;
  --surface: #FFFFFF;
  --surface-2: #DEEDFF;
  --ink: #141B41;
  --ink-2: #3A4470;
  --rule: #B9CEED;
  --link: #255A96;
  --accent: #306BAC;
  --accent-ink: #FFFFFF;
  --star: #918EF4;
  --arc: #98B9F2;
  --focus: #306BAC;
  --note-bg: #FFF4D6;
  --note-ink: #4A3600;
  --note-rule: #E5C565;
}
@media (prefers-color-scheme: dark) {
  :root {
    /* Dark: Deep Space ground, Off white ink, Ion blue / Nebula purple accents */
    --bg: #0B1030;
    --surface: #121A45;
    --surface-2: #18225A;
    --ink: #EAF2F9;
    --ink-2: #B9CEED;
    --rule: #2A3572;
    --link: #98B9F2;
    --accent: #98B9F2;
    --accent-ink: #0B1030;
    --star: #918EF4;
    --arc: #306BAC;
    --focus: #DEEDFF;
    --note-bg: #2B2410;
    --note-ink: #F5DE9A;
    --note-rule: #6E5A1E;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500; /* playbook: body Medium */
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 16px; top: -100px; background: var(--surface); color: var(--ink); padding: 10px 14px; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

/* Header */
.site-header { padding: 24px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-block; line-height: 0; }
.brand img { width: 152px; }
@media (min-width: 720px) { .brand img { width: 184px; } }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) { .logo-light { display: none !important; } .logo-dark { display: block !important; } }
.site-nav a { color: var(--ink); font-weight: 500; text-decoration: none; padding: 8px 2px; }
.site-nav a:hover { text-decoration: underline; }

/* Home */
.home { position: relative; isolation: isolate; overflow: clip; }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky svg { position: absolute; }
.sky .arc { right: -38vw; top: -6vw; width: 110vw; max-width: none; }
@media (min-width: 900px) { .sky .arc { right: -22vw; top: -14vw; width: 80vw; } }
.star { fill: var(--star); }
.sky .s1 { right: 12%; top: 120px; width: 34px; }
.sky .s2 { right: 30%; top: 300px; width: 14px; opacity: .7; }
.sky .s3 { right: 6%; top: 420px; width: 20px; opacity: .85; }
@media (max-width: 899px) { .sky .s1 { right: 16px; top: 96px; width: 22px; } .sky .s2, .sky .s3 { display: none; } }
.arc path { stroke: var(--arc); }

.hero { padding: 56px 0 72px; }
@media (min-width: 900px) { .hero { padding: 104px 0 120px; } }
.eyebrow { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8125rem; color: var(--ink-2); margin: 0 0 20px; }
.eyebrow .slash { color: var(--star); }
.hero h1 {
  font-weight: 900; /* playbook: titles Black */
  font-size: clamp(2.5rem, 7.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  max-width: 14ch;
}
.lede { font-weight: 300; /* playbook: featured Light */ font-size: clamp(1.1875rem, 2.2vw, 1.5rem); line-height: 1.45; max-width: 36ch; color: var(--ink); margin: 0; }

.founding { border-top: 1px solid var(--rule); padding: 48px 0 72px; }
.founding .wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .founding .wrap { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; } }
.founding h2 { font-weight: 900; font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
.founding h2 .count { color: var(--link); }
.founding p { margin: 0 0 16px; max-width: 52ch; }
.founding ul { margin: 0 0 24px; padding: 0; list-style: none; max-width: 52ch; }
.founding li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--rule); position: relative; }
.founding li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 12px; height: 12px; background: var(--star);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 1.0625rem;
  text-decoration: none; padding: 15px 26px; border-radius: 6px; border: 2px solid transparent; min-height: 48px;
}
.button:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.small { font-size: 0.9375rem; color: var(--ink-2); }

/* Reading pages */
.doc { padding: 24px 0 72px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-weight: 900; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; margin: 16px 0 12px; }
.doc .meta { color: var(--ink-2); margin: 0 0 32px; font-size: 0.9375rem; }
.doc h2 { font-weight: 700; font-size: 1.375rem; line-height: 1.25; margin: 48px 0 12px; padding-top: 20px; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.doc h3 { font-weight: 700; font-size: 1.125rem; margin: 28px 0 8px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: 0.9688rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.doc th { font-weight: 700; }
.table-scroll { overflow-x: auto; }
.toc { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 18px 22px; margin: 0 0 8px; }
.toc h2 { border: 0; padding: 0; margin: 0 0 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-2); }
.toc ol { margin: 0; columns: 1; }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: 40px; } }
.toc li { margin: 4px 0; break-inside: avoid; }
.note { background: var(--note-bg); color: var(--note-ink); border-left: 4px solid var(--note-rule); padding: 14px 18px; border-radius: 4px; margin: 0 0 28px; }
.note strong { font-weight: 900; }
.ph { background: var(--note-bg); color: var(--note-ink); padding: 0 4px; border-radius: 3px; font-weight: 700; white-space: normal; }
.steps li { margin: 10px 0; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 20px 22px; margin: 16px 0; }
.card h2, .card h3 { border: 0; padding: 0; margin-top: 0; }
address { font-style: normal; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--surface-2); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 36px 0 44px; font-size: 0.9375rem; color: var(--ink-2); }
.site-footer .wrap { display: grid; gap: 20px; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer p { margin: 0 0 4px; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer nav a { color: var(--ink); display: inline-block; padding: 6px 0; }
.endorse { font-weight: 900; letter-spacing: 0.08em; color: var(--ink); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-header nav, .sky, .skip { display: none; } body { background: #fff; color: #000; } a { color: #000; } }
