/* Basic — minimal, readable, no-JS-friendly */
:root {
    --bg: #0f0f0f;
    --text: #e0e0e0;
    --muted: #888;
    --accent: #6a9fb5;
    --link: #7cb8d4;
    --border: #333;
}

* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    max-width: 52rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 1.5rem;
}

header h1 {
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    margin: 0 0 0.5rem;
}

header p {
    margin: 0.25rem 0;
    color: var(--muted);
    font-size: 0.95rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
}

nav a {
    color: var(--link);
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

.versions {
    margin: 0.75rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    text-align: center;
}

.versions a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 0.5rem;
}

.versions a:hover {
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

main section {
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.15rem;
    margin: 1.25rem 0 0.5rem;
    color: var(--text);
}

h3 {
    font-size: 1rem;
    margin: 1rem 0 0.4rem;
    color: var(--muted);
}

p {
    margin: 0.5rem 0;
}

ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

li {
    margin: 0.25rem 0;
}

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

a:hover {
    text-decoration: underline;
}

/* Maintenance Status */
.status-maintenance {
    opacity: 0.6;
    pointer-events: none;
}

/* Back-compat: treat "down" the same as prior "maintenance" */
.status-down {
    opacity: 0.6;
    pointer-events: none;
}

.status-maintenance a {
    text-decoration: line-through !important;
    color: var(--muted) !important;
}

.status-down a {
    text-decoration: line-through !important;
    color: var(--muted) !important;
}

.maintenance-badge {
    font-size: 0.8em;
    color: #e74c3c;
    margin-left: 0.5rem;
    font-weight: bold;
}

code {
    background: #1a1a1a;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    word-break: break-all;
}

#guest-info {
    background: #1a1a1a;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

#guest-info small {
    color: var(--muted);
}

footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 2rem;
    padding-top: 1rem;
}

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

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin: 0;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f5f5f5;
        --text: #1a1a1a;
        --muted: #555;
        --accent: #2d6a7a;
        --link: #1a5f7a;
        --border: #ccc;
    }

    code {
        background: #e8e8e8;
    }

    #guest-info {
        background: #e8e8e8;
    }
}