/* 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; } 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; } .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; } 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; } .feed-item { padding: 1rem 0; border-bottom: 1px solid var(--border-color); } .feed-item:last-child { border-bottom: none; } .feed-author { font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; } .feed-content { color: var(--text-secondary); margin-bottom: 0.5rem; font-size: 0.9rem; } .feed-time { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 0.5rem; } .feed-link { font-size: 0.85rem; } .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-nav { margin-bottom: 2rem; } .article-menu { list-style: none; } .article-menu li { margin-bottom: 1rem; padding: 1rem; background: var(--bg-secondary); border-radius: 4px; border: 1px solid var(--border-color); } .article-menu a { color: var(--text-primary); text-decoration: none; } .article-menu h3 { margin-bottom: 0.5rem; } .article-menu p { color: var(--text-secondary); margin: 0; } .blog-article { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-color); } .blog-article:last-child { border-bottom: none; } .article-summary { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 1rem; } /* 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; }