@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: #5e6ad2; --accent: #4f46e5; --accent-hover: #4338ca; --nav-bg: rgba(255, 255, 255, 0.88); --code-bg: #f1f5f9; --code-block-bg: #0f172a; --pre-text: #f8fafc; --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); } /* Dark mode overrides (html.dark) */ html.dark { color-scheme: dark; --bg-app: #08090a; --bg-surface: #0f1011; --bg-surface-hover: #131415; --bg-elevated: #141517; --bg-elevated-hover: #1b1d20; --border-color: #1f2022; --border-subtle: rgba(255, 255, 255, 0.06); --border-card: #1f2022; --text-primary: #f7f8f8; --text-secondary: #d0d6e0; --text-muted: #8a8f98; --text-dim: #62666d; --brand: #5e6ad2; --accent: #7170ff; --accent-hover: #828fff; --nav-bg: rgba(8, 9, 10, 0.85); --code-bg: #141517; --code-block-bg: #0c0d0e; --pre-text: #e2e4e7; --table-zebra: rgba(255, 255, 255, 0.02); --scrollbar-thumb: #23252a; --scrollbar-thumb-hover: #383b42; --shadow-card: none; } @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); --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-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"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transition: background-color 0.2s ease, color 0.2s ease; } /* 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(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border-color); } .glass-nav { background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); } /* Prose markdown typography for both Light and Dark modes */ .prose { color: var(--text-secondary) !important; } .prose h1, .prose h2, .prose h3, .prose h4, .prose strong { color: var(--text-primary) !important; } .prose a { color: var(--accent) !important; } .prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.75rem 0; font-size: 0.875rem; border-radius: 0.5rem; overflow: hidden; border: 1px solid var(--border-color); } .prose th, .prose td { padding: 0.75rem 1rem; 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.05em; } .prose td { color: var(--text-secondary); } .prose tbody tr:last-child td { border-bottom: none; } .prose tbody tr:nth-child(even) { background: var(--table-zebra); } .prose pre { background: var(--code-block-bg) !important; border: 1px solid var(--border-color); border-radius: 0.625rem; padding: 1rem 1.25rem; overflow-x: auto; position: relative; } .prose code { font-family: var(--font-mono); font-size: 0.85em; } .prose :not(pre) > code { background: var(--code-bg); color: var(--text-primary); border: 1px solid var(--border-color); padding: 0.15rem 0.35rem; border-radius: 0.25rem; 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(94, 106, 210, 0.08); border-radius: 0 0.375rem 0.375rem 0; margin: 1.5em 0; padding: 0.75em 1.25em; font-style: normal; color: var(--text-muted); } .prose hr { border-color: var(--border-color); margin: 2.5rem 0; } /* Animations */ @keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } } .animate-fade-in { animation: fadeIn 0.2s ease-out forwards; }