Initial portfolio site: Astro + Tailwind MVP

Outcome-led hero, about, grouped skills, experience summary, featured
projects + /projects index, static contact, SEO/OG, dark/light theme.
Dockerfile + nginx config + build script for homelab deploy.
This commit is contained in:
2026-06-17 16:22:53 +10:00
commit 2d4b6ea097
38 changed files with 8232 additions and 0 deletions
+188
View File
@@ -0,0 +1,188 @@
@import "tailwindcss";
@import "./tokens.css";
/* ---- Base ---------------------------------------------------------------- */
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
/* Offset for the sticky nav when jumping to #sections */
scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: var(--font-sans);
font-size: var(--step-0);
line-height: 1.65;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
line-height: 1.1;
font-weight: 700;
letter-spacing: -0.02em;
margin: 0;
}
a {
color: var(--accent);
text-decoration: none;
}
a:hover {
text-decoration: underline;
text-underline-offset: 3px;
}
:focus-visible {
outline: 2px solid var(--accent-strong);
outline-offset: 3px;
border-radius: 4px;
}
::selection {
background: var(--accent);
color: var(--accent-ink);
}
img,
svg {
max-width: 100%;
height: auto;
display: block;
}
/* ---- Layout helpers ------------------------------------------------------ */
.container {
width: 100%;
max-width: var(--measure);
margin-inline: auto;
padding-inline: var(--space-5);
}
.section {
padding-block: var(--space-9);
position: relative;
}
.eyebrow {
font-family: var(--font-mono);
font-size: var(--step--1);
letter-spacing: 0.22em;
text-transform: uppercase;
color: var(--accent);
}
.lead {
font-size: var(--step-1);
color: var(--text-dim);
line-height: 1.6;
}
.mono {
font-family: var(--font-mono);
}
/* ---- Buttons ------------------------------------------------------------- */
.btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
font-family: var(--font-mono);
font-size: var(--step--1);
letter-spacing: 0.02em;
padding: 0.7rem 1.15rem;
border-radius: var(--radius-sm);
border: 1px solid var(--border-strong);
color: var(--text);
background: var(--surface);
transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
background 0.2s var(--ease), color 0.2s var(--ease);
text-decoration: none;
}
.btn:hover {
text-decoration: none;
border-color: var(--accent-line);
transform: translateY(-1px);
}
.btn--primary {
background: var(--accent);
color: var(--accent-ink);
border-color: transparent;
font-weight: 600;
}
.btn--primary:hover {
background: var(--accent-strong);
}
/* ---- Cards / tags -------------------------------------------------------- */
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover {
border-color: var(--accent-line);
}
.tag {
display: inline-block;
font-family: var(--font-mono);
font-size: 0.72rem;
letter-spacing: 0.02em;
color: var(--text-dim);
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: 999px;
padding: 0.2rem 0.6rem;
}
.skip-link {
position: absolute;
left: -9999px;
top: 0;
z-index: 100;
background: var(--accent);
color: var(--accent-ink);
padding: 0.6rem 1rem;
border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
left: 0;
}
/* ---- Reveal-on-scroll (progressive enhancement) -------------------------- */
/* Default = visible (JS-off safe). The .reveal class is only added by JS when
IntersectionObserver is supported AND motion is allowed. */
.reveal {
opacity: 0;
transform: translateY(14px);
transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
opacity: 1;
transform: none;
}
@media (prefers-reduced-motion: reduce) {
.reveal {
opacity: 1;
transform: none;
transition: none;
}
}