@font-face {
    font-family: 'Standard';
    src: url('https://playground.jamesg.blog/standard-book-webfont.woff2') format('woff2');
}
* {
    box-sizing: border-box;
    line-height: 1.5;
}
:root {
    --border-radius: 0.25rem;
    --bw: 0.25rem;
    --background-color: light-dark(
        color-mix(in srgb, var(--primary-color) 20%, white),
        color-mix(in srgb, var(--primary-color) 20%, black)
    );
}

* {
    font-family: "Standard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    border-color: var(--primary-color);
}

img {
    border: 1px solid;
}

html {
    padding: 0;
    margin: 0;
    color-scheme: light dark;
    color: light-dark(
        color-mix(in srgb, var(--primary-color) 20%, rgb(44, 44, 44)),
        color-mix(in srgb, var(--primary-color) 20%, white)
    );
    border-top: 0.5rem solid var(--primary-color);
}
body {
    padding: 0;
    margin: 0;
    background: var(--background-color);
    animation: 60s font-animation infinite;
}
h1, h2, h3, h4, h5, h6 {
    text-wrap: pretty;
    margin-bottom: 0;
}
p {
    font-size: 1.05rem;
    text-wrap: balance;
}
h1 + *, h2 + *, h3 + *, h4 + *, h5 + *, h6 + * {
    margin-top: 0.5rem;
}
main:has(h1):not(:has(h2 ~ h2)) h2 {
    margin-top: 0;
}
h2 {
    margin-top: 3rem;
}
html {
    padding-bottom: 8rem;
}
main {
    /* max-width: 35rem; */
    margin: auto;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr min(35rem, 100%) 1fr 1fr 1fr;
}
main > * {
    grid-column: 4;
}
details:focus {
    background-color: black;
    color: yellow;
}
a:visited {
    color: color-mix(in srgb, var(--primary-color) 50%, grey);
}
a {
    color: var(--primary-color);
}
a:hover, a:focus {
    background-color: var(--primary-color);
    color: white;
}
a:focus {
    outline: yellow 1px solid;
    color: white;
    text-decoration: none;
}
input {
    border-radius: var(--border-radius);
    padding: 0.25rem 0.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--primary-color);
}
input[type="text"], input[type="url"], textarea {
    width: 100%;
}
input:focus {
    outline: white 1px solid;
    background-color: var(--primary-color);
    color: white;
}
*::selection {
    background-color: var(--primary-color);
    color: var(--background-color);
}
label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
    margin-top: 1rem;
}
figure {
    margin: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
    position: relative;
}
figure img {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
}
.full-bleed {
    width: 100%;
    grid-column: 3 / 6;
}
figcaption {
    text-align: center;
    font-style: italic;
}
blockquote {
    border-left: 0.25rem solid var(--primary-color);
    margin: 0;
    margin-top: 1rem;
    padding: 0.25rem 0;
    padding-left: 1rem;
}
cite {
    display: block;
    margin-top: 1rem;
}
cite::before {
    content: "— ";
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
th {
    text-align: left;
    padding-bottom: 0.25rem;
}
.side-by-side {
    display: flex;
    gap: 1rem;
    width: 100%;
    align-items: flex-end;
}
.side-by-side > * {
    flex-grow: 1;
}
main details:not(.alt) {
    border: 0.1rem solid var(--primary-color);
    list-style: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}
main details:not(.alt)[open] {
    padding-bottom: 1rem;
}
