This commit is contained in:
2026-08-08 16:55:26 +02:00
parent ee5729e4b7
commit ba513bba61
30 changed files with 380 additions and 217 deletions
View File

Before

Width:  |  Height:  |  Size: 224 KiB

After

Width:  |  Height:  |  Size: 224 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 535 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 356 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 276 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 351 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 724 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 309 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 561 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 352 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 283 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+6 -22
View File
@@ -1,28 +1,12 @@
@font-face { @font-face {
font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
src: url('/fonts/outfit-400.woff2') format('woff2'); src: url('/fonts/space-grotesk-var.woff2') format('woff2-variations');
} }
@font-face { @font-face {
font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap;
src: url('/fonts/outfit-500.woff2') format('woff2'); src: url('/fonts/dm-mono-400.woff2') format('woff2');
} }
@font-face { @font-face {
font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap;
src: url('/fonts/outfit-700.woff2') format('woff2'); src: url('/fonts/dm-mono-500.woff2') format('woff2');
}
@font-face {
font-family: 'Outfit'; font-style: normal; font-weight: 800; font-display: swap;
src: url('/fonts/outfit-800.woff2') format('woff2');
}
@font-face {
font-family: 'Outfit'; font-style: normal; font-weight: 900; font-display: swap;
src: url('/fonts/outfit-900.woff2') format('woff2');
}
@font-face {
font-family: 'Fira Code'; font-style: normal; font-weight: 400; font-display: swap;
src: url('/fonts/firacode-400.woff2') format('woff2');
}
@font-face {
font-family: 'Fira Code'; font-style: normal; font-weight: 500; font-display: swap;
src: url('/fonts/firacode-500.woff2') format('woff2');
} }
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+10 -5
View File
@@ -15,7 +15,12 @@
<meta property="og:image" content="https://www.gade.gg/nikolaj.jpg" /> <meta property="og:image" content="https://www.gade.gg/nikolaj.jpg" />
<meta property="og:image:alt" content="Nikolaj Gade" /> <meta property="og:image:alt" content="Nikolaj Gade" />
<link rel="icon" type="image/png" href="goat.png" /> <meta name="theme-color" content="#f4efe4" />
<link rel="icon" href="/favicon.ico" sizes="48x48" />
<link rel="icon" type="image/png" href="/goat.png" sizes="any" />
<link rel="apple-touch-icon" href="/goat.png" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="/fonts/space-grotesk-var.woff2" />
<link rel="stylesheet" href="/fonts/fonts.css" /> <link rel="stylesheet" href="/fonts/fonts.css" />
<link rel="stylesheet" href="/fa/css/all.min.css" /> <link rel="stylesheet" href="/fa/css/all.min.css" />
<link rel="stylesheet" href="style.css" /> <link rel="stylesheet" href="style.css" />
@@ -48,7 +53,7 @@
<!-- HERO --> <!-- HERO -->
<section id="home" class="hero"> <section id="home" class="hero">
<div class="hero-content"> <div class="hero-content">
<h1 class="hero-name">Nikolaj Gade</h1> <h1 class="hero-name">Nikolaj <span class="hero-name-accent">Gade</span></h1>
<p class="hero-role">Software Developer</p> <p class="hero-role">Software Developer</p>
<p class="hero-pronouns">they/them · he/him</p> <p class="hero-pronouns">they/them · he/him</p>
@@ -68,7 +73,7 @@
<a href="https://www.linkedin.com/in/nikolaj-gade-a1508016a/" class="hero-link" target="_blank" rel="noopener"> <a href="https://www.linkedin.com/in/nikolaj-gade-a1508016a/" class="hero-link" target="_blank" rel="noopener">
<i class="fab fa-linkedin-in"></i><span>LinkedIn</span> <i class="fab fa-linkedin-in"></i><span>LinkedIn</span>
</a> </a>
<a href="mailto:nikolaj@gade.gg" class="hero-link"> <a href="mailto:nikolaj@gade.gg" class="hero-link hero-link--primary">
<i class="fas fa-envelope"></i><span>nikolaj@gade.gg</span> <i class="fas fa-envelope"></i><span>nikolaj@gade.gg</span>
</a> </a>
</div> </div>
@@ -77,7 +82,7 @@
<div class="hero-visual"> <div class="hero-visual">
<div class="avatar-ring"> <div class="avatar-ring">
<div class="avatar-placeholder"> <div class="avatar-placeholder">
<img src="nikolaj.jpg" alt="Nikolaj Gade, a very handsome (and extremely hireable) person."/> <img src="nikolaj.jpg" draggable="false" alt="Nikolaj Gade, a very handsome (and extremely hireable) person."/>
</div> </div>
</div> </div>
</div> </div>
@@ -100,7 +105,7 @@
<div class="about-right"> <div class="about-right">
<div class="pepsi-card"> <div class="pepsi-card">
<div class="pepsi-placeholder"> <div class="pepsi-placeholder">
<img src="pepsi.jpg" alt="Pepsi, a black cat with large yellow eyes."/> <img draggable="false" alt="Pepsi, a black cat with large yellow eyes."/>
</div> </div>
<p class="pepsi-caption">Full name: Pepsi Max Lime Gade</p> <p class="pepsi-caption">Full name: Pepsi Max Lime Gade</p>
</div> </div>
+64 -3
View File
@@ -3,7 +3,8 @@
const canvas = document.getElementById('bgCanvas'); const canvas = document.getElementById('bgCanvas');
const ctx = canvas.getContext('2d'); const ctx = canvas.getContext('2d');
const COLORS = ['#e63946', '#f4722b', '#ffbe0b', '#ff006e', '#e07b39', '#ffd166']; const COLORS = ['#ffd84d', '#8cbcff', '#ff9fca', '#a9e76c', '#b99cff', '#ff9d57'];
const INK = '#171717';
const COUNT = 1000; // number of sprinkles const COUNT = 1000; // number of sprinkles
const MIN_LEN = 12; // px const MIN_LEN = 12; // px
const MAX_LEN = 18; // px const MAX_LEN = 18; // px
@@ -63,10 +64,14 @@
ctx.beginPath(); ctx.beginPath();
ctx.moveTo(0, -s.len / 2); ctx.moveTo(0, -s.len / 2);
ctx.lineTo(0, s.len / 2); ctx.lineTo(0, s.len / 2);
ctx.strokeStyle = s.color;
ctx.lineWidth = s.width;
ctx.lineCap = 'round'; ctx.lineCap = 'round';
ctx.globalAlpha = s.alpha; ctx.globalAlpha = s.alpha;
// Ink outline under the colored fill (sticker look): same path, two strokes
ctx.strokeStyle = INK;
ctx.lineWidth = s.width + 3;
ctx.stroke();
ctx.strokeStyle = s.color;
ctx.lineWidth = s.width;
ctx.stroke(); ctx.stroke();
ctx.restore(); ctx.restore();
@@ -223,3 +228,59 @@
}); });
})(); })();
// ── Pepsi gallery: shuffled on load, swipe cycles through on click ─
(function () {
const COUNT = 15;
const img = document.querySelector('.pepsi-placeholder img');
if (!img) return;
const box = img.parentElement;
const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)');
const src = (n) => `Pepsi/Pepsi-${n}.jpg`;
// FisherYates shuffle of [1..COUNT]; clicks cycle through this order
const order = Array.from({ length: COUNT }, (_, i) => i + 1);
for (let i = order.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[order[i], order[j]] = [order[j], order[i]];
}
let pos = 0;
img.src = src(order[pos]);
let busy = false;
box.addEventListener('click', () => {
if (busy) return;
pos = (pos + 1) % order.length;
const next = order[pos];
if (reduceMotion.matches) {
img.src = src(next);
return;
}
busy = true;
const incoming = new Image();
incoming.src = src(next);
incoming.alt = img.alt;
incoming.draggable = false;
incoming.className = 'pepsi-incoming';
// Decode before animating so the swipe never reveals a half-loaded frame
incoming.decode().then(() => {
box.appendChild(incoming);
const opts = { duration: 300, easing: 'cubic-bezier(0.25, 0.46, 0.45, 0.94)' };
img.animate(
[{ transform: 'translateX(0)' }, { transform: 'translateX(-100%)' }],
opts
);
incoming.animate(
[{ transform: 'translateX(100%)' }, { transform: 'translateX(0)' }],
opts
).finished.then(() => {
img.src = incoming.src; // already decoded, swaps instantly
incoming.remove();
busy = false;
});
}).catch(() => { busy = false; });
});
})();
+294 -181
View File
@@ -1,22 +1,26 @@
:root { :root {
--red: #e63946; --ink: #171717;
--orange: #f4722b; --paper: #f4efe4;
--orange-deep: #a84a0c; /* text-safe orange: ≥4.5:1 on cream */ --white: #fffdf8;
--yellow: #ffbe0b; --yellow: #ffd84d;
--pink: #ff006e; --blue: #8cbcff;
--cream: #fefee3; --pink: #ff9fca;
--ink: #1a0a00; --green: #a9e76c;
--ink-soft: #3d2010; --purple: #b99cff;
--glass-bg: rgba(254, 254, 227, 0.75); --orange: #ff9d57;
--glass-border: rgba(244, 114, 43, 0.25); --accent: #d75d35; /* display-size fills only: 3.3:1 on paper, fails AA as small text */
--card-shadow: 0 8px 32px rgba(230, 57, 70, 0.10);
--grad: linear-gradient(135deg, var(--red), var(--orange), var(--yellow)); --border: 3px solid var(--ink);
--font: 'Outfit', sans-serif; --border-thin: 2px solid var(--ink);
--mono: 'Fira Code', monospace; --shadow: 7px 7px 0 var(--ink);
--radius-sm: 6px; --shadow-sm: 4px 4px 0 var(--ink);
--radius-md: 12px;
--radius-lg: 18px; --radius-lg: 18px;
--radius-md: 8px;
--radius-pill: 999px; --radius-pill: 999px;
--font: 'Space Grotesk', sans-serif;
--mono: 'DM Mono', monospace;
--nav-h: 64px; --nav-h: 64px;
--max-w: 1100px; --max-w: 1100px;
--ease: cubic-bezier(0.25, 0.46, 0.45, 0.94); --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
@@ -27,9 +31,9 @@
html { scroll-behavior: smooth; font-size: 17px; } html { scroll-behavior: smooth; font-size: 17px; }
body { body {
font-family: var(--font); font-family: var(--font);
background: var(--cream); background: var(--paper);
color: var(--ink); color: var(--ink);
line-height: 1.7; line-height: 1.6;
overflow-x: hidden; overflow-x: hidden;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
} }
@@ -37,6 +41,11 @@ a { color: inherit; text-decoration: none; }
ul { list-style: none; } ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; } button { font-family: var(--font); cursor: pointer; border: none; background: none; }
a:focus-visible, button:focus-visible, [data-tip]:focus-visible {
outline: 3px solid var(--ink);
outline-offset: 3px;
}
/* ── Canvas ─────────────────────────────────────────────────── */ /* ── Canvas ─────────────────────────────────────────────────── */
#bgCanvas { #bgCanvas {
position: fixed; position: fixed;
@@ -44,22 +53,21 @@ button { font-family: var(--font); cursor: pointer; border: none; background: no
width: 100%; height: 100%; width: 100%; height: 100%;
z-index: 0; z-index: 0;
pointer-events: none; pointer-events: none;
opacity: 0.3; opacity: 0.45;
} }
/* ── Nav ────────────────────────────────────────────────────── */ /* ── Nav ────────────────────────────────────────────────────── */
#header { #header {
background: rgba(254, 254, 227, 0); background: transparent;
border-bottom: 3px solid transparent;
position: fixed; top: 0; left: 0; right: 0; position: fixed; top: 0; left: 0; right: 0;
height: var(--nav-h); height: var(--nav-h);
z-index: 1000; z-index: 1000;
transition: background 0.3s, box-shadow 0.3s; transition: background 0.3s, border-color 0.3s;
} }
#header.scrolled { #header.scrolled {
backdrop-filter: blur(30px); background: var(--paper);
-webkit-backdrop-filter: blur(30px); border-bottom-color: var(--ink);
background: rgba(254, 254, 227, 0.75);
box-shadow: 0 2px 20px rgba(230, 57, 70, 0.08);
} }
nav { nav {
max-width: var(--max-w); max-width: var(--max-w);
@@ -72,10 +80,8 @@ nav {
font-size: 1.2rem; font-size: 1.2rem;
font-weight: 700; font-weight: 700;
color: var(--ink); color: var(--ink);
transition: color 0.2s;
} }
.nav-logo .bracket { color: var(--orange); } .nav-logo .bracket { color: var(--accent); }
.nav-logo:hover { color: var(--red); }
.nav-links { display: flex; gap: 0.1rem; } .nav-links { display: flex; gap: 0.1rem; }
@@ -90,36 +96,32 @@ nav {
} }
} }
.nav-link { .nav-link {
font-weight: 700; font-family: var(--mono);
font-size: 0.75rem; font-weight: 500;
letter-spacing: 0.05em; font-size: 0.76rem;
letter-spacing: 0.08em;
text-transform: uppercase; text-transform: uppercase;
padding: 0.5rem 0.75rem; padding: 0.5rem 0.75rem;
border-radius: var(--radius-sm); color: var(--ink);
color: var(--ink-soft);
position: relative; position: relative;
transition: color 0.2s;
} }
.nav-link::after { .nav-link::after {
content: ''; content: '';
position: absolute; position: absolute;
bottom: 3px; left: 50%; bottom: 3px; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
width: 0; height: 2px; width: 0; height: 3px;
background: var(--grad); background: var(--ink);
border-radius: var(--radius-pill);
transition: width 0.25s var(--ease); transition: width 0.25s var(--ease);
} }
.nav-link:hover,
.nav-link.active { color: var(--red); }
.nav-link:hover::after, .nav-link:hover::after,
.nav-link.active::after { width: 70%; } .nav-link.active::after { width: 70%; }
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; } .burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: var(--radius-pill); transition: all 0.3s var(--ease); } .burger span { display: block; width: 22px; height: 3px; background: var(--ink); transition: all 0.3s var(--ease); }
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); } .burger.open span:nth-child(1) { transform: rotate(45deg) translate(5.5px, 5.5px); }
.burger.open span:nth-child(2) { opacity: 0; } .burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); } .burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5.5px, -5.5px); }
/* ── Layout ─────────────────────────────────────────────────── */ /* ── Layout ─────────────────────────────────────────────────── */
main { position: relative; z-index: 1; } main { position: relative; z-index: 1; }
@@ -127,18 +129,18 @@ main { position: relative; z-index: 1; }
.section { .section {
padding: 7rem 0; padding: 7rem 0;
position: relative; position: relative;
background: rgba(254, 254, 227, 0.5);
} }
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; } .section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; } .section-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.section-title { .section-title {
font-size: clamp(1.8rem, 3vw, 2.4rem); font-size: clamp(2.2rem, 4vw, 3.2rem);
font-weight: 900; font-weight: 700;
letter-spacing: -0.02em; letter-spacing: -0.055em;
line-height: 1;
white-space: nowrap; white-space: nowrap;
} }
.section-rule { flex: 1; height: 2px; background: linear-gradient(to right, var(--orange), transparent); border-radius: var(--radius-pill); } .section-rule { flex: 1; height: 3px; background: var(--ink); }
/* ── Hero ───────────────────────────────────────────────────── */ /* ── Hero ───────────────────────────────────────────────────── */
.hero { .hero {
@@ -154,19 +156,26 @@ main { position: relative; z-index: 1; }
.hero-visual { flex: 0 0 300px; display: flex; align-items: center; justify-content: center; position: relative; } .hero-visual { flex: 0 0 300px; display: flex; align-items: center; justify-content: center; position: relative; }
.hero-name { .hero-name {
font-size: clamp(3rem, 5.5vw, 5rem); font-size: clamp(2.8rem, 5.5vw, 5rem);
font-weight: 900; font-weight: 700;
line-height: 1; line-height: 0.88;
letter-spacing: -0.03em; letter-spacing: -0.06em;
margin-top: 3rem; margin-top: 3rem;
margin-bottom: 0.75rem; margin-bottom: 1rem;
}
.hero-name-accent {
color: var(--accent);
-webkit-text-stroke: 2px var(--ink);
text-shadow: 4px 4px 0 var(--yellow);
} }
.hero-role { .hero-role {
font-size: clamp(1rem, 2vw, 1.3rem); font-family: var(--mono);
font-weight: 700; font-weight: 500;
color: var(--orange-deep); font-size: 0.9rem;
color: var(--ink);
margin-left: 0.5rem;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
letter-spacing: 0.06em; letter-spacing: 0.08em;
text-transform: uppercase; text-transform: uppercase;
} }
/* Hero social links */ /* Hero social links */
@@ -179,55 +188,59 @@ main { position: relative; z-index: 1; }
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
padding: 0.5rem 1rem; padding: 0.6rem 1.1rem;
border-radius: var(--radius-pill); border-radius: var(--radius-pill);
font-size: 0.85rem; font-size: 0.85rem;
font-weight: 700; font-weight: 700;
letter-spacing: 0.03em; letter-spacing: 0.03em;
border: 1.5px solid var(--glass-border); border: var(--border);
background: var(--glass-bg); background: var(--white);
backdrop-filter: blur(8px); box-shadow: var(--shadow-sm);
color: var(--ink); color: var(--ink);
transition: all 0.2s var(--ease); /* No transform/box-shadow transition: interpolating a hard offset shadow
against a composited translate causes subpixel jitter — snap instead */
transition: background 150ms ease;
} }
.hero-link i { color: var(--orange); font-size: 0.9rem; } .hero-link i { color: var(--ink); font-size: 0.9rem; }
.hero-link:hover { /* Oversized invisible hit area: the hover/active translate is ±2px, so
background: var(--orange); without this the edge retreats from the cursor and hover flickers.
border-color: var(--orange); will-change keeps the buttons on a compositor layer at rest, so applying
color: #fff; the hover transform doesn't re-rasterize (and shift) their contents */
transform: translateY(-2px); .hero-link, .project-link { position: relative; will-change: transform; }
.hero-link::after, .project-link::after {
content: '';
position: absolute;
inset: -4px;
border-radius: inherit;
} }
.hero-link:hover i { color: #fff; } .hero-link--primary { background: var(--yellow); }
.hero-link:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.hero-link:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.gitea-bg { fill: white; } .gitea-bg { fill: var(--white); }
.gitea-fg { fill: var(--orange); } .gitea-fg { fill: var(--ink); }
.hero-link:hover .gitea-bg { fill: var(--orange); }
.hero-link:hover .gitea-fg { fill: white; }
/* Avatar */ /* Avatar */
.avatar-ring { .avatar-ring {
width: 350px; height: 350px; width: 350px; height: 350px;
border-radius: 50%; border-radius: 50%;
position: relative; position: relative;
background: var(--glass-bg); background: var(--white);
border: 2px solid var(--glass-border); border: var(--border);
backdrop-filter: blur(12px); box-shadow: var(--shadow);
overflow: hidden;
display: flex; align-items: center; justify-content: center; display: flex; align-items: center; justify-content: center;
} }
.avatar-placeholder { .avatar-placeholder {
width: 330px; height: 330px; width: 100%; height: 100%;
border-radius: 50%; border-radius: 50%;
background: rgba(255, 255, 255, 0.35);
display: flex; align-items: center; justify-content: center;
font-size: 4.5rem;
color: rgba(244, 114, 43, 0.45);
overflow: hidden; overflow: hidden;
} }
.avatar-placeholder img { width: 100%; height: 100%; object-fit: cover; } .avatar-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.avatar-ring.spinning { animation: avatarSpin 0.8s var(--ease); } /* Spin the image inside the ring, not the ring itself: the ring's hard
offset shadow would visibly orbit if the shadowed element rotated */
.avatar-ring.spinning .avatar-placeholder { animation: avatarSpin 0.8s var(--ease); }
/* rotate is only keyed at 0%/100% so it sweeps through the scale midpoint /* rotate is only keyed at 0%/100% so it sweeps through the scale midpoint
without easing to a stop at 180° */ without easing to a stop at 180° */
@keyframes avatarSpin { @keyframes avatarSpin {
@@ -236,13 +249,14 @@ main { position: relative; z-index: 1; }
100% { rotate: 360deg; scale: 1; } 100% { rotate: 360deg; scale: 1; }
} }
@media (prefers-reduced-motion: reduce) { @media (prefers-reduced-motion: reduce) {
.avatar-ring.spinning { animation: none; } .avatar-ring.spinning .avatar-placeholder { animation: none; }
} }
.hero-pronouns { .hero-pronouns {
font-size: 0.85rem; font-family: var(--mono);
color: var(--ink-soft); font-size: 0.78rem;
color: var(--ink);
margin-left: 0.5rem; margin-left: 0.5rem;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
letter-spacing: 0.06em; letter-spacing: 0.06em;
@@ -251,52 +265,79 @@ main { position: relative; z-index: 1; }
/* ── About ──────────────────────────────────────────────────── */ /* ── About ──────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; } .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.about-right { display: flex; flex-direction: column; gap: 1.25rem; } .about-right { display: flex; flex-direction: column; gap: 1.25rem; }
.about-text p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1rem; } .about-text {
.about-text strong { color: var(--ink); } background: var(--white);
border: var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow);
padding: 1.75rem;
}
.about-text p { font-size: 0.95rem; margin-bottom: 1rem; }
.about-text p:last-child { margin-bottom: 0; }
.pepsi-card { .pepsi-card {
background: var(--glass-bg); background: var(--pink);
border: 1px solid var(--glass-border); border: var(--border);
backdrop-filter: blur(12px);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
overflow: hidden; overflow: hidden;
box-shadow: var(--card-shadow); box-shadow: var(--shadow);
text-align: center; text-align: center;
} }
.pepsi-placeholder { .pepsi-placeholder {
height: 400px; height: 400px;
background: rgba(255,255,255,0.3); border-bottom: var(--border);
display: flex; align-items: center; justify-content: center; position: relative;
font-size: 4rem; overflow: hidden;
color: rgba(244, 114, 43, 0.4); cursor: pointer;
}
.pepsi-incoming { position: absolute; inset: 0; }
/* Clickable photos shouldn't ghost-drag or get text-selected */
.avatar-placeholder img, .pepsi-placeholder img {
-webkit-user-drag: none;
user-select: none;
-webkit-user-select: none;
} }
.pepsi-placeholder img { .pepsi-placeholder img {
width: 100%; height: 100%; object-fit: cover; width: 100%; height: 100%; object-fit: cover; display: block;
} }
.pepsi-caption { .pepsi-caption {
padding: 0.5rem 1rem; padding: 0.75rem 1rem;
font-size: 0.85rem; font-family: var(--mono);
font-style: italic; font-weight: 500;
color: var(--ink-soft); font-size: 0.72rem;
letter-spacing: 0.06em;
text-transform: uppercase;
} }
/* ── Skills ─────────────────────────────────────────────────── */ /* ── Skills ─────────────────────────────────────────────────── */
.skill-card { .skill-card {
background: var(--glass-bg); border: 1px solid var(--glass-border); background: var(--yellow);
border-radius: var(--radius-lg); padding: 1.75rem; border: var(--border);
box-shadow: var(--card-shadow); border-radius: var(--radius-lg);
padding: 1.75rem;
box-shadow: var(--shadow);
} }
.skill-card-icon { width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--grad); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; margin-bottom: 0.75rem; } .skill-card-icon {
.skill-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 1.25rem; } width: 46px; height: 46px;
border-radius: 50%;
background: var(--white);
border: var(--border);
display: flex; align-items: center; justify-content: center;
color: var(--ink); font-size: 1.1rem;
margin-bottom: 0.75rem;
}
.skill-card h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
/* ── Projects (list layout) ─────────────────────────────────── */ /* ── Projects (list layout) ─────────────────────────────────── */
.projects-list { display: flex; flex-direction: column; gap: 2rem; } .projects-list { display: flex; flex-direction: column; gap: 2rem; }
.project-card { .project-card {
background: var(--glass-bg); border: 1px solid var(--glass-border); background: var(--white);
border: var(--border);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
padding: 2rem; padding: 2rem;
box-shadow: var(--card-shadow); box-shadow: var(--shadow);
} }
.project-header { .project-header {
@@ -305,107 +346,167 @@ main { position: relative; z-index: 1; }
} }
.project-icon { .project-icon {
width: 46px; height: 46px; flex-shrink: 0; width: 46px; height: 46px; flex-shrink: 0;
border-radius: var(--radius-md); background: var(--grad); border-radius: 50%;
background: var(--blue);
border: var(--border);
display: flex; align-items: center; justify-content: center; display: flex; align-items: center; justify-content: center;
color: #fff; font-size: 1.1rem; color: var(--ink); font-size: 1.1rem;
} }
.project-title-row { .project-title-row {
flex: 1; flex: 1;
display: flex; align-items: center; justify-content: space-between; display: flex; align-items: center; justify-content: space-between;
flex-wrap: wrap; gap: 0.5rem; flex-wrap: wrap; gap: 0.5rem;
} }
.project-title-row h3 { font-size: 1.2rem; font-weight: 800; } .project-title-row h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; }
.project-ext-links { display: flex; gap: 0.5rem; flex-wrap: wrap; } .project-ext-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.project-link { .project-link {
display: inline-flex; align-items: center; gap: 0.5rem; display: inline-flex; align-items: center; gap: 0.5rem;
font-size: 0.75rem; font-weight: 700; font-family: var(--mono);
padding: 0.25rem 0.75rem; border-radius: var(--radius-pill); font-weight: 500;
border: 1.5px solid var(--glass-border); font-size: 0.72rem;
background: rgba(255,255,255,0.4); letter-spacing: 0.05em;
color: var(--ink-soft); text-transform: uppercase;
transition: all 0.2s; padding: 0.35rem 0.8rem;
border-radius: var(--radius-pill);
border: var(--border-thin);
background: var(--white);
color: var(--ink);
box-shadow: 3px 3px 0 var(--ink);
transition: background 150ms ease;
} }
.project-link:hover { background: var(--orange); border-color: var(--orange); color: #fff; } .project-link:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); background: var(--yellow); }
.project-link:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.project-badge { .project-badge {
display: inline-flex; align-items: center; gap: 0.5rem; display: inline-flex; align-items: center; gap: 0.5rem;
font-size: 0.75rem; font-weight: 700; font-family: var(--mono);
padding: 0.25rem 0.75rem; border-radius: var(--radius-pill); font-weight: 500;
background: rgba(244, 114, 43, 0.12); font-size: 0.72rem;
color: var(--orange-deep); letter-spacing: 0.05em;
border: 1px solid rgba(244, 114, 43, 0.25); text-transform: uppercase;
padding: 0.35rem 0.8rem;
border-radius: var(--radius-pill);
background: var(--blue);
border: var(--border-thin);
color: var(--ink);
} }
.project-body { margin-bottom: 1.25rem; } .project-body { margin-bottom: 1.25rem; }
.project-body p { .project-body p {
font-size: 0.95rem; color: var(--ink-soft); font-size: 0.95rem;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
.project-body p:last-child { margin-bottom: 0; } .project-body p:last-child { margin-bottom: 0; }
.project-body a {
text-decoration: underline;
text-decoration-thickness: 2px;
text-underline-offset: 3px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; } .project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.project-tags span, .timeline-tags span { .project-tags span, .timeline-tags span {
font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; font-family: var(--mono);
padding: 0.25rem 0.75rem; border-radius: var(--radius-pill); font-weight: 500;
background: rgba(26,10,0,0.07); color: var(--ink-soft); font-size: 0.72rem;
border: 1px solid rgba(244, 114, 43, 0.18); letter-spacing: 0.06em;
transition: all 0.2s var(--ease); text-transform: uppercase;
} padding: 0.3rem 0.75rem;
.project-tags span:hover, .timeline-tags span:hover, border-radius: var(--radius-pill);
.project-tags span.tip-open, .timeline-tags span.tip-open { background: var(--white);
background: var(--orange); border: var(--border-thin);
border-color: var(--orange); color: var(--ink);
color: #fff; transition: background 150ms ease;
} }
#projects .project-tags span:hover,
#projects .project-tags span.tip-open { background: var(--blue); }
#experience .timeline-tags span:hover,
#experience .timeline-tags span.tip-open { background: var(--green); }
/* ── Timeline / Experience ──────────────────────────────────── */ /* ── Timeline / Experience ──────────────────────────────────── */
.timeline { position: relative; padding-left: 1.75rem; } .timeline { position: relative; padding-left: 1.75rem; }
.timeline::before { .timeline::before {
content: ''; position: absolute; left: 0; top: 0; bottom: 0; content: ''; position: absolute; left: 0; top: 0; bottom: 0;
width: 2px; background: linear-gradient(to bottom, var(--orange), var(--yellow), transparent); width: 3px; background: var(--ink);
border-radius: var(--radius-pill);
} }
.timeline-item { position: relative; padding-left: 2.25rem; padding-bottom: 3rem; } .timeline-item { position: relative; padding-left: 2.25rem; padding-bottom: 3rem; }
.timeline-item:last-child { padding-bottom: 0; } .timeline-item:last-child { padding-bottom: 0; }
.timeline-marker { .timeline-marker {
position: absolute; left: -2.16rem; top: 0rem; position: absolute; left: calc(-1.75rem - 7.5px); top: 0rem;
width: 16px; height: 16px; border-radius: 50%; width: 18px; height: 18px; border-radius: 50%;
background: var(--orange); border: 3px solid var(--cream); background: var(--green); border: 3px solid var(--ink);
} }
.timeline-card { .timeline-card {
background: var(--glass-bg); border: 1px solid var(--glass-border); background: var(--white);
border-radius: var(--radius-lg); padding: 1.75rem; border: var(--border);
box-shadow: var(--card-shadow); border-radius: var(--radius-lg);
padding: 1.75rem;
box-shadow: var(--shadow);
} }
.timeline-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; } .timeline-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.timeline-date { font-size: 0.75rem; font-weight: 700; color: var(--orange-deep); } .timeline-date {
.timeline-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(244,114,43,0.12); color: var(--orange-deep); border-radius: var(--radius-pill); padding: 0.25rem 0.75rem; } font-family: var(--mono);
.timeline-role { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.01em; margin-bottom: 0.25rem; } font-weight: 500;
.timeline-company { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.75rem; } font-size: 0.72rem;
.timeline-desc { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1rem; } letter-spacing: 0.06em;
text-transform: uppercase;
}
.timeline-tag {
font-family: var(--mono);
font-weight: 500;
font-size: 0.72rem;
letter-spacing: 0.06em;
text-transform: uppercase;
background: var(--green);
border: var(--border-thin);
border-radius: var(--radius-pill);
padding: 0.3rem 0.75rem;
}
.timeline-role { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.25rem; }
.timeline-company { font-size: 0.85rem; margin-bottom: 0.75rem; }
.timeline-desc { font-size: 0.95rem; margin-bottom: 1rem; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; } .timeline-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* ── Education ──────────────────────────────────────────────── */ /* ── Education ──────────────────────────────────────────────── */
.education-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } .education-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.edu-card { .edu-card {
background: var(--glass-bg); border: 1px solid var(--glass-border); background: var(--purple);
border-radius: var(--radius-lg); padding: 1.75rem; border: var(--border);
box-shadow: var(--card-shadow); border-radius: var(--radius-lg);
padding: 1.75rem;
box-shadow: var(--shadow);
display: flex; gap: 1.25rem; align-items: flex-start; display: flex; gap: 1.25rem; align-items: flex-start;
} }
.edu-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--radius-md); background: var(--grad); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; } .edu-icon {
.edu-body h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.25rem; } width: 46px; height: 46px; flex-shrink: 0;
.edu-school { font-weight: 700; color: var(--orange-deep); font-size: 0.85rem; margin-bottom: 0.25rem; } border-radius: 50%;
.edu-date { font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 0.75rem; } background: var(--white);
.edu-desc { font-size: 0.85rem; color: var(--ink-soft); } border: var(--border);
display: flex; align-items: center; justify-content: center;
color: var(--ink); font-size: 1.1rem;
}
.edu-body h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.25rem; }
.edu-school { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.25rem; }
.edu-date {
font-family: var(--mono);
font-weight: 500;
font-size: 0.72rem;
letter-spacing: 0.06em;
text-transform: uppercase;
margin-bottom: 0.75rem;
}
.edu-desc { font-size: 0.85rem; }
.edu-links { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; } .edu-links { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* ── Footer ─────────────────────────────────────────────────── */ /* ── Footer ─────────────────────────────────────────────────── */
footer { footer {
position: relative; z-index: 1; position: relative; z-index: 1;
background: var(--ink); color: rgba(255,255,255,0.45); background: var(--ink); color: var(--white);
text-align: center; padding: 1.75rem 2rem; font-size: 0.85rem; font-family: var(--mono);
font-size: 0.78rem;
letter-spacing: 0.05em;
text-transform: uppercase;
text-align: center; padding: 2.5rem 2rem;
} }
/* ── Responsive ─────────────────────────────────────────────── */ /* ── Responsive ─────────────────────────────────────────────── */
@@ -418,20 +519,24 @@ footer {
@media (max-width: 768px) { @media (max-width: 768px) {
html { font-size: 14px; } html { font-size: 14px; }
:root {
--shadow: 5px 5px 0 var(--ink);
--shadow-sm: 3px 3px 0 var(--ink);
--radius-lg: 14px;
}
.hero-name-accent { -webkit-text-stroke-width: 1.5px; text-shadow: 3px 3px 0 var(--yellow); }
.nav-links { .nav-links {
position: fixed; position: fixed;
top: var(--nav-h); top: var(--nav-h);
left: 0; right: 0; left: 0; right: 0;
background: rgba(254, 254, 227, 0.75);; background: var(--paper);
backdrop-filter: blur(30px);
-webkit-backdrop-filter: blur(30px);
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
padding: 1.5rem; padding: 1.5rem;
gap: 0.4rem; gap: 0.4rem;
transform: translateY(-140%); transform: translateY(-140%);
transition: transform 0.4s var(--ease); transition: transform 0.4s var(--ease);
border-bottom: 1px solid var(--glass-border); border-bottom: var(--border);
z-index: 999; z-index: 999;
} }
.nav-links.open { .nav-links.open {
@@ -447,14 +552,18 @@ footer {
.section-rule { display: none; } .section-rule { display: none; }
.timeline { padding-left: 1rem; } .timeline { padding-left: 1rem; }
.timeline-item { padding-left: 1.5rem; } .timeline-item { padding-left: 1.5rem; }
.timeline-marker { left: -1.55rem; } .timeline-marker { left: calc(-1rem - 7.5px); }
} }
.skills-intro { .skills-intro {
font-size: 1.05rem; font-size: 1.05rem;
color: var(--ink-soft);
max-width: 680px; max-width: 680px;
margin-bottom: 2rem; margin-bottom: 2rem;
background: var(--white);
border: var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow);
padding: 1.25rem 1.75rem;
} }
.lang-cloud { .lang-cloud {
@@ -465,23 +574,21 @@ footer {
} }
.lang-tag { .lang-tag {
font-size: 0.95rem; font-family: var(--mono);
font-weight: 700; font-weight: 500;
padding: 0.5rem 1.25rem; font-size: 0.85rem;
letter-spacing: 0.05em;
padding: 0.5rem 1.1rem;
border-radius: var(--radius-pill); border-radius: var(--radius-pill);
background: var(--glass-bg); background: var(--white);
border: 1.5px solid var(--glass-border); border: var(--border-thin);
backdrop-filter: blur(8px);
color: var(--ink); color: var(--ink);
transition: all 0.2s var(--ease); transition: background 150ms ease;
} }
.lang-tag:hover, .lang-tag:hover,
.lang-tag.tip-open { .lang-tag:focus-visible,
background: var(--orange); .lang-tag.tip-open { background: var(--yellow); }
border-color: var(--orange);
color: #fff;
}
/* ── Skill pills: shared behavior (no select + tooltip anchor) ─── */ /* ── Skill pills: shared behavior (no select + tooltip anchor) ─── */
.lang-tag, .project-tags span, .timeline-tags span { .lang-tag, .project-tags span, .timeline-tags span {
@@ -505,7 +612,7 @@ footer {
padding: 0.5rem 0.75rem; padding: 0.5rem 0.75rem;
border-radius: var(--radius-md); border-radius: var(--radius-md);
background: var(--ink); background: var(--ink);
color: var(--cream); color: var(--white);
font-family: var(--font); font-family: var(--font);
font-size: 0.75rem; font-size: 0.75rem;
font-weight: 500; font-weight: 500;
@@ -514,7 +621,6 @@ footer {
text-transform: none; text-transform: none;
text-align: center; text-align: center;
white-space: normal; white-space: normal;
box-shadow: var(--card-shadow);
z-index: 10; z-index: 10;
pointer-events: none; pointer-events: none;
} }
@@ -547,8 +653,15 @@ footer {
.project-body code { .project-body code {
font-family: var(--mono); font-family: var(--mono);
font-size: 0.88em; font-size: 0.88em;
background: rgba(26, 10, 0, 0.07); background: #e6e0d0;
padding: 0.1em 0.4em; padding: 0.1em 0.4em;
border-radius: var(--radius-sm); border-radius: var(--radius-md);
color: var(--orange); }
/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.hero-link, .project-link, .lang-tag,
.project-tags span, .timeline-tags span,
.nav-link::after, #header { transition: none; }
} }