:root { --bg: #fafafa; --bg-secondary: #f0f0f0; --text: #1a1a1a; --text-muted: #666; --border: #ddd; --primary: #0066cc; --primary-hover: #0052a3; --success: #22c55e; --danger: #ef4444; --draft: #f59e0b; } @media (prefers-color-scheme: dark) { :root { --bg: #1a1a1a; --bg-secondary: #2a2a2a; --text: #f0f0f0; --text-muted: #999; --border: #333; --primary: #3b82f6; --primary-hover: #2563eb; } } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; } a { color: var(--primary); text-decoration: none; } a:hover { text-decoration: underline; } /* Header */ .header { background: var(--bg-secondary); border-bottom: 1px solid var(--border); padding: 1rem; } .nav { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; } .logo { font-size: 1.25rem; font-weight: 600; color: var(--text); } .logo:hover { text-decoration: none; } .nav-links { display: flex; gap: 1.5rem; align-items: center; } .nav-links a { color: var(--text-muted); } .nav-links a:hover { color: var(--text); } .handle { color: var(--text-muted); font-size: 0.9rem; } /* Main content */ .main { flex: 1; max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; width: 100%; } /* Footer */ .footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 1rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; } /* Buttons */ .btn { display: inline-block; padding: 0.5rem 1rem; border: none; border-radius: 4px; font-size: 1rem; cursor: pointer; text-decoration: none; } .btn:hover { text-decoration: none; } .btn-primary { background: var(--primary); color: white; } .btn-primary:hover { background: var(--primary-hover); } .btn-secondary { background: var(--bg-secondary); color: var(--text); border: 1px solid var(--border); } .btn-secondary:hover { background: var(--border); } .btn-success { background: var(--success); color: white; } .btn-danger { background: var(--danger); color: white; } .btn-large { padding: 0.75rem 2rem; font-size: 1.125rem; } /* Forms */ .form-group { margin-bottom: 1.5rem; } .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; } .form-group input, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 4px; font-size: 1rem; background: var(--bg); color: var(--text); } .form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); } .form-group small { display: block; margin-top: 0.25rem; color: var(--text-muted); font-size: 0.875rem; } .form-actions { display: flex; gap: 1rem; margin-top: 2rem; } .form-page { max-width: 800px; } .content-editor { font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Monaco, monospace; min-height: 400px; resize: vertical; } /* Auth form */ .auth-form { max-width: 400px; margin: 2rem auto; } .auth-form h1 { margin-bottom: 1.5rem; } /* Home page */ .hero { text-align: center; padding: 4rem 1rem; } .hero h1 { font-size: 3rem; margin-bottom: 1rem; } .hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 3rem; } .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 3rem; text-align: left; } .feature { background: var(--bg-secondary); padding: 1.5rem; border-radius: 8px; border: 1px solid var(--border); } .feature h3 { margin-bottom: 0.5rem; } .feature p { font-size: 1rem; margin: 0; } /* Dashboard */ .dashboard { max-width: 800px; } .dashboard h1 { margin-bottom: 0.5rem; } .dashboard p { color: var(--text-muted); margin-bottom: 2rem; } .quick-actions { display: flex; gap: 1rem; flex-wrap: wrap; } /* Publication */ .publication { max-width: 800px; } .pub-details { background: var(--bg-secondary); padding: 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; } .pub-details h2 { margin-bottom: 0.5rem; } .pub-details .url { color: var(--text-muted); margin-bottom: 0.5rem; } .pub-details .description { margin: 0; } /* Documents */ .documents { max-width: 800px; } .documents-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; } .filters { display: flex; gap: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; } .filter { color: var(--text-muted); padding: 0.25rem 0; } .filter.active { color: var(--primary); border-bottom: 2px solid var(--primary); } .document-list { list-style: none; } .document-item { border: 1px solid var(--border); border-radius: 4px; margin-bottom: 0.5rem; } .document-item a { display: flex; justify-content: space-between; align-items: center; padding: 1rem; color: var(--text); } .document-item a:hover { background: var(--bg-secondary); text-decoration: none; } .document-item .title { font-weight: 500; } .document-item .meta { display: flex; gap: 1rem; align-items: center; } .document-item .date { color: var(--text-muted); font-size: 0.9rem; } /* Badges */ .badge { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; } .badge-draft { background: var(--draft); color: white; } .badge-published { background: var(--success); color: white; } /* Document view */ .document-view { max-width: 800px; } .document-header { margin-bottom: 1.5rem; } .document-header h1 { margin-bottom: 0.5rem; } .document-meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; color: var(--text-muted); font-size: 0.9rem; } .document-content { background: var(--bg-secondary); padding: 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; } .document-content pre { white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Monaco, monospace; font-size: 0.9rem; line-height: 1.7; } .actions { display: flex; gap: 1rem; flex-wrap: wrap; } .empty { color: var(--text-muted); text-align: center; padding: 3rem; } .error { color: var(--danger); text-align: center; padding: 2rem; } .error-message { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; padding: 1rem; border-radius: 4px; margin-bottom: 1.5rem; } @media (prefers-color-scheme: dark) { .error-message { background: #450a0a; border-color: #7f1d1d; color: #fca5a5; } }