@charset "UTF-8";

*,*::after,*::before { max-width:100%; -webkit-box-sizing:border-box; box-sizing:border-box; }
:root {
    --maxwidth: calc(62ch + 3rem);
    --basefont: Calibri, Candara, Segoe, "Segoe UI", Optima, Helvetica, Arial, sans-serif;
    color-scheme: light dark;
    --ink:    light-dark(#2a2521, #e8e1d3);
    --bg:     light-dark(#faf7ec, #1c1712);
    --muted:  light-dark(#6b6058, #a89e8f);
    --accent: light-dark(#7a2b26, #dfae66);
}
html, body { margin:0; padding:0; width:100%; }
html { 
    overflow-x:hidden; overflow-y:auto; height:100%; 
    text-rendering:optimizeSpeed; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; font-size-adjust:100%; -webkit-font-smoothing:subpixel-antialiased; -moz-osx-font-smoothing:grayscale;
    scroll-behavior:smooth; overscroll-behavior:contain;
}
body { 
    position:relative; max-width:var(--maxwidth); margin-inline:auto; padding:3rem 1.5rem 7rem 1.5rem;
    background:var(--bg); color:var(--ink); letter-spacing:0.01em;
    font: 1.5rem/1.7 var(--basefont);
    animation: slideup 1s ease-out forwards;
}
@keyframes slideup { from { opacity:0 } to { opacity:1 } }

:is(h1, h2, h3) { font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif; }
h1 { 
    font-size:2.75rem; font-weight:400; line-height:1.15; margin:0; padding:1.25em 0 0.4em 0;
    border-bottom: 1px solid var(--accent); clear:both;
}
h2 { font-size:2.1rem; font-weight:600; line-height:1.25; margin:2.75em 0 0.25em 0; }
h3 { font-size:1.6rem; font-weight:600; line-height:1.3; margin:3em 0 1em 0; color: var(--accent); }
h4 { font-size:1.3rem; font-weight:700; margin:2em 0 1em 0; }
h5 { font-size:1.1rem; font-weight:700; margin:1.5em 0 1em 0; }
h6 { font-size:1rem; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; color: var(--muted); margin:1.5em 0 1em 0; }

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

ul, ol { margin: 0 0 1.3em; padding:0.5em 0 0 0; border:1px dotted var(--muted); border-left:0; border-right:0; }
li { margin-bottom: 0.5em; }
li > :is(h2,h3,h4,h5) { margin:0; font-family:var(--basefont); }
ul > li::marker,
ol > li::marker { color: var(--accent); }

p { margin: 0 0 1em; }

blockquote {
    margin-inline: 0;
    padding-left: 1.2em;
    border-left: 3px solid var(--accent);
    font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
    font-style: italic;
    color: var(--muted);
}

header { line-height:100%; }
header > small:first-of-type { float:left; }
header > small:last-of-type { float:right; text-align:right; display:flex; gap:2em; }
header > small:last-of-type > span:last-child > b::after { content:var(--theme); }
header > small:last-of-type > span:last-child > b::after { content: "hell"; display:block; font-weight:normal; }
@media (prefers-color-scheme: dark) {
    header > small:last-of-type > span:last-child > b::after { content:"dunkel"; }
}

footer { position:fixed; bottom:0; left:0; width:100%; padding:0; font-size:100%; background-color:var(--bg); border-top:2px solid var(--muted); box-shadow:0 -1rem 2rem 1rem var(--bg); }
footer > div { display:flex; max-width:var(--maxwidth); padding:0.5em 1.5rem; margin:0 auto; justify-content:space-between; }
footer > div > * { font-weight:300; font-size:65%; }

hr { border:none; border-top:1px solid var(--lm-rule); margin:3em 0; }