:root {
    --ink: hsl(0, 0%, 8%);
    --paper: hsl(0, 0%, 99%);
    --border1: hsl(209, 49%, 85%);
    --border2: hsl(120, 100%, 38%);

    --font-sans: Cantarell, 'Noto Sans', sans-serif;
    --font-serif: 'IBM Plex Serif', Merriweather, serif;
    --font-mono: 'Oxygen Mono', 'Fira Code', Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: hsl(0, 5%, 96%);
        --paper: hsl(0, 9%, 9%);
        --border1: hsl(240, 22%, 19%);
        --border2: hsl(120, 31%, 42%);
    }
}

:root:has(#light:checked) {
    color-scheme: light;
    --ink: hsl(0, 0%, 8%);
    --paper: hsl(0, 0%, 99%);
    --border1: hsl(209, 49%, 85%);
    --border2: hsl(120, 100%, 38%);
}

:root:has(#obsidian:checked) {
    color-scheme: dark;
    --ink: hsl(0, 5%, 96%);
    --paper: hsl(0, 9%, 9%);
    --border1: hsl(240, 22%, 19%);
    --border2: hsl(120, 31%, 42%);
}

/* I wanted to use OKLCH to test fancy artsy stuff BUT MY MONITOR CANT SEE IT LOL */

html {
    color: var(--ink);
    font-size: 1rem;
    font-family: var(--font-sans);
    color-scheme: dark light;
}

body {
    background-color: var(--paper);
    font-size: 1.1em;
    line-height: 1.4;
}

.cornerbox {
    width: 100px;
    @media screen and (min-width: 1300px) {
        position: fixed;
        top: 8px;
        left: 8px;
    }
}

.tamedots {
    display: flex;
    align-items: center;
    gap: 1em;
    flex-direction: column;
}

fieldset {
    border: 3px solid var(--border1);
}

button,
input,
select {
    font: inherit;
    margin: 0;
    cursor: pointer;
}

.main-content {
    max-width: 1280px;
    margin-inline: auto;
}

article {
    border-bottom: var(--border1) 1px solid;
    margin-bottom: 64px;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    line-height: 1.125;
    text-align: center;
    text-wrap: balance;
    width: fit-content;
}

ol, ul {
    padding: 0.5em;
    list-style-position: inside;
}

p {
    max-width: 55em;
    text-wrap: pretty;
}

img,
picture,
svg,
video {
    max-width: 100%;
    object-fit: cover;
    aspect-ratio: 1;
}

.color-wheel {
    background-image: repeating-conic-gradient(in hsl longer hue, red, red);
    height: 512px;
    width: 512px;
    border-radius: 50%;
}

.color-wheel-OKLCH {
    background-image: repeating-conic-gradient(in oklch longer hue, red, red);
    height: 512px;
    width: 512px;
    border-radius: 50%;
}
