/* Goes to /var/www/legal/impressum/style.css (served as /impressum/style.css)
 *
 * Deliberately one small stylesheet and nothing else: no font from a CDN, no
 * JavaScript, no tracker, no cookie. That is not minimalism for its own sake
 * -- it is what makes section 1 of the Datenschutzerklaerung ("this page sets
 * no cookies and loads nothing from third parties") a statement that can be
 * verified from the page source rather than believed. A legal page that would
 * itself need a consent banner is a contradiction, and a webfont from
 * fonts.googleapis.com is exactly how that happens by accident.
 *
 * The CSP in the vhost enforces it (default-src 'none'), so a later addition
 * of an external resource fails visibly in the browser console instead of
 * quietly making the text untrue.
 */

:root {
    color-scheme: light dark;
    --bg: #fbfbfa;
    --fg: #1a1a18;
    --muted: #5c5c56;
    --rule: #ddddd6;
    --accent: #7a2e1e;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #16161a;
        --fg: #e6e6e0;
        --muted: #9a9a92;
        --rule: #33333a;
        --accent: #e0a08a;
    }
}

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-size: 1.0625rem;
    line-height: 1.6;
}

main {
    max-width: 42rem;
    margin: 0 auto;
    padding: 3rem 1.25rem 4rem;
}

h1 {
    font-size: 1.75rem;
    line-height: 1.25;
    margin: 0 0 0.25rem;
}

h2 {
    font-size: 1.15rem;
    margin: 2.5rem 0 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--rule);
}

h3 {
    font-size: 1rem;
    margin: 1.5rem 0 0.25rem;
}

p, ul, ol, dl { margin: 0.75rem 0; }

ul, ol { padding-left: 1.25rem; }

li { margin: 0.25rem 0; }

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

address {
    font-style: normal;
    margin: 0.75rem 0;
}

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

.meta {
    color: var(--muted);
    font-size: 0.9375rem;
}

nav.top {
    font-size: 0.9375rem;
    margin-bottom: 2rem;
}

nav.top a + a { margin-left: 1rem; }

footer {
    margin-top: 3rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.9375rem;
}

/* Unfilled placeholders are meant to be impossible to overlook -- in the
 * rendered page as well as to check-placeholders.sh. An Impressum published
 * with "FILL:" in it is worse than none at all: a wrong or missing address is
 * the abmahnbare part, so this is styled like the error it is. */
.fill {
    background: #ffe08a;
    color: #5a3d00;
    padding: 0 0.2em;
    border-radius: 2px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
}
