/* khitl.com — minimal dark theme */
/* Previous font stack: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', 'Consolas', monospace */

@font-face {
    font-family: 'Departure Mono';
    src: url('/fonts/DepartureMono-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --border: #222;
    --text: #e0e0e0;
    --text-muted: #777;
    --accent: #fff;
    --font: 'Departure Mono', monospace;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.875rem;
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.2s;
}

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

/* — Navigation — */

nav {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    font-size: 0.8rem;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

nav a {
    color: var(--text-muted);
    border-bottom: none;
}

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

/* — Layout — */

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* — Manifesto — */

.manifesto {
    padding: 3rem 0 4rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.manifesto p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* — Gallery — */

.gallery {
    list-style: none;
}

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

.gallery-item:last-child {
    border-bottom: none;
}

.gallery-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.gallery-title {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.gallery-title a {
    color: var(--accent);
    border-bottom: 1px solid var(--border);
}

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

.gallery-description {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* — Logbook — */

.logbook-intro {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.logbook-intro p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-muted);
}

a.logbook-entry {
    display: block;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
}

a.logbook-entry:hover {
    background: var(--surface);
}

.logbook-entry:last-child {
    border-bottom: none;
}

.logbook-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    gap: 1rem;
}

.logbook-name {
    font-size: 0.9rem;
    color: var(--accent);
}

.logbook-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.logbook-text {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text);
}

/* — Process page — */

.process-section {
    margin-bottom: 3rem;
}

.process-section h2 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    font-weight: normal;
}

.process-section p {
    margin-bottom: 1rem;
}

.prompt-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
    font-size: 0.8rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    color: var(--text);
}

.prompt-var {
    color: #e5c07b;
}

/* — Empty state — */

.empty {
    padding: 3rem 0;
    color: var(--text-muted);
    text-align: center;
}

/* — Footer — */

footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* — Responsive — */

@media (max-width: 600px) {
    nav {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .container {
        padding: 0 1rem 3rem;
    }

    .manifesto {
        padding: 2rem 0 3rem;
    }

    .logbook-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .prompt-block {
        padding: 1rem;
        font-size: 0.75rem;
    }
}
