@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #08090a;
    --surface: #0e1012;
    --text: #e8e9ea;
    --muted: #85898f;
    --border: #202328;
    --accent: #a8ff78;
    --accent-dark: #74c951;

    --mono: "DM Mono", monospace;
    --sans: "Inter", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
    overflow-x: hidden;
}

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


/* subtle background */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 80%
    );
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.025;
    z-index: 10;

    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}


/* header */

header {
    width: min(1200px, calc(100% - 48px));
    margin: auto;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.logo span,
.accent {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 32px;

    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}

nav a {
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--accent);
}


/* main */

main {
    width: min(1200px, calc(100% - 48px));
    margin: auto;
}


/* hero */

.hero {
    min-height: calc(100vh - 90px);

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 100px 0;
}

.status {
    width: fit-content;

    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 36px;

    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);

    border: 1px solid var(--border);
    background: rgba(255,255,255,0.015);

    padding: 8px 12px;
}

.dot {
    width: 6px;
    height: 6px;

    background: var(--accent);
    border-radius: 50%;

    box-shadow: 0 0 12px var(--accent);
}

.hero h1 {
    max-width: 900px;

    font-size: clamp(64px, 10vw, 132px);
    line-height: 0.91;
    letter-spacing: -0.075em;
    font-weight: 600;
}

.hero h1 span {
    color: transparent;

    -webkit-text-stroke: 1px #555a60;
}

.intro {
    max-width: 520px;

    margin-top: 44px;

    color: var(--muted);
    font-size: 15px;
}

.links {
    display: flex;
    gap: 12px;

    margin-top: 36px;
}

.links a {
    font-family: var(--mono);
    font-size: 12px;

    padding: 12px 18px;

    border: 1px solid var(--border);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.links a:first-child {
    background: var(--text);
    color: var(--bg);
}

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

.links a:first-child:hover {
    background: var(--accent);
}


/* sections */

.section {
    padding: 150px 0;

    border-top: 1px solid var(--border);

    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 80px;
}

.section-title {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);

    text-transform: lowercase;
}

.section-title span {
    color: var(--accent);
    margin-right: 12px;
}


/* about */

.about-content {
    max-width: 760px;
}

.big-text {
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
}

.about-content > p:not(.big-text) {
    color: var(--muted);
    max-width: 600px;
}

.stack {
    margin-top: 70px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.stack-item {
    padding: 18px;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    font-family: var(--mono);
    font-size: 13px;
}

.stack-item span {
    color: #4e5359;
    font-size: 10px;
    margin-right: 10px;
}


/* projects */

.projects {
    border-top: 1px solid var(--border);
}

.project {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 34px 0;

    border-bottom: 1px solid var(--border);

    transition: padding 0.25s ease;
}

.project:hover {
    padding-left: 18px;
    padding-right: 18px;
    background: var(--surface);
}

.project-number {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--accent);
}

.project h2 {
    margin-top: 6px;

    font-size: 30px;
    letter-spacing: -0.04em;
}

.project p {
    margin-top: 4px;

    color: var(--muted);
    font-size: 13px;
}

.arrow {
    font-family: var(--mono);
    color: var(--muted);
}

.project-disabled {
    color: #5c6065;
}

.project-disabled:hover {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
}


/* contact */

.contact {
    min-height: 500px;
    align-items: center;
}

.contact-content h2 {
    font-size: clamp(48px, 7vw, 90px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.email {
    display: inline-block;

    margin-top: 40px;

    font-family: var(--mono);
    font-size: 13px;

    color: var(--accent);

    border-bottom: 1px solid var(--accent);

    padding-bottom: 5px;
}


/* footer */

footer {
    width: min(1200px, calc(100% - 48px));
    margin: auto;

    padding: 30px 0;

    border-top: 1px solid var(--border);

    display: flex;
    justify-content: space-between;

    color: #555a60;

    font-family: var(--mono);
    font-size: 10px;
}


/* responsive */

@media (max-width: 700px) {

    header {
        width: calc(100% - 32px);
        height: 70px;
    }

    main {
        width: calc(100% - 32px);
    }

    nav {
        gap: 15px;
    }

    nav a:last-child {
        display: none;
    }

    .hero {
        min-height: calc(100vh - 70px);
        padding: 70px 0;
    }

    .hero h1 {
        font-size: clamp(54px, 17vw, 90px);
    }

    .intro {
        font-size: 14px;
    }

    .section {
        padding: 90px 0;

        display: block;
    }

    .section-title {
        margin-bottom: 45px;
    }

    .stack {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 50px;
    }

    .project h2 {
        font-size: 24px;
    }

    .contact {
        min-height: 400px;
    }

    footer {
        width: calc(100% - 32px);

        gap: 20px;
        flex-direction: column;
    }
}
