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

body {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    background: #0a0a0a;
    color: #aaa;
    min-height: 100vh;
    line-height: 1.7;
    font-size: 14px;
}

#loss-landscape {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2;
}

main {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 0, 0, 0.6);
}

/* Header */
header {
    margin-bottom: 48px;
}

/* 3D Animated Logo */
.logo-3d {
    perspective: 500px;
    margin-bottom: 16px;
    font-size: 48px;
    font-weight: bold;
    letter-spacing: -2px;
}

.logo-text {
    display: inline-block;
    color: #fff;
    position: relative;
    animation: float3d 6s ease-in-out infinite;
    transform-style: preserve-3d;
    text-shadow:
        0 1px 0 #ccc,
        0 2px 0 #bbb,
        0 3px 0 #aaa,
        0 4px 0 #999,
        0 5px 0 #888,
        0 6px 0 #777,
        0 7px 0 #666,
        0 8px 8px rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.3);
}

.logo-dot {
    display: inline-block;
    color: #555;
    font-size: 32px;
    vertical-align: baseline;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes float3d {
    0%, 100% {
        transform: rotateX(10deg) rotateY(-5deg) translateY(0);
    }
    25% {
        transform: rotateX(5deg) rotateY(5deg) translateY(-3px);
    }
    50% {
        transform: rotateX(-5deg) rotateY(10deg) translateY(0);
    }
    75% {
        transform: rotateX(0deg) rotateY(-8deg) translateY(-2px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.tagline {
    color: #888;
    font-style: italic;
}

/* Bio */
.bio {
    margin-bottom: 48px;
    padding-left: 2ch;
    border-left: 2px solid #444;
}

.bio p {
    margin-bottom: 4px;
}

.bio .author {
    margin-top: 12px;
    color: #888;
}

.bio a {
    color: #aaa;
    text-decoration: none;
}

.bio a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Sections */
section {
    margin-bottom: 40px;
}

.section-header {
    color: #888;
    margin-bottom: 16px;
    font-size: 12px;
    font-family: inherit;
    font-weight: normal;
}

ul {
    list-style: none;
}

li {
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.bullet {
    color: #666;
}

li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.15s;
}

li a:hover {
    color: #fff;
}

a:focus-visible {
    outline: 1px solid #888;
    outline-offset: 2px;
}

.desc {
    color: #999;
    font-size: 13px;
}

/* Footer */
footer {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid #333;
}

.agent-note {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.copyright {
    margin-top: 24px;
    color: #555;
    font-size: 12px;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    main {
        padding: 32px 20px 60px;
    }

    header {
        margin-bottom: 36px;
    }

    .logo-3d {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .logo-text {
        text-shadow:
            0 1px 0 #ccc,
            0 2px 0 #bbb,
            0 3px 0 #aaa,
            0 4px 4px rgba(0, 0, 0, 0.3);
    }

    .logo-dot {
        font-size: 24px;
    }

    .tagline {
        font-size: 13px;
    }

    .bio {
        margin-bottom: 36px;
    }

    section {
        margin-bottom: 32px;
    }

    li {
        flex-wrap: wrap;
        gap: 4px 8px;
        margin-bottom: 16px;
    }

    li a {
        font-size: 16px;
    }

    .desc {
        width: 100%;
        padding-left: 2ch;
        font-size: 14px;
    }

    .agent-note {
        font-size: 9px;
        overflow-x: auto;
        white-space: pre;
    }

    footer {
        margin-top: 48px;
    }

    .copyright {
        font-size: 11px;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .logo-3d {
        font-size: 28px;
    }

    .logo-dot {
        font-size: 20px;
    }

    .agent-note {
        font-size: 8px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .logo-text {
        animation: none;
    }

    .logo-dot {
        animation: none;
        opacity: 0.7;
    }
}

/* Scanline effect - subtle */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
}
