@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* base brand colors */
    --c-cyan: #00e0ff;
    /* blue */
    --c-gold: #ffd500;
    /* yellow */
    --c-pink: #ff7ad4;
    /* pink */

    /* HSL components for derived variants */
    --c-cyan-h: 187;
    --c-cyan-s: 100%;
    --c-cyan-l: 50%;

    --c-gold-h: 50;
    --c-gold-s: 100%;
    --c-gold-l: 50%;

    --c-pink-h: 323;
    --c-pink-s: 100%;
    --c-pink-l: 73%;

    /* lighter / darker variants */
    --c-cyan-light: hsl(var(--c-cyan-h), var(--c-cyan-s), 70%);
    --c-cyan-dark: hsl(var(--c-cyan-h), var(--c-cyan-s), 35%);
    --c-gold-light: hsl(var(--c-gold-h), var(--c-gold-s), 70%);
    --c-gold-dark: hsl(var(--c-gold-h), var(--c-gold-s), 35%);
    --c-pink-light: hsl(var(--c-pink-h), var(--c-pink-s), 83%);
    --c-pink-dark: hsl(var(--c-pink-h), var(--c-pink-s), 58%);

    --padding-base: 1rem;
}

* {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    box-sizing: border-box;
}

*+* {
    padding-bottom: var(--padding-base);
}

body {
    font-size: 20px;
    --page-base: var(--c-cyan);
    --page-light: var(--c-cyan-light);
    --page-dark: var(--c-cyan-dark);
    container-name: main-content;
    container-type: inline-size;
    overflow-x: hidden;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
nav * {
    font-family: "Nunito", sans-serif;
    break-inside: avoid;
}

main {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--padding-base);
}

nav {
    padding: .5rem 0 !important;
    height: 8vh;
    label {
        display: flex;
        align-items: center;
        height: 100%;
        position: relative;
        * {
            padding: 0;
        }
        #nav {
            height: 100%;
            aspect-ratio: 1/1;
            visibility: hidden;
        }
        ul {
            display: none;
            li {
                list-style-type: none;
            }
        }
        > a {
            flex: 1 1 auto;
            text-indent: -9999px;
            background: url("/assets/imgs/logo-001.png");
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center right;
            height: 100%;
            margin-left: 1rem;
        }
        &::after {
            content: '\2630';
            color: white;
            text-indent: 0;
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            aspect-ratio: 1/1;
            background: var(--c-cyan-light);
            border: 1px solid white;
            border-radius: .5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            z-index: 200;
        }
        &:has(input:checked) {
            &::after {
                content: '\00d7';
                font-size: 2.5rem;
            }
            ul {
                display: flex;
                align-items: center;
                justify-content: center;
                height: 100vh;
                width: 100vw;
                background: var(--c-cyan);
                z-index: 100;
                top: 0;
                left: -1.5rem;
                position: absolute;
                flex-direction: column;
                font-size: 50px;
            }
        }
    }
}

footer {
    background: black;
    color: white;
    text-align: center;
    font-weight: bold;
    margin: 0;
}

.outer-shape {
    position: relative;
    padding: var(--padding-base) 0;
    margin-bottom: var(--padding-base);
    &::after {
        content: '';
        background-color: var(--section-bg);
        width: 200vw;
        height: 100%;
        top: 0;
        left: -50vw;
        position: absolute;
        z-index: -10;
    }
}

.outline {
    color: white;
    position: relative;
    letter-spacing: -.125rem;
    text-transform: uppercase;
    font-weight: 900;
    &::after {
        color: black;
        -webkit-text-stroke-width: .5rem;
        content: attr(data-text);
        position: absolute;
        top: .1rem;
        left: .1rem;
        z-index: -1;
    }
}

.pill-shape {
    break-inside: avoid;
    background: black;
    color: white;
    padding: .5rem;
    border-radius: .5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    aspect-ratio: 1/1;

    .pill-img {
        /* this makes the image region square */
        aspect-ratio: 1 / 1;
        width: 100%;

        /* key: allow flexbox to shrink it */
        flex: 1 1 auto;
        min-height: 0;

        object-fit: cover;
        object-position: center;
        border-radius: inherit;
        background: white;
        padding: 0;
    }

    .pill-caption {
        font-family: "Nunito", sans-serif;
        font-weight: 900;
        text-align: center;
        padding: 0;
    }
}

a:has(.pill-shape) {
    display: block;
}

.pill-button {
    background: black;
    color: white;
    border-radius: 100rem;
    padding: .5rem 1rem;
    display: inline-block;
    width: fit-content;
    font-family: "Nunito", sans-serif;
    font-weight: 900;
    text-align: center;
}

@container main-content (width > 800px) {
    main {
        padding: 0;
    }

    nav {
        label {
            #nav,
            &::after {
                display: none;
            }
            ul {
                display: flex;
                align-items: center;
                justify-content: center;
                height: 100%;
                li+li {
                    margin-left: 1rem;
                }
            }
        }
    }

    .col {
        --columns: 2;
        column-count: var(--columns);

        &> :first-child {
            column-span: all;
        }

        &> :last-child.pill-button {
            column-span: all;
            white-space: nowrap;
        }

        &.x3 {
            --columns: 3;
        }

        &.x4 {
            --columns: 4;
        }
    }

    .grid {
        --columns: 2;
        /* column-count: var(--columns); */
        display: grid;
        grid-template-columns: repeat(var(--columns), 1fr);
        gap: var(--padding-base);

        &> :first-child {
            grid-column: 1 / -1;
        }

        &> :last-child.pill-button {
            grid-column: 1 / -1;
            white-space: nowrap;
        }

        &.x3 {
            --columns: 3;
        }

        &.x4 {
            --columns: 4;
        }
    }
}

/* @import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --c-cyan: #00e0ff;   
    --c-gold: #ffd500;   
    --c-pink: #ff7ad4;   

    --c-cyan-h: 187;
    --c-cyan-s: 100%;
    --c-cyan-l: 50%;

    --c-gold-h: 50;
    --c-gold-s: 100%;
    --c-gold-l: 50%;

    --c-pink-h: 323;
    --c-pink-s: 100%;
    --c-pink-l: 73%;

    --c-cyan-light: hsl(var(--c-cyan-h), var(--c-cyan-s), 70%);
    --c-cyan-dark: hsl(var(--c-cyan-h), var(--c-cyan-s), 35%);
    --c-gold-light: hsl(var(--c-gold-h), var(--c-gold-s), 70%);
    --c-gold-dark: hsl(var(--c-gold-h), var(--c-gold-s), 35%);
    --c-pink-light: hsl(var(--c-pink-h), var(--c-pink-s), 83%);
    --c-pink-dark: hsl(var(--c-pink-h), var(--c-pink-s), 58%);

    --bg: #ffffff;
    --fg: #000000;
    --accent: #38bdf8;
    --muted: #94a3b8;
    --card: rgba(255, 255, 255, 0.04);
    --header-h: 64px;
    --page-fg: var(--c-cyan); 
    --page-bg: var(--c-cyan); 
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--fg);
    font-size: 20px;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-nav,
.site-nav a,
.logo,
h1,
h2,
h3 {
    font-family: "Nunito", "Inter", system-ui, -apple-system, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.015em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 .25rem;
}

p {
    margin: 0 0 .5rem;
}

.logo {
    justify-self: end;
    text-decoration: none;
    display: block;
    width: clamp(140px, 22vw, 240px);
    height: clamp(32px, 6vw, 52px);
    background-image: url('https://vendingmachine.games/src/imgs/logo-001.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
}
.logo span {
    padding: 0;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--page-fg, var(--c-cyan));
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header .shell {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    position: relative;
    z-index: 250;
    min-height: var(--header-h);
}

.logo {
    justify-self: end;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.logo span {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.site-nav a {
    color: inherit;
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    border-radius: 0.35rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
    display: none;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--page-bg, var(--c-cyan));
    color: #fff;
    border-radius: 0.5rem;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 1.6rem;
    line-height: 1;
}

.menu-toggle::before {
    content: "\2630";
}

body.nav-open .menu-toggle::before {
    content: "\00d7";
}

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h, 64px));
    overflow: hidden;
    background: var(--page-bg, var(--c-cyan));
}

.hero>* {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.hero>*:first-child {
    opacity: 1;
    pointer-events: auto;
}

.hero.is-ready>* {
    opacity: 0;
    pointer-events: none;
}

.hero.is-ready>*.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero.is-static {
    overflow: visible;
}
.hero.is-static > .panel {
    position: static;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
}

.hero .hero-inner {
    display: grid;
    gap: 1rem;
    width: min(100%, 900px);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 2.5rem;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "one two"
        "three three";
    align-items: stretch;
}

.hero .hero-inner > *:nth-child(1) { grid-area: one; }
.hero .hero-inner > *:nth-child(2) { grid-area: two; }
.hero .hero-inner > *:nth-child(n+3) { grid-area: three; }

.hero .hero-inner .card img {
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero .hero-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "one"
            "two"
            "three";
    }
}

.outline-text {
    position: relative;
    -webkit-text-stroke: 8px black;
    color: black !important;
}

.outline-text::after {
    -webkit-text-stroke: 0;
    content: attr(data-text);
    position: absolute;
    color: white;
    left: 8px;
    top: 5px;
}

.pill {
    display: block;
    width: 100%;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    background: var(--page-fg, var(--c-cyan));
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-align: center;
    font-family: "Nunito", "Inter", system-ui, -apple-system, sans-serif;
}

a:has(.outline-card) {
    text-decoration: none;
}

.outline-card {
    --r: clamp(14px, 2.2vw, 28px);
    --b: clamp(8px, 1.4vw, 1px);
    --pad: clamp(14px, 2.2vw, 1px);
    --gap: clamp(14px, 2.6vw, 1px);
    --label-size: clamp(28px, 6vw, 92px);
    --label-pad-y: clamp(12px, 1.8vw, 18px);
    --label-pad-x: clamp(18px, 2.6vw, 28px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #000;
    border: var(--b) solid #000;
    border-radius: var(--r);
    overflow: hidden;
    max-width: 560px;
    margin: 0;
}

.outline-card>img {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    border-radius: calc(var(--r) - var(--b));
    object-fit: contain;
}

.outline-card>figcaption {
    margin: 0;
    font-family: "Nunito", sans-serif;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    padding-top: calc(var(--gap) * 0.75);
    padding-bottom: calc(var(--gap) * 0.25);
}

@media (max-width: 768px) {
    .site-header .shell {
        grid-template-columns: auto 1fr auto;
        max-width: none;
        width: 100%;
        margin: 0;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero {
        min-height: calc(100vh - var(--header-h, 64px));
    }

    .site-nav {
        position: fixed;
        inset: 0;
        background: var(--page-fg, var(--c-cyan));
        display: none;
        padding: calc(var(--header-h, 64px) + 1rem) 1.5rem 2rem;
        z-index: 120;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 1.75rem;
        align-items: center;
        justify-content: center;
        height: 100%;
        position: absolute;
        background: var(--page-fg, var(--c-cyan));
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
    }

    .site-nav a {
        color: inherit;
        font-size: 2.4rem;
        font-weight: 800;
        letter-spacing: 0.02em;
    }

    body.nav-open .site-nav {
        display: flex;
    }

    body.nav-open #site-nav {
        z-index: -1;
    }

    .menu-toggle { justify-self: start; }
    .logo { justify-self: end; }
}

main {
    padding: 0;
}

.content-width {
    width: min(100%, 800px);
    margin: 0 auto;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .content-width {
        padding: 1.5rem 0;
    }
}

.full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.two-col {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

.event-hero-logo {
    display: block;
    width: clamp(180px, 30vw, 360px);
    height: clamp(40px, 8vw, 80px);
    margin: 0 auto;
    background-image: url('/assets/imgs/events/game-nights/logo-001.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
}
.event-hero-logo > span { display: inline-block; }

@media (max-width: 768px) {
    .event-hero-logo {
        height: 15vh;
    }
}

.hero .hero-inner .card .event-hero-logo ~ * {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.span-2 {
    grid-column: 1 / -1;
}

.product-detail {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
}

.events .upcoming {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0; 
}

.events .upcoming-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: stretch;
    gap: 1rem;
    width: max-content;
    will-change: transform;
    animation: marquee-left 420s linear infinite; 
}

.events .upcoming-track > * {
    flex: 0 0 auto;
    height: 100%;
    max-height: 25vh;
    width: auto;
    display: flex;
    align-items: stretch;
}

.events .upcoming-track a {
    display: block;
    height: 100%;
}

.events .upcoming-track .outline-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: auto;
}

.events .upcoming-track .outline-card > img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

@keyframes marquee-left {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.col.x3 {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
    .col.x3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .col.x3 {
        grid-template-columns: 1fr;
    }
}

.locations-list .col.x3 > a { display: block; }
.locations-list .col.x3 > a .desc { margin-top: 0.5rem; }

@media (max-width: 640px) {
    .locations-list .col.x3 > a p,
    .locations-list .col.x3 > a .desc { display: none; }
}

.location-products .col.x3 > a,
.location-events .col.x3 > a { display: block; }
.location-products .col.x3 > a .desc,
.location-events .col.x3 > a .desc { margin-top: 0.5rem; }

@media (max-width: 640px) {
    .location-products .col.x3 > a .desc,
    .location-events .col.x3 > a .desc { display: none; }
}

.event-products .col.x3 > a { display: block; }

.events-list .col.x3 > a { display: block; }
.events-list .col.x3 > a .desc { margin-top: 0.5rem; }

@media (max-width: 640px) {
    .events-list .col.x3 > a .desc { display: none; }
}

.products-list .col.x3 > a { display: block; }
.products-list .col.x3 > a .desc { margin-top: 0.5rem; }

@media (max-width: 640px) {
    .products-list .col.x3 > a .desc { display: none; }
}

footer {
    background: #000;
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: 1rem 0;
}

.products .content-width > a {
    margin-bottom: 1rem;
    display: flex;
}

.products .content-width > a p {
    display: none;
}

@media (max-width: 639px) {
    .products .content-width {
        text-align: center;
    }

    .products .content-width > a {
        justify-content: center;
    }
}

@media (min-width: 640px) {
    .products .content-width > a figure {
        margin-right: 1rem;
        min-width: 33%;
    }
    .products .content-width > a p {
        display: block;
    }
} */