@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap');

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f7f7f5;
    color: #1a1a1a;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 50px; 
}

nav a {
    font-family: 'IBM Plex Mono', monospace;
    color: #1a1a1a;
    text-decoration: none;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 15px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.hero {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.hero-text {
    max-width: 650px;
}

.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    color: #666;
}

h1 {
    font-size: 64px;
    line-height: 1.02;
    letter-spacing: -3px;
    margin: 0 0 30px 0;
    font-weight: 700;
}

.intro {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    line-height: 1.65;
    color: #444;
    max-width: 520px;
}

.hero-link {
    font-size: 16px;
    font-weight: 600;
}

.hero-visual {
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.percolation-network {
    --site-size: 9px;

    width: 349px;
    height: 349px;
    position: relative;
    transition: opacity 0.4s ease;
}

.percolation-network.resetting {
    opacity: 0;
}

.site {
    display: block;
    width: var(--site-size);
    height: var(--site-size);
    border-radius: 50%;
    background: #1a1a1a;
    position: absolute;
    z-index: 2;
    transform: translate(-50%, -50%);
}

.site.occupied {
    background: #777;
}

.bond {
    position: absolute;
    background: #d6d6d2;
    z-index: 1;
}

.work-preview {
    border-top: 1px solid #ccc;
    padding: 70px 0 100px;
}

.section-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 35px;
}

.work-item {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 30px;
    align-items: start;
    padding: 25px 0;
    border-top: 1px solid #ddd;

    color: inherit;
    text-decoration: none;

    transition:
        padding-left 0.2s ease,
        border-color 0.2s ease;
}

.work-item:hover {
    padding-left: 12px;
    border-color: #999;
}

.work-item:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 6px;
}

.work-item h2 {
    font-family: Arial, sans-serif;
    font-size: 28px;
    margin: 0 0 10px;

    transition: opacity 0.2s ease;
}

.work-item:hover h2 {
    opacity: 0.65;
}

.work-number,
.work-type {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #666;
}

.work-item h2 {
    font-family: Arial, sans-serif;
    font-size: 28px;
    margin: 0 0 10px;
}

.work-item p {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    max-width: 650px;
    margin: 0;
}

@media (max-width: 800px) {
    nav {
        padding: 25px 25px;
    }

    .nav-links {
        gap: 16px;
    }

    main {
        padding: 0 25px;
    }

    .hero {
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
        padding: 80px 0;
    }

    .hero-text {
        max-width: 100%;
    }

    h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .hero-visual {
        width: 100%;
    }

    .work-item {
        grid-template-columns: 35px 1fr;
    }

    .work-type {
        grid-column: 2;
    }
}