/* The look of the home page and the error page, taken from Mundana Reworked:
   its palette, Georgia for the name of the site, Segoe UI for the bar and the
   footer, Lora for the text. The archived content does not load this file. */

/* --- Colours, light and dark -------------------------------------------- */
/* Light and dark follow the system of the reader, with no switch and no
   script. The values are those of Mundana Reworked. */
:root {
    color-scheme: light dark;
    --bg: #ffffff;
    --surface: #ffffff;
    --text: #212529;
    --heading: #222222;
    --muted: #646c75;
    --line: #e3e7ea;
    --accent: #127f60;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #15181c;
        --surface: #1c2026;
        --text: #f0f2f4;
        --heading: #f0f2f4;
        --muted: #9aa3ab;
        --line: #2a2f36;
        --accent: #219b74;
    }
}

/* --- Font ---------------------------------------------------------------- */
/* Only the regular weight, which is all the two pages use. latin-ext carries
   the Czech diacritics. */
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lora-latin-ext-400-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lora-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Page ---------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover,
a:focus {
    text-decoration: underline;
}

/* --- Bar with the name of the site --------------------------------------- */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
}

.site-name {
    display: inline-block;
    padding: 0.3125rem 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    line-height: inherit;
    color: var(--heading);
}
.site-name:hover,
.site-name:focus {
    color: var(--heading);
    text-decoration: none;
}

/* --- Content ------------------------------------------------------------- */
/* flex: 1 pushes the footer to the bottom of a short page. */
.site-content {
    flex: 1 0 auto;
    padding: 3rem 0;
}

.site-content h1 {
    margin: 0 0 1.5rem;
    font-family: Georgia, Times, "Times New Roman", serif;
    font-size: 2.6rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--heading);
}

.lead {
    max-width: 46rem;
    margin: 0;
    font-family: Lora, Georgia, serif;
    font-size: 20px;
    line-height: 1.86;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 1rem 0;
    font-size: 80%;
    text-align: center;
}
.site-footer a {
    color: var(--text);
}

@media (max-width: 575.98px) {
    .site-content h1 {
        font-size: 2rem;
    }
}
