/* leanndev — FiveM portfolio */

:root {
    --bg: #0b0b0d;
    --surface: #131316;
    --surface-hover: #1a1a1f;
    --border: #25252b;
    --text: #ededf0;
    --text-secondary: #9b9ba3;
    --text-tertiary: #63636c;
    --accent: #c4c4cc;
    --font: "DM Sans", system-ui, sans-serif;
    --font-brand: "Quicksand", var(--font);
    --max: 720px;
    --header-h: 88px;
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 28px);
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(255, 255, 255, 0.04), transparent);
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(11, 11, 13, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.logo__icon {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.header .logo {
    gap: 16px;
}

.header .logo__icon {
    width: 42px;
    height: 42px;
}

/* leanndev wordmark: leann bold, dev light + fade from end of e */
.header .brand-name {
    font-size: 1.5rem;
    letter-spacing: -0.035em;
}

.brand-name {
    font-family: var(--font-brand);
    display: inline-flex;
    align-items: baseline;
    font-size: 1.0625rem;
    letter-spacing: -0.03em;
    line-height: 1;
    white-space: nowrap;
}

.brand-name--lg {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    letter-spacing: -0.04em;
}

.brand-name--sm {
    font-size: 0.75rem;
    letter-spacing: -0.02em;
}

.brand-name__leann {
    font-weight: 700;
    color: var(--text);
}

.brand-name__dev {
    font-weight: 300;
    background: linear-gradient(
        90deg,
        var(--text) 0%,
        var(--text) 52%,
        rgba(237, 237, 240, 0.82) 64%,
        rgba(237, 237, 240, 0.4) 82%,
        transparent 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: color 0.15s;
}

.nav a:hover,
.nav a.is-active {
    color: var(--text);
}

.nav-toggle {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* Intro */
.intro {
    padding: 64px 0 48px;
}

.intro__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.intro__brand-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.intro h1 {
    font-size: clamp(1.35rem, 3.5vw, 1.875rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 22ch;
}

.intro__lead {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 46ch;
}

/* Section */
.section {
    padding: 48px 0 56px;
    border-top: 1px solid var(--border);
}

.section__num {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.section__head h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section__head p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    max-width: 50ch;
    margin-bottom: 32px;
}

/* Projects */
.project-list {
    list-style: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.project-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.project-list > li:last-child .project-item {
    border-bottom: none;
}

.project-item:hover {
    background: var(--surface-hover);
}

.project-item h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.project-item p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.project-item__arrow {
    font-size: 1rem;
    color: var(--text-tertiary);
}

/* Links */
.link-grid {
    display: grid;
    gap: 10px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: background 0.15s, border-color 0.15s;
}

.link-card:hover {
    background: var(--surface-hover);
    border-color: #32323a;
}

.link-card__label {
    font-size: 0.9375rem;
    font-weight: 600;
}

.link-card__desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.link-card__go {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* Footer */
.footer {
    padding: 32px 0 40px;
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.footer__nav {
    display: flex;
    gap: 24px;
}

.footer__nav a:hover {
    color: var(--text);
}

@media (max-width: 640px) {
    .nav {
        position: fixed;
        top: var(--header-h);
        left: 20px;
        right: 20px;
        flex-direction: column;
        gap: 0;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 8px 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px) scale(0.97);
        transform-origin: top center;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
        transition:
            opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s linear 0.42s;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(8px) scale(1);
        transition:
            opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s;
    }

    .nav a {
        padding: 12px 20px;
        opacity: 0;
        transform: translateY(-6px);
        transition:
            color 0.15s,
            opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nav.is-open a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav.is-open a:nth-child(1) { transition-delay: 0.06s; }
    .nav.is-open a:nth-child(2) { transition-delay: 0.1s; }
    .nav.is-open a:nth-child(3) { transition-delay: 0.14s; }

    .nav:not(.is-open) a {
        transition-delay: 0s;
    }

    .nav-toggle {
        display: flex;
    }

    .project-item {
        grid-template-columns: 1fr;
    }

    .project-item__arrow {
        display: none;
    }
}
