1401 lines
26 KiB
CSS
1401 lines
26 KiB
CSS
@font-face {
|
|
font-family: 'Geist';
|
|
font-style: normal;
|
|
font-weight: 100 900;
|
|
font-display: swap;
|
|
src: url('fonts/geist-variable.ttf') format('truetype');
|
|
}
|
|
|
|
/* ─── Catppuccin themes ────────────────────────────────── */
|
|
:root {
|
|
color-scheme: light dark;
|
|
--font-body: 'Geist', system-ui, sans-serif;
|
|
--font-mono: 'JetBrains Mono', monospace;
|
|
--base: #1e1e2e;
|
|
--mantle: #181825;
|
|
--crust: #11111b;
|
|
--surface0: #313244;
|
|
--surface1: #45475a;
|
|
--surface2: #585b70;
|
|
--overlay0: #6c7086;
|
|
--overlay1: #7f849c;
|
|
--overlay2: #9399b2;
|
|
--text: #cdd6f4;
|
|
--subtext0: #a6adc8;
|
|
--subtext1: #bac2de;
|
|
--lavender: #b4befe;
|
|
--blue: #89b4fa;
|
|
--sapphire: #74c7ec;
|
|
--sky: #89dceb;
|
|
--teal: #94e2d5;
|
|
--green: #a6e3a1;
|
|
--yellow: #f9e2af;
|
|
--peach: #fab387;
|
|
--maroon: #eba0ac;
|
|
--red: #f38ba8;
|
|
--mauve: #cba6f7;
|
|
--pink: #f5c2e7;
|
|
--flamingo: #f2cdcd;
|
|
--rosewater: #f5e0dc;
|
|
--nav-background: rgba(17, 17, 27, 0.85);
|
|
--accent-soft: rgba(203, 166, 247, 0.15);
|
|
--accent-selected: rgba(203, 166, 247, 0.18);
|
|
--accent-border: rgba(203, 166, 247, 0.7);
|
|
--on-accent: #11111b;
|
|
--link-accent: var(--mauve);
|
|
}
|
|
|
|
:root[data-theme='light'] {
|
|
color-scheme: light;
|
|
}
|
|
|
|
:root[data-theme='dark'] {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
/* Catppuccin Latte / Mocha; older browsers retain the original Mocha palette. */
|
|
@supports (color: light-dark(#eff1f5, #1e1e2e)) {
|
|
:root {
|
|
--base: light-dark(#eff1f5, #1e1e2e);
|
|
--mantle: light-dark(#e6e9ef, #181825);
|
|
--crust: light-dark(#dce0e8, #11111b);
|
|
--surface0: light-dark(#ccd0da, #313244);
|
|
--surface1: light-dark(#bcc0cc, #45475a);
|
|
--surface2: light-dark(#acb0be, #585b70);
|
|
--overlay0: light-dark(#9ca0b0, #6c7086);
|
|
--overlay1: light-dark(#8c8fa1, #7f849c);
|
|
--overlay2: light-dark(#7c7f93, #9399b2);
|
|
--text: light-dark(#4c4f69, #cdd6f4);
|
|
--subtext0: light-dark(#60647b, #a6adc8);
|
|
--subtext1: light-dark(#5c5f77, #bac2de);
|
|
--lavender: light-dark(#7287fd, #b4befe);
|
|
--blue: light-dark(#1e66f5, #89b4fa);
|
|
--sapphire: light-dark(#209fb5, #74c7ec);
|
|
--sky: light-dark(#04a5e5, #89dceb);
|
|
--teal: light-dark(#179299, #94e2d5);
|
|
--green: light-dark(#40a02b, #a6e3a1);
|
|
--yellow: light-dark(#df8e1d, #f9e2af);
|
|
--peach: light-dark(#fe640b, #fab387);
|
|
--maroon: light-dark(#e64553, #eba0ac);
|
|
--red: light-dark(#d20f39, #f38ba8);
|
|
--mauve: light-dark(#8839ef, #cba6f7);
|
|
--pink: light-dark(#ea76cb, #f5c2e7);
|
|
--flamingo: light-dark(#dd7878, #f2cdcd);
|
|
--rosewater: light-dark(#dc8a78, #f5e0dc);
|
|
--nav-background: light-dark(
|
|
rgba(239, 241, 245, 0.94),
|
|
rgba(17, 17, 27, 0.85)
|
|
);
|
|
--accent-soft: light-dark(
|
|
rgba(136, 57, 239, 0.03),
|
|
rgba(203, 166, 247, 0.15)
|
|
);
|
|
--accent-selected: light-dark(
|
|
rgba(136, 57, 239, 0.03),
|
|
rgba(203, 166, 247, 0.18)
|
|
);
|
|
--accent-border: light-dark(
|
|
rgba(136, 57, 239, 0.7),
|
|
rgba(203, 166, 247, 0.7)
|
|
);
|
|
--on-accent: light-dark(#eff1f5, #11111b);
|
|
--link-accent: light-dark(#8235e6, #cba6f7);
|
|
}
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
body {
|
|
background: var(--base);
|
|
color: var(--text);
|
|
font-family: var(--font-body);
|
|
font-size: 16px;
|
|
line-height: 1.7;
|
|
overflow-x: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.nav-links,
|
|
.mobile-nav-links,
|
|
.v-year,
|
|
.v-current-badge,
|
|
.tag,
|
|
.card-date,
|
|
.project-status,
|
|
.card-source,
|
|
.card-action,
|
|
.project-count,
|
|
footer {
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
::selection {
|
|
background: var(--mauve);
|
|
color: var(--on-accent);
|
|
}
|
|
|
|
:focus-visible {
|
|
outline: 2px solid var(--mauve);
|
|
outline-offset: 4px;
|
|
}
|
|
|
|
.skip-link {
|
|
position: fixed;
|
|
top: 0.75rem;
|
|
left: 50%;
|
|
z-index: 200;
|
|
padding: 0.6rem 1rem;
|
|
border-radius: 4px;
|
|
background: var(--mauve);
|
|
color: var(--on-accent);
|
|
font-size: 0.8rem;
|
|
font-weight: 700;
|
|
text-decoration: none;
|
|
transform: translate(-50%, -200%);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.skip-link:focus {
|
|
transform: translate(-50%, 0);
|
|
}
|
|
|
|
/* ─── Scrollbar ────────────────────────────────────────── */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--mantle);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--surface1);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--mauve);
|
|
}
|
|
|
|
/* ─── Nav ──────────────────────────────────────────────── */
|
|
nav {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 100;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 max(2rem, calc((100vw - 1104px) / 2));
|
|
height: 56px;
|
|
background: var(--nav-background);
|
|
backdrop-filter: blur(12px);
|
|
border-bottom: 1px solid var(--surface0);
|
|
}
|
|
|
|
.nav-logo {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 44px;
|
|
font-family: 'Fraunces', serif;
|
|
font-size: 1.3rem;
|
|
color: var(--mauve);
|
|
text-decoration: none;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
gap: 2.5rem;
|
|
list-style: none;
|
|
}
|
|
|
|
.nav-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.theme-toggle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 44px;
|
|
width: 44px;
|
|
padding: 0.5rem;
|
|
border: 1px solid transparent;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
color: var(--subtext1);
|
|
cursor: pointer;
|
|
transition:
|
|
color 0.2s,
|
|
background-color 0.2s;
|
|
}
|
|
|
|
.theme-toggle:hover {
|
|
background: var(--accent-soft);
|
|
color: var(--mauve);
|
|
}
|
|
|
|
.theme-icon {
|
|
display: block;
|
|
width: 22px;
|
|
height: 22px;
|
|
background: currentColor;
|
|
-webkit-mask: url('icons/sun.svg') center / contain no-repeat;
|
|
mask: url('icons/sun.svg') center / contain no-repeat;
|
|
}
|
|
|
|
.theme-toggle[data-theme='dark'] .theme-icon {
|
|
-webkit-mask-image: url('icons/moon.svg');
|
|
mask-image: url('icons/moon.svg');
|
|
}
|
|
|
|
.nav-links a,
|
|
.mobile-nav-links a {
|
|
display: flex;
|
|
align-items: center;
|
|
min-height: 44px;
|
|
color: var(--subtext0);
|
|
text-decoration: none;
|
|
font-size: 0.8rem;
|
|
letter-spacing: 0;
|
|
text-decoration: underline;
|
|
text-decoration-color: transparent;
|
|
text-underline-offset: 0.3em;
|
|
transition:
|
|
color 0.2s,
|
|
text-decoration-color 0.2s;
|
|
position: relative;
|
|
}
|
|
|
|
.nav-links a:hover,
|
|
.nav-links a:focus-visible,
|
|
.mobile-nav-links a:hover,
|
|
.mobile-nav-links a:focus-visible {
|
|
color: var(--mauve);
|
|
text-decoration-color: currentColor;
|
|
}
|
|
|
|
.nav-links a.is-active,
|
|
.mobile-nav-links a.is-active {
|
|
color: var(--mauve);
|
|
}
|
|
|
|
.nav-menu {
|
|
display: none;
|
|
position: relative;
|
|
}
|
|
|
|
.nav-menu summary {
|
|
min-height: 44px;
|
|
padding: 0.5rem 0.75rem;
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.mobile-nav-links {
|
|
position: absolute;
|
|
top: calc(100% + 6px);
|
|
right: 0;
|
|
width: 180px;
|
|
padding: 0.5rem 1rem;
|
|
background: var(--mantle);
|
|
border: 1px solid var(--surface1);
|
|
border-radius: 8px;
|
|
list-style: none;
|
|
}
|
|
|
|
/* ─── Sections ─────────────────────────────────────────── */
|
|
section {
|
|
padding: clamp(4rem, 7vw, 6rem) 3rem;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
scroll-margin-top: 56px;
|
|
}
|
|
|
|
section.full-width {
|
|
max-width: none;
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
|
|
/* ─── Hero ─────────────────────────────────────────────── */
|
|
#hero {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
|
|
align-items: center;
|
|
gap: 2rem;
|
|
padding-top: 6rem;
|
|
padding-bottom: 5rem;
|
|
min-height: 730px;
|
|
}
|
|
|
|
.hero-art {
|
|
position: relative;
|
|
isolation: isolate;
|
|
min-width: 0;
|
|
height: 420px;
|
|
}
|
|
|
|
.hero-art::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 5% 7% 8%;
|
|
border-radius: 50%;
|
|
background: var(--mauve);
|
|
opacity: 0.18;
|
|
transform: rotate(-20deg) scaleY(0.9);
|
|
}
|
|
|
|
.hero-art::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 5% 10% 12%;
|
|
border: 1px solid var(--mauve);
|
|
border-radius: 50%;
|
|
transform: rotate(25deg) scaleY(0.65);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.hero-experiment {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 8px;
|
|
width: 83%;
|
|
height: auto;
|
|
border: 8px solid var(--mantle);
|
|
border-radius: 12px;
|
|
transform: rotate(9deg);
|
|
box-shadow: 0 16px 32px color-mix(in srgb, var(--crust) 18%, transparent);
|
|
}
|
|
|
|
.hero-portrait {
|
|
position: absolute;
|
|
top: 5%;
|
|
left: 3%;
|
|
display: block;
|
|
width: 59%;
|
|
height: auto;
|
|
aspect-ratio: 4 / 5;
|
|
object-fit: cover;
|
|
border: 8px solid var(--base);
|
|
border-radius: 150px 150px 12px 12px;
|
|
transform: rotate(-7deg);
|
|
}
|
|
|
|
.hero-copy {
|
|
min-width: 0;
|
|
max-width: 750px;
|
|
}
|
|
|
|
.hero-name {
|
|
font-family: var(--font-body);
|
|
font-size: clamp(3rem, 5.2vw, 4.75rem);
|
|
font-weight: 600;
|
|
letter-spacing: -0.065em;
|
|
line-height: 1.1;
|
|
padding-bottom: 0.1em;
|
|
color: var(--text);
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.hero-name em {
|
|
font-style: normal;
|
|
color: var(--text);
|
|
}
|
|
|
|
#hero .hero-name {
|
|
font-size: clamp(4.5rem, 8.8vw, 8rem);
|
|
font-weight: 750;
|
|
line-height: 0.92;
|
|
letter-spacing: -0.075em;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
#hero .hero-name em {
|
|
display: block;
|
|
color: var(--mauve);
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: clamp(1.2rem, 2vw, 1.5rem);
|
|
font-weight: 500;
|
|
letter-spacing: -0.025em;
|
|
color: var(--subtext1);
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.hero-desc {
|
|
max-width: 560px;
|
|
color: var(--subtext0);
|
|
font-size: 1rem;
|
|
line-height: 1.6;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.hero-links {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 44px;
|
|
gap: 0.5rem;
|
|
padding: 0.6rem 1.4rem;
|
|
border-radius: 999px;
|
|
font-family: var(--font-body);
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
letter-spacing: -0.01em;
|
|
text-decoration: none;
|
|
transition: all 0.2s;
|
|
cursor: pointer;
|
|
border: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--mauve);
|
|
color: var(--on-accent);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--mauve);
|
|
filter: brightness(1.05);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.btn-ghost {
|
|
background: transparent;
|
|
color: var(--text);
|
|
border: 1px solid var(--surface1);
|
|
}
|
|
|
|
.btn-ghost:hover {
|
|
border-color: var(--mauve);
|
|
color: var(--mauve);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.btn:active,
|
|
.theme-toggle:active,
|
|
.filter-chip:active,
|
|
.projects-more-btn:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
/* ─── About ────────────────────────────────────────────── */
|
|
#about {
|
|
background: var(--mantle);
|
|
border-radius: 32px;
|
|
max-width: 1104px;
|
|
}
|
|
|
|
.about-lead {
|
|
margin-top: 1.75rem;
|
|
}
|
|
|
|
.about-intro {
|
|
max-width: 48ch;
|
|
font-size: clamp(1.3rem, 2.5vw, 1.9rem);
|
|
color: var(--subtext1);
|
|
line-height: 1.75;
|
|
}
|
|
|
|
.about-columns {
|
|
display: grid;
|
|
grid-template-columns: 1.2fr 1fr;
|
|
gap: clamp(3rem, 8vw, 7rem);
|
|
margin-top: 3rem;
|
|
align-items: start;
|
|
}
|
|
|
|
.about-columns > .reveal:last-child {
|
|
padding: 1.5rem 2rem;
|
|
background: var(--base);
|
|
border-radius: 20px;
|
|
transform: rotate(2deg);
|
|
}
|
|
|
|
.about-details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.75rem;
|
|
}
|
|
|
|
.about-block h3,
|
|
.about-subheading {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.6rem;
|
|
letter-spacing: -0.025em;
|
|
}
|
|
|
|
.about-block p {
|
|
color: var(--subtext0);
|
|
font-size: 1rem;
|
|
line-height: 1.75;
|
|
}
|
|
|
|
.about-block p strong {
|
|
color: var(--text);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.about-block p em {
|
|
color: var(--mauve);
|
|
font-style: italic;
|
|
}
|
|
|
|
.about-block p s {
|
|
color: var(--overlay1);
|
|
}
|
|
|
|
.version-timeline {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
position: relative;
|
|
}
|
|
|
|
.version-timeline::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0.65rem;
|
|
top: 0.5rem;
|
|
bottom: 0.5rem;
|
|
width: 1px;
|
|
background: var(--surface1);
|
|
}
|
|
|
|
.version-item {
|
|
display: flex;
|
|
gap: 1.25rem;
|
|
padding: 1rem 0;
|
|
position: relative;
|
|
}
|
|
|
|
.v-dot {
|
|
width: 0.55rem;
|
|
height: 0.55rem;
|
|
border-radius: 50%;
|
|
background: var(--surface0);
|
|
border: 2px solid var(--surface1);
|
|
flex-shrink: 0;
|
|
margin: 0.6rem 0.375rem 0;
|
|
transition:
|
|
border-color 0.2s,
|
|
background 0.2s;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.v-title {
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
margin-bottom: 0.15rem;
|
|
text-decoration: underline;
|
|
text-decoration-color: transparent;
|
|
text-underline-offset: 0.3em;
|
|
transition:
|
|
color 0.2s,
|
|
text-decoration-color 0.2s;
|
|
}
|
|
|
|
.v-year {
|
|
font-size: 0.7rem;
|
|
color: var(--subtext0);
|
|
margin-bottom: 0.3rem;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.v-desc {
|
|
font-size: 0.95rem;
|
|
color: var(--subtext0);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.version-item--link {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.version-item--link:hover .v-title,
|
|
.version-item--link:focus-visible .v-title {
|
|
color: var(--mauve);
|
|
text-decoration-color: currentColor;
|
|
}
|
|
|
|
.v-link-arrow {
|
|
font-size: 0.7rem;
|
|
color: var(--overlay1);
|
|
margin-left: 0.3rem;
|
|
transition:
|
|
color 0.2s,
|
|
transform 0.2s;
|
|
display: inline-block;
|
|
}
|
|
|
|
.version-item--link:hover .v-link-arrow,
|
|
.version-item--link:focus-visible .v-link-arrow {
|
|
color: var(--mauve);
|
|
transform: translate(2px, -2px);
|
|
}
|
|
|
|
.v-dot--current {
|
|
border-color: var(--mauve);
|
|
background: var(--mauve);
|
|
}
|
|
|
|
.v-current-badge {
|
|
font-size: 0.6rem;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
background: var(--accent-soft);
|
|
color: var(--link-accent);
|
|
padding: 0.1rem 0.45rem;
|
|
border-radius: 3px;
|
|
margin-left: 0.4rem;
|
|
vertical-align: middle;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* ─── Skills ───────────────────────────────────────────── */
|
|
#skills h2 {
|
|
margin-bottom: 2.5rem;
|
|
}
|
|
|
|
.skills-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 2.5rem 4rem;
|
|
}
|
|
|
|
.skill-card {
|
|
display: grid;
|
|
grid-template-columns: 3.5rem minmax(0, 1fr);
|
|
gap: 0.75rem 1rem;
|
|
align-content: start;
|
|
padding: 2rem;
|
|
border: 1px solid var(--surface0);
|
|
border-radius: 24px;
|
|
background: var(--mantle);
|
|
}
|
|
|
|
.skill-card:nth-child(2),
|
|
.skill-card:nth-child(3) {
|
|
background: transparent;
|
|
border-radius: 24px 64px 24px 24px;
|
|
}
|
|
|
|
.skill-card-icon {
|
|
display: block;
|
|
align-self: center;
|
|
}
|
|
|
|
.skill-card-icon-image {
|
|
width: 2.75rem;
|
|
height: 2.75rem;
|
|
display: block;
|
|
}
|
|
|
|
.skill-card h3 {
|
|
align-self: center;
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
}
|
|
|
|
.skill-card p,
|
|
.skill-card .tag-row {
|
|
grid-column: 2;
|
|
}
|
|
|
|
.skill-card .tag-row {
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.skill-card p {
|
|
font-size: 0.95rem;
|
|
color: var(--subtext0);
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.tag-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.4rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.tag {
|
|
display: inline-block;
|
|
padding: 0.15rem 0.6rem;
|
|
border-radius: 3px;
|
|
font-size: 0.7rem;
|
|
letter-spacing: 0;
|
|
font-weight: 400;
|
|
background: var(--base);
|
|
color: var(--subtext0);
|
|
}
|
|
|
|
/* ─── Tutorials / Projects shared ─────────────────────── */
|
|
.section-heading {
|
|
font-size: clamp(2.5rem, 5.5vw, 4.5rem);
|
|
font-weight: 650;
|
|
line-height: 1.15;
|
|
letter-spacing: -0.065em;
|
|
color: var(--text);
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.section-intro {
|
|
color: var(--subtext0);
|
|
font-size: 1rem;
|
|
max-width: 560px;
|
|
line-height: 1.8;
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.projects-subheading {
|
|
margin: 0 0 0.9rem;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: var(--subtext1);
|
|
}
|
|
|
|
.card-grid.card-grid--featured {
|
|
margin-bottom: 4rem;
|
|
grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
|
|
gap: 3rem;
|
|
padding-bottom: 1rem;
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
.card-grid--featured .card.featured-card {
|
|
display: flex;
|
|
padding: 1.5rem;
|
|
gap: 1.75rem;
|
|
border-radius: 24px;
|
|
background: var(--mantle);
|
|
overflow: visible;
|
|
align-self: start;
|
|
}
|
|
|
|
.card-grid--featured .featured-card:nth-child(2) {
|
|
margin-top: 6rem;
|
|
}
|
|
|
|
.featured-card:nth-child(1) .project-preview {
|
|
transform: rotate(-3deg);
|
|
}
|
|
|
|
.featured-card:nth-child(2) .project-preview {
|
|
transform: rotate(3deg);
|
|
}
|
|
|
|
.project-preview {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
aspect-ratio: 3 / 2;
|
|
object-fit: cover;
|
|
border: 1px solid var(--surface0);
|
|
border-radius: 12px;
|
|
transition:
|
|
border-color 0.2s,
|
|
transform 0.3s;
|
|
}
|
|
|
|
.featured-card-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
padding: 0 0.25rem;
|
|
flex: 1;
|
|
}
|
|
|
|
.featured-card .card-title {
|
|
font-size: clamp(1.5rem, 2.5vw, 2rem);
|
|
line-height: 1.2;
|
|
letter-spacing: -0.04em;
|
|
}
|
|
|
|
.featured-card .tag-row {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.project-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 0.5rem 1rem;
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.featured-card:hover .project-preview,
|
|
.featured-card:has(.card-title:focus-visible) .project-preview {
|
|
border-color: var(--mauve);
|
|
transform: rotate(0) translateY(-4px);
|
|
}
|
|
|
|
#projects .section-intro {
|
|
margin-bottom: 1.8rem;
|
|
max-width: 640px;
|
|
}
|
|
|
|
#project-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 0 3rem;
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
#project-grid .card {
|
|
padding: 1.75rem 1.25rem;
|
|
border-top: 1px solid var(--surface1);
|
|
border-radius: 0 0 16px 16px;
|
|
background: transparent;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
#project-grid .card:hover,
|
|
#project-grid .card:focus-within {
|
|
background: var(--mantle);
|
|
}
|
|
|
|
#project-grid .card-title {
|
|
font-size: 1.3rem;
|
|
letter-spacing: -0.025em;
|
|
}
|
|
|
|
#project-grid .tag-row {
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.project-filters {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
border: none;
|
|
padding: 0;
|
|
min-width: 0;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.filter-chip {
|
|
border: 1px solid var(--surface1);
|
|
background: transparent;
|
|
color: var(--subtext0);
|
|
border-radius: 4px;
|
|
min-height: 44px;
|
|
padding: 0.5rem 0.9rem;
|
|
font-size: 0.75rem;
|
|
letter-spacing: 0;
|
|
font-family: var(--font-body);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.filter-chip:hover {
|
|
border-color: var(--mauve);
|
|
color: var(--text);
|
|
}
|
|
|
|
.filter-chip.active {
|
|
background: var(--accent-selected);
|
|
border-color: var(--accent-border);
|
|
color: var(--mauve);
|
|
}
|
|
|
|
.project-count {
|
|
color: var(--subtext0);
|
|
font-size: 0.8rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.projects-empty {
|
|
padding: 2rem 0;
|
|
}
|
|
|
|
.projects-empty p {
|
|
color: var(--subtext0);
|
|
margin: 0.5rem 0 1rem;
|
|
}
|
|
|
|
.projects-more-row {
|
|
margin-top: 1rem;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.projects-more-btn {
|
|
border: 1px solid var(--surface1);
|
|
background: transparent;
|
|
color: var(--subtext0);
|
|
border-radius: 4px;
|
|
min-height: 44px;
|
|
padding: 0.5rem 1rem;
|
|
font-size: 0.8rem;
|
|
letter-spacing: 0;
|
|
font-family: var(--font-body);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.projects-more-btn:hover {
|
|
border-color: var(--mauve);
|
|
color: var(--text);
|
|
}
|
|
|
|
/* ─── Card grid ────────────────────────────────────────── */
|
|
.card-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 1px;
|
|
background: var(--surface0);
|
|
border: 1px solid var(--surface0);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.card {
|
|
background: var(--mantle);
|
|
padding: 1.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.card-date {
|
|
font-size: 0.75rem;
|
|
color: var(--subtext0);
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.project-status {
|
|
display: inline-block;
|
|
align-self: flex-start;
|
|
font-size: 0.7rem;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.project-status--active {
|
|
color: var(--subtext0);
|
|
}
|
|
|
|
.card-title {
|
|
display: block;
|
|
min-height: 44px;
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
transition:
|
|
color 0.2s,
|
|
text-decoration-color 0.2s;
|
|
text-decoration: underline;
|
|
text-decoration-color: transparent;
|
|
text-underline-offset: 0.18em;
|
|
}
|
|
|
|
/* Stretch the native title link over the card, below secondary links. */
|
|
.card-title::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
}
|
|
|
|
.card:has(.card-title:focus-visible) {
|
|
box-shadow: inset 0 0 0 2px var(--mauve);
|
|
}
|
|
|
|
.card:has(.card-title:focus-visible) .card-title {
|
|
outline: none;
|
|
}
|
|
|
|
.card-action {
|
|
display: block;
|
|
margin-top: 0.25rem;
|
|
font-size: 0.75rem;
|
|
font-weight: 400;
|
|
color: var(--link-accent);
|
|
}
|
|
|
|
.card:hover .card-title,
|
|
.card:has(.card-title:focus-visible) .card-title {
|
|
color: var(--mauve);
|
|
text-decoration-color: currentColor;
|
|
}
|
|
|
|
.card-desc {
|
|
font-size: 0.95rem;
|
|
color: var(--subtext0);
|
|
line-height: 1.6;
|
|
flex: 1;
|
|
}
|
|
|
|
.card-source {
|
|
font-size: 0.75rem;
|
|
color: var(--subtext0);
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.card-source a {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 44px;
|
|
padding: 0 0.25rem;
|
|
color: var(--link-accent);
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
}
|
|
|
|
.card-source a:hover {
|
|
color: var(--link-accent);
|
|
}
|
|
|
|
.card-desc a {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: inline;
|
|
color: var(--link-accent);
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
}
|
|
|
|
.card-desc a:hover {
|
|
color: var(--link-accent);
|
|
}
|
|
|
|
/* ─── Contact ──────────────────────────────────────────── */
|
|
#contact {
|
|
padding-bottom: 6rem;
|
|
}
|
|
|
|
.contact-inner {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
align-items: end;
|
|
gap: 4rem;
|
|
padding: 3rem;
|
|
border: 1px solid var(--surface1);
|
|
border-radius: 32px;
|
|
background: var(--mantle);
|
|
}
|
|
|
|
.contact-inner h2 {
|
|
font-size: clamp(3rem, 7vw, 6rem);
|
|
font-weight: 600;
|
|
line-height: 1.15;
|
|
letter-spacing: -0.07em;
|
|
color: var(--text);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.contact-inner p {
|
|
color: var(--subtext0);
|
|
font-size: 1rem;
|
|
line-height: 1.8;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.contact-links {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 0.75rem;
|
|
margin-top: 0;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.contact-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
min-height: 44px;
|
|
}
|
|
|
|
.contact-link--secondary {
|
|
color: var(--subtext1);
|
|
text-decoration: underline;
|
|
text-underline-offset: 4px;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.contact-link--secondary:hover {
|
|
color: var(--mauve);
|
|
}
|
|
|
|
.contact-link-icon {
|
|
width: 1.125rem;
|
|
height: 1.125rem;
|
|
flex: 0 0 1.125rem;
|
|
background: currentColor;
|
|
-webkit-mask-repeat: no-repeat;
|
|
-webkit-mask-position: center;
|
|
-webkit-mask-size: contain;
|
|
mask-repeat: no-repeat;
|
|
mask-position: center;
|
|
mask-size: contain;
|
|
}
|
|
|
|
.contact-link-icon--github {
|
|
-webkit-mask-image: url('icons/github.svg');
|
|
mask-image: url('icons/github.svg');
|
|
}
|
|
|
|
.contact-link-icon--linkedin {
|
|
-webkit-mask-image: url('icons/linkedin.svg');
|
|
mask-image: url('icons/linkedin.svg');
|
|
}
|
|
|
|
/* ─── Footer ───────────────────────────────────────────── */
|
|
footer {
|
|
border-top: 1px solid var(--surface0);
|
|
padding: 1.5rem max(2rem, calc((100vw - 1104px) / 2));
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 0.72rem;
|
|
color: var(--subtext0);
|
|
}
|
|
|
|
footer a {
|
|
color: var(--mauve);
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
}
|
|
|
|
footer a:hover {
|
|
color: var(--mauve);
|
|
}
|
|
|
|
/* ─── Animations ───────────────────────────────────────── */
|
|
@keyframes fadeUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.hero-copy,
|
|
.hero-art {
|
|
animation: fadeUp 0.6s both;
|
|
}
|
|
|
|
.hero-art {
|
|
animation-delay: 0.12s;
|
|
}
|
|
|
|
.reveal-pending {
|
|
opacity: 0;
|
|
transform: translateY(16px);
|
|
transition:
|
|
opacity 0.4s ease,
|
|
transform 0.4s ease;
|
|
}
|
|
}
|
|
|
|
.reveal.visible,
|
|
.reveal:focus-within {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
|
|
/* ─── Responsive ───────────────────────────────────────── */
|
|
@media (max-width: 768px) {
|
|
nav {
|
|
padding: 0 1.5rem;
|
|
}
|
|
|
|
.nav-links {
|
|
gap: 1.2rem;
|
|
}
|
|
|
|
section {
|
|
padding: 4rem 1.5rem;
|
|
}
|
|
|
|
#hero {
|
|
grid-template-columns: 1fr;
|
|
gap: 3rem;
|
|
padding: 6rem 1.5rem 3.5rem;
|
|
min-height: auto;
|
|
}
|
|
|
|
#hero .hero-name {
|
|
font-size: clamp(4rem, 14vw, 7rem);
|
|
}
|
|
|
|
.hero-art {
|
|
width: min(100%, 400px);
|
|
height: 360px;
|
|
justify-self: center;
|
|
}
|
|
|
|
#about {
|
|
margin: 0 1.5rem;
|
|
border-radius: 24px;
|
|
}
|
|
|
|
.about-columns > .reveal:last-child {
|
|
padding: 1.5rem;
|
|
transform: none;
|
|
}
|
|
|
|
.hero-links {
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.hero-links .btn {
|
|
padding: 0.6rem 0.9rem;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.card-grid.card-grid--featured {
|
|
grid-template-columns: 1fr;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.card-grid--featured .featured-card:nth-child(2) {
|
|
margin-top: 0;
|
|
}
|
|
|
|
#project-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.about-columns {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.skills-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.skill-card p,
|
|
.skill-card .tag-row {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.hero-name {
|
|
font-size: clamp(2.5rem, 6vw, 3.5rem);
|
|
}
|
|
|
|
.contact-inner {
|
|
grid-template-columns: 1fr;
|
|
gap: 1rem;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
footer {
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 540px) {
|
|
#hero {
|
|
grid-template-columns: 1fr;
|
|
gap: 2.5rem;
|
|
}
|
|
|
|
.hero-name {
|
|
font-size: clamp(2.5rem, 9.5vw, 3.25rem);
|
|
}
|
|
|
|
.hero-portrait {
|
|
width: 59%;
|
|
border-width: 5px;
|
|
}
|
|
|
|
.hero-art {
|
|
height: clamp(270px, 85vw, 360px);
|
|
}
|
|
|
|
.skill-card {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.nav-actions {
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.nav-links {
|
|
display: none;
|
|
}
|
|
|
|
.nav-menu {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
html {
|
|
scroll-behavior: auto;
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
animation: none !important;
|
|
scroll-behavior: auto !important;
|
|
transition: none !important;
|
|
}
|
|
|
|
.reveal,
|
|
.hero-copy,
|
|
.hero-art {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
|
|
.btn,
|
|
.filter-chip,
|
|
.projects-more-btn,
|
|
.contact-link,
|
|
.v-link-arrow {
|
|
transform: none !important;
|
|
}
|
|
}
|