* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {

    /*
        Change color scheme based on selected value in header
        Default is System Settings 
    */
    &:has([value="⭐"]:checked) {
        color-scheme: light dark;
    }

    &:has([value="☀️"]:checked) {
        color-scheme: light;
    }

    &:has([value="🌑"]:checked) {
        color-scheme: dark;
    }
    font-family: var(--font-family-content);
}


:is(h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    span) {
    text-box: trim-both cap alphabetic;

}

:is(h1,
    h2,
    h3,
    h4,
    h5,
    h6) {
    text-wrap: balance;
    font-family: var(--font-family-heading);
    line-height: 1.2;
    color: var(--text-color-heading);
}

:is(p,
    span, a, li) {
    font-family: var(--font-family-content);
    font-weight: 200;
    text-wrap: pretty;
    color: var(--text-color-content);
}

h1 {
    font-size: var(--font-size-4);
    margin-block: 0.5em;
}

h2 {
    font-size: var(--font-size-3);
    margin-block: 0.5em;
}

h3 {
    font-size: var(--font-size-2);
}

h4 {
    font-size: var(--font-size-1);
}

h5 {
    font-size: var(--font-size-1);
}

h6 {
    font-size: var(--font-size-1);
}

p {
    font-size: var(--font-size-0);
    line-height: 1.5;
    font-weight: 300;
}

span {
    font-size: var(--font-size-0);
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;

    scrollbar-color: var(--primary-color) transparent;
    scrollbar-width: thin;
}

strong {
    font-weight: bold;
    color: light-dark(var(--text-color-primary), var(--text-color-accent));
}

[id] {
    scroll-margin-top: 150px;
}


img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

body {
    margin: 0;
    padding: 0;
    min-block-size: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr;
    background-color: var(--surface-light-dark);

}

a {
    text-decoration: none;
}

:is(ul, ol, menu, li) {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    border-radius: 96px;
    padding: 1rem 1.25rem;
    color: var(--text-white);
    background-color: var(--surface-color-primary);
    transition: var(--transition-duration-small);
    border: none;
    font-weight: bold;
    font-family: var(--font-family-content);
    cursor: pointer;

    &:hover {
        background-color: var(--surface-color-primary-hover);
        scale: 1.05;
    }

    &:active {
        background-color: var(--surface-color-primary-active);
        scale: 0.97;
    }
}

input {
    color: var(--text);
    background-color: var(--surface-light-dark);
    border: var(--border-size-small) var(--border-color-primary);
    outline: 1px solid oklch(from var(--primary-color) l c h / 0.2);
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition-duration-small);
    flex: 1;
}

input:focus {
    outline: 1px solid oklch(from var(--primary-color) l c h / 0.4);
}