:root { --ink: #171717; --paper: #f4efe4; --white: #fffdf8; --yellow: #ffd84d; --blue: #8cbcff; --pink: #ff9fca; --green: #a9e76c; --purple: #b99cff; --orange: #ff9d57; --accent: #d75d35; /* display-size fills only: 3.3:1 on paper, fails AA as small text */ --border: 3px solid var(--ink); --border-thin: 2px solid var(--ink); --shadow: 7px 7px 0 var(--ink); --shadow-sm: 4px 4px 0 var(--ink); --radius-lg: 18px; --radius-md: 8px; --radius-pill: 999px; --font: 'Space Grotesk', sans-serif; --mono: 'DM Mono', monospace; --nav-h: 64px; --max-w: 1100px; --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94); } /* ── Reset ──────────────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; font-size: 17px; } body { font-family: var(--font); background: var(--paper); color: var(--ink); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; } a { color: inherit; text-decoration: none; } ul { list-style: 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 ─────────────────────────────────────────────────── */ #bgCanvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.45; } /* ── Nav ────────────────────────────────────────────────────── */ #header { background: transparent; border-bottom: 3px solid transparent; position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000; transition: background 0.3s, border-color 0.3s; } #header.scrolled { background: var(--paper); border-bottom-color: var(--ink); } nav { max-width: var(--max-w); margin: 0 auto; height: 100%; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; } .nav-logo { font-size: 1.2rem; font-weight: 700; color: var(--ink); } .nav-logo .bracket { color: var(--accent); } .nav-links { display: flex; gap: 0.1rem; } @media (min-width: 769px) { .nav-links { position: fixed; top: 0; right: max(calc((100vw - var(--max-w)) / 2 + 2rem), 2rem); height: var(--nav-h); align-items: center; z-index: 1001; } } .nav-link { font-family: var(--mono); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.5rem 0.75rem; color: var(--ink); position: relative; } .nav-link::after { content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background: var(--ink); transition: width 0.25s var(--ease); } .nav-link:hover::after, .nav-link.active::after { width: 70%; } .burger { display: none; flex-direction: column; gap: 5px; padding: 8px; } .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(5.5px, 5.5px); } .burger.open span:nth-child(2) { opacity: 0; } .burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5.5px, -5.5px); } /* ── Layout ─────────────────────────────────────────────────── */ main { position: relative; z-index: 1; } .section { padding: 7rem 0; position: relative; } .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-title { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.055em; line-height: 1; white-space: nowrap; } .section-rule { flex: 1; height: 3px; background: var(--ink); } /* ── Hero ───────────────────────────────────────────────────── */ .hero { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 1rem) 2rem 10rem; max-width: var(--max-w); margin: 0 auto 250px auto; gap: 4rem; position: relative; z-index: 1; } .hero-content { flex: 1; } .hero-visual { flex: 0 0 300px; display: flex; align-items: center; justify-content: center; position: relative; } .hero-name { font-size: clamp(2.8rem, 5.5vw, 5rem); font-weight: 700; line-height: 0.88; letter-spacing: -0.06em; margin-top: 3rem; margin-bottom: 1rem; } .hero-name-accent { color: var(--accent); -webkit-text-stroke: 2px var(--ink); text-shadow: 4px 4px 0 var(--yellow); } .hero-role { font-family: var(--mono); font-weight: 500; font-size: 0.9rem; color: var(--ink); margin-left: 0.5rem; margin-bottom: 0.5rem; letter-spacing: 0.08em; text-transform: uppercase; } /* Hero social links */ .hero-links { display: flex; flex-wrap: wrap; gap: 0.75rem; } .hero-link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.1rem; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.03em; border: var(--border); background: var(--white); box-shadow: var(--shadow-sm); color: var(--ink); /* 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(--ink); font-size: 0.9rem; } /* Oversized invisible hit area: the hover/active translate is ±2px, so without this the edge retreats from the cursor and hover flickers. will-change keeps the buttons on a compositor layer at rest, so applying the hover transform doesn't re-rasterize (and shift) their contents */ .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--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: var(--white); } .gitea-fg { fill: var(--ink); } /* Avatar */ .avatar-ring { width: 350px; height: 350px; border-radius: 50%; position: relative; background: var(--white); border: var(--border); box-shadow: var(--shadow); overflow: hidden; display: flex; align-items: center; justify-content: center; } .avatar-placeholder { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; } .avatar-placeholder img { width: 100%; height: 100%; object-fit: cover; } /* 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 without easing to a stop at 180° */ @keyframes avatarSpin { 0% { rotate: 0deg; scale: 1; } 50% { scale: 1.1; } 100% { rotate: 360deg; scale: 1; } } @media (prefers-reduced-motion: reduce) { .avatar-ring.spinning .avatar-placeholder { animation: none; } } .hero-pronouns { font-family: var(--mono); font-size: 0.78rem; color: var(--ink); margin-left: 0.5rem; margin-bottom: 0.75rem; letter-spacing: 0.06em; } /* ── About ──────────────────────────────────────────────────── */ .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-text { 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 { background: var(--pink); border: var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); text-align: center; } .pepsi-placeholder { height: 400px; border-bottom: var(--border); position: relative; overflow: hidden; 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 { width: 100%; height: 100%; object-fit: cover; display: block; } .pepsi-caption { padding: 0.75rem 1rem; font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; } /* ── Skills ─────────────────────────────────────────────────── */ .skill-card { background: var(--yellow); border: var(--border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow); } .skill-card-icon { 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 { display: flex; flex-direction: column; gap: 2rem; } .project-card { background: var(--white); border: var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); } .project-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; } .project-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: var(--blue); border: var(--border); display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 1.1rem; } .project-title-row { flex: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; } .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-link { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; 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 { 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 { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.05em; 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 p { font-size: 0.95rem; margin-bottom: 0.75rem; } .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 span, .timeline-tags span { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: var(--radius-pill); background: var(--white); border: var(--border-thin); color: var(--ink); 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 { position: relative; padding-left: 1.75rem; } .timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ink); } .timeline-item { position: relative; padding-left: 2.25rem; padding-bottom: 3rem; } .timeline-item:last-child { padding-bottom: 0; } .timeline-marker { position: absolute; left: calc(-1.75rem - 7.5px); top: 0rem; width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 3px solid var(--ink); } .timeline-card { background: var(--white); border: var(--border); 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-date { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; 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; } /* ── Education ──────────────────────────────────────────────── */ .education-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } .edu-card { background: var(--purple); border: var(--border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow); display: flex; gap: 1.25rem; align-items: flex-start; } .edu-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: var(--white); 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; } /* ── Footer ─────────────────────────────────────────────────── */ footer { position: relative; z-index: 1; background: var(--ink); color: var(--white); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; text-align: center; padding: 2.5rem 2rem; } /* ── Responsive ─────────────────────────────────────────────── */ @media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } .hero-visual { display: none; } .hero { flex-direction: column; text-align: center; padding-top: calc(var(--nav-h) + 2rem); } .hero-links { justify-content: center; } } @media (max-width: 768px) { 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 { position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: center; padding: 1.5rem; gap: 0.4rem; transform: translateY(-140%); transition: transform 0.4s var(--ease); border-bottom: var(--border); z-index: 999; } .nav-links.open { transform: none; } .burger { display: flex; } .education-grid { grid-template-columns: 1fr; } .project-title-row { flex-direction: column; align-items: flex-start; } } @media (max-width: 480px) { .section-header { flex-wrap: wrap; } .section-rule { display: none; } .timeline { padding-left: 1rem; } .timeline-item { padding-left: 1.5rem; } .timeline-marker { left: calc(-1rem - 7.5px); } } .skills-intro { font-size: 1.05rem; max-width: 680px; 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 { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; } .lang-tag { font-family: var(--mono); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.05em; padding: 0.5rem 1.1rem; border-radius: var(--radius-pill); background: var(--white); border: var(--border-thin); color: var(--ink); transition: background 150ms ease; } .lang-tag:hover, .lang-tag:focus-visible, .lang-tag.tip-open { background: var(--yellow); } /* ── Skill pills: shared behavior (no select + tooltip anchor) ─── */ .lang-tag, .project-tags span, .timeline-tags span { position: relative; cursor: default; user-select: none; -webkit-user-select: none; } /* Tooltip: shows on hover, keyboard focus, or tap (script.js toggles .tip-open) */ [data-tip]:not([data-tip=""]):hover::after, [data-tip]:not([data-tip=""]):focus-visible::after, [data-tip]:not([data-tip=""]).tip-open::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 220px; padding: 0.5rem 0.75rem; border-radius: var(--radius-md); background: var(--ink); color: var(--white); font-family: var(--font); font-size: 0.75rem; font-weight: 500; line-height: 1.4; letter-spacing: normal; text-transform: none; text-align: center; white-space: normal; z-index: 10; pointer-events: none; } /* Tooltip arrow */ [data-tip]:not([data-tip=""]):hover::before, [data-tip]:not([data-tip=""]):focus-visible::before, [data-tip]:not([data-tip=""]).tip-open::before { content: ''; position: absolute; bottom: calc(100% - 3px); left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--ink); z-index: 10; pointer-events: none; } .skills-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } @media (max-width: 600px) { .skills-cards { grid-template-columns: 1fr; } } .project-body code { font-family: var(--mono); font-size: 0.88em; background: #e6e0d0; padding: 0.1em 0.4em; border-radius: var(--radius-md); } /* ── 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; } }