/* One stylesheet for the whole site. Deliberately self-hosted and tiny: a page
   explaining that an app makes no network requests should not itself pull fonts
   or scripts from someone else's server. */

:root {
    color-scheme: light dark;

    --bg: #ffffff;
    --fg: #1b1d21;
    --muted: #5c6270;
    --rule: #e3e5ea;
    --link: #1a5fd0;
    --card: #f6f7f9;

    /* The button carries its own pair: white on the light-mode link colour is
       readable, white on the lighter dark-mode one is not. */
    --btn-bg: #1a5fd0;
    --btn-fg: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #16181c;
        --fg: #e6e8ec;
        --muted: #9aa0a8;
        --rule: #2a2d33;
        --link: #7aa7ff;
        --card: #1e2126;

        --btn-bg: #7aa7ff;
        --btn-fg: #16181c;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 3rem 1.25rem 5rem;
    background: var(--bg);
    color: var(--fg);
    font: 16px/1.65 -apple-system, "Segoe UI", system-ui, sans-serif;
}

main { max-width: 44rem; margin: 0 auto; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; margin: 2.5rem 0 .75rem; }
h3 { font-size: 1rem; margin: 1.75rem 0 .5rem; }

p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: .4rem; }

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

.lede { font-size: 1.1rem; color: var(--muted); margin-bottom: 2rem; }
.updated { color: var(--muted); font-size: .9rem; margin-bottom: 2.5rem; }

.callout {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

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

footer { color: var(--muted); font-size: .9rem; }
footer a { color: var(--muted); }

.back { display: inline-block; margin-bottom: 2rem; font-size: .9rem; }

/* Install call to action. Text rather than Microsoft's badge image: the badge is
   hosted on their servers, and a page promising an app that makes no network
   requests should not fetch artwork from a third party to say so. */
.install { margin: 0 0 2.5rem; }

.install a {
    display: inline-block;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 600;
    text-decoration: none;
    padding: .7rem 1.4rem;
    border-radius: 8px;
}
.install a:hover { filter: brightness(1.08); }
.install a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

.install .terms {
    display: block;
    margin-top: .6rem;
    color: var(--muted);
    font-size: .9rem;
}
