/* Ridgway Systems — ridgwaysystems.org OpenBSD-inspired: clean, functional, no-nonsense. -------------------------------------------------- */ /* === Custom Properties === */ :root { --bg: #f5f3ef; --bg-alt: #eceae4; --bg-code: #e5e2dc; --text: #1e1c1a; --text-muted: #5a5650; --accent: #c75000; --accent-dim: #9e3f00; --border: #ccc8c0; --border-dark: #b0aba0; --font-sans: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; --font-mono: "SFMono-Regular", "Consolas", "Liberation Mono", Menlo, monospace; --max-w: 760px; --radius: 3px; } @media (prefers-color-scheme: dark) { :root { --bg: #1a1918; --bg-alt: #222120; --bg-code: #252422; --text: #d4d1ca; --text-muted: #888580; --accent: #e8870a; --accent-dim: #c06b00; --border: #333230; --border-dark: #4a4845; } } /* === Reset & Base === */ *, *::before, *::after { box-sizing: border-box; } html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; } body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 1rem; line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; color: var(--accent-dim); } h1, h2, h3, h4, h5, h6 { margin: 1.5em 0 0.5em; line-height: 1.25; color: var(--text); font-weight: 600; } h1 { font-size: 1.9rem; margin-top: 0; } h2 { font-size: 1.4rem; } h3 { font-size: 1.15rem; } p { margin: 0 0 1em; } ul, ol { padding-left: 1.5em; margin: 0 0 1em; } li { margin-bottom: 0.25em; } hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; } img { max-width: 100%; height: auto; } table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 0 0 1.5em; } th { text-align: left; padding: 0.5em 0.75em; background: var(--bg-alt); border-bottom: 2px solid var(--border-dark); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); } td { padding: 0.5em 0.75em; border-bottom: 1px solid var(--border); vertical-align: top; } tr:last-child td { border-bottom: none; } code { font-family: var(--font-mono); font-size: 0.875em; background: var(--bg-code); padding: 0.15em 0.4em; border-radius: var(--radius); border: 1px solid var(--border); } pre { background: var(--bg-code); border: 1px solid var(--border); border-radius: var(--radius); padding: 1em 1.25em; overflow-x: auto; margin: 0 0 1.5em; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.6; } pre code { background: none; border: none; padding: 0; font-size: inherit; } blockquote { border-left: 3px solid var(--accent); margin: 1.5em 0; padding: 0.5em 1em; color: var(--text-muted); font-style: italic; } /* === Layout === */ .main-content { flex: 1; width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 2rem 1.25rem; } /* === Header / Nav === */ .site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; } .nav { max-width: var(--max-w); margin: 0 auto; padding: 0.75rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; } .nav-brand { font-family: var(--font-mono); font-size: 0.9rem; font-weight: bold; color: var(--text); text-decoration: none; white-space: nowrap; } .nav-brand:hover { color: var(--accent); text-decoration: none; } .nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; } .nav-links a { color: var(--text-muted); font-size: 0.9rem; text-decoration: none; font-family: var(--font-mono); } .nav-links a:hover { color: var(--accent); text-decoration: none; } /* === Footer === */ .site-footer { border-top: 1px solid var(--border); padding: 1rem 1.25rem; text-align: center; font-size: 0.82rem; color: var(--text-muted); font-family: var(--font-mono); } .site-footer a { color: var(--text-muted); } .site-footer a:hover { color: var(--accent); } /* === Buttons === */ .btn { display: inline-block; padding: 0.4em 0.85em; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: var(--radius); font-size: 0.85rem; font-family: var(--font-mono); cursor: pointer; text-decoration: none; transition: background 0.1s, color 0.1s; line-height: 1.5; } .btn:hover { background: var(--accent-dim); border-color: var(--accent-dim); text-decoration: none; color: #fff; } .btn-outline { background: transparent; color: var(--accent); } .btn-outline:hover { background: var(--accent); color: #fff; } .btn-sm { font-size: 0.78rem; padding: 0.25em 0.6em; } .btn-danger { background: #b00; border-color: #b00; color: #fff; } .btn-danger:hover { background: #900; border-color: #900; color: #fff; } /* === Tags === */ .tag { display: inline-block; font-size: 0.78rem; font-family: var(--font-mono); color: var(--text-muted); background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.1em 0.45em; text-decoration: none; line-height: 1.5; } .tag:hover { color: var(--accent); text-decoration: none; border-color: var(--accent); } .tag-active { background: var(--accent); color: #fff; border-color: var(--accent); } .tag-active:hover { background: var(--accent-dim); border-color: var(--accent-dim); color: #fff; } /* === Page Header === */ .page-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); } .page-header h1 { margin-bottom: 0.25em; } .page-desc { color: var(--text-muted); font-size: 0.95rem; margin: 0; } /* === Hero === */ .hero { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; } .hero h1 { font-size: 2.25rem; font-family: var(--font-mono); letter-spacing: -0.02em; color: var(--text); margin-bottom: 0.35em; } .tagline { font-size: 1.1rem; color: var(--text-muted); margin: 0 0 1em; font-style: italic; } .hero-desc { max-width: 600px; color: var(--text); margin-bottom: 1.5em; } .hero-links { display: flex; gap: 0.75rem; flex-wrap: wrap; } /* === Infrastructure Summary (Index) === */ .infra-summary { margin-bottom: 2.5rem; } .infra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-top: 1rem; } .infra-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1rem; } .infra-host { font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2em; } .infra-role { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.2em; } .infra-detail { font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-mono); } /* === Post Lists === */ .post-list { list-style: none; padding: 0; margin: 0; } .post-item { display: flex; flex-direction: column; gap: 0.2em; padding: 0.85rem 0; border-bottom: 1px solid var(--border); } .post-item:last-child { border-bottom: none; } .post-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); } .post-title { font-size: 1.05rem; font-weight: 600; color: var(--text); text-decoration: none; } .post-title:hover { color: var(--accent); text-decoration: none; } .post-desc { font-size: 0.88rem; color: var(--text-muted); margin: 0; } .post-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; } .post-meta { display: flex; align-items: center; gap: 0.75rem; } .all-posts-link { display: inline-block; margin-top: 1.25rem; font-size: 0.9rem; font-family: var(--font-mono); } /* === Tag Filter === */ .tag-filter { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 1.75rem; } .tag-filter-label { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono); margin-right: 0.25rem; } /* === Post (Single) === */ .post { max-width: var(--max-w); } .post-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); } .post-header h1 { margin-bottom: 0.4em; } .post-header .post-meta { font-size: 0.85rem; color: var(--text-muted); font-family: var(--font-mono); } .post-content { line-height: 1.75; } .post-content h1, .post-content h2, .post-content h3, .post-content h4 { margin-top: 2em; } .post-content p { margin-bottom: 1.1em; } .post-footer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.9rem; } /* === Draft Badge === */ .draft-badge { font-family: var(--font-mono); font-size: 0.72rem; background: #e0a000; color: #fff; padding: 0.1em 0.5em; border-radius: var(--radius); text-transform: uppercase; letter-spacing: 0.04em; } .pub-badge { font-family: var(--font-mono); font-size: 0.72rem; background: #2a9a5a; color: #fff; padding: 0.1em 0.5em; border-radius: var(--radius); text-transform: uppercase; letter-spacing: 0.04em; } /* === Status Page === */ .status-list { list-style: none; padding: 0; margin: 0 0 2rem; } .status-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 0; border-bottom: 1px solid var(--border); } .status-item:last-child { border-bottom: none; } .status-indicator { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; } .status-up .status-indicator { background: #2a9a5a; } .status-degraded .status-indicator { background: #e0a000; } .status-down .status-indicator { background: #cc2200; } .status-unknown .status-indicator { background: var(--border-dark); } .status-info { flex: 1; display: flex; flex-direction: column; gap: 0.1em; } .status-name { font-weight: 600; font-size: 0.95rem; } .status-desc { font-size: 0.82rem; color: var(--text-muted); font-family: var(--font-mono); } .status-note { font-size: 0.82rem; color: var(--text-muted); font-style: italic; } .status-badge { font-family: var(--font-mono); font-size: 0.75rem; padding: 0.15em 0.55em; border-radius: var(--radius); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0; } .status-badge-up { background: #2a9a5a; color: #fff; } .status-badge-degraded { background: #e0a000; color: #fff; } .status-badge-down { background: #cc2200; color: #fff; } .status-badge-unknown { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); } .status-legend { margin-top: 1rem; font-size: 0.82rem; color: var(--text-muted); } /* === Infrastructure Page === */ .infra-section { margin-bottom: 3rem; } .infra-section h2 { border-bottom: 1px solid var(--border); padding-bottom: 0.4em; } .hw-table { font-size: 0.88rem; } .hw-name { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; } .hw-spec { display: block; font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono); } .network-diagram { font-size: 0.82rem; line-height: 1.5; white-space: pre; overflow-x: auto; background: var(--bg-code); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25em 1.5em; } /* === About / Prose === */ .prose { max-width: 640px; line-height: 1.75; } .prose h2 { margin-top: 2em; } .contact-list { list-style: none; padding: 0; } .contact-list li { margin-bottom: 0.5em; } /* === Empty State === */ .empty-state { color: var(--text-muted); font-size: 0.9rem; padding: 2rem 0; } /* === Admin === */ .admin-wrap { max-width: 960px; } .admin-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); } .admin-header h1 { margin: 0; } .admin-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; } .admin-table { font-size: 0.875rem; width: 100%; } .admin-table th { font-size: 0.8rem; } .tags-cell { font-size: 0.8rem; } .actions-cell { white-space: nowrap; display: flex; gap: 0.4rem; } .inline-form { display: inline; } .form-error { background: #fee; border: 1px solid #faa; border-radius: var(--radius); padding: 0.6em 0.9em; color: #c00; font-size: 0.88rem; margin-bottom: 1rem; } .flash-msg { background: #efe; border: 1px solid #9d9; border-radius: var(--radius); padding: 0.6em 0.9em; color: #2a7a2a; font-size: 0.88rem; margin-bottom: 1rem; } /* Admin login */ .admin-login-wrap { max-width: 360px; margin: 3rem auto; } .admin-login-wrap h1 { font-family: var(--font-mono); margin-bottom: 1.5rem; } .login-form { display: flex; flex-direction: column; gap: 0.75rem; } .login-form label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); } .login-form input { width: 100%; padding: 0.5em 0.75em; background: var(--bg); border: 1px solid var(--border-dark); border-radius: var(--radius); color: var(--text); font-size: 0.95rem; font-family: var(--font-mono); } .login-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); } /* Editor */ .form-row { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.4rem; } .form-row label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); } .form-row input { max-width: 380px; padding: 0.4em 0.7em; background: var(--bg); border: 1px solid var(--border-dark); border-radius: var(--radius); color: var(--text); font-family: var(--font-mono); font-size: 0.9rem; } .editor-form { display: flex; flex-direction: column; } .editor-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; } @media (max-width: 700px) { .editor-layout { grid-template-columns: 1fr; } } .editor-pane label, .preview-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; } .editor-textarea { width: 100%; height: 60vh; min-height: 400px; background: var(--bg-code); border: 1px solid var(--border-dark); border-radius: var(--radius); color: var(--text); font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.65; padding: 0.85rem 1rem; resize: vertical; tab-size: 2; } .editor-textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; } .preview-output { height: 60vh; min-height: 400px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.85rem 1rem; background: var(--bg); font-size: 0.9rem; line-height: 1.7; } .editor-footer { display: flex; gap: 0.5rem; margin-top: 0.5rem; } .json-editor { width: 100%; background: var(--bg-code); border: 1px solid var(--border-dark); border-radius: var(--radius); color: var(--text); font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.6; padding: 0.85rem 1rem; resize: vertical; margin-bottom: 0.75rem; } /* === Blog Controls (search + tag filter) === */ .blog-controls { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.75rem; } .search-form { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; } .search-form input[type="search"] { flex: 1; min-width: 180px; max-width: 340px; padding: 0.4em 0.7em; background: var(--bg); border: 1px solid var(--border-dark); border-radius: var(--radius); color: var(--text); font-family: var(--font-sans); font-size: 0.9rem; } .search-form input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); } /* === Pagination === */ .pagination { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); } .page-indicator { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); } /* === Editor toolbar (image upload) === */ .editor-toolbar { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; } .upload-status { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono); } /* === Responsive === */ @media (max-width: 600px) { .hero h1 { font-size: 1.75rem; } .infra-grid { grid-template-columns: 1fr 1fr; } .nav { gap: 0.75rem; } .nav-links { gap: 0.6rem; } .admin-header { flex-direction: column; align-items: flex-start; } .hw-table { font-size: 0.82rem; } th, td { padding: 0.4em 0.5em; } } @media (max-width: 420px) { .infra-grid { grid-template-columns: 1fr; } }