@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap'); :root { /* Fluid Typographic & Spacing Scale */ --font-size-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem); --font-size-h1: clamp(2.1rem, 1.8rem + 1.2vw, 3rem); --font-size-h2: clamp(1.55rem, 1.4rem + 0.8vw, 2.1rem); --font-size-h3: clamp(1.25rem, 1.2rem + 0.4vw, 1.55rem); --spacing-fluid: clamp(1.5rem, 1rem + 3vw, 4rem); /* Curated Slate + Indigo Aesthetic */ --bg-body: #f8fafc; --bg-card: #ffffff; --text-main: #334155; --text-heading: #0f172a; --text-muted: #64748b; --primary: #4f46e5; --primary-hover: #4338ca; --primary-bg: #e0e7ff; --primary-glow: rgba(79, 70, 229, 0.15); --border: #e2e8f0; --border-hover: #cbd5e1; --radius-sm: 6px; --radius-md: 12px; --radius-lg: 16px; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.02); --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02); --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03); --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); } body { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--text-main); background-color: var(--bg-body); line-height: 1.75; max-width: 880px; margin-left: 0; margin-right: auto; padding: var(--spacing-fluid) clamp(24px, 4vw, 48px); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* Headings */ h1, h2, h3, h4, h5, h6 { color: var(--text-heading); font-weight: 700; line-height: 1.25; margin-top: 2em; margin-bottom: 0.6em; letter-spacing: -0.02em; } h1 { font-size: var(--font-size-h1); border-bottom: 2px solid var(--border); padding-bottom: 0.4em; margin-top: 0; background: linear-gradient(135deg, var(--text-heading) 30%, #475569); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; } h2 { font-size: var(--font-size-h2); border-bottom: 1px solid var(--border); padding-bottom: 0.4em; } h3 { font-size: var(--font-size-h3); } /* Paragraphs & Links */ p { margin-top: 0; margin-bottom: 1.4em; font-size: var(--font-size-base); } a { color: var(--primary); text-decoration: none; font-weight: 600; border-bottom: 1px solid transparent; transition: var(--transition); } a:hover { color: var(--primary-hover); border-bottom-color: var(--primary-hover); } /* Blockquotes */ blockquote { margin: 2em 0; padding: 18px 24px; border-left: 5px solid var(--primary); background: linear-gradient(90deg, #f5f3ff 0%, var(--bg-card) 100%); border-radius: 0 var(--radius-md) var(--radius-md) 0; color: #3730a3; font-style: italic; box-shadow: var(--shadow-sm); } blockquote p { margin: 0; } /* Inline Code */ code { background-color: #f1f5f9; color: #0f172a; padding: 3px 6px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.85em; font-weight: 500; border: 1px solid #e2e8f0; } /* Code Blocks Container & Copy Button (ChatGPT-like) */ .code-block-container { margin: 2em 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid #1e293b; background-color: #0f172a; } .code-block-header { display: flex; justify-content: space-between; align-items: center; background-color: #1e293b; padding: 8px 20px; font-size: 0.75rem; color: #cbd5e1; border-bottom: 1px solid #2d3748; } .code-block-lang { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; text-transform: lowercase; font-weight: 600; color: #94a3b8; } .copy-code-button { background-color: transparent; color: #94a3b8; border: none; padding: 4px 8px; font-size: 0.75rem; font-weight: 600; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); user-select: none; } .copy-code-button:hover { color: #f8fafc; } .copy-code-button.copied { color: #34d399; /* Smooth emerald green for confirmation */ } /* Pre Code blocks & Custom Scrollbar */ pre { margin: 0; } pre code { padding: 20px 24px; border-radius: 0; display: block; overflow-x: auto; font-size: 0.875em; background-color: #090d16 !important; /* Slightly darker code background */ color: #e2e8f0 !important; border: none; } /* Custom Sleek Scrollbar for Code Blocks */ pre::-webkit-scrollbar { height: 6px; width: 6px; } pre::-webkit-scrollbar-track { background: #090d16; } pre::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; transition: var(--transition); } pre::-webkit-scrollbar-thumb:hover { background: #475569; } /* Tables */ table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 2em 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-hover); /* High contrast default border to prevent blending on white */ box-shadow: var(--shadow-md); background-color: var(--bg-card); transition: border-color 0.2s ease, box-shadow 0.2s ease; } table:hover { border-color: #94a3b8; /* Crisp darker border on hover */ box-shadow: var(--shadow-lg); } th, td { border: none !important; border-bottom: 1px solid var(--border) !important; padding: 16px 24px !important; } tr:last-child td { border-bottom: none !important; } th { background-color: #f1f5f9; /* Distinct header color for white bg */ color: var(--text-heading); font-weight: 700; text-align: left; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; border-bottom: 2px solid var(--primary) !important; /* Vivid indigo divider for high contrast */ } tr:nth-child(even) { background-color: #f8fafc; } tr:hover { background-color: rgba(79, 70, 229, 0.04); /* Elegant indigo glow on hover */ transition: background-color 0.15s ease; } /* Lists */ ul, ol { padding-left: 24px; margin-bottom: 1.4em; } li { margin-bottom: 0.6em; transition: color 0.15s ease; } /* Task lists (Custom Interactive Checked States) */ li input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 1.15em; height: 1.15em; border: 2px solid var(--border-hover); border-radius: 4px; margin-right: 10px; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; cursor: default; position: relative; background-color: var(--bg-card); transition: var(--transition); } li input[type="checkbox"]:checked { background-color: var(--primary); border-color: var(--primary); } li input[type="checkbox"]:checked::after { content: ""; display: block; width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); position: absolute; top: 1px; } /* Definition List Card */ dl { border: 1px solid var(--border); padding: 28px; border-radius: var(--radius-md); background-color: var(--bg-card); box-shadow: var(--shadow-md); margin: 2em 0; transition: border-color 0.2s ease, box-shadow 0.2s ease; } dl:hover { border-color: var(--border-hover); box-shadow: var(--shadow-lg); } dt { font-weight: 700; font-size: 1.1em; margin-top: 1.2em; color: var(--text-heading); } dt:first-of-type { margin-top: 0; } dd { margin-left: 20px; color: var(--text-muted); margin-bottom: 0.8em; } dd:last-of-type { margin-bottom: 0; } /* Horizontal Rule */ hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border) 50%, transparent); margin: 2.5em 0; } /* Spoilers */ .spoiler { background-color: #cbd5e1; color: transparent; filter: blur(5px); border-radius: 4px; padding: 3px 8px; cursor: pointer; user-select: none; transition: filter 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease, color 0.25s ease; } .spoiler:hover { background-color: #94a3b8; filter: blur(4px); } .spoiler.revealed { background-color: #f1f5f9; color: inherit; filter: none; cursor: text; user-select: text; } /* Custom Callout Blocks (Containers) */ .custom-block { margin: 2em 0; padding: 20px 24px; border-left-width: 5px; border-left-style: solid; border-radius: 0 var(--radius-md) var(--radius-md) 0; box-shadow: var(--shadow-sm); } .custom-block-title { font-weight: 700; margin-bottom: 10px; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; } .custom-block p:last-child { margin-bottom: 0; } /* Alert Themes */ .custom-block.note { background-color: #eff6ff; border-left-color: #3b82f6; color: #1e40af; } .custom-block.note .custom-block-title { color: #2563eb; } .custom-block.warning { background-color: #fffbeb; border-left-color: #f59e0b; color: #92400e; } .custom-block.warning .custom-block-title { color: #d97706; } .custom-block.tip { background-color: #ecfdf5; border-left-color: #10b981; color: #065f46; } .custom-block.tip .custom-block-title { color: #059669; } .custom-block.caution { background-color: #fff1f2; border-left-color: #f43f5e; color: #9f1239; } .custom-block.caution .custom-block-title { color: #e11d48; } .custom-block.important { background-color: #f5f3ff; border-left-color: #8b5cf6; color: #5b21b6; } .custom-block.important .custom-block-title { color: #7c3aed; } /* Footnotes Section */ footer, .footnotes { margin-top: 4em; padding-top: 2em; border-top: 1px solid var(--border); font-size: 0.875em; color: var(--text-muted); } .footnotes ol { padding-left: 20px; } .footnotes li { margin-bottom: 0.8em; } .footnotes a { vertical-align: super; } /* Highly Optimized Print Stylesheet */ @media print { /* Enforce WebKit & standard print-color-adjust to preserve premium backgrounds, card colors, and shadows */ * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; } body { background-color: #ffffff !important; /* Force plain white background for paper/PDF */ color: var(--text-main) !important; padding: 0 !important; margin: 1.5cm !important; /* Standard print margins */ font-size: 11pt !important; } h1, h2, h3, h4, h5, h6 { page-break-after: avoid !important; break-after: avoid !important; } /* Clean, crisp collapsed tables for high-quality paper layout */ table { border-collapse: collapse !important; border: 1px solid #cbd5e1 !important; /* Soft Slate 300 outer border */ box-shadow: none !important; /* Shadows look messy on print */ border-radius: 0 !important; /* Flat borders prevent cut-off rendering artifacts in PDF engines */ background-color: #ffffff !important; } th, td { border: 1px solid #e2e8f0 !important; /* Light Slate 200 cell boundaries */ padding: 10px 14px !important; /* Balanced margins */ } th { border-bottom: 2px solid var(--primary) !important; /* Bold divider line preserved */ background-color: #f1f5f9 !important; } /* Code Blocks: Light theme for ink-savings and high-contrast paper reading */ pre code { background-color: #f8fafc !important; color: #0f172a !important; border: none !important; border-radius: 0 !important; } /* Code block header styled cleanly in light theme */ .code-block-header { background-color: #f1f5f9 !important; color: var(--text-main) !important; border-bottom: 1px solid var(--border) !important; } .code-block-lang { color: var(--text-heading) !important; } .code-block-container { border: 1px solid var(--border) !important; background-color: #f8fafc !important; box-shadow: none !important; } /* Hide purely interactive controls on paper */ .copy-code-button { display: none !important; } /* Unblur spoilers for print readability so the secret is legible in PDF */ .spoiler { filter: none !important; color: var(--text-heading) !important; background-color: #f1f5f9 !important; } }