/* Font imports */
@font-face {
    font-family: "Satoshi";
    src: url("/fonts/Satoshi-Variable.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Switzer";
    src: url("/fonts/Switzer-Regular.woff2") format("woff2"),
         url("/fonts/Switzer-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Switzer";
    src: url("/fonts/Switzer-Medium.woff2") format("woff2"),
         url("/fonts/Switzer-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Switzer";
    src: url("/fonts/Switzer-Semibold.woff2") format("woff2"),
         url("/fonts/Switzer-Semibold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Switzer";
    src: url("/fonts/Switzer-Bold.woff2") format("woff2"),
         url("/fonts/Switzer-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --white: #f2f2f2;
    --black: #0C0C0C;
    --gray: #BFBFBF;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Satoshi", "Switzer", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    background-color: #D9D9D9;
    scroll-padding-top: 0;
    -webkit-text-size-adjust: 100%;
    line-height: 150%;
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0;
}

body {
    width: 100%;
    height: 100%;
    max-height: 100%;
    position: relative;
    overflow-x: hidden;
}

/* Main Layout */
.homepage {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    overflow-y: hidden;
    gap: 0;
}

/* Sidebar */
aside {
    display: flex;
    flex-direction: column;
    width: 450px;
    min-width: 450px;
    padding: 32px;
    align-items: flex-start;
    background-color: var(--black);
    margin: 8px;
}

aside::-webkit-scrollbar {
    display: none;
}

aside a {
    color: var(--white);
    font-weight: 700;
    text-underline-offset: 4px;
}

aside a::after {
    content: " ↗"
}

aside img.pfp {
    width: 64px;
    height: 64px;
    background-color: var(--white);
    margin-top: auto;
}

/* Typography */
h1 {
    font-family: "Switzer", "Satoshi", sans-serif;
    font-size: 2.25em;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.5em;
    letter-spacing: -0.02em;
    color: var(--gray);
    line-height: 1;
    font-weight: 500;
}

p {
    color: var(--gray);
    line-height: 1.5;
}

p.large {
    font-size: 1.25em;
    color: var(--white);
    font-weight: 500;
}

p.white {
    color: var(--white);
}

/* Utility Classes */
div {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gap-s {
    gap: 8px;
}

.gap-m {
    gap: 16px;
}

.gap-l {
    gap: 32px;
}

.h {
    flex-direction: row;
}

/* Main Content */
main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    height: 105vh;
    overflow-y: auto;
    margin: 8px 8px 0 0;
}

main::-webkit-scrollbar {
    display: none;
}

.showcase {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scroll-padding-top: 0;
    overflow-y: auto;
    gap: 8px;
}

.showcase::-webkit-scrollbar {
    display: none;
}

.showcase > * {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.showcase .product:last-child {
    margin-bottom: 62px;
}

/* Navigation */
nav {
    background-color: var(--black);
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 12px 16px;
    gap: 64px;
    z-index: 2;
}

nav.mobile {
    display: none;
}

nav a {
    font-family: "Switzer", "Satoshi", sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--white);
    font-weight: 500;
    font-size: 0.8em;
    line-height: 1.5;
    letter-spacing: -0.0em;
}

nav a.primary {
    font-weight: 700;
}

/* Product Cards */
.product {
    padding: 16px;
    background: var(--gray);
    background-image: linear-gradient(to top right, var(--c1), var(--c2));
}

.product img {
    width: 100%;
    height: auto;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.product.mobile {
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product.mobile img {
    padding: 0;
    height: auto;
    width: auto;
    padding-top: 128px;
    min-width: 40%;
    max-width: 60%;
}

/* Product Color Schemes */
.katch {
    --c1: #3F6F96;
    --c2: #9CB7CD;
    border: 8px solid var(--c2);
}

.sismo {
    --c1: #B06EFF;
    --c2: #0C0C0C;
}

.tmbr {
    --c1: #FF4000;
    --c2: #0C0C0C;
}

.curo-labs {
    --c1: #823D95;
    --c2: #0C0C0C;
}

.traviflow01 {
    --c1: #938666;
    --c2: #F2F2F2;
}

.coolify {
    --c1: #6912EC;
    --c2: #0c0c0c;
}

.traviflow02 {
    --c1: #F07336;
    --c2: #FE9820;
}

.rekord {
    --c1: #0c0c0c;
    --c2: #F2F2F2;
}

/* Responsive Design */
@media (max-width: 1200px) {
    html {
        font-size: 14px;
    }
    aside {
        width: 400px;
        min-width: 400px;
    }
}

@media (max-width: 900px) {
    .homepage {
        flex-direction: column;
        height: auto;
        max-height: none;
        width: 100%;
    }
    aside {
        width: auto;
        height: auto;
        min-width: auto;
    }
    main {
        height: auto;
        max-height: none;
    }
    * {
        max-height: none;
    }
    nav, .h {
        flex-wrap: wrap;
    }
    .product {
        padding: 8px;
    }
    .product:last-child {
        margin-bottom: 0px !important;
    }
}

@media (max-width: 600px) {
    .homepage {
        padding-top: 0;
    }
    aside {
        margin-top: 0;
        margin-bottom: 0;
    }
    main {
        margin: 8px;
    }
    nav {
        position: relative;
        top: 0;
        right: 0;
        margin: 8px;
        justify-content: space-between;
        gap: 8px;
    }
    nav.mobile {
        display: flex;
        border: none;
    }
    nav.desktop {
        display: none;
    }
}

@media (max-width: 450px) {
    aside {
        padding: 16px;
    }
}
