@import url('https://assets.jacobnicked.com/styles/fonts.css');

:root {
    --blur: blur(12px) saturate(1.5);
    --header-height: 6rem;
    --header-padding-inline: 14vw;
    --main-margin-inline: var(--header-padding-inline);
    --footer-border: var(--header-border);
    --footer-height: 16rem;
    --footer-padding-inline: 3rem;
    * { color: var(--text-color); -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; }
    font-family: 'Figtree', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    scroll-behavior: smooth;
    text-wrap: pretty;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* overflow-wrap: anywhere;  */
    -webkit-tap-highlight-color: transparent;
    scrollbar-gutter: stable;
    -ms-scroll-chaining: none;
        overscroll-behavior: none;
}

@media (prefers-color-scheme: light) {
    :root {
        color-scheme: light;

        --bg-color: #e1e1e1;
        --footer-bg: color-mix(in oklab, var(--bg-color) 60%, white 40%);
        --header-bg: color-mix(in oklab, var(--bg-color) 50%, white 25%);
        --header-border: color-mix(in oklab, gray 60%, white 40%);
        --img-invert: invert(0);
        --table-border: color-mix(in oklab, gray 80%, white 20%);
        --text-color: #000;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;

        --bg-color: #2d2d2d;
        --footer-bg: color-mix(in oklab, var(--bg-color) 60%, gray 40%);
        --header-bg: color-mix(in oklab, var(--bg-color) 50%, gray 25%);
        --header-border: color-mix(in oklab, gray 60%, black 40%);
        --img-invert: invert(1);
        --table-border: color-mix(in oklab, gray 80%, black 20%);
        --text-color: #fff;
    }
}

h1, h2, h3, h4, h5, h6 { margin: 0; } p { line-height: 2; }

body { background-color: var(--bg-color); margin: 0; min-height: 100vh; min-height: 100dvh; width: 100%; }

header { position: -webkit-relative; position: -webkit-sticky; position: sticky; top: 0; left: 0; right: 0; height: var(--header-height); width: 100%; display: inline-flex; border-bottom: 1px solid var(--header-border); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); z-index: 50; }
    header-cont { display: inherit; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; height: inherit; width: inherit; padding-inline: var(--header-padding-inline); }
        logo-cont a { display: flex; flex-direction: column; align-items: center; gap: 10px; span { font-size: calc(1rem + 2px); font-family: 'Figtree'; font-weight: 600; } }
        .website-logo { height: auto; width: 10rem; -webkit-filter: var(--img-invert); filter: var(--img-invert); }
        nav { display: inherit; width: 100%; justify-content: center; align-items: center; } nav-cont { display: inherit; gap: calc(1rem + 8px); }
        .nav-link { span { font-family: 'Lexend'; } }
        
    main { min-height: 75vh; margin-top: 4vh; margin-bottom: 6vh; margin-inline: var(--main-margin-inline); }
        main-cont { display: flex; flex-direction: column; gap: 4rem; }
            site-desc { display: flex; flex-direction: column; justify-content: center; width: 100%; gap: 12px; span { font-size: calc(1rem + 0px); font-weight: 600; margin: 0; text-align: center; } }
            .block { display: flex; flex-direction: column; gap: 1rem; }
        
footer { background-color: var(--footer-bg); display: flex; position: relative; bottom: 0; left: 0; right: 0; width: 100%; border-top: 1px solid var(--footer-border); transition: all .3s; span, a, p { font-weight: 600; } }
    footer-cont { display: inherit; flex-direction: row; justify-content: space-between; gap: 1rem; padding-inline: var(--footer-padding-inline); -webkit-padding-before: 2rem; padding-block-start: 2rem; -webkit-padding-after: 6rem; padding-block-end: 6rem; width: inherit; }
        footer-top { display: inherit; flex-direction: inherit; width: 100%; justify-content: inherit; }
            .footer-one { display: inherit; flex-direction: row; gap: 1rem; }
                .footer-logo { height: 4rem; width: 4rem; }
                .footer-copyright { display: inherit; flex-direction: column; gap: 12px; }
    footer-list { display: grid; grid-auto-flow: row; gap: 14px; grid-template-columns: auto auto; justify-content: start; }
        .footer-link { display: inline-flex; gap: 6px; align-items: center; } .footer-link-icon { height: 20px; width: 20px; -webkit-filter: var(--img-invert); filter: var(--img-invert);  }

.logo-circle { position: relative; left: 0; -webkit-filter: var(--img-invert); filter: var(--img-invert); }
        .logo-text { display: flex; justify-content: right; right: 0; position: relative; width: 10rem; -webkit-filter: var(--img-invert); filter: var(--img-invert); }

code { display: inline-flex; width: -webkit-fit-content; width: -moz-fit-content; width: fit-content; margin: 4px; padding-block: 6px; padding-inline: 12px; background-color: color-mix(in oklab, var(--bg-color) 75%, gray 25%); border-radius: 8px; font-family: 'JetBrains Mono', 'Courier New', Courier, monospace; font-size: 14px; box-shadow: inset 0 0 2px 0 dimgray; -webkit-user-select: text !important; -moz-user-select: text !important; -ms-user-select: text !important; user-select: text !important; span { -webkit-user-select: text !important; -moz-user-select: text !important; -ms-user-select: text !important; user-select: text !important; } }

li { overflow: visible; line-height: 1.8; } li:has(code) { margin-bottom: 12px; }

/* webbuttons */
webbuttons { display: inline-flex; gap: 4px; align-items: center; }
    .webbutton { display: inline-block; margin: 2px; border: 1px solid black; height: 31px; width: 88px; -ms-interpolation-mode: nearest-neighbor; image-rendering: -moz-crisp-edges; image-rendering: pixelated; }

/* tables */
.tables-cont { display: flex; flex-direction: column; gap: 2rem; overflow-x: hidden;  }
    .table-cont { display: inherit; flex-direction: column; gap: 1rem; }
    .table-2r342 { overflow-x: auto; padding-bottom: 1rem; }

table { width: 100%; border-collapse: collapse; border-spacing: 0; border: 1px solid var(--table-border); counter-reset: rowNumber; }
    thead, th, td { text-align: left; align-items: center; border: 1px solid var(--table-border); padding-block: 10px; padding-inline: 12px; }
    thead { background-color: color-mix(in oklab, var(--bg-color) 80%, var(--text-color) 20%); border: 1px solid color-mix(in oklab, var(--table-border) 50%, gray 50%); }
    th { text-transform: capitalize; }
    th:first-child { width: 8px; } td:first-child { text-align: center; } td:nth-child(2) { span { font-weight: 500; } }
    tr { a { font-weight: 500; text-decoration: underline; -webkit-text-decoration-style: dotted; text-decoration-style: dotted; transition: all .3s; } a:hover { opacity: .7; } }
    /* tr:nth-child(2) { background-color: color-mix(in oklab, var(--bg-color) 60%, dimgray 40%); } */

        #noscript td:first-child::before { display: none; content: ''; counter-increment: none; }  
        tr td:first-child::before { font-weight: 500; counter-increment: rowNumber; content: counter(rowNumber) " "; } 

@media screen and (max-width: 599px) { nav { display: none; } }

@media screen and (max-width: 767px) {
    :root { --header-padding-inline: 6vw; }
    footer-top { height: 100%; flex-direction: column; gap: 2rem; }
    footer-list { grid-template-columns: auto auto; gap: 1.25rem; }
}

/* additional styles */
a { text-decoration: none; }
mylinks, .glass-svg { display: none; }

/* animations */
@media (prefers-reduced-motion: no-preference) {
    body { transition: background-color .3s, color .3s; }
}