:root {
    --bg-color: #fff;
    --text-color: #111;
    --link-color: #4f46e5;
    --link-color-hover: #4338ca;

    --bg-color-dark: #222;
    --text-color-dark: #eee;
    --link-color-dark: #818cf8;
    --link-color-dark-hover: #6366f1;
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    max-width: 70ch;
    margin: auto;
    padding: 1rem;
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
}

body.index {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

body.index svg {
    width: 64px;
    margin-bottom: 1rem;
    fill: currentColor;
}

body.index h1 {
    margin: 0;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.15rem;
    line-height: 1;
}

@media (min-width: 600px) {
    body {
        padding: 2rem;
    }
}

h1, h2, h3 {
    font-weight: 500;
}

h1:first-child {
    margin-top: 0;
}

img {
    max-width: 100%;
    border-radius: 0.25rem;
}

ol li, ul li {
    margin-bottom: 0.5rem;
}

a:link, a:visited {
    color: var(--link-color);
}

a:hover, a:active {
    color: var(--link-color-hover);
}

.error {
    text-align: center;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--bg-color-dark);
        color: var(--text-color-dark);
    }

    a:link, a:visited {
        color: var(--link-color-dark);
    }

    a:hover, a:active {
        color: var(--link-color-dark-hover);
    }
}
