mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
MobileMenu.tsx: conditional-mounted glass sheet (94% + blur(12px)), three labelled groups, staggered rows, Mode/Language/Theme-color segmented rows, Connect tiles, safe-area padding, overscroll contain. Navigation.tsx: honest dialog - Escape on document, inert on #main-content/.footer/.back-to-top, focus restore guarded by offsetParent, matchMedia close above 1024px, icon morph, navPaths from data; route-change close effect deleted. SocialLinks: single data-driven renderer (src/data/social.ts + strings.social.aria); Hero and Footer cut over; mailto without target/rel; dead .social-link span rule removed; hero/footer centering scoped. Bar: .nav-control shared chrome for mode/language/theme-color, icon-only 20px half-circle palette trigger at every width, <=420px bar guard; .nav glass 85% -> 94%. Docs: spec-v3-mobile-navigation.md v0.5.0 (Q14 recorded, gates re-run 16/16 SSR), spec-ui-layout.md and AGENTS.md corrected.
1909 lines
39 KiB
CSS
1909 lines
39 KiB
CSS
/* ===== Navigation ===== */
|
||
/* 94% + blur(12px) is a contrast floor, not a taste choice: at 85% the bar measured 4.01
|
||
(red-light --text-muted over an --accent element scrolled beneath it); 94% measures 4.58.
|
||
Spec: docs/design/specs/v3/spec-v3-mobile-navigation.md §3.2 */
|
||
.nav {
|
||
position: sticky;
|
||
top: 0;
|
||
z-index: 1000;
|
||
background: color-mix(in srgb, var(--bg-surface) 94%, transparent);
|
||
border-bottom: 1px solid var(--border);
|
||
backdrop-filter: blur(12px);
|
||
transition: none;
|
||
}
|
||
|
||
.nav-container {
|
||
max-width: var(--max-wide);
|
||
margin: 0 auto;
|
||
padding: 0 24px;
|
||
height: 64px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.nav-logo {
|
||
font-size: 20px;
|
||
font-weight: 700;
|
||
color: var(--text-primary);
|
||
text-decoration: none;
|
||
}
|
||
|
||
.nav-logo:hover {
|
||
color: var(--accent);
|
||
}
|
||
|
||
.logo-bracket {
|
||
color: var(--accent);
|
||
font-family: var(--mono);
|
||
font-size: 1.2rem;
|
||
font-weight: 700;
|
||
}
|
||
.logo-text {
|
||
color: var(--text-primary);
|
||
font-weight: 700;
|
||
font-size: 1.1rem;
|
||
}
|
||
|
||
.nav-menu {
|
||
display: flex;
|
||
gap: 32px;
|
||
list-style: none;
|
||
}
|
||
|
||
.nav-link {
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
color: var(--text-muted);
|
||
text-decoration: none;
|
||
padding: 4px 0;
|
||
position: relative;
|
||
transition: color var(--transition-fast);
|
||
}
|
||
|
||
.nav-link:hover {
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.nav-link.active {
|
||
color: var(--accent);
|
||
}
|
||
|
||
.nav-link.active::after {
|
||
content: '';
|
||
position: absolute;
|
||
bottom: -2px;
|
||
left: 0;
|
||
right: 0;
|
||
height: 2px;
|
||
background: var(--accent);
|
||
border-radius: 1px;
|
||
}
|
||
|
||
.nav-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 16px;
|
||
}
|
||
|
||
/* One chrome for the three bar controls — mode, theme color, language: a bordered 44px box,
|
||
accent border + text on hover/open. Per-control rules add only what is specific to them. */
|
||
.nav-control {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
min-width: 44px;
|
||
min-height: 44px;
|
||
padding: 8px;
|
||
background: transparent;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-md);
|
||
color: var(--text-primary);
|
||
cursor: pointer;
|
||
transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
|
||
}
|
||
|
||
.nav-control:hover,
|
||
.nav-control.open {
|
||
border-color: var(--accent);
|
||
color: var(--accent);
|
||
background: var(--bg-elevated);
|
||
}
|
||
|
||
.nav-control:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
/* The language control's glyph is chrome: 13px/600 is its own scale step. */
|
||
.lang-toggle {
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
letter-spacing: 0.5px;
|
||
}
|
||
|
||
.mobile-menu-btn {
|
||
display: none;
|
||
background: none;
|
||
border: none;
|
||
color: var(--text-primary);
|
||
cursor: pointer;
|
||
padding: 8px;
|
||
border-radius: var(--radius-md);
|
||
}
|
||
|
||
.mobile-menu-btn:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
/* Mobile menu sheet — mounted only while open, and only at <=1024px (guard below).
|
||
94% + blur(12px) is a contrast floor, not taste: the worst measured case is --text-muted
|
||
over an --accent tile behind the glass — 4.58 at 94%, 4.45 at 92% (fails AA), 4.01 at the
|
||
bar's old 85%. --text-muted is what .mobile-menu-heading and the palette trigger render. */
|
||
.mobile-menu {
|
||
position: fixed;
|
||
top: 64px;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
z-index: 999;
|
||
background: color-mix(in srgb, var(--bg-surface) 94%, transparent);
|
||
backdrop-filter: blur(12px);
|
||
padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
|
||
overflow-y: auto;
|
||
overscroll-behavior: contain;
|
||
}
|
||
|
||
.mobile-menu-inner {
|
||
max-width: var(--max-content);
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.mobile-menu-group {
|
||
padding-bottom: 12px;
|
||
margin-bottom: 12px;
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
|
||
/* 12px + one hairline per group is what holds the sheet at 647px closed; 24px would reach
|
||
667px and push the Connect group past a 375x667 phone (spec §3.3). */
|
||
.mobile-menu-group:last-child {
|
||
border-bottom: none;
|
||
padding-bottom: 0;
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.mobile-menu-heading {
|
||
display: block;
|
||
font-family: var(--mono);
|
||
font-size: var(--text-meta);
|
||
line-height: 1;
|
||
letter-spacing: 1.5px;
|
||
text-transform: uppercase;
|
||
color: var(--text-muted);
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.mobile-menu-list {
|
||
list-style: none;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.mobile-menu-link {
|
||
display: flex;
|
||
align-items: center;
|
||
min-height: 48px;
|
||
padding: 0 12px 0 10px;
|
||
border-left: 2px solid transparent;
|
||
font-size: var(--text-lede);
|
||
font-weight: 500;
|
||
color: var(--text-secondary);
|
||
text-decoration: none;
|
||
transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
|
||
}
|
||
|
||
.mobile-menu-link:hover,
|
||
.mobile-menu-link:active {
|
||
background: var(--bg-elevated);
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.mobile-menu-link.active {
|
||
border-left-color: var(--accent);
|
||
color: var(--accent);
|
||
}
|
||
|
||
.mobile-menu-link:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: -2px;
|
||
}
|
||
|
||
.mobile-menu-segment {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 12px;
|
||
min-height: 48px;
|
||
}
|
||
|
||
.mobile-menu-segment-label {
|
||
font-size: var(--text-body);
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.mobile-menu-segment-options {
|
||
display: flex;
|
||
gap: 8px;
|
||
}
|
||
|
||
.mobile-menu-segment-option {
|
||
min-height: 44px;
|
||
padding: 8px 16px;
|
||
border: 1px solid var(--border-strong);
|
||
border-radius: var(--radius-md);
|
||
background: none;
|
||
color: var(--text-secondary);
|
||
cursor: pointer;
|
||
transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
|
||
}
|
||
|
||
.mobile-menu-segment-option.active {
|
||
background: var(--bg-elevated);
|
||
border-color: var(--accent);
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.mobile-menu-segment-option:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
/* The palette options use the Mode/Language segmented row's shape — same 44px target, border
|
||
and radius — drawn as colour icons via the existing .nav-palette-preview dot. */
|
||
.mobile-menu-swatch-option {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 44px;
|
||
min-height: 44px;
|
||
padding: 0;
|
||
border: 1px solid var(--border-strong);
|
||
border-radius: var(--radius-md);
|
||
background: none;
|
||
cursor: pointer;
|
||
transition: background var(--transition-fast), border-color var(--transition-fast);
|
||
}
|
||
|
||
.mobile-menu-swatch-option:hover {
|
||
background: var(--bg-elevated);
|
||
}
|
||
|
||
.mobile-menu-swatch-option.active {
|
||
border-color: var(--accent);
|
||
background: var(--bg-elevated);
|
||
}
|
||
|
||
.mobile-menu-swatch-option:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
@media (max-width: 1024px) {
|
||
.nav-menu {
|
||
display: none;
|
||
}
|
||
|
||
.mobile-menu-btn {
|
||
display: flex;
|
||
}
|
||
}
|
||
|
||
/* Four controls share the bar at ≤1024px. At 320px: {CV} (~70px) + 44×4 controls + 12×3 gaps
|
||
= 262px inside 288px of content, so the row keeps 26px of slack. */
|
||
@media (max-width: 420px) {
|
||
.nav-container {
|
||
padding: 0 16px;
|
||
}
|
||
|
||
.nav-actions {
|
||
gap: 12px;
|
||
}
|
||
}
|
||
|
||
@media (min-width: 1025px) {
|
||
.mobile-menu {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
/* ===== Theme palette menu ===== */
|
||
.nav-palette {
|
||
position: relative;
|
||
display: flex;
|
||
}
|
||
|
||
/* Nothing specific to declare: the trigger's chrome is `.nav-control` above, it holds a single
|
||
icon, and its accessible name lives in `aria-label`. The class stays as the hook that ties
|
||
the trigger to the `#palette-menu` panel it expands. */
|
||
|
||
/* The palette icon: left half is the active palette's accent, right half the constant empty
|
||
half (--swatch-empty). The hairline keeps the white half visible on a light surface. */
|
||
.nav-palette-swatch {
|
||
flex: none;
|
||
width: 20px;
|
||
height: 20px;
|
||
border-radius: 50%;
|
||
border: 1px solid var(--border-strong);
|
||
background: linear-gradient(to right, var(--accent) 0 50%, var(--swatch-empty) 50% 100%);
|
||
}
|
||
|
||
.nav-palette-panel {
|
||
display: none;
|
||
position: absolute;
|
||
top: calc(100% + 4px);
|
||
right: 0;
|
||
width: max-content;
|
||
min-width: 220px;
|
||
padding: 4px;
|
||
background: var(--bg-elevated);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-lg);
|
||
box-shadow: 0 4px 12px var(--shadow);
|
||
z-index: 100;
|
||
}
|
||
|
||
.nav-palette-panel.open {
|
||
display: block;
|
||
}
|
||
|
||
.nav-palette-option {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
width: 100%;
|
||
min-height: 44px;
|
||
padding: 8px 12px;
|
||
background: none;
|
||
border: none;
|
||
border-left: 2px solid transparent;
|
||
border-radius: var(--radius-sm);
|
||
color: var(--text-primary);
|
||
text-align: left;
|
||
cursor: pointer;
|
||
transition: background 0.15s, color 0.15s;
|
||
}
|
||
|
||
.nav-palette-option.active {
|
||
border-left-color: var(--accent);
|
||
}
|
||
|
||
.nav-palette-option.active::after {
|
||
content: '✓';
|
||
margin-left: 8px;
|
||
color: var(--accent);
|
||
}
|
||
|
||
.nav-palette-option:hover {
|
||
background: var(--accent);
|
||
color: var(--text-on-accent);
|
||
}
|
||
|
||
.nav-palette-option:hover .nav-palette-hint,
|
||
.nav-palette-option.active:hover::after {
|
||
color: var(--text-on-accent);
|
||
opacity: 0.75;
|
||
}
|
||
|
||
.nav-palette-option:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: -2px;
|
||
}
|
||
|
||
.nav-palette-preview {
|
||
flex: none;
|
||
width: 18px;
|
||
height: 18px;
|
||
border-radius: 50%;
|
||
border: 2px solid;
|
||
}
|
||
|
||
.nav-palette-preview[data-preview='red'] {
|
||
background: var(--preview-red-accent);
|
||
border-color: var(--preview-red-bg);
|
||
}
|
||
|
||
.nav-palette-preview[data-preview='blue'] {
|
||
background: var(--preview-blue-accent);
|
||
border-color: var(--preview-blue-bg);
|
||
}
|
||
|
||
.nav-palette-name {
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.nav-palette-hint {
|
||
margin-left: auto;
|
||
font-size: 12px;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
/* ===== Buttons ===== */
|
||
.btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 8px;
|
||
padding: 12px 24px;
|
||
font-size: 16px;
|
||
font-weight: 500;
|
||
font-family: inherit;
|
||
border-radius: var(--radius-md);
|
||
cursor: pointer;
|
||
text-decoration: none;
|
||
transition: all var(--transition-fast);
|
||
border: none;
|
||
}
|
||
|
||
.btn:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
.btn-primary {
|
||
background: var(--accent);
|
||
color: var(--text-on-accent);
|
||
border: 1px solid transparent;
|
||
box-shadow: 0 4px 20px var(--accent-glow);
|
||
}
|
||
|
||
.btn-primary:hover {
|
||
background: var(--accent-hover);
|
||
color: var(--text-on-accent);
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 8px 30px var(--accent-glow);
|
||
}
|
||
.btn-primary:active {
|
||
transform: translateY(0);
|
||
box-shadow: 0 2px 10px var(--accent-glow);
|
||
}
|
||
|
||
.btn-secondary {
|
||
background: transparent;
|
||
color: var(--accent);
|
||
border: 1.5px solid var(--border);
|
||
border-radius: 9999px;
|
||
}
|
||
|
||
.btn-secondary:hover {
|
||
border-color: var(--accent);
|
||
background: var(--accent-soft);
|
||
transform: translateY(-2px);
|
||
}
|
||
.btn-secondary:active {
|
||
transform: translateY(0);
|
||
}
|
||
|
||
.btn-icon {
|
||
display: inline-flex;
|
||
margin-left: 6px;
|
||
transition: transform var(--transition-fast);
|
||
}
|
||
.btn-primary:hover .btn-icon,
|
||
.btn-secondary:hover .btn-icon {
|
||
transform: translateX(4px);
|
||
}
|
||
|
||
.btn-ghost {
|
||
background: transparent;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.btn-ghost:hover {
|
||
color: var(--text-primary);
|
||
background: var(--bg-surface);
|
||
}
|
||
|
||
.btn-sm {
|
||
padding: 8px 12px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.btn-lg {
|
||
padding: 16px 32px;
|
||
font-size: 18px;
|
||
}
|
||
|
||
.btn:disabled {
|
||
opacity: 0.5;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
/* ===== Badges ===== */
|
||
.badge {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
padding: 4px 10px;
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
border-radius: var(--radius-sm);
|
||
}
|
||
|
||
.badge-accent {
|
||
background: var(--accent);
|
||
color: var(--text-on-accent);
|
||
}
|
||
|
||
.badge-outline {
|
||
background: transparent;
|
||
color: var(--accent);
|
||
border: 1px solid var(--accent);
|
||
}
|
||
|
||
.badge-muted {
|
||
background: var(--bg-surface);
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
/* ===== Tags ===== */
|
||
.tag {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
padding: 4px 10px;
|
||
font-size: 12px;
|
||
color: var(--text-muted);
|
||
background: var(--bg-surface);
|
||
border-radius: var(--radius-sm);
|
||
border: 1px solid var(--border);
|
||
}
|
||
|
||
.tag-accent {
|
||
background: var(--accent);
|
||
color: var(--text-on-accent);
|
||
border-color: var(--accent);
|
||
}
|
||
|
||
/* ===== Section Heading ===== */
|
||
.section-heading {
|
||
margin-bottom: 48px;
|
||
}
|
||
|
||
.section-heading h2 {
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.section-heading p {
|
||
font-size: 18px;
|
||
}
|
||
|
||
.section-tag {
|
||
display: block;
|
||
font-family: var(--mono);
|
||
font-size: 0.85rem;
|
||
color: var(--accent);
|
||
text-transform: uppercase;
|
||
letter-spacing: 2px;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
/* ===== Social Links ===== */
|
||
.social-links {
|
||
display: flex;
|
||
gap: 16px;
|
||
}
|
||
|
||
.social-link {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 48px;
|
||
height: 48px;
|
||
border: 1.5px solid var(--border-strong);
|
||
border-radius: 6px;
|
||
color: var(--text-primary);
|
||
transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
|
||
}
|
||
.social-link:hover {
|
||
border-color: var(--accent);
|
||
color: var(--accent);
|
||
transform: translateY(-3px);
|
||
}
|
||
.social-link:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
.social-link svg {
|
||
width: 20px;
|
||
height: 20px;
|
||
}
|
||
|
||
/* ===== Section Background Gradient ===== */
|
||
.section {
|
||
position: relative;
|
||
}
|
||
|
||
.section::before {
|
||
content: '';
|
||
position: absolute;
|
||
inset: 0;
|
||
background: linear-gradient(
|
||
to bottom,
|
||
transparent 0%,
|
||
var(--bg-primary) 10%,
|
||
var(--bg-primary) 90%,
|
||
transparent 100%
|
||
);
|
||
pointer-events: none;
|
||
z-index: -1;
|
||
}
|
||
|
||
/* ===== Hero ===== */
|
||
.hero {
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
gap: 64px;
|
||
align-items: center;
|
||
min-height: calc(100vh - 64px);
|
||
position: relative;
|
||
}
|
||
|
||
.hero-content {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 24px;
|
||
}
|
||
|
||
.hero-name {
|
||
font-size: clamp(32px, 5vw, 64px);
|
||
font-weight: 700;
|
||
color: var(--text-primary);
|
||
line-height: 1.1;
|
||
letter-spacing: -0.02em;
|
||
}
|
||
|
||
.hero-title {
|
||
font-size: clamp(18px, 2.5vw, 24px);
|
||
font-weight: 400;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.hero-tagline {
|
||
font-size: 18px;
|
||
color: var(--text-secondary);
|
||
white-space: pre-line;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.hero-greeting {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
margin-bottom: 16px;
|
||
font-size: 1.1rem;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.greeting-dot {
|
||
width: 10px;
|
||
height: 10px;
|
||
background: var(--success);
|
||
border-radius: 50%;
|
||
animation: pulse-dot 2s ease-in-out infinite;
|
||
}
|
||
|
||
@keyframes pulse-dot {
|
||
0%, 100% { box-shadow: 0 0 0 0 var(--success-glow); }
|
||
50% { box-shadow: 0 0 0 8px transparent; }
|
||
}
|
||
|
||
.name-highlight {
|
||
background: linear-gradient(135deg, var(--accent), var(--accent-active));
|
||
-webkit-background-clip: text;
|
||
-webkit-text-fill-color: transparent;
|
||
background-clip: text;
|
||
}
|
||
|
||
.ok-possible {
|
||
font-size: clamp(32px, 5vw, 25px);
|
||
font-weight: 700;
|
||
}
|
||
|
||
.hero-cta {
|
||
display: flex;
|
||
gap: 16px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.hero-visual {
|
||
position: relative;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.hero-bg-grid {
|
||
position: absolute;
|
||
inset: 0;
|
||
background-image:
|
||
linear-gradient(var(--grid-color) 1px, transparent 1px),
|
||
linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
|
||
background-size: 60px 60px;
|
||
mask-image: radial-gradient(ellipse at center, black 50%, transparent 70%);
|
||
-webkit-mask-image: radial-gradient(ellipse at center, black 50%, transparent 70%);
|
||
pointer-events: none;
|
||
}
|
||
|
||
.typewriter-cursor {
|
||
display: inline-block;
|
||
width: 2px;
|
||
height: 1.1em;
|
||
background: var(--accent);
|
||
margin-left: 2px;
|
||
vertical-align: text-bottom;
|
||
animation: blink 1s step-end infinite;
|
||
}
|
||
|
||
@keyframes blink {
|
||
0%, 100% { opacity: 1; }
|
||
50% { opacity: 0; }
|
||
}
|
||
|
||
.hero-particles {
|
||
position: absolute;
|
||
inset: 0;
|
||
overflow: hidden;
|
||
pointer-events: none;
|
||
}
|
||
.hero-particle {
|
||
position: absolute;
|
||
width: 4px;
|
||
height: 4px;
|
||
background: var(--accent);
|
||
border-radius: 50%;
|
||
opacity: 0.8;
|
||
animation: float-particle linear infinite;
|
||
}
|
||
@keyframes float-particle {
|
||
0% { transform: translateY(100vh) scale(0); opacity: 0; }
|
||
10% { opacity: 0.8; }
|
||
90% { opacity: 0.8; }
|
||
100% { transform: translateY(-100px) scale(1); opacity: 0; }
|
||
}
|
||
|
||
.scroll-indicator {
|
||
position: absolute;
|
||
bottom: 40px;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 8px;
|
||
color: var(--text-muted);
|
||
font-size: 0.8rem;
|
||
text-transform: uppercase;
|
||
letter-spacing: 2px;
|
||
animation: float 3s ease-in-out infinite;
|
||
text-decoration: none;
|
||
pointer-events: none;
|
||
}
|
||
.scroll-mouse {
|
||
width: 24px;
|
||
height: 38px;
|
||
border: 2px solid var(--border);
|
||
border-radius: 12px;
|
||
display: flex;
|
||
justify-content: center;
|
||
padding-top: 8px;
|
||
}
|
||
.scroll-wheel {
|
||
width: 3px;
|
||
height: 8px;
|
||
background: var(--accent);
|
||
border-radius: 2px;
|
||
animation: scroll-wheel 2s ease-in-out infinite;
|
||
}
|
||
@keyframes scroll-wheel {
|
||
0%, 100% { transform: translateY(0); opacity: 1; }
|
||
50% { transform: translateY(8px); opacity: 0.3; }
|
||
}
|
||
@keyframes float {
|
||
0%, 100% { transform: translateX(-50%) translateY(0); }
|
||
50% { transform: translateX(-50%) translateY(-10px); }
|
||
}
|
||
|
||
.hero-photo {
|
||
max-width: 60%;
|
||
height: auto;
|
||
object-position: center top;
|
||
display: block;
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.hero {
|
||
position: relative;
|
||
min-height: 100dvh;
|
||
overflow: hidden;
|
||
padding: 0;
|
||
}
|
||
.hero-cta {
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
}
|
||
|
||
.hero-cta .btn {
|
||
width: 100%;
|
||
}
|
||
|
||
.hero-visual {
|
||
position: absolute;
|
||
inset: 0;
|
||
z-index: 0;
|
||
}
|
||
|
||
.hero-content {
|
||
position: absolute;
|
||
inset: 0;
|
||
z-index: 1;
|
||
padding: 64px 24px 56px;
|
||
width: 100%;
|
||
}
|
||
.hero-name {
|
||
color: var(--text-primary);
|
||
}
|
||
.hero-title,
|
||
.hero-tagline {
|
||
color: var(--text-secondary);
|
||
}
|
||
.hero-greeting {
|
||
color: var(--text-secondary);
|
||
}
|
||
.hero-photo {
|
||
display: none;
|
||
}
|
||
.scroll-indicator {
|
||
position: absolute;
|
||
top: 60px;
|
||
left: auto;
|
||
right: 0 !important;
|
||
transform: translateX(-50%);
|
||
z-index: 10;
|
||
color: var(--text-primary);
|
||
}
|
||
.scroll-mouse {
|
||
border-color: var(--text-muted);
|
||
}
|
||
.hero .scroll-indicator span {
|
||
display: block !important;
|
||
color: var(--text-primary) !important;
|
||
opacity: 1 !important;
|
||
}
|
||
.hero .social-links,
|
||
.footer .social-links {
|
||
justify-content: center;
|
||
}
|
||
.social-link {
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
}
|
||
@media (max-width: 768px) {
|
||
:root[data-theme='light'] .hero-name {
|
||
color: var(--text-primary) !important;
|
||
}
|
||
:root[data-theme='light'] .hero-title,
|
||
:root[data-theme='light'] .hero-tagline,
|
||
:root[data-theme='light'] .hero-greeting {
|
||
color: var(--text-secondary) !important;
|
||
}
|
||
:root[data-theme='light'] .social-link {
|
||
color: var(--text-secondary) !important;
|
||
border-color: var(--border) !important;
|
||
}
|
||
}
|
||
|
||
@media (min-width: 769px) and (max-width: 1200px) {
|
||
.hero-content {
|
||
padding-left: 16px;
|
||
padding-right: 16px;
|
||
}
|
||
}
|
||
:root[data-theme='light'] .social-link {
|
||
border-color: var(--border) !important;
|
||
}
|
||
|
||
/* ===== Download Resume Dropdown ===== */
|
||
.download-resume-dropdown {
|
||
position: relative;
|
||
width: fit-content;
|
||
}
|
||
|
||
.download-resume-summary {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 14px 24px;
|
||
font-size: 16px;
|
||
font-weight: 500;
|
||
font-family: inherit;
|
||
border-radius: var(--radius-md);
|
||
cursor: pointer;
|
||
text-decoration: none;
|
||
transition: all var(--transition-fast);
|
||
border: none;
|
||
background: transparent;
|
||
width: 100%;
|
||
color: var(--accent);
|
||
list-style: none;
|
||
user-select: none;
|
||
}
|
||
|
||
.download-resume-summary::-webkit-details-marker {
|
||
display: none;
|
||
}
|
||
|
||
.download-resume-summary:hover {
|
||
border-color: var(--accent);
|
||
background: var(--accent);
|
||
color: var(--text-on-accent);
|
||
}
|
||
|
||
.download-resume-summary.open {
|
||
background: var(--accent);
|
||
color: var(--text-on-accent);
|
||
}
|
||
|
||
.download-resume-summary .chevron {
|
||
margin-left: auto;
|
||
transition: transform 0.2s;
|
||
}
|
||
|
||
|
||
.download-resume-dropdown .download-resume-options {
|
||
display: none;
|
||
}
|
||
|
||
.download-resume-dropdown .download-resume-options.open {
|
||
display: block;
|
||
}
|
||
|
||
.download-resume-dropdown .download-resume-summary.open .chevron {
|
||
transform: rotate(180deg);
|
||
}
|
||
|
||
.download-resume-options {
|
||
position: absolute;
|
||
top: calc(100% + 4px);
|
||
left: 0;
|
||
width: fit-content;
|
||
background: var(--bg-elevated);
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
box-shadow: 0 4px 12px var(--shadow);
|
||
z-index: 100;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.download-resume-option {
|
||
display: block;
|
||
padding: 10px 20px;
|
||
text-decoration: none;
|
||
color: var(--text-primary);
|
||
font-size: 14px;
|
||
transition: background 0.15s, color 0.15s;
|
||
}
|
||
|
||
.download-resume-option:hover {
|
||
background: var(--accent);
|
||
color: var(--text-on-accent);
|
||
}
|
||
/* Shared wrapper for lazer + dropdown positioning context */
|
||
.download-resume-shared-wrapper {
|
||
position: relative;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
}
|
||
|
||
/* ===== Download Resume Lazer Border ===== */
|
||
.download-resume-lazer-wrapper {
|
||
position: relative;
|
||
padding: 2px;
|
||
width: fit-content;
|
||
overflow: hidden;
|
||
border-radius: calc(var(--radius-md) + 2px);
|
||
}
|
||
|
||
.download-resume-lazer-border {
|
||
position: absolute;
|
||
inset: -200%;
|
||
background: conic-gradient(
|
||
from 0deg,
|
||
transparent 60%,
|
||
var(--accent) 80%,
|
||
var(--accent-hover) 95%,
|
||
transparent 100%
|
||
);
|
||
animation: download-resume-lazer-spin 4s linear infinite;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.download-resume-lazer-glow {
|
||
position: absolute;
|
||
inset: -200%;
|
||
background: conic-gradient(
|
||
from 0deg,
|
||
transparent 60%,
|
||
var(--accent) 80%,
|
||
var(--accent-hover) 95%,
|
||
transparent 100%
|
||
);
|
||
animation: download-resume-lazer-spin 4s linear infinite;
|
||
pointer-events: none;
|
||
filter: blur(12px);
|
||
opacity: 0.4;
|
||
}
|
||
|
||
.download-resume-lazer-inner {
|
||
position: relative;
|
||
z-index: 1;
|
||
width: 100%;
|
||
background: var(--accent-tint);
|
||
border-radius: var(--radius-md);
|
||
}
|
||
|
||
@keyframes download-resume-lazer-spin {
|
||
from { rotate: 0deg; }
|
||
to { rotate: 360deg; }
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.download-resume-lazer-border,
|
||
.download-resume-lazer-glow {
|
||
animation: none;
|
||
}
|
||
}
|
||
|
||
|
||
/* Desktop: show dropdown, hide mobile buttons */
|
||
.download-resume-desktop,
|
||
.hero-download-desktop {
|
||
display: block;
|
||
}
|
||
|
||
.download-resume-mobile,
|
||
.hero-download-mobile {
|
||
display: none;
|
||
}
|
||
|
||
/* Mobile: show 2 buttons, hide dropdown */
|
||
@media (max-width: 768px) {
|
||
.download-resume-desktop,
|
||
.hero-download-desktop {
|
||
display: none;
|
||
}
|
||
|
||
.download-resume-mobile {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
}
|
||
.hero-download-mobile {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
}
|
||
}
|
||
|
||
/* ===== Expertise Grid ===== */
|
||
.expertise-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr);
|
||
gap: 24px;
|
||
}
|
||
|
||
.expertise-card {
|
||
background: var(--bg-surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-lg);
|
||
padding: 24px;
|
||
transition: all var(--transition-normal);
|
||
}
|
||
|
||
.expertise-card:hover {
|
||
border-color: var(--accent);
|
||
box-shadow: 0 4px 12px var(--shadow);
|
||
}
|
||
|
||
.expertise-card h3 {
|
||
font-size: 18px;
|
||
margin-bottom: 16px;
|
||
color: var(--accent);
|
||
}
|
||
|
||
.expertise-skills {
|
||
list-style: none;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
|
||
.expertise-skill {
|
||
font-size: var(--text-meta);
|
||
line-height: var(--leading-body);
|
||
}
|
||
|
||
.expertise-skill::before {
|
||
content: '›';
|
||
color: var(--accent);
|
||
margin-right: 8px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
@media (max-width: 1024px) {
|
||
.expertise-grid {
|
||
grid-template-columns: repeat(2, 1fr);
|
||
}
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.expertise-grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
}
|
||
|
||
/* ===== Experience Timeline ===== */
|
||
.timeline {
|
||
position: relative;
|
||
padding-left: 36px;
|
||
}
|
||
|
||
/* Spine is drawn per node so it can stop exactly at the TLDR diamond instead of
|
||
trailing past the last card. left -31px = absolute x 5, so the 2px spine is centred
|
||
on x 6 — the same centre the markers use. bottom -32px bridges the entry's own margin
|
||
so consecutive segments join seamlessly. */
|
||
.timeline-entry::before {
|
||
content: '';
|
||
position: absolute;
|
||
left: -31px;
|
||
top: 0;
|
||
bottom: -32px;
|
||
width: 2px;
|
||
border-radius: 1px;
|
||
background: var(--border);
|
||
}
|
||
|
||
.timeline-entry {
|
||
position: relative;
|
||
padding-bottom: 32px;
|
||
margin-bottom: 32px;
|
||
border-bottom: 1px solid var(--border);
|
||
transition: border-color var(--transition-normal);
|
||
}
|
||
|
||
/* First node starts the spine at its marker centre (top 6 + half of 12). */
|
||
.timeline-entry:first-child::before {
|
||
top: 12px;
|
||
}
|
||
|
||
/* Guard for a timeline without a terminal node: stop at the entry's own bottom. */
|
||
.timeline-entry:last-child::before {
|
||
bottom: 0;
|
||
}
|
||
|
||
.timeline-entry:last-child {
|
||
padding-bottom: 0;
|
||
margin-bottom: 0;
|
||
border-bottom: none;
|
||
}
|
||
|
||
/* The 36px gutter puts the 12px marker's centre (x=6) exactly on the spine centre (left 5 + half of 2px). */
|
||
.timeline-marker {
|
||
position: absolute;
|
||
left: -36px;
|
||
top: 6px;
|
||
width: 12px;
|
||
height: 12px;
|
||
border-radius: 50%;
|
||
border: 2px solid var(--border-strong);
|
||
background: var(--bg-primary);
|
||
transition: border-color var(--transition-normal), background var(--transition-normal);
|
||
}
|
||
|
||
/* Data is newest-first, so the first entry is the current role: filled marker with a soft halo. */
|
||
.timeline-entry:first-child .timeline-marker {
|
||
background: var(--accent);
|
||
border-color: var(--accent);
|
||
box-shadow: 0 0 0 4px var(--accent-soft);
|
||
}
|
||
|
||
.timeline-entry:hover .timeline-marker {
|
||
border-color: var(--accent);
|
||
}
|
||
|
||
.timeline-entry:hover {
|
||
border-bottom-color: var(--border-strong);
|
||
}
|
||
|
||
/* The newest node is a status, not a past role. It borrows the TLDR panel's quiet family —
|
||
flat surface, hairline border, radius, whisper shadow — and keeps two things the TLDR node
|
||
does not: an accent left edge and a pulsing marker. The entry gets real padding so the text
|
||
sits inside the panel instead of hugging its edge (the old bed had no padding, which on a
|
||
28px mobile gutter put the accent bar right against the first glyph). */
|
||
.timeline-entry-current {
|
||
isolation: isolate;
|
||
padding: 16px 18px 20px;
|
||
border-bottom: none;
|
||
}
|
||
|
||
.timeline-entry-current .timeline-marker {
|
||
background: var(--accent);
|
||
border-color: var(--accent);
|
||
animation: timeline-status-pulse 2.4s ease-out infinite;
|
||
}
|
||
|
||
/* Panel geometry. The 12px marker occupies absolute x 0–12 and the pulse peak (10px spread)
|
||
reaches x 22, so the panel's 2px left border starts at x 28 (left −8 against the 36px
|
||
gutter): 6px clear of the ring, and the text starts at 36 + 18 = 54, i.e. 24px inside it.
|
||
The entry's own divider is gone; the panel's border closes the box. */
|
||
.timeline-entry-current::after {
|
||
content: '';
|
||
position: absolute;
|
||
z-index: -1;
|
||
inset: -10px -10px -10px -8px;
|
||
background: var(--bg-surface);
|
||
border: 1px solid var(--border);
|
||
border-left: 2px solid var(--accent);
|
||
border-radius: var(--radius-lg);
|
||
box-shadow: inset 0 1px 0 var(--inset-highlight), 0 8px 20px -18px var(--shadow);
|
||
}
|
||
|
||
@keyframes timeline-status-pulse {
|
||
0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
|
||
50% { box-shadow: 0 0 0 10px transparent; }
|
||
}
|
||
|
||
/* Mobile variant of the same pulse: 6px spread, so the ring stops at x 18 and the panel border
|
||
can keep 6px of air inside a 28px gutter. */
|
||
@keyframes timeline-status-pulse-sm {
|
||
0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
|
||
50% { box-shadow: 0 0 0 6px transparent; }
|
||
}
|
||
|
||
/* A break between jobs has to read as a break. Three signals, all quieter than the accent
|
||
work nodes: the spine turns dashed through this node, the marker shrinks to a muted ring,
|
||
the title goes italic-muted, and the divider is dropped so the dashed line bridges
|
||
straight into the next role. */
|
||
.timeline-entry-gap::before {
|
||
background: repeating-linear-gradient(
|
||
to bottom,
|
||
var(--border-strong) 0px,
|
||
var(--border-strong) 4px,
|
||
transparent 4px,
|
||
transparent 9px
|
||
);
|
||
}
|
||
|
||
.timeline-entry-gap {
|
||
border-bottom: none;
|
||
}
|
||
|
||
/* 10px ring: smaller than the 12px role markers. L = 6 − 36 − 10/2 = −35 keeps the centre on
|
||
the spine (x 6). */
|
||
.timeline-entry-gap .timeline-marker {
|
||
width: 10px;
|
||
height: 10px;
|
||
left: -35px;
|
||
border-color: var(--border-strong);
|
||
}
|
||
|
||
.timeline-entry-gap .timeline-title {
|
||
color: var(--text-muted);
|
||
font-style: italic;
|
||
}
|
||
|
||
.timeline-entry-gap .timeline-company {
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
/* Terminal node: the whole timeline collapsed into one line. Deliberately quiet — a flat
|
||
surface, a hairline border, a whisper of shadow. The only loud element is the diamond on
|
||
the spine. */
|
||
.timeline-tldr {
|
||
position: relative;
|
||
padding: 20px 24px;
|
||
background: var(--bg-surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-lg);
|
||
box-shadow: inset 0 1px 0 var(--inset-highlight), 0 8px 20px -18px var(--shadow);
|
||
}
|
||
|
||
/* Stub from the previous node down to the diamond centre (top 16 + 6). Painted as ::before
|
||
so the diamond covers its end. */
|
||
.timeline-tldr::before {
|
||
content: '';
|
||
position: absolute;
|
||
left: -31px;
|
||
top: 0;
|
||
width: 2px;
|
||
height: 22px;
|
||
border-radius: 1px;
|
||
background: var(--border);
|
||
}
|
||
|
||
/* Hollow diamond: the same ring language as the entry markers, but in accent so it still
|
||
reads as the end of the line. bg-primary fill masks the spine stub behind it; width and
|
||
height are border-box, so the centre stays on the spine (x 6). */
|
||
.timeline-tldr-marker {
|
||
position: absolute;
|
||
left: -36px;
|
||
top: 16px;
|
||
width: 12px;
|
||
height: 12px;
|
||
border: 2px solid var(--accent);
|
||
border-radius: 2px;
|
||
background: var(--bg-primary);
|
||
transform: rotate(45deg);
|
||
box-shadow: 0 0 0 3px var(--accent-soft);
|
||
}
|
||
|
||
/* Hairline link from the diamond into the panel, painted over the diamond so the join is
|
||
unbroken. */
|
||
.timeline-tldr::after {
|
||
content: '';
|
||
position: absolute;
|
||
left: -24px;
|
||
top: 21px;
|
||
width: 24px;
|
||
height: 1px;
|
||
background: var(--accent);
|
||
}
|
||
|
||
/* Same voice as .section-tag: mono, uppercase, letterspaced — no box around it. */
|
||
.timeline-tldr-chip {
|
||
display: block;
|
||
margin-bottom: 10px;
|
||
font-family: var(--mono);
|
||
font-size: 12px;
|
||
letter-spacing: 2px;
|
||
text-transform: uppercase;
|
||
color: var(--accent);
|
||
}
|
||
|
||
/* No color declaration: inherits the global p treatment (--text-secondary), the same
|
||
treatment every other lede on the site gets. */
|
||
.timeline-tldr-text {
|
||
font-size: var(--text-lede);
|
||
line-height: 1.55;
|
||
}
|
||
|
||
.timeline-header {
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.timeline-title {
|
||
font-size: 20px;
|
||
line-height: 1.3;
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.timeline-company {
|
||
margin-top: 2px;
|
||
font-size: 16px;
|
||
line-height: 1.4;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.timeline-meta {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 4px 10px;
|
||
margin-top: 6px;
|
||
}
|
||
|
||
.timeline-duration,
|
||
.timeline-location {
|
||
font-size: 14px;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.timeline-location::before {
|
||
content: '·';
|
||
margin-right: 10px;
|
||
color: var(--border-strong);
|
||
}
|
||
|
||
.timeline-responsibilities {
|
||
list-style: none;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
}
|
||
|
||
.timeline-responsibilities li {
|
||
position: relative;
|
||
padding-left: 18px;
|
||
font-size: var(--text-meta);
|
||
line-height: var(--leading-body);
|
||
}
|
||
|
||
/* Dot sits on the x-height centre of the first line (line-height 1.65 → 0.66em). */
|
||
.timeline-responsibilities li::before {
|
||
content: '';
|
||
position: absolute;
|
||
left: 0;
|
||
top: 0.66em;
|
||
width: 5px;
|
||
height: 5px;
|
||
border-radius: 50%;
|
||
border: 1px solid var(--accent);
|
||
background: var(--accent-soft);
|
||
}
|
||
|
||
.achievement-metric {
|
||
display: inline-block;
|
||
background: var(--accent);
|
||
color: var(--text-on-accent);
|
||
padding: 4px 12px;
|
||
border-radius: var(--radius-sm);
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
margin: 4px 4px 4px 0;
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.timeline {
|
||
padding-left: 28px;
|
||
}
|
||
|
||
.timeline-entry {
|
||
padding-bottom: 24px;
|
||
margin-bottom: 24px;
|
||
}
|
||
|
||
.timeline-entry::before {
|
||
left: -23px;
|
||
bottom: -24px;
|
||
}
|
||
|
||
.timeline-tldr::before {
|
||
left: -23px;
|
||
}
|
||
|
||
.timeline-tldr::after {
|
||
left: -16px;
|
||
width: 16px;
|
||
}
|
||
|
||
.timeline-marker,
|
||
.timeline-tldr-marker {
|
||
left: -28px;
|
||
}
|
||
|
||
/* 10px ring at the 28px gutter: L = 6 − 28 − 10/2 = −27. */
|
||
.timeline-entry-gap .timeline-marker {
|
||
left: -27px;
|
||
}
|
||
|
||
/* Panel keeps a comparable absolute edge: 28 − 4 = 24, i.e. 6px clear of the capped mobile
|
||
ring (x 18) and 18px before the text (28 + 16 padding). */
|
||
.timeline-entry-current {
|
||
padding: 14px 16px 18px;
|
||
}
|
||
|
||
.timeline-entry-current::after {
|
||
inset: -8px -8px -8px -4px;
|
||
}
|
||
|
||
.timeline-entry-current .timeline-marker {
|
||
animation-name: timeline-status-pulse-sm;
|
||
}
|
||
|
||
.timeline-tldr {
|
||
padding: 18px 20px;
|
||
}
|
||
}
|
||
|
||
/* ===== Projects Grid ===== */
|
||
.projects-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, 1fr);
|
||
gap: 24px;
|
||
}
|
||
|
||
.project-card {
|
||
background: var(--bg-surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-lg);
|
||
padding: 24px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
transition: all var(--transition-normal);
|
||
text-decoration: none;
|
||
color: inherit;
|
||
}
|
||
|
||
.project-card:hover {
|
||
border-color: var(--accent);
|
||
box-shadow: 0 4px 12px var(--shadow);
|
||
transform: translateY(-2px);
|
||
color: inherit;
|
||
}
|
||
|
||
.project-card-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: flex-start;
|
||
}
|
||
|
||
.project-card h3 {
|
||
font-size: 20px;
|
||
color: var(--text-primary);
|
||
margin: 0;
|
||
}
|
||
|
||
.project-card-summary {
|
||
font-size: var(--text-meta);
|
||
color: var(--text-secondary);
|
||
line-height: var(--leading-body);
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 2;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.project-card-techs {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
}
|
||
|
||
.project-card-metrics {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
}
|
||
|
||
.project-card-cta {
|
||
margin-top: auto;
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
color: var(--accent);
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.projects-grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
}
|
||
|
||
/* ===== Philosophy ===== */
|
||
.philosophy-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr);
|
||
gap: 24px;
|
||
margin-top: 32px;
|
||
}
|
||
|
||
.philosophy-card {
|
||
background: var(--bg-surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-lg);
|
||
padding: 24px;
|
||
transition: all var(--transition-normal);
|
||
}
|
||
|
||
.philosophy-card:hover {
|
||
border-color: var(--accent);
|
||
}
|
||
|
||
.philosophy-card h3 {
|
||
font-size: 18px;
|
||
line-height: 1.25;
|
||
color: var(--accent);
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.philosophy-card p {
|
||
font-size: var(--text-meta);
|
||
line-height: var(--leading-body);
|
||
}
|
||
|
||
.philosophy-keywords {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
margin-top: 12px;
|
||
}
|
||
|
||
.interests-list {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
margin-top: 24px;
|
||
}
|
||
|
||
@media (max-width: 1024px) {
|
||
.philosophy-grid {
|
||
grid-template-columns: repeat(2, 1fr);
|
||
}
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.philosophy-grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
}
|
||
|
||
/* ===== Contact ===== */
|
||
.contact-links {
|
||
display: flex;
|
||
gap: 32px;
|
||
margin-top: 32px;
|
||
}
|
||
|
||
.contact-link {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
font-size: 16px;
|
||
line-height: 1.4;
|
||
color: var(--text-secondary);
|
||
text-decoration: none;
|
||
padding: 16px 24px;
|
||
background: var(--bg-surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-lg);
|
||
transition: all var(--transition-fast);
|
||
}
|
||
|
||
.contact-link:hover {
|
||
border-color: var(--accent);
|
||
color: var(--accent);
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
.contact-link svg {
|
||
width: 24px;
|
||
height: 24px;
|
||
}
|
||
|
||
.contact-link-sub {
|
||
font-size: var(--text-meta);
|
||
line-height: 1.5;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
/* Resume download button variant of the contact tile */
|
||
.download-resume-button {
|
||
justify-content: center;
|
||
padding: 12px 20px;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.contact-links {
|
||
flex-direction: column;
|
||
}
|
||
}
|
||
|
||
/* ===== Footer ===== */
|
||
.footer {
|
||
border-top: 1px solid var(--border);
|
||
padding: 32px 0;
|
||
margin-top: auto;
|
||
}
|
||
|
||
.footer-container {
|
||
max-width: var(--max-wide);
|
||
margin: 0 auto;
|
||
padding: 0 24px;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
}
|
||
|
||
.footer-text {
|
||
font-size: 14px;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.footer-links {
|
||
display: flex;
|
||
gap: 24px;
|
||
list-style: none;
|
||
}
|
||
|
||
.footer-link {
|
||
font-size: 14px;
|
||
color: var(--text-muted);
|
||
text-decoration: none;
|
||
transition: color var(--transition-fast);
|
||
}
|
||
|
||
.footer-link:hover {
|
||
color: var(--accent);
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.footer-container {
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
text-align: center;
|
||
}
|
||
|
||
.footer-links {
|
||
justify-content: center;
|
||
}
|
||
}
|
||
|
||
/* ===== Content prose ===== */
|
||
.prose {
|
||
max-width: var(--measure-prose);
|
||
}
|
||
|
||
.prose h2 {
|
||
margin-top: 48px;
|
||
margin-bottom: 16px;
|
||
font-size: 28px;
|
||
}
|
||
|
||
.prose h3 {
|
||
margin-top: 1.5em;
|
||
margin-bottom: 0.65em;
|
||
}
|
||
|
||
.prose h4 {
|
||
margin-top: 1.25em;
|
||
margin-bottom: 8px;
|
||
font-size: 16px;
|
||
line-height: 1.3;
|
||
}
|
||
|
||
.prose p {
|
||
margin-bottom: 1em;
|
||
}
|
||
|
||
.prose p:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.prose ul,
|
||
.prose ol {
|
||
margin-bottom: 16px;
|
||
padding-left: 24px;
|
||
}
|
||
|
||
.prose li {
|
||
margin-bottom: 8px;
|
||
color: var(--text-secondary);
|
||
font-size: var(--text-body);
|
||
line-height: var(--leading-body);
|
||
}
|
||
|
||
.prose blockquote {
|
||
border-left: 4px solid var(--accent);
|
||
padding-left: 16px;
|
||
margin: 16px 0;
|
||
color: var(--text-secondary);
|
||
font-style: italic;
|
||
}
|
||
|
||
/* Wide reading column: same width as the page column. Body steps up to
|
||
--text-lede so a wider column keeps the 45-80 characters-per-line band. */
|
||
.prose-wide {
|
||
max-width: var(--measure-page);
|
||
}
|
||
|
||
.prose-wide p {
|
||
font-size: var(--text-lede);
|
||
line-height: 1.6;
|
||
}
|
||
|
||
/* Lead paragraph that stands outside a .prose column */
|
||
.prose-lede {
|
||
max-width: var(--measure-prose);
|
||
font-size: var(--text-lede);
|
||
line-height: 1.55;
|
||
}
|
||
|
||
/* A lede that sits next to a wide grid follows the page measure, not the prose measure */
|
||
.lede-wide {
|
||
max-width: var(--measure-page);
|
||
}
|
||
|
||
/* Column for blocks that are not prose (grids, tag lists, timelines) */
|
||
.page-body {
|
||
max-width: var(--measure-page);
|
||
}
|
||
|
||
.subheading {
|
||
margin-top: 32px;
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.philosophy-quote p {
|
||
text-align: justify;
|
||
}
|
||
|
||
.philosophy-quote + .philosophy-quote {
|
||
margin-top: 48px;
|
||
}
|
||
|
||
.philosophy-quote h3 {
|
||
margin-top: 0;
|
||
}
|
||
|
||
.project-section {
|
||
background: var(--bg-surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-md);
|
||
padding: 16px;
|
||
margin-bottom: 16px;
|
||
box-shadow: inset 0 1px 0 var(--inset-highlight);
|
||
}
|
||
|
||
.project-section h4 {
|
||
margin-top: 0;
|
||
}
|
||
|
||
.project-section p {
|
||
font-size: var(--text-meta);
|
||
line-height: var(--leading-body);
|
||
}
|
||
|
||
.back-link {
|
||
display: inline-block;
|
||
font-size: var(--text-meta);
|
||
font-weight: 500;
|
||
color: var(--accent);
|
||
margin-bottom: 32px;
|
||
}
|
||
|
||
.section-cta {
|
||
display: block;
|
||
font-size: var(--text-meta);
|
||
font-weight: 500;
|
||
color: var(--accent);
|
||
margin-bottom: 24px;
|
||
}
|
||
|
||
.link-label {
|
||
font-weight: 500;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
/* ===== Back to top ===== */
|
||
.back-to-top {
|
||
position: fixed;
|
||
bottom: 24px;
|
||
right: 24px;
|
||
width: 40px;
|
||
height: 40px;
|
||
border-radius: 50%;
|
||
background: var(--accent);
|
||
color: var(--text-on-accent);
|
||
border: none;
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
opacity: 0;
|
||
transform: translateY(10px);
|
||
transition: all var(--transition-normal);
|
||
z-index: 100;
|
||
}
|
||
|
||
.back-to-top.visible {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
|
||
.back-to-top:hover {
|
||
background: var(--accent-hover);
|
||
}
|