@font-face {
    font-family: 'Source Code Pro';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/asset?u=https%3A%2F%2Fvieux.fr%2Fassets%2Ffonts%2Fsource-code-pro-latin.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;
}

:root {
    --bg-color: #eee;
    --text-color: #000;
    --link-color: #2962ff;
    --muted-color: #555;
}

[data-theme="dark"] {
    --bg-color: #222;
    --text-color: #fff;
    --link-color: #66b3ff;
    --muted-color: #ccc;
}

html,
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Source Code Pro', ui-monospace, monospace;
    font-size: 1em;
    transition: background-color 0.3s, color 0.3s;
}

#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 12px;
    border: 1px solid var(--text-color);
    border-radius: 5px;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    cursor: pointer;
}

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

a:hover,
a:active {
    text-decoration: underline;
}

footer {
    font-size: 0.7em;
}
