/* Main Stylesheet - Medium-dark background with WCAG AA/AAA compliant colors */ :root { --bg-primary: #2d2d2d; --bg-secondary: #1e1e1e; --text-primary: #e8e8e8; --text-secondary: #b8b8b8; --link-color: #7c9eff; --link-hover: #9bb3ff; --link-visited: #a58fff; --accent-color: #7c9eff; --border-color: #404040; --focus-color: #9bb3ff; --error-color: #ff6b6b; } * { margin: 0; padding: 0; box-sizing: border-box; } /* Prevent text overflow - applied globally but can be overridden */ *, *::before, *::after { overflow-wrap: break-word; word-wrap: break-word; } /* Reset max-width for specific elements that should maintain aspect ratio */ img, video, iframe, svg { max-width: 100%; height: auto; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text-primary); background-color: var(--bg-primary); min-height: 100vh; display: flex; flex-direction: column; } /* Skip link for accessibility */ .skip-link { position: absolute; top: -40px; left: 0; background: var(--accent-color); color: var(--bg-primary); padding: 8px; text-decoration: none; z-index: 100; } .skip-link:focus { top: 0; } /* Header and Navigation */ header { background-color: var(--bg-secondary); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 50; } .navbar { padding: 1rem 0; } .nav-container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; } .logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text-primary); font-weight: 600; font-size: 1.25rem; } .logo-icon { width: 32px; height: 32px; } .logo-text { color: var(--text-primary); } .nav-menu { display: flex; list-style: none; gap: 2rem; align-items: center; } .nav-menu a { color: var(--text-primary); text-decoration: none; transition: color 0.2s; } .nav-menu a:hover, .nav-menu a:focus { color: var(--link-hover); outline: 2px solid var(--focus-color); outline-offset: 2px; } .mobile-menu-toggle { display: none; flex-direction: column; gap: 4px; background: transparent; border: none; cursor: pointer; padding: 8px; } .mobile-menu-toggle span { width: 24px; height: 2px; background: var(--text-primary); transition: all 0.3s; } /* Dropdown menu */ .dropdown { position: relative; } .dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 4px; list-style: none; min-width: 200px; padding: 0.5rem 0; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; } .dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; } .dropdown-menu li { padding: 0; } .dropdown-menu a { display: block; padding: 0.5rem 1rem; } /* Layout */ .layout-container { display: flex; max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; gap: 2rem; flex: 1; } .wiki-layout { /* Three-column layout for wiki pages: wiki-sidebar | main-content | feed-sidebar */ } .wiki-sidebar { width: 250px; flex-shrink: 0; } .wiki-nav { background: var(--bg-secondary); padding: 1.5rem; border-radius: 8px; border: 1px solid var(--border-color); position: sticky; top: 2rem; } .wiki-nav h2 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--text-primary); } .wiki-menu { list-style: none; padding: 0; margin: 0; } .wiki-menu li { margin-bottom: 0.5rem; } .wiki-menu a { display: block; padding: 0.5rem 0.75rem; color: var(--link-color); text-decoration: none; border-radius: 4px; transition: background 0.2s, color 0.2s; } .wiki-menu a:hover { background: var(--bg-primary); color: var(--link-hover); } .wiki-menu a:focus { outline: 2px solid var(--focus-color); outline-offset: 2px; } .wiki-menu a.active { background: var(--accent-color); color: var(--bg-primary); font-weight: 500; } .wiki-menu a.active:hover { background: var(--link-hover); color: var(--bg-primary); } .main-content { flex: 1; min-width: 0; } .feed-sidebar { width: 300px; flex-shrink: 0; } /* Typography */ h1, h2, h3, h4, h5, h6 { color: var(--text-primary); line-height: 1.2; margin-bottom: 1rem; } h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.5rem; } h4 { font-size: 1.25rem; } p { margin-bottom: 1rem; } /* Links */ a { color: var(--link-color); text-decoration: none; transition: color 0.2s; } /* Long URLs and addresses should break */ a[href^="http"], a[href^="nostr:"], .nostr-address { word-break: break-all; overflow-wrap: anywhere; } code, pre { word-break: break-all; overflow-wrap: anywhere; } a:hover { color: var(--link-hover); } a:visited { color: var(--link-visited); } a:focus { outline: 2px solid var(--focus-color); outline-offset: 2px; } /* Buttons */ .btn { display: inline-block; padding: 0.75rem 1.5rem; background: var(--accent-color); color: var(--bg-primary); border: none; border-radius: 4px; cursor: pointer; text-decoration: none; font-weight: 500; transition: background 0.2s; } .btn:hover { background: var(--link-hover); } .btn:focus { outline: 2px solid var(--focus-color); outline-offset: 2px; } /* Articles and Pages */ article { background: var(--bg-secondary); padding: 2rem; border-radius: 8px; margin-bottom: 2rem; } .page-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); } .page-summary { color: var(--text-secondary); font-size: 1.1rem; } .page-content { line-height: 1.8; } .page-content img { max-width: 100%; height: auto; } /* Breadcrumbs */ .breadcrumbs { margin-bottom: 1rem; } .breadcrumbs ol { list-style: none; display: flex; gap: 0.5rem; flex-wrap: wrap; } .breadcrumbs li::after { content: '/'; margin-left: 0.5rem; color: var(--text-secondary); } .breadcrumbs li:last-child::after { content: ''; } .breadcrumbs a { color: var(--link-color); } /* Feed Sidebar */ .feed-container { background: var(--bg-secondary); padding: 1.5rem; border-radius: 8px; border: 1px solid var(--border-color); } .feed-container h3 { margin-bottom: 1rem; font-size: 1.25rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; } .feed-item { padding: 1rem 0; border-bottom: 1px solid var(--border-color); overflow-wrap: break-word; word-wrap: break-word; } .feed-item:last-child { border-bottom: none; } .feed-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.5rem; } .feed-author { font-weight: 600; color: var(--text-primary); word-break: break-all; overflow-wrap: anywhere; max-width: 100%; } .feed-content { color: var(--text-secondary); margin-bottom: 0.5rem; font-size: 0.9rem; overflow-wrap: break-word; word-wrap: break-word; } .feed-time { color: var(--text-secondary); font-size: 0.85rem; white-space: nowrap; } .feed-footer { margin-top: 0.5rem; } .feed-link { font-size: 0.85rem; word-break: break-all; overflow-wrap: anywhere; display: inline-block; max-width: 100%; } .feed-link-header { font-size: 0.875rem; font-weight: normal; margin-left: 0.5rem; } .feed-empty { color: var(--text-secondary); font-style: italic; } /* Footer */ footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 2rem 1rem; text-align: center; color: var(--text-secondary); margin-top: auto; } /* Error pages */ .error-page { text-align: center; padding: 4rem 2rem; max-width: 600px; margin: 0 auto; } .error-page h1 { font-size: 4rem; margin-bottom: 1rem; } .error-page p { font-size: 1.25rem; margin-bottom: 2rem; color: var(--text-secondary); } /* Blog */ /* Blog Layout - Two Column Alexandria Style */ .blog-layout { display: flex; gap: 2rem; max-width: 1400px; margin: 0 auto; padding: 2rem; min-height: calc(100vh - 200px); } .blog-sidebar { width: 350px; flex-shrink: 0; background-color: var(--bg-secondary); border-radius: 8px; padding: 2rem; position: sticky; top: 2rem; max-height: calc(100vh - 4rem); overflow-y: auto; } .blog-header { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-color); } .blog-author-handle { font-size: 0.9em; color: var(--text-secondary); margin-bottom: 1rem; font-family: monospace; } .blog-image { margin-bottom: 1rem; } .blog-image img { width: 100%; max-width: 200px; height: auto; border-radius: 4px; object-fit: cover; } .blog-title { font-size: 1.8rem; margin: 0 0 0.5rem 0; color: var(--text-primary); } .blog-byline { color: var(--text-secondary); font-size: 0.95em; margin: 0 0 1rem 0; } .blog-description { color: var(--text-secondary); line-height: 1.6; margin: 0 0 1rem 0; } .blog-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; } .blog-tags .tag { display: inline-block; padding: 0.25rem 0.75rem; background-color: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; font-size: 0.85em; color: var(--text-secondary); } .blog-nav { margin-top: 1rem; } .article-menu { list-style: none; padding: 0; margin: 0; } .article-menu li { margin-bottom: 0.5rem; } .article-link { display: block; padding: 1rem; text-decoration: none; border-radius: 6px; transition: background-color 0.2s; border: 1px solid transparent; } .article-link:hover { background-color: var(--bg-primary); border-color: var(--border-color); } .article-link[data-active="true"] { background-color: var(--bg-primary); border-color: var(--accent-color); } .article-link-title { font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; font-size: 1em; } .article-link-meta { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85em; color: var(--text-secondary); } .article-date { color: var(--text-secondary); } .article-author { font-family: monospace; font-size: 0.9em; color: var(--text-secondary); opacity: 0.8; } /* Blog Content Area */ .blog-content { flex: 1; min-width: 0; background-color: var(--bg-secondary); border-radius: 8px; padding: 3rem; position: relative; } .blog-article { display: none; } .blog-article.active { display: block; } .article-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); } .article-title { font-size: 2.5rem; margin: 0 0 0.5rem 0; color: var(--text-primary); line-height: 1.2; } .article-subtitle { color: var(--text-secondary); font-size: 0.95em; margin: 0; font-style: italic; } .article-summary { color: var(--text-secondary); font-size: 1.1em; line-height: 1.6; margin: 1.5rem 0; padding: 1rem; background-color: var(--bg-primary); border-left: 3px solid var(--accent-color); border-radius: 4px; } /* Code blocks */ pre { background: var(--bg-secondary); padding: 1rem; border-radius: 4px; overflow-x: auto; margin: 1rem 0; } code { background: var(--bg-secondary); padding: 0.2rem 0.4rem; border-radius: 3px; font-family: 'Courier New', monospace; font-size: 0.9em; } pre code { background: transparent; padding: 0; } /* Tables */ table { width: 100%; border-collapse: collapse; margin: 1rem 0; } th, td { padding: 0.75rem; border: 1px solid var(--border-color); text-align: left; } th { background: var(--bg-secondary); font-weight: 600; } /* Lists */ ul, ol { margin-left: 2rem; margin-bottom: 1rem; } li { margin-bottom: 0.5rem; } /* Focus styles for accessibility */ *:focus { outline: 2px solid var(--focus-color); outline-offset: 2px; } button:focus, a:focus, input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus-color); outline-offset: 2px; } /* Contact Form Styles */ .contact-page { max-width: 800px; margin: 0 auto; padding: 2rem; } .contact-form { margin-top: 2rem; } .form-group { margin-bottom: 1.5rem; } .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--text-primary); } .form-group .required { color: var(--error-color); } .form-group input[type="text"], .form-group textarea { width: 100%; padding: 0.75rem; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-primary); font-family: inherit; font-size: 1rem; transition: border-color 0.2s; } .form-group input[type="text"]:focus, .form-group textarea:focus { border-color: var(--focus-color); outline: none; } .form-group textarea { resize: vertical; min-height: 150px; } .form-help { display: block; margin-top: 0.5rem; font-size: 0.875rem; color: var(--text-secondary); } .form-actions { display: flex; gap: 1rem; margin-top: 2rem; } .btn { padding: 0.75rem 1.5rem; border: none; border-radius: 4px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background-color 0.2s, transform 0.1s; } .btn:active { transform: scale(0.98); } .btn-primary { background: var(--accent-color); color: var(--bg-primary); } .btn-primary:hover { background: var(--link-hover); } .btn-secondary { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-color); } .btn-secondary:hover { background: #2a2a2a; } /* Alert Styles */ .alert { padding: 1rem; border-radius: 4px; margin-bottom: 1.5rem; } .alert-success { background: rgba(76, 175, 80, 0.2); border: 1px solid rgba(76, 175, 80, 0.5); color: #a5d6a7; } .alert-error { background: rgba(244, 67, 54, 0.2); border: 1px solid rgba(244, 67, 54, 0.5); color: #ef9a9a; } .alert strong { display: block; margin-bottom: 0.5rem; } .alert small { display: block; margin-top: 0.5rem; font-size: 0.875rem; opacity: 0.8; } /* E-Books page styles */ .ebooks-page { max-width: 1200px; margin: 0 auto; padding: 2rem; } .ebooks-container { margin-top: 2rem; } .ebooks-table { width: 100%; border-collapse: collapse; background-color: var(--bg-secondary); border-radius: 8px; overflow: hidden; } .ebooks-table thead { background-color: var(--bg-primary); } .ebooks-table th { padding: 1rem; text-align: left; font-weight: 600; color: var(--text-primary); border-bottom: 2px solid var(--border-color); } .ebooks-table th.sortable { cursor: pointer; user-select: none; position: relative; } .ebooks-table th.sortable:hover { background-color: var(--bg-secondary); } .ebooks-table th .sort-indicator { margin-left: 0.5rem; font-size: 0.9em; opacity: 0.6; } .ebooks-table tbody tr { border-bottom: 1px solid var(--border-color); transition: background-color 0.2s; } .ebooks-table tbody tr:hover { background-color: var(--bg-primary); } .ebooks-table td { padding: 1rem; color: var(--text-primary); vertical-align: top; } .ebooks-table td code.pubkey { font-size: 0.85em; background-color: var(--bg-primary); padding: 0.25rem 0.5rem; border-radius: 4px; word-break: break-all; } .ebooks-table td .text-muted { color: var(--text-secondary); font-size: 0.9em; margin-top: 0.5rem; display: block; } .ebooks-table td .btn-sm { padding: 0.5rem 1rem; font-size: 0.9em; } .ebooks-table td .text-center { text-align: center; color: var(--text-secondary); font-style: italic; }