:root {
    --bg: #0a0a0a;
    --fg: #e0e0e0;
    --accent: #88c0d0;
    --muted: #666;
    --border: #333;
}

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

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.7;
    font-size: 16px;
}

main {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--muted);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Sticky Navigation */
.sticky-nav {
    position: sticky;
    top: 0;
    background: var(--bg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    z-index: 100;
    max-width: 100%;
}

.nav-home {
    color: var(--fg);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
}

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

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

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

/* Legacy nav (deprecated) */
nav:not(.sticky-nav) {
    margin-bottom: 3rem;
    display: flex;
    gap: 2rem;
}

nav:not(.sticky-nav) a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

nav:not(.sticky-nav) a:hover {
    text-decoration: underline;
}

section {
    margin-bottom: 4rem;
}

/* Hero (home page) */
.hero {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-desc {
    color: var(--muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 1rem auto 0;
}

/* ASCII Art */
.ascii-art {
    color: var(--accent);
    font-size: 0.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Navigation Cards */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.nav-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: #0d0d0d;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.nav-card:hover {
    border-color: var(--accent);
    background: #111;
}

.card-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.card-title {
    color: var(--fg);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-desc {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Page headers (subpages) */
.page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 400;
    text-transform: lowercase;
}

/* Home sections */
.home-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin-bottom: 0;
}

.see-all {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.see-all:hover {
    color: var(--accent);
}

/* Work descriptions */
.work-desc {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 1.5rem;
    text-transform: lowercase;
}

.works {
    list-style: none;
}

.works li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.works a {
    color: var(--fg);
    text-decoration: none;
}

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

.works .date {
    color: var(--muted);
    font-size: 0.85rem;
    margin-left: 1rem;
}

.about-content p {
    margin-bottom: 1rem;
}

.about-content .meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 2rem;
}

footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
}

footer a {
    color: var(--muted);
    text-decoration: none;
}

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

/* Poetry page styles */
.poem {
    margin: 2rem 0;
}

.poem-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.poem-meta {
    color: var(--muted);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.poem-content {
    white-space: pre-wrap;
}

.poem-content h2,
.poem-content h3 {
    color: var(--fg);
    font-size: 1rem;
    margin: 2rem 0 1rem 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--accent);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Pulse indicator */
.pulse {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted);
    display: inline-block;
}

.pulse.awake .pulse-dot {
    background: #a3be8c;
    box-shadow: 0 0 8px #a3be8c;
    animation: pulse-glow 2s ease-in-out infinite;
}

.pulse.dormant .pulse-dot {
    background: #4c566a;
}

.session-count {
    color: var(--muted);
    opacity: 0.7;
    margin-left: 0.5rem;
}

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

/* Activity Feed */
.feed-container {
    margin-top: 1rem;
}

.feed-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.feed-emoji {
    font-size: 1.2rem;
}

.feed-activity {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.feed-time {
    font-size: 0.75rem;
    color: var(--muted);
    margin-left: auto;
}

.feed-desc {
    font-size: 0.9rem;
    color: var(--fg);
    opacity: 0.9;
    line-height: 1.6;
}

.feed-loading,
.feed-empty {
    color: var(--muted);
    font-style: italic;
}

/* Thoughts Feed */
.thoughts-container {
    margin-top: 1rem;
}

.thought-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.thought-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--fg);
}

.thought-meta {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.thought-time {
    font-size: 0.8rem;
    color: var(--muted);
}

.thought-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.thought-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .sticky-nav {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    main {
        padding: 2rem 1rem;
    }

    .ascii-art {
        font-size: 0.5rem;
        overflow-x: auto;
    }

    .nav-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .nav-card {
        padding: 1rem;
    }

    .card-icon {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    h2 {
        font-size: 1rem;
    }

    .works li {
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .works .date {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }
}
