Each page now has its own look drawn from print and retro-tech references: magazine-cover home, subway-map work index, technical-poster project pages, 90s-desktop blog, radio-flyer music page, 80s wireframe 3D page, garden about page and postcard contact form. A shared subway-line color system ties sections and project categories together. Replace themed copy with standard wording (Work, Blog, Music, 3D, About, Contact; Selected work, Experience, Get in touch). Rename /log to /blog and /sound to /music with redirects.
This commit is contained in:
61 files changed
+2770
-1108
No files matched your search
+59
-97
@@ -1,6 +1,10 @@
|
||||
@layer reset, tokens, base, layout, components, utilities, page;
|
||||
|
||||
@import '@fontsource-variable/big-shoulders';
|
||||
@import '@fontsource/dela-gothic-one';
|
||||
@import '@fontsource/dotgothic16';
|
||||
@import '@fontsource/vt323';
|
||||
@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';
|
||||
@@ -9,9 +13,9 @@
|
||||
@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.
|
||||
* 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 {
|
||||
@@ -62,8 +66,7 @@
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
font-family: var(--font-body);
|
||||
font-size: 100%;
|
||||
scrollbar-color: var(--accent) var(--bg-sunken);
|
||||
scrollbar-color: var(--fg) var(--bg-sunken);
|
||||
}
|
||||
|
||||
/* Themes can be applied to any element, not just <html>. */
|
||||
@@ -75,12 +78,11 @@
|
||||
|
||||
body {
|
||||
font-size: var(--step-0);
|
||||
background: var(--bg);
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
}
|
||||
|
||||
/* film grain */
|
||||
/* paper grain */
|
||||
body::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
@@ -88,23 +90,19 @@
|
||||
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;
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
|
||||
mix-blend-mode: multiply;
|
||||
}
|
||||
|
||||
/* scanlines */
|
||||
/* 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.35);
|
||||
background: repeating-linear-gradient(
|
||||
to bottom,
|
||||
transparent 0 2px,
|
||||
color-mix(in oklab, var(--bg-sunken) 55%, transparent) 2px 3px
|
||||
);
|
||||
opacity: calc(var(--scanlines) * 0.3);
|
||||
background: repeating-linear-gradient(to bottom, transparent 0 2px, rgb(0 0 0 / 0.55) 2px 3px);
|
||||
}
|
||||
|
||||
h1,
|
||||
@@ -112,10 +110,11 @@
|
||||
h3,
|
||||
h4 {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 800;
|
||||
line-height: 0.95;
|
||||
letter-spacing: 0.005em;
|
||||
text-transform: uppercase;
|
||||
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 {
|
||||
@@ -136,12 +135,13 @@
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent);
|
||||
text-decoration-thickness: 1px;
|
||||
color: inherit;
|
||||
text-decoration-color: var(--accent);
|
||||
text-decoration-thickness: 2px;
|
||||
text-underline-offset: 0.2em;
|
||||
}
|
||||
a:hover {
|
||||
color: var(--signal);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
code,
|
||||
@@ -151,6 +151,10 @@
|
||||
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;
|
||||
@@ -159,12 +163,12 @@
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: var(--signal);
|
||||
color: var(--signal-fg);
|
||||
background: var(--accent);
|
||||
color: var(--accent-fg);
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--signal);
|
||||
outline: 3px solid var(--pop);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
@@ -201,9 +205,6 @@
|
||||
.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;
|
||||
@@ -215,69 +216,49 @@
|
||||
color: var(--accent);
|
||||
}
|
||||
.prose blockquote {
|
||||
border-inline-start: 4px solid var(--signal);
|
||||
border-inline-start: 4px solid var(--accent);
|
||||
padding-inline-start: var(--space-4);
|
||||
color: var(--fg-muted);
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
/* monospaced micro label: "// 01 — SECTION" */
|
||||
/* small eyebrow text */
|
||||
.label {
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--step--1);
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.12em;
|
||||
letter-spacing: 0.08em;
|
||||
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);
|
||||
color: var(--fg);
|
||||
border: var(--border-w) solid var(--line-strong);
|
||||
border-radius: var(--radius);
|
||||
border-radius: min(var(--radius), 1.25rem);
|
||||
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;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.btn {
|
||||
--btn-bg: transparent;
|
||||
--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.15em;
|
||||
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-mono);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--step--1);
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.02em;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
@@ -287,21 +268,14 @@
|
||||
translate 0.15s var(--ease);
|
||||
}
|
||||
.btn:hover {
|
||||
--btn-bg: var(--fg);
|
||||
--btn-fg: var(--bg);
|
||||
box-shadow: 4px 4px 0 var(--signal);
|
||||
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(--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-line: var(--line-strong);
|
||||
}
|
||||
.btn[disabled] {
|
||||
opacity: 0.5;
|
||||
@@ -310,16 +284,16 @@
|
||||
|
||||
.tag {
|
||||
display: inline-block;
|
||||
padding: 0.1em 0.55em;
|
||||
border: 1px solid var(--line);
|
||||
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.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--fg-muted);
|
||||
letter-spacing: 0.04em;
|
||||
color: var(--fg);
|
||||
}
|
||||
|
||||
/* key/value system readout */
|
||||
/* key/value spec list */
|
||||
.readout {
|
||||
display: grid;
|
||||
grid-template-columns: max-content 1fr;
|
||||
@@ -329,37 +303,28 @@
|
||||
}
|
||||
.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 */
|
||||
/* used when a project has no image 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,
|
||||
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);
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* halftone dot overlay helper */
|
||||
.halftone {
|
||||
background-image: radial-gradient(circle, currentColor 1.1px, transparent 1.5px);
|
||||
background-size: 8px 8px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -381,9 +346,6 @@
|
||||
.accent {
|
||||
color: var(--accent);
|
||||
}
|
||||
.signal {
|
||||
color: var(--signal);
|
||||
}
|
||||
.glow {
|
||||
text-shadow: var(--glow);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user