/* One left-aligned column. The questions are one large sentence with the answers inside it; everything below is plain lists split by hairlines.
   System fonts only. The only filled element is the download button. */
:root {
    --bg: #f6f7f5;
    --fg: #1b1f1d;
    --muted: #5d6560;
    --line: #d6dbd7;
    --accent: #2e5a47;
    --accent-fg: #ffffff;
    --off: #9aa29d;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #161917; --fg: #e2e6e3; --muted: #99a29c; --line: #2d332f;
        --accent: #8fc0a7; --accent-fg: #102019; --off: #5d6560;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #161917; --fg: #e2e6e3; --muted: #99a29c; --line: #2d332f;
    --accent: #8fc0a7; --accent-fg: #102019; --off: #5d6560;
    color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--font); }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap {
    max-width: 680px; margin: 0 auto;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 20px; font-size: .94rem; }
.brand { font-weight: 600; }
.lang { display: flex; gap: 14px; }
.lang button { color: var(--muted); }
.lang button[aria-pressed="true"] { color: var(--fg); text-decoration: underline; text-underline-offset: 5px; }

main { display: grid; gap: 40px; padding-block: 28px 8px; }
h1 { font-size: 1rem; font-weight: 600; color: var(--muted); margin-bottom: -28px; }
.lead { color: var(--muted); max-width: 36em; }

/* the questions: a heading and a row of answer buttons */
.ask { display: grid; gap: 14px; margin-top: -12px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices button {
    border: 1px solid var(--line); border-radius: 4px; padding: 10px 20px;
    background: var(--bg); font-weight: 500;
}
.choices button:hover { border-color: var(--muted); }
.choices button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.hint, .note { font-size: .94rem; color: var(--muted); max-width: 36em; }
.note { color: var(--fg); }

section { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 28px; }
h2 { font-size: 1.3rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; margin-top: 10px; margin-bottom: -6px; }

/* mods: a checklist */
.mods { display: grid; }
.mod { display: grid; grid-template-columns: 22px 1fr; gap: 2px 12px; padding-block: 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.mod:first-child { padding-top: 0; }
.mod > * { min-width: 0; }
.mod input { margin: 5px 0 0; width: 18px; height: 18px; accent-color: var(--accent); }
.mod .name { font-weight: 600; }
.mod .ver { color: var(--muted); font-weight: 400; font-size: .9rem; margin-left: 6px; }
.mod .about, .mod .fits, .mod .more, .mod .tag { grid-column: 2; }
.mod .fits { color: var(--muted); font-size: .88rem; }
.mod .about { color: var(--muted); font-size: .95rem; max-width: 34em; }
.mod .more, .mod .tag { font-size: .88rem; }
.mod .more a + a { margin-left: 16px; }
.mod .tag { color: var(--off); }
.mod.off { cursor: default; }
.mod.off .name, .mod.off .about, .mod.off .fits { color: var(--off); }

/* downloads: one row per archive */
.downloads { display: grid; }
.dl { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.dl:first-child { border-top: 1px solid var(--line); }
.dl > div { min-width: 0; }
.dl .file { font-weight: 600; overflow-wrap: anywhere; }
.dl .meta { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.btn { background: var(--accent); color: var(--accent-fg); text-decoration: none; border-radius: 4px; padding: 9px 18px; font-weight: 600; font-size: .95rem; }
.btn:hover { opacity: .88; }

ol, ul { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
section > p { color: var(--muted); max-width: 36em; }
code { font-family: inherit; font-weight: 600; overflow-wrap: anywhere; }
.links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }

.foot { color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); padding-block: 20px 40px; margin-top: 40px; }

@media (max-width: 520px) {
    body { font-size: 16px; }
    .dl { grid-template-columns: 1fr; }
    .btn { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
