/* Emoji Font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Emoji:wght@300..700');

@import url('https://fonts.googleapis.com/css2?family=Inclusive+Sans:wght@300..700&display=swap');

@font-face {
    font-family: 'Intro';
    src: url('../assets/fonts/INTRO.OTF');
}

:root {
    color-scheme: light dark;
    --clr-surface: light-dark(#f8f7f4, #051118);
    --clr-text: light-dark(#051118, #f8f7f4);
    --clr-text-mid: color-mix(in srgb, var(--clr-text), transparent 20%);
    --clr-text-barely: color-mix(in srgb, var(--clr-text), transparent 95%);
    --clr-border: var(--clr-text);
    --clr-link: var(--clr-text);
    --clr-icon: var(--clr-text);
    --display-font: 'Intro';
    --grid-gap: 30px;
    --border-rad: 8px;
    --display-font: 'Intro';
    --content-font: "Inclusive Sans", serif;
    --shadow: drop-shadow(3px 3px var(--clr-border));
}


html[data-theme="light"] {
    color-scheme: light;

    &[data-contrast-theme="more"] {
        --clr-surface: white;
        --clr-text: black;
        --clr-text-mid: var(--clr-text);
        --clr-link: blue;
    }
}

html[data-theme="dark"] {
    color-scheme: dark;

    &[data-contrast-theme="more"] {
        --clr-surface: black;
        --clr-text: white;
        --clr-text-mid: var(--clr-text);
        --clr-link: yellow;
    }
}


.inclusive-sans {
    font-family: "Inclusive Sans", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

* {
    box-sizing: border-box;
    font-family: var(--content-font);

    &:focus-visible {
        outline: 2px solid blue;
        outline-offset: 2px;
    }
}

body {
    background-color: var(--clr-surface);
    overflow-x: hidden;

    &.rainbow {
        ul li {
            &:nth-child(1)::marker {
                color: #FF0000;
            }

            &:nth-child(2)::marker {
                color: #FF8E00;
            }

            &:nth-child(3)::marker {
                color: #FFFF00;
            }

            &:nth-child(4)::marker {
                color: #008E00;
            }

            &:nth-child(5)::marker {
                color: #400098;
            }

            &:nth-child(6)::marker {
                color: #8E008E;
            }

            &:nth-child(7)::marker {
                color: #FFAFC8;
            }

            &:nth-child(8)::marker {
                color: #74D7EE;
            }

            &:nth-child(9)::marker {
                color: #613915;
            }

            &:nth-child(10)::marker {
                color: #000;
            }
        }

        .rainbow-check label {
            mix-blend-mode: normal;
        }

        .spacer {
            opacity: 0.7;
            background-image: linear-gradient(135deg, #ff0000 0.76%, var(--clr-surface) 0.76%, var(--clr-surface) 8.33%, #ff8e00 8.33%, #ff8e00 9.09%, var(--clr-surface) 9.09%, var(--clr-surface) 16.67%, #ffff00 16.67%, #ffff00 17.42%, var(--clr-surface) 17.42%, var(--clr-surface) 25%, #008e00 25%, #008e00 25.76%, var(--clr-surface) 25.76%, var(--clr-surface) 33.33%, #400098 33.33%, #400098 34.09%, var(--clr-surface) 34.09%, var(--clr-surface) 41.67%, #8e008e 41.67%, #8e008e 42.42%, var(--clr-surface) 42.42%, var(--clr-surface) 50%, #ff0000 50%, #ff0000 50.76%, var(--clr-surface) 50.76%, var(--clr-surface) 58.33%, #ff8e00 58.33%, #ff8e00 59.09%, var(--clr-surface) 59.09%, var(--clr-surface) 66.67%, #ffff00 66.67%, #ffff00 67.42%, var(--clr-surface) 67.42%, var(--clr-surface) 75%, #008e00 75%, #008e00 75.76%, var(--clr-surface) 75.76%, var(--clr-surface) 83.33%, #400098 83.33%, #400098 84.09%, var(--clr-surface) 84.09%, var(--clr-surface) 91.67%, #8e008e 91.67%, #8e008e 92.42%, var(--clr-surface) 92.42%, var(--clr-surface) 100%);
            background-size: 330.00px 330.00px;
        }

        header:has(h1) {
            width: fit-content;
            margin: 0 auto;
            background:
                linear-gradient(115deg, red 20%, orange 0 33.33%, yellow 0 50%, green 0 66.66%, blue 0 80%, indigo 0);
            background-clip: text;
            -webkit-background-clip: text;

            h1 {
                color: transparent;
            }
        }
    }

}

p {
    /* not widely supported but doesn't cause issues */
    text-wrap: pretty;
    color: var(--clr-text);
}

h1,
h2,
h3,
a,
p,
ul,
li,
label,
i:before {
    color: var(--clr-text);
}

button.emoji {
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    color: var(--clr-text);
    font-family: "Noto Emoji";
    font-display: block;
    font-size: 24px;
}

body.rainbow:has(#rainbow:hover) .me:after {
    content: "says: 'Happy Pride Month!'"
}

body:has(.who:hover) .me:after {
    content: "doesn't like talking about himself";
}

body:has(.what:hover) .me:after {
    content: "writes code";
}

body:has(.hobbies:hover) .me:after {
    content: "also builds things with wood";
}

body:has(.contact:hover) .me:after {
    content: "wants to connect";
}

body:has(.status:hover) .me:after {
    content: "would like 1 job please";
}

body:has(:popover-open) {
    /* prevent scrolling content in background and adjust for no scrollbar */
    padding-right: 15px;
    overflow: hidden;

    /* prevent immediately opening another image when clicking outside of popover */
    button.img-pop-trigger {
        pointer-events: none;
    }
}

.sr-only {
    visibility: hidden;
    position: absolute;
}