:root {
    --multi-spacer: .6em;
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

@media ( prefers-color-scheme: dark ) {
	:root {
		--background-color: #1d141f;
		--color: #f8f0fa;
        --subtle: #87768b;
	}
}

@media ( prefers-color-scheme: light ) {
	:root {
        --background-color: #f8f0fa;
		--color: #1d141f;
        --subtle: #87768b;
	}
}

ul,
li,
p,
h1,
h2,
input,
figure {
    margin: unset;
    list-style: none;
    padding: unset;
}

body {
    font-size: clamp(1.2em, 2vh, 1.8em);
    color: var(--color);
    background-color: var(--background-color);
}

main {
    margin-inline: auto;
    max-width: clamp(60vw, 40em, 100vw);
}

body>header {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1.2em;

    margin-block: 2.4em;
    padding: 1.2em;
}

h2 {
    font-size: 1.2em;
    font-weight: 400;
}

body>header ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: clamp(1.2em, 2.1vh, 1.5em);
}

body>header li,
#areyousure span {
    width: 11em;
    display: flex;
    column-gap: .3em;
    align-items: center;
    height: 1.8em;
}

#areyousure:open {
    display: flex;
    flex-direction: column;
    row-gap: 1.2em;
    background-color: var(--background-color);
    color: var(--color);
    border-radius: .6em;
    border: 1px solid var(--color);
}

#areyousure div {
    display: flex;
    height: 1.2em;
}

#areyousure span {
    width: unset;
}

#areyousure button {
    margin-left: auto;
}

#areyousure div p {
    display: none;
}

#areyousure:has(#moo:hover) div p,
#areyousure:has(#moo:checked) div p {
    display: unset;
}

#moocheck {
    margin-left: auto;
    border: none;
    background: none;
}

#moocheck label {
    cursor: pointer;
    font-size: 2.1vh;
    color: var(--color);
}

article header {
    display: flex;
    column-gap: .6em;
    align-items: center;
    position: relative;
}

article a {
    color: var(--color);
    text-decoration-style: dashed;
}

article a:hover {
    color: var(--subtle);
}

article ul {
    display: flex;
    column-gap: 1.2em;
    row-gap: .3em;
    font-size: .9em;
    align-items: center;
    color: var(--subtle);
    flex-wrap: wrap;
    margin-left: .6em;
}

article {
    display: none;
    flex-direction: column;
    row-gap: var(--multi-spacer);

    line-height: 1.2em;

    margin-bottom: 1.2em;
    padding: 1.2em;
}

article>div {
    display: flex;
    flex-direction: column;
    row-gap: var(--multi-spacer);
    margin-left: 1.8em;

}

article>div:not(:first-of-type)::before {
    content: ' ';
    width: 1px;
    background: var(--subtle);
    height: 1.2em;
    display: block;
    margin-left: 1.2em;
}

figure {
	max-width: 100%;
	display: flex;
	flex-direction: column;
	margin-block: .6em;
	row-gap: .6em;
	color: var(--subtle);
	font-size: .9em;
	text-align: center;
}

img {
    object-fit: contain;
    max-height: 36em;
}

:where(body:has(header input#ha:checked)) .ha {
    display: flex;
}

:where(body:has(header input#chat:checked)) .chat {
    display: flex;
}

:where(body:has(header input#fear:checked)) .fear {
    display: flex;
}

:where(body:has(header input#sex:checked)) .sex {
    display: flex;
}

:where(body:has(header input#swch:checked)) .swch {
    display: flex;
}

:where(body:has(header input#tech:checked)) .tech {
    display: flex;
}

:where(body:has(header input#fan:checked)) .fan {
    display: flex;
}

:where(body:has(header input#prac:checked)) .prac {
    display: flex;
}

:where(body:has(header input#tf:checked)) .tf {
    display: flex;
}

:where(body:has(header input#pet:checked)) .pet {
    display: flex;
}

:where(body:has(header input#bst:checked)) .bst {
    display: flex;
}

:where(body:has(header input#wpn:checked)) .wpn {
    display: flex;
}

:where(body:has(header input#mgc:checked)) .mgc {
    display: flex;
}

:where(body:has(header input#pred:checked)) .pred {
    display: flex;
}

:where(body:has(header input#reg:checked)) .reg {
    display: flex;
}

:where(body:has(header input#pkmn:checked)) .pkmn {
    display: flex;
}

:where(body:has(header input#ff:checked)) .ff {
    display: flex;
}

:where(body:has(header input#bun:checked)) .bun {
    display: flex;
}

:where(body:has(header input#moo:checked)) .moo {
    display: flex;
}

body:not(:has(header input#moo:checked)) .moo {
    display: none;
}

body:not(:has(header input:checked)) article {
    display: flex;
}

time {
    /* align-self: center; */
}

p {
    /* margin-bottom: 1em; */
    text-wrap: balance;
}