@font-face {
    font-family: 'Overlock';
    src: url(fonts/Overlock-Regular.ttf) format('truetype');
}
@font-face {
    font-family: 'Berkshire Swash';
    src: url(fonts/BerkshireSwash-Regular.ttf) format('truetype');
}

body, body:has(#dark:checked) {
    --text: wheat;
    --bg: rgb(10,5,15);
    --tint: rgb(10,5,15,0.3);
    --acc: mediumvioletred;
    --rainbow: #870B3C, #C13818, #c08f1e, #638d23, #08615a,  #2a2256, #520047, #870B3C;}
body:has(#light:checked) {
    --bg: wheat;
    --text: rgb(10,5,15);
    --tint: rgb(245,222,179,0.3);}

::selection {
    color: ivory;
    background: var(--acc);}

body {
    background: #620344;
    background-image: linear-gradient(180deg, var(--rainbow));
    font-family: 'Overlock';
    font-size: 1.2em;
    color: var(--text);}

h1 {
    font-family: 'Berkshire Swash';
    font-size: min(9vw, 2.5em);
    font-style: italic;
    text-shadow: 0px 1px 0px #870B3C, 0px 2px 0px #C13818, 0px 3px 0px #c08f1e, 0px 4px 0px #638d23, 0px 5px 0px #08615a, 0px 6px 0px #2a2256, 0px 7px 0px #520047;
    color: wheat;
    background-image: linear-gradient(to right, var(--rainbow));
    border: 8px solid var(--tint);
    background-clip: padding-box;
    outline: 12px double var(--bg);
    outline-offset: -8px;
    width: fit-content;
    padding: 5px 0.9em;
    margin: 15px auto;
    border-radius: 2em;} 

main {
    background: var(--bg);
    border: 4px solid var(--tint);
    background-clip: padding-box;
    outline: 4px solid var(--bg);
    width: 90%;
    max-width: 1100px;
    margin: 20px auto;
    padding: 40px 5vw 20px;
    border-radius: 60px;
    box-sizing: border-box;
    letter-spacing: -0.02em;}

a, label {
    color: var(--acc);
    border-radius: 1em;
    padding: 1px 7px;
    margin: 0;
    border: 1px solid transparent;
    display: inline-block;}
a:hover, a:focus, label:hover, label:has(input:focus) {
    border: 1px solid var(--text);
    background-image: linear-gradient(to right, var(--rainbow));
    color: wheat;
    text-shadow: 1px 1px 0px rgb(10,5,15), -1px -1px 0px rgb(10,5,15), -1px 1px 0px rgb(10,5,15), 1px -1px 0px rgb(10,5,15), 
                1px 0px 0px rgb(10,5,15), -1px 0px 0px rgb(10,5,15), 0px 1px 0px rgb(10,5,15), 0px -1px 0px rgb(10,5,15), 
                2px 2px 0px rgb(10,5,15), 2px 1px 0px rgb(10,5,15), 1px 2px 0px rgb(10,5,15);}
a:focus, label:has(input:focus) {
    outline: 2px solid var(--acc);}
.gallery {
    border: 4px solid transparent;
    border-image: linear-gradient(to right, var(--rainbow)) round 2;
    border-style: solid none;
    padding: 10px 0;
    margin: 20px 0;}
.gallery a {
    width: 300px;
    height: 300px;
    padding: 2px;
    background: var(--acc);
    background-image: conic-gradient(var(--rainbow));
    display: inline-block;
    border-radius: 10px;
    box-sizing: border-box;
    margin: 4px 2px;
    border: none;}
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin: 0;
    border: 2px solid transparent;
    box-sizing: border-box;}
.gallery a:hover, .gallery a:focus {
    }
.gallery a:hover img, .gallery a:focus img {
    object-fit: contain;
    border: 2px solid var(--text);
    outline: 2px solid var(--acc);}

label {
    border: 1px solid var(--acc);}
input {
    appearance: none;
    border: 1px solid var(--acc);
    margin-left: 0.1rem;
    margin-top: 0.2rem;
    border-radius: 50%;
    height: 1em;
    width: 1em;}
label:hover input, input:focus {
    border: 2px solid var(--bg);
    background: var(--text);
    outline: 1px solid var(--text);}
input:checked {
    background: var(--acc);}


