*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --ink: #111111;
    --ink-muted: #444444;
    --ink-faint: #767676;
    --surface: #f7f5f2;
    --white: #ffffff;
    --accent: #4e3f9e;
    --border: #e8e5e0;
    --serif: 'Raleway', system-ui, sans-serif;
    --sans: 'DM Sans', system-ui, sans-serif;
    --panel-width: 220px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

.layout {
    display: flex;
    min-height: 100vh;
}

/* PANEL */
.panel {
    width: var(--panel-width);
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    border-right: 1px solid var(--border);
    background: var(--white);
}

.panel-inner {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.nav-link {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    text-decoration: none;
    padding: 0.3rem 0;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-link::before {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.25s ease;
    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--ink);
}

.nav-link:hover::before {
    width: 16px;
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::before {
    width: 20px;
}

.panel-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.panel-links a {
    color: var(--ink-faint);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.panel-links a:hover {
    color: var(--accent);
}

/* CONTENT */
.content {
    margin-left: var(--panel-width);
    flex: 1;
    min-width: 0;
}

section {
    padding: 5rem 4.5rem;
    border-bottom: 1px solid var(--border);
    max-width: 760px;
}

/* HERO */
#hero {
    padding-top: 6rem;
    padding-bottom: 5rem;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 1.25rem;
}

.hero-name {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 4.5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.hero-name-sub {
    color: var(--ink-muted);
    font-size: 0.75em;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--ink-muted);
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.availability {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #2e7d4f;
}

.availability svg {
    display: block;
    position: relative;
    top: -1.5px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn svg {
    display: block;
    position: relative;
    top: -1.5px;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}

.btn-ghost:hover {
    border-color: #aaa;
}

/* SECTION LABEL */
.section-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 2.5rem;
}

/* ABOUT */
.about-text {
    font-size: 1rem;
    color: var(--ink-muted);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 3rem;
}

.about-text p+p {
    margin-top: 1rem;
}

.about-text strong {
    color: var(--ink);
    font-weight: 500;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skills-group-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 0.5rem;
}

.skills-list {
    font-size: 0.875rem;
    color: var(--ink-muted);
    line-height: 1.7;
    font-weight: 300;
}

/* PROJECTS */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.project-card {
    background: transparent;
    padding: 0;
}

.project-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.project-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.3;
}

.project-year {
    font-size: 0.875rem;
    color: var(--ink-faint);
    flex-shrink: 0;
}

.coming-label {
    font-style: italic;
}

.project-github {
    color: var(--ink-faint);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
}

.project-github:hover {
    color: var(--accent);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: 300;
}

.project-img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-img:hover {
    opacity: 0.9;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
}

.project-coming {
    opacity: 0.4;
    pointer-events: none;
}

.project-note {
    font-size: 0.8rem;
    color: var(--ink-faint);
    font-style: italic;
    margin-bottom: 1rem;
}

/* CONTACT */
#contact {
    border-bottom: none;
}

.contact-heading {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.contact-sub {
    font-size: 0.95rem;
    color: var(--ink-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* FOOTER */
footer {
    padding: 2rem 4.5rem;
    max-width: 760px;
}

footer p {
    font-size: 0.8rem;
    color: var(--ink-faint);
}

/* FADE UP */
.fade-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-coming.fade-up.visible {
    opacity: 0.4;
}

/* MOBILE */
@media (max-width: 768px) {
    .panel {
        display: none;
    }

    .content {
        margin-left: 0;
    }

    section {
        padding: 3rem 1.5rem;
    }

    footer {
        padding: 2rem 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-links {
        flex-wrap: wrap;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .btn-ghost {
        flex: 1;
        justify-content: center;
    }
}

@media (hover: hover) {
    .project-img:hover {
        transform: scale(1.01);
    }
}