redesign site as "case file" theme

- new paper/ink palette with single red accent, replacing catppuccin
- self-hosted IBM Plex Serif (display) + Source Serif 4 (body), drop Outfit
- rebuilt homepage masthead, numbered post index, navbar with active states
- switch syntax highlighting + utterances to gruvbox, synced via postMessage
- remove terminal/404 easter egg chrome, clean up remaining inline styles
- fix stray syntax.css link causing a 404
This commit is contained in:
2026-07-16 12:28:34 +03:00
parent 57462869ec
commit a51671d7e4
62 changed files with 2116 additions and 2806 deletions
+30 -154
View File
@@ -1,174 +1,50 @@
// 404 Terminal Page
// Scoped custom properties switch with html.dark
.term-window {
// Dark mode values (default — site defaults to dark)
--tw-bg: #0d0d0d;
--tw-bar: #1c1c1c;
--tw-border: #2a2a2a;
--tw-text: #cdd6f4;
--tw-prompt: #10b981;
--tw-error: #f38ba8;
--tw-muted: #6c7086;
--tw-link: #89b4fa;
--tw-cursor: #10b981;
}
html:not(.dark) .term-window {
// Light mode: Catppuccin Latte palette
--tw-bg: #eff1f5;
--tw-bar: #e6e9ef;
--tw-border: #ccd0da;
--tw-text: #4c4f69;
--tw-prompt: #40a02b;
--tw-error: #d20f39;
--tw-muted: #7c7f93;
--tw-link: #1e66f5;
--tw-cursor: #40a02b;
}
// 404 — Document Not Found
.notfound-wrap {
min-height: 70dvh;
min-height: 60dvh;
display: flex;
align-items: center;
justify-content: center;
padding: 3rem 0;
}
.term-window {
width: 100%;
max-width: 680px;
background: var(--tw-bg);
border-radius: 10px;
border: 1px solid var(--tw-border);
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
overflow: hidden;
font-family: var(--font-mono);
font-size: clamp(0.78rem, 1.5vw, 0.9rem);
transition:
background-color 0.3s ease,
border-color 0.3s ease;
}
.term-titlebar {
background: var(--tw-bar);
padding: 0.7rem 1rem;
display: flex;
align-items: center;
gap: 0.75rem;
border-bottom: 1px solid var(--tw-border);
user-select: none;
}
.term-dots {
display: flex;
gap: 0.45rem;
span {
display: block;
width: 12px;
height: 12px;
border-radius: 50%;
}
.dot-red {
background: #ff5f57;
}
.dot-yellow {
background: #febc2e;
}
.dot-green {
background: #28c840;
}
}
.term-titlebar-label {
flex: 1;
.case-notice {
max-width: 480px;
text-align: center;
font-size: 0.72rem;
color: var(--tw-muted);
letter-spacing: 0.03em;
}
.term-body {
padding: 1.5rem;
line-height: 1.65;
color: var(--tw-text);
min-height: 260px;
.case-notice-ref {
font-family: var(--font-mono);
font-size: 0.75rem;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--accent-color);
margin-bottom: 1.5rem;
}
.term-row {
.case-notice-title {
margin-top: 0;
}
.case-notice-body {
color: var(--text-muted);
max-width: none;
}
.case-notice-links {
display: flex;
align-items: baseline;
gap: 0;
white-space: nowrap;
overflow: hidden;
}
.term-ps1 {
color: var(--tw-prompt);
flex-shrink: 0;
white-space: nowrap;
pointer-events: none;
}
.term-input {
color: var(--tw-text);
overflow: hidden;
}
.term-out {
margin-bottom: 0.9rem;
}
.term-out-error {
color: var(--tw-error);
}
.term-out-muted {
color: var(--tw-muted);
margin-bottom: 0.9rem;
}
.term-out-ls {
display: flex;
flex-wrap: wrap;
gap: 0.5rem 1.5rem;
margin-bottom: 0.9rem;
justify-content: center;
gap: 1.5rem;
margin-top: 2rem;
padding-top: 1.5rem;
border-top: 1px solid var(--border-color);
font-family: var(--font-mono);
font-size: 0.9rem;
a {
color: var(--tw-link);
text-decoration: none;
font-weight: 500;
&::before {
content: '→ ';
color: var(--tw-prompt);
}
color: var(--text-color);
&:hover {
color: var(--tw-prompt);
text-decoration: underline;
color: var(--accent-color);
}
}
}
.term-cursor {
display: inline-block;
width: 0.55em;
height: 1.1em;
background: var(--tw-cursor);
vertical-align: text-bottom;
animation: blink-cursor 1s step-end infinite;
margin-left: 0.15ch;
}
@keyframes blink-cursor {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0;
}
}