:root {
    --bg: #111111;
    --fg: #ffb000;
    --muted: #b87f00;
    --border: #805800;
    --link: #ffd166;
    --max-width: 68ch;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 2rem 1rem;
    background: var(--bg);
    color: var(--fg);
    font-family: "Courier New", Courier, monospace;
    font-size: 1rem;
    line-height: 1.6;
}

/* Bashblog's main page container */
#divbodyholder {
    max-width: var(--max-width);
    margin: 0 auto;
}

#divbody,
.headerholder {
    background: transparent;
    border: none;
    padding: 0;
}

.header {
    margin-bottom: 3rem;
}

h1 {
    font-size: 1.6rem;
    font-weight: normal;
    margin: 0 0 0.4rem;
}

h3 {
    font-size: 1.2rem;
    font-weight: normal;
    margin-top: 2rem;
}

#description,
.subtitle,
#footer {
    color: var(--muted);
}

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

a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.content p {
    margin: 1rem 0;
}

#footer {
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

/* Readability mode */
body.readable {
    --bg: #ffffff;
    --fg: #111111;
    --muted: #444444;
    --border: #999999;
    --link: #0033aa;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.125rem;
    line-height: 1.75;
}

body.readable h1 {
    font-weight: 700;
}

#theme-toggle {
    display: block;
    margin: 2rem auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--link);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

#theme-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}
