/* NebOS architecture documentation — shared styles. * Static, dependency-free, and readable offline. Dark is the default; * the light palette follows the operating system preference. */ :root { color-scheme: dark; --bg: #0c0f14; --bg-soft: #10141b; --panel: #151a23; --panel-2: #1b212c; --panel-3: #222a37; --text: #e7eaf0; --muted: #9aa5b6; --faint: #6d7788; --line: #2a3241; --line-soft: #222936; --accent: #b79cff; --accent-strong: #8b5cf6; --accent-dim: #2a2342; --green: #5dde94; --green-dim: #173326; --amber: #f4cb6b; --amber-dim: #332a16; --red: #ff8279; --red-dim: #351d1e; --blue: #74b9ff; --blue-dim: #162a3c; --code: #090c11; --code-text: #d9e0eb; --shadow: 0 18px 48px rgba(0, 0, 0, 0.32); --radius: 12px; --radius-sm: 8px; --wrap: 1120px; --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace; --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; } @media (prefers-color-scheme: light) { :root { color-scheme: light; --bg: #f6f7f9; --bg-soft: #eef0f4; --panel: #ffffff; --panel-2: #f1f3f7; --panel-3: #e7eaf1; --text: #1c2330; --muted: #566173; --faint: #7b8798; --line: #d7dce6; --line-soft: #e4e8ef; --accent: #6236c8; --accent-strong: #7048d8; --accent-dim: #ece5ff; --green: #087a45; --green-dim: #ddf5e9; --amber: #8a5d00; --amber-dim: #fff2cf; --red: #b42318; --red-dim: #ffe4e1; --blue: #0b63a3; --blue-dim: #dcefff; --code: #f0f2f6; --code-text: #1c2330; --shadow: 0 18px 48px rgba(28, 35, 48, 0.1); } } * { box-sizing: border-box; } html { scroll-behavior: smooth; } body { margin: 0; background: radial-gradient(900px 420px at 12% -8%, rgba(139, 92, 246, 0.13), transparent 70%), radial-gradient(700px 380px at 92% 0%, rgba(43, 108, 176, 0.1), transparent 72%), var(--bg); color: var(--text); font: 16px/1.68 var(--sans); -webkit-font-smoothing: antialiased; } ::selection { background: var(--accent-strong); color: #fff; } a { color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; } a:hover { color: var(--text); } :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; } .skip { position: absolute; top: -6rem; left: 1rem; z-index: 100; padding: 0.6rem 0.9rem; border: 1px solid var(--accent); border-radius: var(--radius-sm); background: var(--panel); color: var(--text); font-size: 0.88rem; text-decoration: none; } .skip:focus { top: 0.75rem; } /* ---- header ---------------------------------------------------------- */ .site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; flex-wrap: wrap; gap: 0.9rem 1.4rem; padding: 0.72rem max(1.25rem, calc((100% - var(--wrap)) / 2)); border-bottom: 1px solid var(--line); background: var(--bg-soft); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03); } .brand { display: inline-flex; align-items: center; gap: 0.62rem; color: var(--text); font-weight: 650; letter-spacing: -0.015em; text-decoration: none; } .brand:hover { color: var(--text); } .brand-mark { position: relative; width: 23px; height: 23px; flex: 0 0 auto; border-radius: 7px; background: linear-gradient(135deg, var(--accent-strong), #4f9de8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); } .brand-mark::after { content: ""; position: absolute; inset: 6px; border: 2px solid rgba(255, 255, 255, 0.86); border-left-color: transparent; border-radius: 3px; } .brand-sub { margin-left: 0.15rem; color: var(--muted); font: 500 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; } .site-nav { display: flex; flex-wrap: wrap; gap: 0.15rem; margin-left: auto; } .site-nav a { padding: 0.35rem 0.58rem; border-radius: 7px; color: var(--muted); font-size: 0.84rem; font-weight: 520; text-decoration: none; white-space: nowrap; } .site-nav a:hover { background: var(--panel-2); color: var(--text); } .site-nav a[aria-current="page"] { background: var(--accent-dim); color: var(--accent); } /* ---- layout ---------------------------------------------------------- */ .page { width: min(var(--wrap), 100% - 2.5rem); margin: 0 auto; padding: 3.4rem 0 4.5rem; } .page-head { max-width: 880px; } .kicker { margin: 0 0 0.55rem; color: var(--accent); font: 650 0.72rem/1.3 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; } h1, h2, h3, h4 { color: var(--text); line-height: 1.18; letter-spacing: -0.025em; } h1 { margin: 0; font-size: clamp(2.15rem, 5.4vw, 3.55rem); font-weight: 700; } h2 { margin: 2.6rem 0 0.9rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 650; } h3 { margin: 1.7rem 0 0.5rem; font-size: 1.12rem; font-weight: 650; } h4 { margin: 1.1rem 0 0.35rem; font-size: 0.95rem; font-weight: 650; } p { max-width: 82ch; margin: 0.65rem 0; } ul, ol { max-width: 82ch; padding-left: 1.25rem; } li { margin: 0.28rem 0; } li > ul, li > ol { margin: 0.3rem 0; } .lede { max-width: 72ch; margin: 0.9rem 0 0; color: var(--muted); font-size: clamp(1.03rem, 1.55vw, 1.22rem); line-height: 1.62; } .meta { display: flex; flex-wrap: wrap; gap: 0.42rem; margin-top: 1.25rem; } .pill { display: inline-flex; align-items: center; gap: 0.32rem; padding: 0.22rem 0.62rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font: 500 0.78rem/1.5 var(--mono); } .pill strong { color: var(--text); font-weight: 600; } .pill.accent { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--accent); } .pill.green { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); color: var(--green); } /* ---- table of contents ---------------------------------------------- */ .toc { margin: 2.1rem 0 0; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); } .toc h2 { margin: 0 0 0.6rem; padding: 0; border: 0; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); } .toc ul { display: flex; flex-wrap: wrap; gap: 0.38rem; max-width: none; margin: 0; padding: 0; list-style: none; } .toc a { display: inline-block; padding: 0.2rem 0.58rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.8rem; text-decoration: none; } .toc a:hover { border-color: var(--accent); color: var(--accent); } section { scroll-margin-top: 5.5rem; } /* ---- cards ----------------------------------------------------------- */ .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 0.95rem; margin: 1.2rem 0; } .card { position: relative; display: block; padding: 1.12rem 1.15rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--bg-soft)); color: inherit; text-decoration: none; transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease; } a.card:hover { border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); box-shadow: var(--shadow); color: inherit; transform: translateY(-2px); } .card::before { content: ""; position: absolute; top: -1px; left: 1rem; right: 1rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-strong), transparent); opacity: 0; transition: opacity 120ms ease; } a.card:hover::before { opacity: 1; } .card h3 { margin: 0 0 0.32rem; font-size: 1.05rem; } .card p { margin: 0; color: var(--muted); font-size: 0.91rem; line-height: 1.55; } .card .card-tag { display: inline-block; margin-top: 0.75rem; color: var(--accent); font: 500 0.72rem/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; } /* ---- callouts -------------------------------------------------------- */ .note, .warn, .tip { max-width: 86ch; margin: 1.15rem 0; padding: 0.82rem 1rem; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--blue-dim); color: var(--text); font-size: 0.93rem; } .warn { border-left-color: var(--amber); background: var(--amber-dim); } .tip { border-left-color: var(--green); background: var(--green-dim); } .note strong, .warn strong, .tip strong { color: var(--text); } .note p:first-child, .warn p:first-child, .tip p:first-child { margin-top: 0; } .note p:last-child, .warn p:last-child, .tip p:last-child { margin-bottom: 0; } /* ---- tables ---------------------------------------------------------- */ .table-wrap { max-width: 100%; margin: 1.1rem 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); } table { width: 100%; border-collapse: collapse; font-size: 0.9rem; } th, td { padding: 0.58rem 0.78rem; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; } th { background: var(--panel-2); color: var(--muted); font: 600 0.74rem/1.45 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; } tr:last-child td { border-bottom: 0; } tbody tr:hover { background: color-mix(in srgb, var(--panel-2) 55%, transparent); } td code, th code { white-space: nowrap; } /* ---- code ------------------------------------------------------------ */ code { padding: 0.08em 0.34em; border: 1px solid var(--line-soft); border-radius: 5px; background: var(--panel-2); color: var(--text); font: 0.88em/1.4 var(--mono); } pre { max-width: 100%; margin: 1rem 0; padding: 1rem 1.1rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--code); color: var(--code-text); font: 0.83rem/1.6 var(--mono); tab-size: 8; } pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; white-space: pre; } .file { display: inline-block; padding: 0.05rem 0.38rem; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 5px; background: var(--accent-dim); color: var(--accent); font: 0.82em/1.45 var(--mono); white-space: nowrap; } .tag { display: inline-block; padding: 0.02rem 0.42rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); color: var(--muted); font: 0.72em/1.5 var(--mono); letter-spacing: 0.03em; white-space: nowrap; } .tag.green { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); background: var(--green-dim); color: var(--green); } .tag.amber { border-color: color-mix(in srgb, var(--amber) 35%, var(--line)); background: var(--amber-dim); color: var(--amber); } .tag.blue { border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); background: var(--blue-dim); color: var(--blue); } /* ---- charts and diagrams -------------------------------------------- */ .figure { margin: 1.35rem 0; padding: 1.05rem 1.15rem 0.95rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 45%, transparent), transparent), var(--panel); } .figure svg { display: block; width: 100%; height: auto; } .figure figcaption { margin-top: 0.8rem; color: var(--muted); font-size: 0.83rem; line-height: 1.55; } .figure figcaption strong { color: var(--text); font-weight: 600; } .svg-box { fill: var(--panel-2); stroke: var(--line); stroke-width: 1.5; } .svg-box.accent { fill: var(--accent-dim); stroke: var(--accent); } .svg-box.green { fill: var(--green-dim); stroke: var(--green); } .svg-box.blue { fill: var(--blue-dim); stroke: var(--blue); } .svg-box.amber { fill: var(--amber-dim); stroke: var(--amber); } .svg-text { fill: var(--text); font-family: var(--mono); font-size: 13px; font-weight: 600; } .svg-sub { fill: var(--muted); font-family: var(--mono); font-size: 11px; } .svg-tiny { fill: var(--faint); font-family: var(--mono); font-size: 10px; } .svg-line { fill: none; stroke: var(--faint); stroke-width: 1.5; } .svg-line.accent { stroke: var(--accent); } .svg-line.green { stroke: var(--green); } .svg-line.blue { stroke: var(--blue); } .svg-line.amber { stroke: var(--amber); } .svg-dash { stroke-dasharray: 5 4; } .diagram-legend { display: flex; flex-wrap: wrap; gap: 0.55rem 1.1rem; margin-top: 0.7rem; color: var(--muted); font-size: 0.78rem; } .swatch { display: inline-block; width: 0.72rem; height: 0.72rem; margin-right: 0.35rem; border: 1px solid var(--line); border-radius: 3px; background: var(--panel-2); vertical-align: -0.04rem; } .swatch.accent { border-color: var(--accent); background: var(--accent-dim); } .swatch.green { border-color: var(--green); background: var(--green-dim); } .swatch.blue { border-color: var(--blue); background: var(--blue-dim); } .swatch.amber { border-color: var(--amber); background: var(--amber-dim); } /* Horizontal bar chart (HTML, no JavaScript). */ .bars { display: grid; gap: 0.62rem; margin: 0.4rem 0 0.2rem; } .bar-row { display: grid; grid-template-columns: minmax(7.5rem, 12rem) 1fr 3.6rem; gap: 0.8rem; align-items: center; font-size: 0.84rem; } .bar-label { color: var(--text); font-family: var(--mono); font-size: 0.78rem; } .bar-track { height: 0.78rem; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--panel-2); } .bar-fill { display: block; width: var(--w, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-strong), var(--accent)); } .bar-fill.green { background: linear-gradient(90deg, var(--green), color-mix(in srgb, var(--green) 55%, var(--blue))); } .bar-fill.blue { background: linear-gradient(90deg, var(--blue), var(--accent)); } .bar-value { color: var(--muted); font-family: var(--mono); font-size: 0.76rem; text-align: right; white-space: nowrap; } .chart-note { margin: 0.75rem 0 0; color: var(--faint); font-size: 0.78rem; } /* ---- details / source map ------------------------------------------- */ details { margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); } summary { padding: 0.7rem 0.9rem; cursor: pointer; color: var(--text); font-size: 0.9rem; font-weight: 550; } summary:hover { color: var(--accent); } details[open] summary { border-bottom: 1px solid var(--line); } details .details-body { padding: 0.1rem 0.9rem 0.6rem; } .filelist { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.45rem 1rem; max-width: none; margin: 0.7rem 0; padding: 0; list-style: none; } .filelist li { margin: 0; color: var(--muted); font-size: 0.86rem; } .filelist code { font-size: 0.8rem; } /* ---- footer ---------------------------------------------------------- */ .site-footer { margin-top: 2rem; border-top: 1px solid var(--line); background: var(--bg-soft); } .site-footer .inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; width: min(var(--wrap), 100% - 2.5rem); margin: 0 auto; padding: 1.35rem 0 1.5rem; color: var(--muted); font-size: 0.82rem; } .site-footer p { max-width: none; margin: 0; } .site-footer code { font-size: 0.78rem; } /* ---- small screens --------------------------------------------------- */ @media (max-width: 760px) { .site-header { padding: 0.65rem 1.1rem; } .site-nav { width: 100%; margin-left: 0; flex-wrap: nowrap; gap: 0.1rem; overflow-x: auto; padding-bottom: 0.15rem; scrollbar-width: thin; } .site-nav a { flex: 0 0 auto; padding: 0.3rem 0.45rem; font-size: 0.79rem; } .page { width: min(var(--wrap), 100% - 1.7rem); padding-top: 2.2rem; } .grid { grid-template-columns: 1fr; } .bar-row { grid-template-columns: 6.8rem 1fr 3.1rem; gap: 0.5rem; } .filelist { grid-template-columns: 1fr; } } @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, a.card:hover { transition: none; transform: none; } } @media print { :root { color-scheme: light; --bg: #fff; --bg-soft: #fff; --panel: #fff; --panel-2: #f4f4f4; --text: #111; --muted: #444; --line: #bbb; --accent: #4a2bb3; --code: #f5f5f5; } body { background: #fff; font-size: 11pt; } .site-header, .toc, .skip { display: none; } .page { width: 100%; padding: 0; } a { color: #111; text-decoration: underline; } .figure, .table-wrap, pre, .card { break-inside: avoid; } h2 { break-after: avoid; } }