@font-face {
    font-family: 'Space Mono';
    src: url('/fonts/SpaceMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('/fonts/SpaceMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #fff;
    --surface: #f0f0f0;
    --text: #000;
    --text-dim: #505050;
    --text-muted: #8c8c8c;
}

body {
    font-family: 'Space Mono', monospace;
    background: var(--bg);
    color: var(--text);
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    line-height: 1.3;
    font-size: clamp(0.85rem, 0.75rem + 0.5vw, 1.05rem);
}

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

.icon {
    width: 4rem;
    height: 4rem;
    image-rendering: pixelated;
    flex-shrink: 0;
}

h1 {
    color: var(--text);
    margin: 0;
}

.subtitle {
    color: var(--text-muted);
    margin: 0;
}

h2 {
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--text-muted);
}

p {
    margin: 0.25rem 0;
    text-align: justify;
}

.screenshot {
    width: 100%;
    margin: 0.5rem 0 2rem;
    display: block;
}

a { color: var(--text-dim); }

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

li {
    margin: 0.1rem 0;
    text-align: justify;
}

.downloads-table {
    border-collapse: collapse;
    margin: 0.5rem 0;
    width: 100%;
}

.downloads-table th,
.downloads-table td {
    padding: 0.25rem 0.75rem;
    text-align: left;
}

.downloads-table th {
    color: var(--text);
}

.downloads-table td:first-child {
    color: var(--text-muted);
}

.downloads-table tr:nth-child(even) {
    background: var(--surface);
}

.note {
    color: var(--text-dim);
    font-size: 0.8rem;
    background: var(--surface);
    padding: 0.5rem 0.75rem;
    margin-top: 0.75rem;
}

.note::before {
    content: '→ ';
}

.note a {
    color: var(--text-muted);
}

.features {
    margin: 0.25rem 0;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.feature-tags button {
    font-family: inherit;
    font-size: 0.85em;
    background: var(--surface);
    color: var(--text-muted);
    border: 1px solid transparent;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
}

.feature-tags button:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.feature-tags button.active {
    color: var(--text);
    border-color: var(--text);
}

.feature-desc {
    color: var(--text-dim);
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--surface);
    border-left: 2px solid var(--text-muted);
    text-align: left;
    line-height: 1.5;
}

.feature-desc:empty {
    display: none;
}

.tabs {
    margin: 1rem 0 0.5rem;
    border: 1px solid var(--text-muted);
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--text-muted);
    background: var(--surface);
}

.tab-btn {
    font-family: inherit;
    font-size: 0.85em;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-btn:hover {
    color: var(--text);
    background: var(--bg);
}

.tab-btn.active {
    color: var(--text);
    background: var(--bg);
    border-bottom-color: var(--text);
}

.tab-panel {
    display: none;
    padding: 0.75rem 1rem;
}

.tab-panel.active {
    display: block;
}

.team-links {
    font-size: 0.85em;
    color: var(--text-muted);
}

.colophon {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--text-muted);
    color: var(--text-muted);
}

.colophon a {
    color: var(--text-dim);
}
