/* Redaktioneller Satz wie in der App: Serif, Creme, schmale Spalte.
   Die Farbwerte sind dieselben Tokens wie in Gustamio/Resources/Styles/Colors.xaml
   (Cream/Bone/Ink/Graphite/Smoke/Tomato) samt Dark-Mode-Gegenstuecken. */
:root {
    --cream: #FAF6EE;
    --bone: #EFE8DA;
    --ink: #1B1714;
    --graphite: #5A4F45;
    --smoke: #6B6156;
    --tomato: #BC3A28;
    --hairline: rgba(27, 23, 20, 0.14);
}

@media (prefers-color-scheme: dark) {
    :root {
        --cream: #15110D;
        --bone: #241F18;
        --ink: #F3EBDD;
        --graphite: #CBBFAF;
        --smoke: #B2A797;
        --tomato: #E0705C;
        --hairline: rgba(243, 235, 221, 0.16);
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0 1.5rem 5rem;
    background: var(--cream);
    color: var(--ink);
    font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
    font-size: 1.0625rem;
    line-height: 1.65;
}

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

header {
    max-width: 40rem;
    margin: 0 auto;
    padding: 3rem 0 1.5rem;
    border-bottom: 1px solid var(--hairline);
}

.masthead {
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--smoke);
    margin: 0 0 0.75rem;
}

h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 0.5rem; font-weight: 400; }
h2 { font-size: 1.25rem; margin: 2.5rem 0 0.5rem; font-weight: 400; }
h3 { font-size: 1rem; margin: 1.75rem 0 0.35rem; font-weight: 700; }

.lead { color: var(--graphite); font-style: italic; margin: 0; }

.updated { font-size: 0.875rem; color: var(--smoke); margin: 0.5rem 0 0; }

a { color: var(--tomato); text-underline-offset: 0.15em; }

ul, ol { padding-left: 1.25rem; }
li { margin: 0.35rem 0; }

table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--hairline); }
th { font-weight: 700; }

.box {
    background: var(--bone);
    border-radius: 0.25rem;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.todo {
    background: rgba(188, 58, 40, 0.1);
    border-left: 3px solid var(--tomato);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.9375rem;
}

.langbar { margin: 1.5rem 0 0; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; }
.langbar a { margin-right: 1rem; }

footer {
    max-width: 40rem;
    margin: 4rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hairline);
    font-size: 0.875rem;
    color: var(--smoke);
}

footer a { color: var(--smoke); }

hr.rule { border: 0; border-top: 1px solid var(--hairline); margin: 3.5rem 0; }
