Mirror to Gitea / mirror (push) Skipped
Turn the home cover into a two-tone street poster: stacked-letter title band, manga panels, graffiti and drip lettering, speech bubbles and fold creases. Add a live ASCII canvas, Tag and PosterBand components, graffiti fonts, and jsr / popart / ascii presets to tools/fx.py.
385 lines
8.1 KiB
CSS
385 lines
8.1 KiB
CSS
@layer reset, tokens, base, layout, components, utilities, page;
|
|
|
|
@import '@fontsource/dela-gothic-one';
|
|
@import '@fontsource/dotgothic16';
|
|
@import '@fontsource/vt323';
|
|
@import '@fontsource/sedgwick-ave-display';
|
|
@import '@fontsource/rubik-mono-one';
|
|
@import '@fontsource/rubik-wet-paint';
|
|
@import '@fontsource-variable/doto';
|
|
@import '@fontsource-variable/archivo/wdth.css';
|
|
@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);
|
|
@import './fx.css' layer(components);
|
|
|
|
/*
|
|
* Page-specific styles go in the page's own <style> block (Astro scopes it).
|
|
* Unscoped overrides belong in `@layer page { ... }` so they 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);
|
|
scrollbar-color: var(--fg) 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);
|
|
position: relative;
|
|
isolation: isolate;
|
|
}
|
|
|
|
/* film grain: a tiled noise PNG on its own GPU layer, jittered with transforms
|
|
only (no blend modes, so it never forces full-screen repaints) */
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
inset: -64px;
|
|
z-index: 9998;
|
|
pointer-events: none;
|
|
opacity: calc(var(--grain) * 1.6);
|
|
background: url('/fx/grain.png') 0 0 / 128px 128px;
|
|
will-change: transform;
|
|
animation: grain-jitter 0.6s steps(1) infinite;
|
|
}
|
|
@keyframes grain-jitter {
|
|
0% { transform: translate(0, 0); }
|
|
20% { transform: translate(-37px, 21px); }
|
|
40% { transform: translate(18px, -44px); }
|
|
60% { transform: translate(-12px, 33px); }
|
|
80% { transform: translate(41px, 9px); }
|
|
}
|
|
html.menu-open body::before {
|
|
animation-play-state: paused;
|
|
}
|
|
|
|
/* CRT scanlines (themes opt in with --scanlines: 1) */
|
|
body::after {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 9999;
|
|
pointer-events: none;
|
|
opacity: calc(var(--scanlines) * 0.3);
|
|
background: repeating-linear-gradient(to bottom, transparent 0 2px, rgb(0 0 0 / 0.55) 2px 3px);
|
|
}
|
|
|
|
/* Overhanging collage pieces must never widen the page on phones. */
|
|
main {
|
|
overflow-x: clip;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
font-family: var(--font-display);
|
|
font-weight: var(--heading-weight);
|
|
font-stretch: var(--heading-stretch);
|
|
letter-spacing: var(--heading-tracking);
|
|
text-transform: var(--heading-transform);
|
|
line-height: 1;
|
|
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: inherit;
|
|
text-decoration-color: var(--accent);
|
|
text-decoration-thickness: 2px;
|
|
text-underline-offset: 0.2em;
|
|
}
|
|
a:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
code,
|
|
kbd,
|
|
pre,
|
|
samp {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.9em;
|
|
}
|
|
:not(pre) > code {
|
|
padding: 0.05em 0.3em;
|
|
background: var(--bg-sunken);
|
|
}
|
|
pre {
|
|
padding: var(--space-4);
|
|
overflow-x: auto;
|
|
background: var(--bg-sunken);
|
|
border: var(--border-w) solid var(--line);
|
|
}
|
|
|
|
::selection {
|
|
background: var(--accent);
|
|
color: var(--accent-fg);
|
|
}
|
|
|
|
:focus-visible {
|
|
outline: 3px solid var(--pop);
|
|
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 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(--accent);
|
|
padding-inline-start: var(--space-4);
|
|
color: var(--fg-muted);
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
/* small eyebrow text */
|
|
.label {
|
|
font-family: var(--font-mono);
|
|
font-size: var(--step--1);
|
|
font-weight: 500;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--fg-muted);
|
|
}
|
|
|
|
.panel {
|
|
position: relative;
|
|
background: var(--bg-raised);
|
|
color: var(--fg);
|
|
border: var(--border-w) solid var(--line-strong);
|
|
border-radius: min(var(--radius), 1.25rem);
|
|
padding: var(--space-5);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.btn {
|
|
--btn-bg: var(--bg-raised);
|
|
--btn-fg: var(--fg);
|
|
--btn-line: var(--line-strong);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.6em;
|
|
padding: 0.7em 1.2em;
|
|
border: var(--border-w) solid var(--btn-line);
|
|
border-radius: var(--radius);
|
|
background: var(--btn-bg);
|
|
color: var(--btn-fg);
|
|
font-family: var(--font-body);
|
|
font-size: var(--step--1);
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
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 {
|
|
color: var(--btn-fg);
|
|
box-shadow: 4px 4px 0 var(--line-strong);
|
|
translate: -2px -2px;
|
|
}
|
|
.btn--primary {
|
|
--btn-bg: var(--accent);
|
|
--btn-fg: var(--accent-fg);
|
|
--btn-line: var(--line-strong);
|
|
}
|
|
.btn[disabled] {
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.tag {
|
|
display: inline-block;
|
|
padding: 0.1em 0.6em;
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: var(--radius);
|
|
font-family: var(--font-mono);
|
|
font-size: 0.72rem;
|
|
letter-spacing: 0.04em;
|
|
color: var(--fg);
|
|
}
|
|
|
|
/* key/value spec list */
|
|
.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);
|
|
}
|
|
.readout dd {
|
|
margin: 0;
|
|
}
|
|
|
|
/* used when a project has no image yet */
|
|
.placeholder {
|
|
display: grid;
|
|
place-items: center;
|
|
aspect-ratio: var(--ratio, 16 / 10);
|
|
background:
|
|
radial-gradient(circle, color-mix(in oklab, var(--fg) 22%, transparent) 1.2px, transparent 1.6px) 0 0 / 10px 10px,
|
|
var(--bg-sunken);
|
|
color: var(--fg-muted);
|
|
font-family: var(--font-mono);
|
|
font-size: var(--step--1);
|
|
}
|
|
|
|
/* halftone dot overlay helper */
|
|
.halftone {
|
|
background-image: radial-gradient(circle, currentColor 1.1px, transparent 1.5px);
|
|
background-size: 8px 8px;
|
|
}
|
|
}
|
|
|
|
@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);
|
|
}
|
|
.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;
|
|
}
|
|
}
|