:root {
    --bg: #0c0c0b;
    --text: #f4f1ea;
    --muted: #a39e93;
    --line: rgba(244, 241, 234, 0.12);
    --accent: #e7c36a;
    --accent-soft: rgba(231, 195, 106, 0.14);
    --font: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: var(--font);
    line-height: 1.5;
    color: var(--text);
    background:
        radial-gradient(900px 420px at 50% -80px, rgba(231, 195, 106, 0.12), transparent 60%),
        var(--bg);
}

.glow {
    position: fixed;
    inset: auto 0 0;
    height: 180px;
    pointer-events: none;
    background: linear-gradient(to top, rgba(231, 195, 106, 0.05), transparent);
}

.page {
    width: min(720px, calc(100% - 40px));
    margin: 0 auto;
    padding: 88px 0 48px;
}

.role {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px var(--accent-soft);
}

h1 {
    font-size: clamp(2.6rem, 7vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.bio {
    max-width: 42ch;
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.skills {
    margin-top: 14px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.socials a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
    font-size: 1.05rem;
    text-decoration: none;
    background: rgba(244, 241, 234, 0.03);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
    color: var(--text);
    border-color: rgba(231, 195, 106, 0.55);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

main {
    display: grid;
    gap: 52px;
    margin-top: 64px;
}

.entries {
    list-style: none;
}

.entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 18px;
    row-gap: 2px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.entry:last-child {
    border-bottom: 1px solid var(--line);
}

.entry h3 {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.entry p {
    grid-column: 1;
    grid-row: 2;
    color: var(--muted);
    font-size: 0.92rem;
}

.when {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

h2 {
    margin-bottom: 16px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.projects {
    display: grid;
    gap: 12px;
}

.project {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 22px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
    background: rgba(244, 241, 234, 0.025);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.project:hover {
    border-color: rgba(231, 195, 106, 0.5);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.project h3 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.project p {
    margin-top: 6px;
    max-width: 46ch;
    color: var(--muted);
    font-size: 0.98rem;
}

.project-meta {
    flex-shrink: 0;
    padding-top: 3px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project:hover .project-meta {
    color: var(--accent);
}

footer {
    margin-top: 56px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .page {
        width: min(720px, calc(100% - 28px));
        padding-top: 48px;
    }

    .project {
        flex-direction: column;
        gap: 14px;
        padding: 18px;
    }

    main {
        gap: 40px;
        margin-top: 48px;
    }

    .entry {
        grid-template-columns: 1fr;
    }

    .entry h3,
    .entry p,
    .when {
        grid-column: 1;
        grid-row: auto;
    }

    .when {
        justify-self: start;
        margin-top: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
