Astro + React islands + MDX with a theme system (terminal, concrete, nostromo, overgrowth), USMT Dash case study, work/log/sound/models/about/ contact pages, RSS, self-hosted contact form over SMTP, /media proxy to Nextcloud, Dockerfile for Coolify, and a GitHub Action that mirrors main to Gitea.
This commit is contained in:
64 files changed
+9066
No files matched your search
@@ -0,0 +1,401 @@
|
||||
@layer reset, tokens, base, layout, components, utilities, page;
|
||||
|
||||
@import '@fontsource-variable/big-shoulders';
|
||||
@import '@fontsource-variable/ibm-plex-sans';
|
||||
@import '@fontsource/ibm-plex-mono/400.css';
|
||||
@import '@fontsource/ibm-plex-mono/500.css';
|
||||
|
||||
@import './tokens.css' layer(tokens);
|
||||
@import './themes/index.css' layer(tokens);
|
||||
|
||||
/*
|
||||
* Page-specific styles should go in the page's own <style> block (Astro scopes
|
||||
* it automatically). Unscoped overrides belong in `@layer page { ... }` so
|
||||
* they always win over everything here without !important.
|
||||
*/
|
||||
|
||||
@layer reset {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
* {
|
||||
margin: 0;
|
||||
}
|
||||
html {
|
||||
-webkit-text-size-adjust: none;
|
||||
text-size-adjust: none;
|
||||
}
|
||||
body {
|
||||
min-height: 100dvh;
|
||||
line-height: 1.6;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
img,
|
||||
picture,
|
||||
video,
|
||||
canvas,
|
||||
svg {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
input,
|
||||
button,
|
||||
textarea,
|
||||
select {
|
||||
font: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
p,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4 {
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
}
|
||||
|
||||
@layer base {
|
||||
html {
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
font-family: var(--font-body);
|
||||
font-size: 100%;
|
||||
scrollbar-color: var(--accent) var(--bg-sunken);
|
||||
}
|
||||
|
||||
/* Themes can be applied to any element, not just <html>. */
|
||||
[data-theme] {
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
font-family: var(--font-body);
|
||||
}
|
||||
|
||||
body {
|
||||
font-size: var(--step-0);
|
||||
background: var(--bg);
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
}
|
||||
|
||||
/* film grain */
|
||||
body::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 9998;
|
||||
pointer-events: none;
|
||||
opacity: var(--grain);
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
|
||||
mix-blend-mode: overlay;
|
||||
}
|
||||
|
||||
/* scanlines */
|
||||
body::after {
|
||||
content: '';
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 9999;
|
||||
pointer-events: none;
|
||||
opacity: calc(var(--scanlines) * 0.35);
|
||||
background: repeating-linear-gradient(
|
||||
to bottom,
|
||||
transparent 0 2px,
|
||||
color-mix(in oklab, var(--bg-sunken) 55%, transparent) 2px 3px
|
||||
);
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4 {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 800;
|
||||
line-height: 0.95;
|
||||
letter-spacing: 0.005em;
|
||||
text-transform: uppercase;
|
||||
text-wrap: balance;
|
||||
}
|
||||
h1 {
|
||||
font-size: var(--step-4);
|
||||
}
|
||||
h2 {
|
||||
font-size: var(--step-3);
|
||||
}
|
||||
h3 {
|
||||
font-size: var(--step-2);
|
||||
}
|
||||
h4 {
|
||||
font-size: var(--step-1);
|
||||
}
|
||||
|
||||
p {
|
||||
text-wrap: pretty;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent);
|
||||
text-decoration-thickness: 1px;
|
||||
text-underline-offset: 0.2em;
|
||||
}
|
||||
a:hover {
|
||||
color: var(--signal);
|
||||
}
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.9em;
|
||||
}
|
||||
pre {
|
||||
padding: var(--space-4);
|
||||
overflow-x: auto;
|
||||
background: var(--bg-sunken);
|
||||
border: var(--border-w) solid var(--line);
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: var(--signal);
|
||||
color: var(--signal-fg);
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--signal);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 0;
|
||||
border-top: var(--border-w) solid var(--line);
|
||||
}
|
||||
}
|
||||
|
||||
@layer layout {
|
||||
.wrap {
|
||||
width: min(100% - 2 * var(--gutter), var(--max-w));
|
||||
margin-inline: auto;
|
||||
}
|
||||
.stack > * + * {
|
||||
margin-block-start: var(--stack-gap, var(--space-4));
|
||||
}
|
||||
.cluster {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--cluster-gap, var(--space-3));
|
||||
align-items: center;
|
||||
}
|
||||
.section {
|
||||
padding-block: var(--space-8);
|
||||
}
|
||||
.prose {
|
||||
max-width: var(--prose-w);
|
||||
}
|
||||
.prose > * + * {
|
||||
margin-block-start: 1.1em;
|
||||
}
|
||||
.prose h2,
|
||||
.prose h3 {
|
||||
margin-block-start: 1.8em;
|
||||
}
|
||||
.prose img {
|
||||
border: var(--border-w) solid var(--line);
|
||||
}
|
||||
.prose ul,
|
||||
.prose ol {
|
||||
padding-inline-start: 1.25em;
|
||||
}
|
||||
.prose li + li {
|
||||
margin-block-start: 0.35em;
|
||||
}
|
||||
.prose li::marker {
|
||||
color: var(--accent);
|
||||
}
|
||||
.prose blockquote {
|
||||
border-inline-start: 4px solid var(--signal);
|
||||
padding-inline-start: var(--space-4);
|
||||
color: var(--fg-muted);
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
/* monospaced micro label: "// 01 — SECTION" */
|
||||
.label {
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--step--1);
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
color: var(--fg-muted);
|
||||
}
|
||||
.label--accent {
|
||||
color: var(--accent);
|
||||
}
|
||||
.label--signal {
|
||||
color: var(--signal);
|
||||
}
|
||||
|
||||
/* bordered slab with an optional tab label */
|
||||
.panel {
|
||||
position: relative;
|
||||
background: var(--bg-raised);
|
||||
border: var(--border-w) solid var(--line-strong);
|
||||
border-radius: var(--radius);
|
||||
padding: var(--space-5);
|
||||
}
|
||||
.panel[data-tab]::before {
|
||||
content: attr(data-tab);
|
||||
position: absolute;
|
||||
top: calc(-1 * var(--border-w));
|
||||
left: calc(-1 * var(--border-w));
|
||||
translate: 0 -100%;
|
||||
padding: 0.15em 0.6em;
|
||||
background: var(--line-strong);
|
||||
color: var(--bg);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.7rem;
|
||||
letter-spacing: 0.14em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.btn {
|
||||
--btn-bg: transparent;
|
||||
--btn-fg: var(--fg);
|
||||
--btn-line: var(--line-strong);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.6em;
|
||||
padding: 0.7em 1.15em;
|
||||
border: var(--border-w) solid var(--btn-line);
|
||||
border-radius: var(--radius);
|
||||
background: var(--btn-bg);
|
||||
color: var(--btn-fg);
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--step--1);
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
background 0.15s var(--ease),
|
||||
color 0.15s var(--ease),
|
||||
box-shadow 0.15s var(--ease),
|
||||
translate 0.15s var(--ease);
|
||||
}
|
||||
.btn:hover {
|
||||
--btn-bg: var(--fg);
|
||||
--btn-fg: var(--bg);
|
||||
box-shadow: 4px 4px 0 var(--signal);
|
||||
translate: -2px -2px;
|
||||
}
|
||||
.btn--primary {
|
||||
--btn-bg: var(--accent);
|
||||
--btn-fg: var(--accent-fg);
|
||||
--btn-line: var(--accent);
|
||||
}
|
||||
.btn--primary:hover {
|
||||
--btn-bg: var(--signal);
|
||||
--btn-fg: var(--signal-fg);
|
||||
--btn-line: var(--signal);
|
||||
box-shadow: 4px 4px 0 var(--fg);
|
||||
}
|
||||
.btn[disabled] {
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.tag {
|
||||
display: inline-block;
|
||||
padding: 0.1em 0.55em;
|
||||
border: 1px solid var(--line);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.72rem;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--fg-muted);
|
||||
}
|
||||
|
||||
/* key/value system readout */
|
||||
.readout {
|
||||
display: grid;
|
||||
grid-template-columns: max-content 1fr;
|
||||
gap: 0.35em 1.25em;
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--step--1);
|
||||
}
|
||||
.readout dt {
|
||||
color: var(--fg-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
}
|
||||
.readout dd {
|
||||
margin: 0;
|
||||
color: var(--fg);
|
||||
}
|
||||
|
||||
.blink {
|
||||
animation: blink 1.1s steps(1) infinite;
|
||||
}
|
||||
@keyframes blink {
|
||||
50% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* placeholder art for projects without media yet */
|
||||
.placeholder {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
aspect-ratio: var(--ratio, 16 / 10);
|
||||
background:
|
||||
linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
|
||||
linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
|
||||
var(--bg-sunken);
|
||||
color: var(--fg-muted);
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--step--1);
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
|
||||
@layer utilities {
|
||||
.visually-hidden {
|
||||
position: absolute !important;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
clip-path: inset(50%);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.mono {
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
.muted {
|
||||
color: var(--fg-muted);
|
||||
}
|
||||
.accent {
|
||||
color: var(--accent);
|
||||
}
|
||||
.signal {
|
||||
color: var(--signal);
|
||||
}
|
||||
.glow {
|
||||
text-shadow: var(--glow);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user