:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --fg: #1b232c;
    --muted: #5b6876;
    --line: #dde3e9;
    --accent: #1f5faf;
    --accent-fg: #ffffff;
    --accent-soft: #eef4fc;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #12171d;
        --surface: #1a2129;
        --fg: #e4e9ef;
        --muted: #9aa7b5;
        --line: #2c3641;
        --accent: #7fb0ee;
        --accent-fg: #0d1520;
        --accent-soft: #1d2d42;
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
}

.page {
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 16px 48px;
    display: grid;
    gap: 20px;
}

.brand {
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--accent);
}

h1 {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.2;
    text-wrap: balance;
}

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

.details {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 16px;
}

.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.download-all {
    display: block;
    background: var(--accent);
    color: var(--accent-fg);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 16px;
}

.download-all small { display: block; font-weight: 400; opacity: 0.85; }

.files {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.file {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
}

.file + .file { border-top: 1px solid var(--line); }
.file.summary { background: var(--accent-soft); }

.icon {
    width: 32px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 9px;
    color: var(--muted);
}

.summary .icon { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.summary .sub { font-family: var(--font); }

.name { min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.sub { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); font-family: var(--mono); }

.get { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
a.get:hover, a.get:focus-visible { text-decoration: underline; }

.unavailable .name, .unavailable .get { color: var(--muted); font-weight: 400; }
.unavailable .get { font-size: 0.85rem; white-space: normal; text-align: right; }

a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.contact { color: var(--muted); font-size: 0.9rem; }
