CI / typecheck + tests (push) Canceled after 0s
CI / build + deploy (Nix) — api (push) Canceled after 0s
CI / build + deploy (Nix) — mcp (push) Canceled after 0s
CI / build + deploy (Nix) — worker (push) Canceled after 0s
CI / build + deploy (web) (push) Canceled after 0s
583 lines
12 KiB
CSS
583 lines
12 KiB
CSS
@import "tailwindcss";
|
|
@plugin "@tailwindcss/typography";
|
|
|
|
/* Light mode defaults (:root) */
|
|
:root {
|
|
color-scheme: light;
|
|
--bg-app: #f8fafc;
|
|
--bg-surface: #ffffff;
|
|
--bg-surface-hover: #f1f5f9;
|
|
--bg-elevated: #f1f5f9;
|
|
--bg-elevated-hover: #e2e8f0;
|
|
--border-color: #e2e8f0;
|
|
--border-subtle: #edf2f7;
|
|
--border-card: #e2e8f0;
|
|
|
|
--text-primary: #0f172a;
|
|
--text-secondary: #334155;
|
|
--text-muted: #64748b;
|
|
--text-dim: #94a3b8;
|
|
|
|
--brand: #4f46e5;
|
|
--brand-hover: #4338ca;
|
|
--brand-glow: rgba(79, 70, 229, 0.15);
|
|
--accent: #4f46e5;
|
|
--accent-hover: #4338ca;
|
|
--cyan-accent: #0284c7;
|
|
|
|
--nav-bg: rgba(255, 255, 255, 0.85);
|
|
|
|
/* Code & Syntax variables (Light Mode) */
|
|
--code-bg: #f8fafc;
|
|
--code-block-bg: #f8fafc;
|
|
--code-header-bg: #f1f5f9;
|
|
--border-code: #e2e8f0;
|
|
--code-button-bg: #ffffff;
|
|
--code-button-hover-bg: #e2e8f0;
|
|
--pre-text: #1e293b;
|
|
--code-inline-bg: #f1f5f9;
|
|
--code-inline-text: #0f172a;
|
|
--code-inline-border: #e2e8f0;
|
|
|
|
--table-zebra: rgba(241, 245, 249, 0.6);
|
|
--scrollbar-thumb: #cbd5e1;
|
|
--scrollbar-thumb-hover: #94a3b8;
|
|
--shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
|
|
|
|
/* Syntax Highlighting (Light Mode) */
|
|
--hl-keyword: #cf222e;
|
|
--hl-string: #0a3069;
|
|
--hl-title: #8250df;
|
|
--hl-attr: #953800;
|
|
--hl-number: #0550ae;
|
|
--hl-comment: #6e7781;
|
|
--hl-builtin: #0969da;
|
|
--hl-operator: #57606a;
|
|
--hl-variable: #953800;
|
|
--hl-meta: #6e7781;
|
|
|
|
/* Grid overlay */
|
|
--grid-pattern: rgba(15, 23, 42, 0.03);
|
|
}
|
|
|
|
/* Dark mode overrides (html.dark) */
|
|
html.dark {
|
|
color-scheme: dark;
|
|
--bg-app: #08090d;
|
|
--bg-surface: #0e1117;
|
|
--bg-surface-hover: #141822;
|
|
--bg-elevated: #151a26;
|
|
--bg-elevated-hover: #1e2436;
|
|
--border-color: #1e2536;
|
|
--border-subtle: rgba(255, 255, 255, 0.06);
|
|
--border-card: #1e2536;
|
|
|
|
--text-primary: #f8fafc;
|
|
--text-secondary: #cbd5e1;
|
|
--text-muted: #8492a6;
|
|
--text-dim: #505c70;
|
|
|
|
--brand: #6366f1;
|
|
--brand-hover: #818cf8;
|
|
--brand-glow: rgba(99, 102, 241, 0.22);
|
|
--accent: #818cf8;
|
|
--accent-hover: #a5b4fc;
|
|
--cyan-accent: #38bdf8;
|
|
|
|
--nav-bg: rgba(8, 9, 13, 0.85);
|
|
|
|
/* Code & Syntax variables (Dark Mode) */
|
|
--code-bg: #0b0e14;
|
|
--code-block-bg: #0a0d14;
|
|
--code-header-bg: #111520;
|
|
--border-code: #202738;
|
|
--code-button-bg: #151a26;
|
|
--code-button-hover-bg: #202738;
|
|
--pre-text: #e2e8f0;
|
|
--code-inline-bg: #131722;
|
|
--code-inline-text: #e2e8f0;
|
|
--code-inline-border: #202738;
|
|
|
|
--table-zebra: rgba(255, 255, 255, 0.02);
|
|
--scrollbar-thumb: #1e2536;
|
|
--scrollbar-thumb-hover: #313c54;
|
|
--shadow-card: none;
|
|
|
|
/* Syntax Highlighting (Dark Mode) */
|
|
--hl-keyword: #ff7b72;
|
|
--hl-string: #a5d6ff;
|
|
--hl-title: #d2a8ff;
|
|
--hl-attr: #ffa657;
|
|
--hl-number: #79c0ff;
|
|
--hl-comment: #8b949e;
|
|
--hl-builtin: #7ee787;
|
|
--hl-operator: #8b949e;
|
|
--hl-variable: #ffa657;
|
|
--hl-meta: #8b949e;
|
|
|
|
/* Grid overlay */
|
|
--grid-pattern: rgba(255, 255, 255, 0.025);
|
|
}
|
|
|
|
@theme inline {
|
|
--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
|
|
|
|
--color-background: var(--bg-app);
|
|
--color-surface: var(--bg-surface);
|
|
--color-surface-hover: var(--bg-surface-hover);
|
|
--color-elevated: var(--bg-elevated);
|
|
--color-elevated-hover: var(--bg-elevated-hover);
|
|
--color-border: var(--border-color);
|
|
--border-code: var(--border-code);
|
|
--color-border-subtle: var(--border-subtle);
|
|
|
|
--color-text-primary: var(--text-primary);
|
|
--color-text-secondary: var(--text-secondary);
|
|
--color-text-tertiary: var(--text-muted);
|
|
--color-text-quaternary: var(--text-dim);
|
|
|
|
--color-brand: var(--brand);
|
|
--color-brand-hover: var(--brand-hover);
|
|
--color-accent: var(--accent);
|
|
--color-accent-hover: var(--accent-hover);
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--bg-app);
|
|
color: var(--text-secondary);
|
|
font-family: var(--font-sans);
|
|
font-feature-settings: "cv01", "ss03", "zero";
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
transition: background-color 0.25s ease, color 0.25s ease;
|
|
position: relative;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* Background subtle tech grid */
|
|
.tech-grid-bg {
|
|
background-size: 32px 32px;
|
|
background-image: linear-gradient(to right, var(--grid-pattern) 1px, transparent 1px),
|
|
linear-gradient(to bottom, var(--grid-pattern) 1px, transparent 1px);
|
|
}
|
|
|
|
/* Custom scrollbar */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--scrollbar-thumb);
|
|
border-radius: 9999px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--scrollbar-thumb-hover);
|
|
}
|
|
|
|
/* Glassmorphism helpers */
|
|
.glass-panel {
|
|
background: var(--bg-surface);
|
|
backdrop-filter: blur(16px);
|
|
-webkit-backdrop-filter: blur(16px);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.glass-nav {
|
|
background: var(--nav-bg);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
}
|
|
|
|
.glow-card {
|
|
position: relative;
|
|
transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
.glow-card:hover {
|
|
transform: translateY(-2px);
|
|
border-color: var(--brand);
|
|
box-shadow: 0 8px 30px -10px var(--brand-glow);
|
|
}
|
|
|
|
/* Callout Alert Styles */
|
|
.callout {
|
|
border-left-width: 4px;
|
|
border-radius: 0 0.5rem 0.5rem 0;
|
|
padding: 1rem 1.25rem;
|
|
margin: 1.5rem 0;
|
|
}
|
|
|
|
.callout-note {
|
|
border-left-color: #6366f1;
|
|
background-color: rgba(99, 102, 241, 0.08);
|
|
}
|
|
|
|
.callout-tip {
|
|
border-left-color: #10b981;
|
|
background-color: rgba(16, 185, 129, 0.08);
|
|
}
|
|
|
|
.callout-important {
|
|
border-left-color: #8b5cf6;
|
|
background-color: rgba(139, 92, 246, 0.08);
|
|
}
|
|
|
|
.callout-warning {
|
|
border-left-color: #f59e0b;
|
|
background-color: rgba(245, 158, 11, 0.08);
|
|
}
|
|
|
|
.callout-caution {
|
|
border-left-color: #ef4444;
|
|
background-color: rgba(239, 68, 68, 0.08);
|
|
}
|
|
|
|
/* Prose markdown typography for both Light and Dark modes */
|
|
.prose {
|
|
color: var(--text-secondary) !important;
|
|
max-width: 100% !important;
|
|
}
|
|
|
|
.prose h1, .prose h2, .prose h3, .prose h4, .prose strong {
|
|
color: var(--text-primary) !important;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.prose a {
|
|
color: var(--accent) !important;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
transition: color 0.15s ease;
|
|
}
|
|
|
|
.prose a:hover {
|
|
color: var(--accent-hover) !important;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.prose table {
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
margin: 2rem 0;
|
|
font-size: 0.875rem;
|
|
border-radius: 0.75rem;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border-color);
|
|
background: var(--bg-surface);
|
|
}
|
|
|
|
.prose th,
|
|
.prose td {
|
|
padding: 0.875rem 1.125rem;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.prose th {
|
|
background: var(--bg-elevated);
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
font-size: 0.8125rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
.prose td {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.prose tbody tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.prose tbody tr:hover {
|
|
background: var(--bg-elevated-hover);
|
|
}
|
|
|
|
.prose tbody tr:nth-child(even) {
|
|
background: var(--table-zebra);
|
|
}
|
|
|
|
.prose pre {
|
|
background: var(--code-block-bg) !important;
|
|
color: var(--pre-text) !important;
|
|
border: 1px solid var(--border-code);
|
|
border-radius: 0.75rem;
|
|
padding: 1.25rem;
|
|
overflow-x: auto;
|
|
position: relative;
|
|
font-family: var(--font-mono);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.prose code {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.875em;
|
|
}
|
|
|
|
.prose :not(pre) > code {
|
|
background: var(--code-inline-bg);
|
|
color: var(--code-inline-text);
|
|
border: 1px solid var(--code-inline-border);
|
|
padding: 0.15rem 0.4rem;
|
|
border-radius: 0.375rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.prose :not(pre) > code::before,
|
|
.prose :not(pre) > code::after {
|
|
content: none !important;
|
|
}
|
|
|
|
.prose blockquote {
|
|
border-left: 3px solid var(--brand);
|
|
background: rgba(99, 102, 241, 0.08);
|
|
border-radius: 0 0.5rem 0.5rem 0;
|
|
margin: 1.75em 0;
|
|
padding: 0.875em 1.25em;
|
|
font-style: normal;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.prose hr {
|
|
border-color: var(--border-color);
|
|
margin: 2.5rem 0;
|
|
}
|
|
|
|
/* Syntax Highlighting Tokens (Highlight.js) */
|
|
.hljs {
|
|
color: var(--pre-text);
|
|
background: transparent;
|
|
}
|
|
|
|
.hljs-keyword,
|
|
.hljs-selector-tag,
|
|
.hljs-subst,
|
|
.hljs-doctag {
|
|
color: var(--hl-keyword);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.hljs-string,
|
|
.hljs-regexp,
|
|
.hljs-link {
|
|
color: var(--hl-string);
|
|
}
|
|
|
|
.hljs-title,
|
|
.hljs-title.function_,
|
|
.hljs-title.class_,
|
|
.hljs-section {
|
|
color: var(--hl-title);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.hljs-attr,
|
|
.hljs-attribute,
|
|
.hljs-variable,
|
|
.hljs-template-variable,
|
|
.hljs-type {
|
|
color: var(--hl-attr);
|
|
}
|
|
|
|
.hljs-number,
|
|
.hljs-literal {
|
|
color: var(--hl-number);
|
|
}
|
|
|
|
.hljs-comment,
|
|
.hljs-quote {
|
|
color: var(--hl-comment);
|
|
font-style: italic;
|
|
}
|
|
|
|
.hljs-built_in,
|
|
.hljs-symbol,
|
|
.hljs-bullet {
|
|
color: var(--hl-builtin);
|
|
}
|
|
|
|
.hljs-meta,
|
|
.hljs-meta .hljs-keyword,
|
|
.hljs-meta .hljs-string {
|
|
color: var(--hl-meta);
|
|
}
|
|
|
|
.hljs-params {
|
|
color: var(--pre-text);
|
|
}
|
|
|
|
.hljs-punctuation,
|
|
.hljs-operator {
|
|
color: var(--hl-operator);
|
|
}
|
|
|
|
.hljs-addition {
|
|
color: #10b981;
|
|
background-color: rgba(16, 185, 129, 0.15);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.hljs-deletion {
|
|
color: #ef4444;
|
|
background-color: rgba(239, 68, 68, 0.15);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.hljs-emphasis {
|
|
font-style: italic;
|
|
}
|
|
|
|
.hljs-strong {
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Keyframes & Animation utilities */
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(6px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
@keyframes slideDown {
|
|
from { opacity: 0; transform: translateY(-8px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
@keyframes pulseGlow {
|
|
0%, 100% { opacity: 0.6; }
|
|
50% { opacity: 1; filter: drop-shadow(0 0 8px var(--brand)); }
|
|
}
|
|
|
|
.animate-fade-in {
|
|
animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
}
|
|
|
|
.animate-slide-down {
|
|
animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
}
|
|
|
|
.animate-pulse-glow {
|
|
animation: pulseGlow 2.5s ease-in-out infinite;
|
|
}
|
|
|
|
/* Print & PDF Export Stylesheet */
|
|
@media print {
|
|
@page {
|
|
size: A4 portrait;
|
|
margin: 18mm 15mm 18mm 15mm;
|
|
}
|
|
|
|
*, *::before, *::after {
|
|
-webkit-print-color-adjust: exact !important;
|
|
print-color-adjust: exact !important;
|
|
}
|
|
|
|
html, body {
|
|
background-color: #ffffff !important;
|
|
color: #0f172a !important;
|
|
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
|
|
font-size: 10pt !important;
|
|
line-height: 1.5 !important;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
width: 100% !important;
|
|
}
|
|
|
|
header,
|
|
aside,
|
|
footer,
|
|
nav.site-header,
|
|
.no-print,
|
|
.export-toolbar,
|
|
#a11y-live-region {
|
|
display: none !important;
|
|
}
|
|
|
|
main,
|
|
.print-container {
|
|
max-width: 100% !important;
|
|
width: 100% !important;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
border: none !important;
|
|
box-shadow: none !important;
|
|
background: transparent !important;
|
|
}
|
|
|
|
.page-break-before,
|
|
.chapter-page,
|
|
.challenge-entry {
|
|
break-before: page !important;
|
|
page-break-before: always !important;
|
|
}
|
|
|
|
.avoid-break-inside,
|
|
.code-block-wrapper,
|
|
.code-block-container,
|
|
.challenge-entry,
|
|
table,
|
|
tr,
|
|
img,
|
|
pre,
|
|
blockquote {
|
|
break-inside: avoid !important;
|
|
page-break-inside: avoid !important;
|
|
}
|
|
|
|
img {
|
|
max-width: 100% !important;
|
|
height: auto !important;
|
|
}
|
|
|
|
.code-block-wrapper,
|
|
.code-block-container {
|
|
break-inside: avoid !important;
|
|
page-break-inside: avoid !important;
|
|
border: 1px solid #cbd5e1 !important;
|
|
background-color: #f8fafc !important;
|
|
border-radius: 4px !important;
|
|
margin: 8pt 0 !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
.code-block-header {
|
|
border-bottom: 1px solid #cbd5e1 !important;
|
|
background-color: #f1f5f9 !important;
|
|
padding: 3pt 8pt !important;
|
|
color: #334155 !important;
|
|
}
|
|
|
|
.code-block-wrapper pre {
|
|
border: none !important;
|
|
background-color: transparent !important;
|
|
padding: 6pt 8pt !important;
|
|
margin: 0 !important;
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
pre,
|
|
pre code,
|
|
code {
|
|
white-space: pre-wrap !important;
|
|
word-break: break-all !important;
|
|
overflow-wrap: anywhere !important;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
|
|
font-size: 8.5pt !important;
|
|
line-height: 1.4 !important;
|
|
}
|
|
}
|