1502 lines
27 KiB
CSS
1502 lines
27 KiB
CSS
/* 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 === */
|
|
|
|
.about-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
padding-bottom: 1.5rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.about-avatar {
|
|
width: 72px;
|
|
height: 72px;
|
|
border-radius: 6px;
|
|
flex-shrink: 0;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.about-header h1 { margin: 0; }
|
|
|
|
@media (max-width: 480px) {
|
|
.about-avatar { width: 52px; height: 52px; }
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
/* === Post Nav (prev/next) === */
|
|
|
|
.post-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
font-size: 0.88rem;
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
.post-nav-prev,
|
|
.post-nav-next { flex: 1; }
|
|
|
|
.post-nav-next { text-align: right; }
|
|
|
|
.post-nav-all {
|
|
color: var(--text-muted);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* === Error Page === */
|
|
|
|
.error-page {
|
|
text-align: center;
|
|
padding: 4rem 1rem;
|
|
}
|
|
|
|
.error-code {
|
|
font-family: var(--font-mono);
|
|
font-size: 4rem;
|
|
font-weight: 700;
|
|
color: var(--accent);
|
|
line-height: 1;
|
|
margin-bottom: 0.25em;
|
|
}
|
|
|
|
.error-page h1 { margin-top: 0; }
|
|
.error-page p { color: var(--text-muted); }
|
|
.error-page .btn { margin: 0.3rem; }
|
|
|
|
/* === Upload Browser === */
|
|
|
|
.upload-browser {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
gap: 1rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.upload-item {
|
|
background: var(--bg-alt);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.upload-thumb {
|
|
width: 100%;
|
|
height: 140px;
|
|
object-fit: cover;
|
|
display: block;
|
|
background: var(--bg-code);
|
|
}
|
|
|
|
.upload-info {
|
|
padding: 0.6rem 0.75rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.3rem;
|
|
}
|
|
|
|
.upload-name,
|
|
.upload-md {
|
|
font-size: 0.75rem;
|
|
word-break: break-all;
|
|
color: var(--text-muted);
|
|
user-select: all;
|
|
}
|
|
|
|
/* === Hire Page === */
|
|
|
|
.nav-hire { color: var(--accent) !important; }
|
|
.nav-hire:hover { color: var(--accent-dim) !important; }
|
|
|
|
.hire-page { max-width: var(--max-w); }
|
|
|
|
.hire-intro {
|
|
margin-bottom: 2.5rem;
|
|
padding-bottom: 1.5rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.hire-intro h1 { margin-bottom: 0.3em; }
|
|
|
|
.hire-tagline {
|
|
font-size: 1.05rem;
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
margin: 0 0 1em;
|
|
}
|
|
|
|
.services-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
|
|
gap: 0.85rem;
|
|
margin: 1.25rem 0 2.5rem;
|
|
}
|
|
|
|
.service-card {
|
|
background: var(--bg-alt);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 0.9rem 1rem;
|
|
}
|
|
|
|
.service-card h3 {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.88rem;
|
|
margin: 0 0 0.4em;
|
|
color: var(--accent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.service-card p {
|
|
font-size: 0.84rem;
|
|
color: var(--text-muted);
|
|
margin: 0;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.hire-availability {
|
|
background: var(--bg-alt);
|
|
border: 1px solid var(--border);
|
|
border-left: 3px solid var(--accent);
|
|
border-radius: var(--radius);
|
|
padding: 0.8rem 1rem;
|
|
font-size: 0.9rem;
|
|
margin-bottom: 2.5rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.hire-availability strong {
|
|
font-family: var(--font-mono);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.contact-section h2 { margin-bottom: 0.4em; }
|
|
|
|
.contact-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
max-width: 540px;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.form-group label {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group textarea {
|
|
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-sans);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group textarea:focus {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 1px;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.form-group textarea {
|
|
min-height: 140px;
|
|
resize: vertical;
|
|
line-height: 1.65;
|
|
}
|
|
|
|
.field-note {
|
|
font-size: 0.78rem;
|
|
color: var(--text-muted);
|
|
font-family: var(--font-mono);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.required-mark { color: var(--accent); }
|
|
|
|
.form-success {
|
|
background: #efe;
|
|
border: 1px solid #9d9;
|
|
border-radius: var(--radius);
|
|
padding: 0.9rem 1.1rem;
|
|
color: #2a7a2a;
|
|
margin-bottom: 1rem;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.form-success { background: #1a3020; border-color: #2a6a3a; color: #6db88a; }
|
|
}
|
|
|
|
/* === Resume Page === */
|
|
|
|
.resume-page { max-width: var(--max-w); }
|
|
|
|
.resume-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
margin-bottom: 2rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.resume-print-hint {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
.resume-print-hint kbd {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.78em;
|
|
background: var(--bg-alt);
|
|
border: 1px solid var(--border-dark);
|
|
border-radius: 3px;
|
|
padding: 0.1em 0.35em;
|
|
}
|
|
|
|
.resume-header {
|
|
margin-bottom: 2rem;
|
|
padding-bottom: 1.25rem;
|
|
border-bottom: 2px solid var(--border-dark);
|
|
}
|
|
|
|
.resume-header h1 { font-size: 2rem; margin-bottom: 0.1em; }
|
|
|
|
.resume-tagline {
|
|
font-size: 0.95rem;
|
|
color: var(--text-muted);
|
|
margin: 0 0 0.75em;
|
|
}
|
|
|
|
.resume-contact {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.35rem 1.25rem;
|
|
font-size: 0.82rem;
|
|
font-family: var(--font-mono);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.resume-contact a { color: var(--text-muted); }
|
|
.resume-contact a:hover { color: var(--accent); }
|
|
|
|
.resume-section { margin-bottom: 2rem; }
|
|
|
|
.resume-section > p { font-size: 0.9rem; line-height: 1.7; }
|
|
|
|
.resume-section h2 {
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
color: var(--text-muted);
|
|
border-bottom: 1px solid var(--border);
|
|
padding-bottom: 0.3em;
|
|
margin: 0 0 1.25rem;
|
|
font-family: var(--font-mono);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.resume-job { margin-bottom: 1.4rem; }
|
|
.resume-job:last-child { margin-bottom: 0; }
|
|
|
|
.resume-job-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
flex-wrap: wrap;
|
|
gap: 0.15rem 1rem;
|
|
margin-bottom: 0.1em;
|
|
}
|
|
|
|
.resume-role { font-weight: 700; font-size: 0.97rem; }
|
|
|
|
.resume-dates {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.78rem;
|
|
color: var(--text-muted);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.resume-org {
|
|
font-size: 0.88rem;
|
|
margin-bottom: 0.45em;
|
|
}
|
|
|
|
.resume-company { font-weight: 600; color: var(--accent); }
|
|
|
|
.resume-location {
|
|
color: var(--text-muted);
|
|
font-family: var(--font-mono);
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.resume-job ul {
|
|
margin: 0;
|
|
padding-left: 1.2em;
|
|
}
|
|
|
|
.resume-job li {
|
|
font-size: 0.87rem;
|
|
margin-bottom: 0.3em;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.resume-cert-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.4rem;
|
|
padding: 0;
|
|
list-style: none;
|
|
margin: 0;
|
|
}
|
|
|
|
.resume-cert {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.78rem;
|
|
background: var(--bg-alt);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 0.2em 0.65em;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.resume-skills dl {
|
|
display: grid;
|
|
grid-template-columns: 6rem 1fr;
|
|
gap: 0.5em 1em;
|
|
font-size: 0.87rem;
|
|
margin: 0;
|
|
}
|
|
|
|
.resume-skills dt {
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.resume-skills dd {
|
|
margin: 0;
|
|
color: var(--text-muted);
|
|
line-height: 1.55;
|
|
}
|
|
|
|
@media (max-width: 500px) {
|
|
.resume-skills dl { grid-template-columns: 1fr; gap: 0.15em; }
|
|
.resume-skills dt { margin-top: 0.5em; }
|
|
}
|
|
|
|
@media print {
|
|
.site-header,
|
|
.site-footer,
|
|
.resume-actions { display: none !important; }
|
|
|
|
body { background: #fff !important; color: #000 !important; }
|
|
.main-content { max-width: 100%; padding: 0.5cm 1cm; }
|
|
a { color: #000 !important; }
|
|
.resume-header { border-bottom-color: #999 !important; }
|
|
.resume-section h2 { border-bottom-color: #ccc !important; color: #555 !important; }
|
|
.resume-company { color: #000 !important; }
|
|
.resume-cert { background: #f5f5f5 !important; border-color: #ccc !important; }
|
|
.resume-skills dt { color: #000 !important; }
|
|
.resume-skills dd { color: #333 !important; }
|
|
}
|
|
|
|
/* === Honeypot field (hidden from humans) === */
|
|
|
|
.hp-field {
|
|
position: absolute;
|
|
left: -9999px;
|
|
top: -9999px;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
tab-index: -1;
|
|
}
|
|
|
|
/* === Subscribe widget === */
|
|
|
|
.subscribe-section {
|
|
margin-bottom: 2.5rem;
|
|
padding-bottom: 2rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.subscribe-section h2 { margin-bottom: 0.3em; }
|
|
|
|
.subscribe-form {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
margin-top: 0.85rem;
|
|
max-width: 440px;
|
|
}
|
|
|
|
.subscribe-form input[type="email"] {
|
|
flex: 1;
|
|
min-width: 200px;
|
|
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-sans);
|
|
}
|
|
|
|
.subscribe-form input[type="email"]:focus {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 1px;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
/* === Uses Page === */
|
|
|
|
.uses-page { max-width: var(--max-w); }
|
|
|
|
.uses-section {
|
|
margin-bottom: 2.5rem;
|
|
}
|
|
|
|
.uses-section h2 {
|
|
font-size: 1.1rem;
|
|
border-bottom: 1px solid var(--border);
|
|
padding-bottom: 0.35em;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.uses-item {
|
|
margin-bottom: 1.5rem;
|
|
padding-bottom: 1.5rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.uses-item:last-child {
|
|
border-bottom: none;
|
|
margin-bottom: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.uses-item-header {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 0.75rem;
|
|
margin-bottom: 0.4em;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.uses-name {
|
|
font-family: var(--font-mono);
|
|
font-weight: 700;
|
|
font-size: 1rem;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.uses-role {
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
.uses-item p { margin: 0; font-size: 0.9rem; line-height: 1.7; }
|
|
|
|
.uses-list {
|
|
font-size: 0.9rem;
|
|
line-height: 1.7;
|
|
margin: 0;
|
|
}
|
|
|
|
.uses-list li { margin-bottom: 0.4em; }
|
|
|
|
/* === Projects Page === */
|
|
|
|
.projects-page { max-width: var(--max-w); }
|
|
|
|
.project-list { display: flex; flex-direction: column; gap: 0; }
|
|
|
|
.project-item {
|
|
padding: 1.75rem 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.project-item:first-child { padding-top: 0; }
|
|
.project-item:last-child { border-bottom: none; }
|
|
|
|
.project-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 0.6em;
|
|
}
|
|
|
|
.project-title {
|
|
font-size: 1.15rem;
|
|
margin: 0;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.project-item p {
|
|
font-size: 0.9rem;
|
|
line-height: 1.7;
|
|
color: var(--text);
|
|
margin-bottom: 0.75em;
|
|
}
|
|
|
|
.project-links {
|
|
display: flex;
|
|
gap: 1rem;
|
|
font-size: 0.85rem;
|
|
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; }
|
|
}
|