/* Default settings */
@charset "utf-8";
:root {
    --root-blue: #10069f;
    --root-gradient-blue: linear-gradient(rgb(0, 85, 255) 10%, rgb(0, 20, 80) 90%, rgba(0, 85, 255, 0.5));
}
body {
    font-family: "helvetica neue", helvetica, arial;
    /* font-size: calc(16px + (26 - 10) * ((100vw - 300px) / (1200 - 300))); */
	font-size: 1rem;
	font-size: clamp(1rem, 0.875rem + 0.625vw, 1.25rem);
    padding: 0 5px;
    margin: 0;
}
*,
*:before,
*:after {
    box-sizing: border-box;
}
h1 {
	font-size: 1.2em;
}
.root-item {
    max-width: 960px;
    outline: 1px solid red;
}
.header {
    display: grid;
    grid-template-columns: 3fr 1fr;
}

/* ChatGPT Nav... */
/* Base styles */
.navbar {
    background: var(--root-gradient-blue);
    font-family: sans-serif;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
}

.nav-item {
    position: relative;
}

.nav-item > .anchor {
    display: block;
    padding: 1em 1.5em;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

/* .nav-item > a:hover {
    background-color: var(--root-blue);
} */

/* Sub-menu */
.sub-menu {
    display: none;
    position: absolute;
    background: var(--root-gradient-blue);
    top: 100%;
    left: 0;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
}

.sub-menu li a {
    display: block;
    padding: 0.75em 1em;
    color: white;
    text-decoration: none;
}

.sub-menu li .anchor:hover {
    background-color: var(--root-blue);
}

/* Desktop hover */
/* @media (min-width: 768px) {
    .nav-item:hover .sub-menu {
    display: block;
    }
} */

/* Mobile click-to-open using :focus-within */
/* @media (max-width: 767px) {
    .nav-menu {
    flex-direction: column;
    }

    .nav-item > a {
    padding: 1em;
    border-top: 1px solid #333;
    }


} */

    .nav-item:focus-within .sub-menu {
    display: block;
    }