:root {
    --root-size: 16px;
    --root-gap: 2rem;

    --gap-w: var(--root-gap);
    --gap-h: var(--root-gap);

    --content-width: 1920px;
    --content-width-short: calc(var(--content-width) / 1.5);

    --header-h: 4rem;

    /* FONT FAMILY */
    --ff-100: "Oswald", system-ui, -apple-system, sans-serif;
    --ff-200: "Press Start 2P", system-ui, -apple-system, sans-serif;

    --ff-primary: var(--ff-100);
    --ff-header: var(--ff-100);
    --ff-ui: var(--ff-200);

    /* COLORS */
    --color-100: #f4f4f4;
    --color-200: #e4e4e4;
    --color-300: #abb2a8;
    --color-400: #7c8976;
    --color-800: #111;

    /* SHADOW */
    --shadow-size: var(--root-gap);
    --shadow-opacity: .15;

    /* ANIMATION */
    --ani-time: 200ms;
    --ani-timing: ease-out;
}

/* RESET */
*,
*::after,
*::before {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
ul, ol, li {
    list-style: none;
}
a {
    text-decoration: none;
}
button {
    border: none;
    background: none;
}
h1, h2, h3 {
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    margin-bottom: 2rem;
}
h1 { font-size: 4rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2rem; }
/* ICON + LOGO */
.icon {
    display: block;
    height: 1em;
    aspect-ratio: 1;
    fill: var(--color-800);
    line-height: 1;
}
.logo {
    display: block;
    line-height: 1;
}

/* LINK & BUTTON */
.link,
.button {
    opacity: 1;
    transition: opacity var(--ani-time) var(--ani-timing);
}
.link {
    color: var(--color-800);
}
.button {
    display: block;
    cursor: pointer;
}
.button > .icon {
    height: 3rem;
}
.link--inline {
    display: inline-flex;
    column-gap: .25rem;
    align-items: center;
    text-transform: uppercase;
    line-height: 1;
}
.link--inline > .icon {
    transition-property: translate, opacity;
    transition: var(--ani-time) var(--ani-timing);
}
.link--active {
    text-decoration: underline;
}
.link--na {
    cursor: not-allowed;
}


/* LAYOUT */
.site {
    font-size: var(--root-size);
}
.body {
    font-family: var(--ff-primary);
    font-size: 1rem;
    font-weight: 400;
    font-optical-sizing: auto;
    font-style: normal;
    /* text-transform: uppercase; */
    color: var(--color-800);
    background-color: var(--color-300);
}
.site--light .body {
    background-color: var(--color-100);
}
.scroll {
    scrollbar-color: var(--color-800) var(--color-300);
}
.site--light.scroll {
    scrollbar-color: var(--color-800) var(--color-100);
}
.no-scroll {
    overflow: hidden;
}
.layout {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100svh;
}

/* HEADER */
.head {
    position: sticky;
    left: 0;
    top: 0;
    padding: var(--gap-h) var(--gap-w);
    color: var(--color-200);
    background-color: var(--color-300);
}
.site--light .head {
    background-color: var(--color-100);
}
.head__layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: var(--content-width);
    min-height: var(--header-h);
    margin: 0 auto;
}
.head__layout > .link__home {
    grid-column: 2;
    place-self: center;
}
.head__layout > .link__home > .logo {
    height: var(--header-h);
}
.head__layout > .button__nav {
    grid-column: 3;
    place-self: center end;
}
.head__layout > .button__close {
    grid-column: 2;
    place-self: center;
}

/* MAIN */
.main {
    padding: var(--gap-h) var(--gap-w);
}
.main__layout {
    display: flex;
    flex-direction: column;
    max-width: var(--content-width);
    margin: 0 auto;
}
.main__layout:last-of-type {
    padding-bottom: 0;
}
.main__layout--center {
    justify-content: center;
}
.main__layout--full {
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

/* SECTION */
.section {
    width: 100%;
    max-width: var(--content-width-short);
}

.landing {
    display: flex;
    flex-direction: column;
    width: fit-content;
    align-items: center;
}
.landing__title {
    font-size: clamp(1rem, 7svw, 6rem);
    font-family: var(--ff-header);
    line-height: 1.1;
    color : var(--color-800);
    text-wrap: nowrap;
    margin-bottom: calc(var(--gap-h) * 2);
    overflow: hidden;
    text-align: center;
}


/* CAROUSEL */
.carousel {
    aspect-ratio: 6 / 2;
    background-color: var(--color-400);
}
/* BANNER */
.banner {
    width: 100%;
    aspect-ratio: 3 / 1;
    background-color: var(--color-400);
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow: 0 0 5rem 0 rgb(from var(--color-800) r g b / var(--shadow-opacity));
}
.banner__image {
    width: 100%;
}



.grid {
    --grid-max-col-count: 6;
    --grid-min-col-size: 200px;
    --grid-gap: var(--gap-w);
    --grid-col-size-calc: calc((100% - var(--grid-gap) * var(--grid-max-col-count)) / var(--grid-max-col-count));
    --grid-col-min-size-calc: min(100%, max(var(--grid-min-col-size), var(--grid-col-size-calc)));
    display: grid;
    column-gap: var(--gap-w);
    row-gap: var(--gap-h);
    grid-template-columns: repeat(auto-fit,minmax(var(--grid-col-min-size-calc), 1fr));

    width: 100%;
    border: 1px solid red;
}
.grid > div {
    border: 1px solid coral;
}


/* CARDS */
.card {
    padding: var(--root-gap) calc(var(--root-gap) * 2);
    max-width: max-content;
    border-radius: 2rem;
    box-shadow: 0 0 5rem 1rem rgb(from var(--color-800) r g b / var(--shadow-opacity));
}
.card__title {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1rem;
    font-size: 2rem;
    text-align: center;
    margin-bottom: calc(var(--gap-h) / 3);
}
.card__title:last-child {
    margin-bottom: 0;
}
.card__title > .icon {
    fill: var(--color-100);
}
/* CARDS: STATUS */
.status {
    color: var(--color-100);
    background-color: var(--color-800);
    border-radius: 100vw;
    line-height: 1;
}
.status > .card__title .icon {
     fill: var(--color-800);
     background-color: green;
     border-radius: 100vw;
     padding: .2em;
     height: .5em;
     box-sizing: content-box;
}
.status__description {
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
}


/* FOOTER */
.foot {
    font-family: var(--ff-ui);
    padding: var(--gap-h) var(--gap-w);
    font-size: .7rem;
    letter-spacing: -.05em;
    color: var(--color-800);
    text-transform: uppercase;
}
.foot__layout {
    display: grid;
    grid-template-columns:  auto auto 1fr;
    column-gap: calc(var(--gap-w) * 2);
    row-gap: var(--gap-h);
    align-items: center;
    max-width: var(--content-width);
    margin: 0 auto;
}
.foot__creator {
    display: flex;
    justify-self: end;
    align-items: center;
    column-gap: 1rem;
    color: var(--color-800);
    text-wrap: nowrap;
}
.foot__creator .logo {
    width: 3em;
    fill: var(--color-800);
}

/* LIST */
.list__links {
    display: inline-flex;
    column-gap: var(--gap-w);
}

/* NAV */
.nav {
    display: none;
    position: fixed;
    z-index: 998;
    inset: 0;
    overflow-y: auto;
    scrollbar-color: var(--color-100) var(--color-800);
    opacity: 0;
    transition-property: opacity, display;
    transition-duration: var(--ani-time);
    transition-timing-function: var(--ani-timing);
    transition-behavior: allow-discrete;
}
.navActive {
    display: grid;
    opacity: 1;
    @starting-style {
        opacity: 0;
    }
}
.nav__layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    background-color: var(--color-800);
}
.nav__head {
    position: sticky;
    left: 0;
    top: 0;
    padding: var(--gap-h) var(--gap-w);
    color: var(--color-200);
    background-color: var(--color-800);
}
.nav__head .button__close .icon {
    fill: var(--color-100);
}
.nav__menu {
    width: 100vw;
    padding: var(--gap-h) var(--gap-w);
}
.menu__layout {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: var(--content-width);
    min-height: 100%;
    margin: 0 auto;
}
.menu {
    width: 100%;
}
.menu__item {
    font-family: var(--ff-ui);
    font-size: 3rem;
    letter-spacing: -.05em;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-100);
    padding: calc(var(--gap-h) / 2) 0;

    display: flex;
    justify-content: center;
}
.menu__item .button .icon {
    fill: var(--color-100);
}
.menu__item .link {
    display: block;
    color: var(--color-100);
    text-align: center;
    overflow: hidden;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    width: fit-content;

    /* border: 1px solid red; */
}

/* HOVER */
@media (hover: hover) and (pointer: fine) {
    .link:hover,
    .button:hover {
        opacity: .5;
    }
    /* .link--inline:hover > .icon {
        translate: .5rem;
        opacity: 0;
    } */
}

/* RESPONSIVE */
@media all and (max-width: 767px) {
    :root {
        --gap-w: calc(var(--root-gap) / 2);
    }
    .foot__layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .foot__creator {
        font-size: .6rem;
        justify-self: center;
        column-gap: .5rem;
    }
    .menu__item {
        font-size: 1.5rem;
    }
}
@media all and (max-height: 1023px) {
    :root {
        --gap-h: calc(var(--root-gap) / 2);
    }
}

/* DARK MODE */
@media (prefers-color-scheme: dark) {
    :root {

    }
}
