*,
*::before,
*::after {
    font-feature-settings: "kern";
    font-kerning: normal;
    box-sizing: border-box;
    padding:0;
    margin:0;
    font-family:inherit;
    font-size:inherit;
    line-height:inherit;
    font-weight:inherit;
}

:root {
    @media (prefers-reduced-motion: no-preference) {
	scroll-behavior: smooth;
    }
    color-scheme: light dark;
    --hl-colour: #ff4f00;
}

body {
    text-align: justify;
    font-family: "Comic Sans MS", sans-serif;
    line-height: 1.5;
    max-width: 80ch;
    margin: auto;
    padding: 6lh 1em 1lh 1em;
}

a { color: inherit; }
img { max-width: 100%; }

h1, h2, h3 {
    font-size: inherit;
    font-weight: bold;
}

h1, h2, h3, p, ul, ol, pre {
    margin-bottom: 1lh;
}
h2 {
    margin-top: 3lh;
}
h1 {
    margin-top: 1lh;
}


ul { list-style: circle inside; }
ol { list-style: decimal inside; }


.logo {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: var(--hl-colour);
    border-radius: 1em;
    display: inline-block;
    text-align: center;
    padding: 0.2em;
    box-shadow: 0 0 0.3em;
}

nav {
    display: inline-block;
}

h1, h2, h3, li {
    svg {
	width: 1em;
	height: 1em;
	vertical-align: sub;
    }
}

table.archive {
    border-collapse: collapse;
    width: 100%;
    td {
	vertical-align: top;
	text-align: left;
	padding-bottom: 0.5lh;
    }
    td:last-child {
	padding-left: 2ch;
        text-align: right;
    }
}

pre {
    border: 1px solid;
    padding: 1ch;
    overflow-x: auto;
    font-family: monospace;
}

.taglist a {
    border: 1px solid;
    font-size: smaller;
    border-radius: 3px;
    padding: 0.2em;
}

#postamble {
    border-top: 3px double var(--hl-colour);
    margin-top: 3lh;
    padding-top: 0.5lh;
    font-size: smaller;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 3em;

    li { list-style: none; }
}
