@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

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

body {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    background: #2d2d4a;
    color: #c8c8d8;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

/* CRT scanline overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.06) 2px,
        rgba(0, 0, 0, 0.06) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

a {
    color: #6ec6ff;
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: #a0dcff;
}

header {
    border-bottom: 1px solid #2a2a4a;
    padding: 1.5rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

header h1 a {
    color: inherit;
}

header h1 a:hover {
    color: inherit;
    opacity: 0.7;
}

header nav a {
    margin-left: 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #7878a0;
}

header nav a:hover {
    color: #6ec6ff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero {
    padding: 4rem 0 3rem;
    text-align: left;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #e0e0f0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero p {
    font-size: 0.85rem;
    color: #7878a0;
    max-width: 500px;
}

section {
    padding: 2.5rem 0;
}

section + section {
    border-top: 1px dashed #2a2a4a;
}

section h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #7878a0;
    margin-bottom: 1.5rem;
}

.project-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-item {
    padding: 1.2rem 1rem;
    background: #363658;
    border-left: 2px solid #3a3a5c;
    transition: all 0.15s;
}

.project-item:hover {
    border-left-color: #6ec6ff;
    background: #3e3e62;
}

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

.project-title {
    font-weight: 400;
    color: #d0d0e8;
    font-size: 0.95rem;
}

.project-title a {
    color: inherit;
}

.project-title a:hover {
    color: #6ec6ff;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.project-tag {
    font-size: 0.65rem;
    color: #8888b0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid #3a3a5c;
    padding: 0.15rem 0.5rem;
}

.project-desc {
    font-size: 0.8rem;
    color: #9898b8;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.project-video {
    margin: 0.75rem 0;
}

.project-video video,
.project-video img {
    width: 100%;
    max-width: 280px;
    border: 1px solid #3a3a5c;
    background: #000;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.project-link {
    font-size: 0.7rem;
    color: #6878a0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.15s;
}

.project-link:hover {
    color: #6ec6ff;
}

.project-link::before {
    content: '> ';
    color: #4a4a6c;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2px;
}

.site-card {
    display: block;
    padding: 1.2rem 1rem;
    background: #363658;
    border-left: 2px solid #3a3a5c;
    transition: all 0.15s;
    text-decoration: none;
    color: inherit;
}

.site-card:hover {
    border-left-color: #6ec6ff;
    background: #3e3e62;
    color: inherit;
}

.site-card .site-name {
    font-size: 0.9rem;
    color: #d0d0e8;
    margin-bottom: 0.3rem;
    word-break: break-all;
}

.site-card:hover .site-name {
    color: #6ec6ff;
}

.site-card .site-desc {
    font-size: 0.75rem;
    color: #7878a0;
}

footer {
    border-top: 1px dashed #2a2a4a;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.7rem;
    color: #4a4a6c;
}

footer a {
    color: #4a4a6c;
}

footer a:hover {
    color: #7878a0;
}

@media (max-width: 600px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    header nav a {
        margin-left: 0;
        margin-right: 1.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .project-header {
        flex-direction: column;
        gap: 0.3rem;
    }

    .sites-grid {
        grid-template-columns: 1fr;
    }
}
