*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9375rem, 0.9155rem + 0.0704vw, 1rem);
    background-color: var(--bg);
    color: var(--black);

    padding: 10px 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    
    -webkit-tap-highlight-color: transparent;
}

/* ====================DECLARE VARIABLES==================== */

:root {
    --bg: #f1f1f1;
    --lightgrey: #848484;
    --darkgrey: #646464;
    --black: #121212;
    --accent: #F4991A;

    --sidepadding: clamp(1.125rem, -2.4401rem + 11.4085vw, 11.25rem);

    --lockedvw: 1920px;
}

.darkgrey { color: var(--darkgrey); }
.active-nocolor { color: inherit; }
.active { color: var(--accent); }

.shadow { box-shadow: .5px 1px 4px rgba(14, 14, 14, .075); }

.black-hover { position: absolute; width: 100%; height: 100%; background-color: var(--black); opacity: 0; z-index: 75; }
.black-hover:hover { opacity: .11; transition: opacity .2s ease; }
.accent-hover:hover { color: #F4991A; transition: color 0.1s ease;}

.preload { position: fixed; width: 100%; overflow: hidden; }

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* ====================SKIP LINK==================== */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 999;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 0.75rem 1.5rem;
    background: var(--black);
    color: var(--bg);
    font-size: 1rem;
    text-decoration: underline;
    z-index: 999;
}

/* ====================BASIC CALLING==================== */

h1, h2, h3 { 
    font-weight: 500; 
    color: var(--black); 
}

p {
    font-family: inherit;
    font-weight: 400;
}

a {
    font-family: inherit;
    font-weight: 400;
    text-decoration: none;
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 2px;
}

input { all: unset; }
button { all: unset; cursor: pointer; text-align: center; /* unset removes this too so add it back */ }

.hr { 
    width: 100%;
    max-width: var(--lockedvw);
    margin: 0 auto;

    padding: 0 var(--sidepadding); 
}

/* ====================NAVIGATION==================== */

nav {
    width: 100%;
    max-width: var(--lockedvw);
    margin: 0 auto;

    padding: 20px var(--sidepadding);

    display: flex;
    align-items: center;
    gap: clamp(2rem, -1.7621rem + 16.0518vw, 17.5rem);

    white-space: nowrap;
}

nav > *:not(:first-child) { font-size: 15px; }

/* ====================STATUS==================== */

.status {
    width: 100%;
    max-width: var(--lockedvw);
    margin: 0 auto;

    padding: 30px var(--sidepadding);

    display: flex;
    align-items: center;
    gap: 7px;
    
    white-space: nowrap;

    & p {
        color: var(--darkgrey);
    }
}

.circle {
    height: 10px;
    width: 10px;
    background-color: #46d11c;
    border-radius: 50vw;
    display: inline-block;

    animation: blink 2s linear infinite;
}

/* ====================PORTFOLIO==================== */

.portfolio {
    width: 100%;
    max-width: var(--lockedvw);
    margin: 0 auto;

    padding: 0 var(--sidepadding);
}

.portfolio-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
}

@media (min-width: 768px) { .portfolio-wrapper { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .portfolio-wrapper { grid-template-columns: repeat(3, 1fr); } }

.portfolio-wrapper a { cursor: pointer; }
.portfolio-wrapper a:active { scale: .99; }

.portfolio-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    width: 100%;

    color: var(--darkgrey);

    & img {
        width: 100%;
        padding-bottom: 15px;
    }
}


/* ====================STATS==================== */

.stats {
    width: 100%;
    max-width: var(--lockedvw);
    margin: 0 auto;

    padding: 45px var(--sidepadding);    
}

.stats-wrapper {
    display: flex;
    flex-direction: column;
    gap: 45px; 
}

.stats-item {
    & h1 {
        font-size: clamp(2.8125rem, 2.5243rem + 1.2298vw, 4rem);
        font-weight: 400;
        margin: 0;
        line-height: 1;
        padding-bottom: 5px;
    }

    & h2 {
        font-size: clamp(1.5rem, 1.409rem + 0.3883vw, 1.875rem);
        font-weight: 400;
        margin: 0;
        line-height: 1;
    }
}

/* ====================STATS IMAGES==================== */

.stats-images {
    width: 100%;
    max-width: var(--lockedvw);
    margin: 0 auto;

    padding: 20px var(--sidepadding); 
    
    & img {
        user-select: none;          /* Prevents text/element selection */
        -webkit-user-select: none;
        -webkit-user-drag: none;    /* Prevents dragging (Safari/Chrome) */
        pointer-events: none;       /* Disables all mouse interaction */
    }
}

.stats-images-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

figcaption { padding: 10px 0; }

#stats-image_1 { width: clamp(21.5625rem, 15.8738rem + 24.2718vw, 45rem); }
#stats-image_2 { width: clamp(21.5625rem, 16.4806rem + 21.6828vw, 42.5rem); }
#stats-image_3 { width: clamp(21.5625rem, 19.5146rem + 8.7379vw, 30rem); }
#stats-image_4 { width: clamp(21.5625rem, 21.335rem + 0.9709vw, 22.5rem); }
#stats-image_5 { width: clamp(21.5625rem, 17.9976rem + 15.2104vw, 36.25rem); }

/* ====================ABOUT==================== */

.about {
    width: 100%;
    max-width: var(--lockedvw);
    margin: 0 auto;

    padding: clamp(3.125rem, 1.1529rem + 8.4142vw, 11.25rem) var(--sidepadding); 

    display: grid;
    place-items: center;
}

.about-wrapper {
    padding: 0 clamp(0rem, -9.9032rem + 31.6901vw, 28.125rem);

    display: flex;
    flex-direction: column;
    gap: 20px;

    font-size: clamp(1.125rem, 1.1553rem + -0.1294vw, 1rem);
}

/* ====================PORTFOLIO CONTENT==================== */

.portfolio-page-info {
    width: 100%;
    max-width: var(--lockedvw);
    margin: 0 auto;  
    
    padding: 60px var(--sidepadding); 

    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 1024px) { .portfolio-page-info { flex-direction: row; align-items: center; } }

.portfolio-page-info-title {
    padding-right: clamp(1.5rem, -16.7857rem + 28.5714vw, 17.5rem);

    white-space: nowrap;

    & h1 {
        font-size: 16px;
        padding-bottom: 12px;
    }
}

.porfolio-page-content {
    width: 100%;
    max-width: var(--lockedvw);
    margin: 0 auto;

    padding: 0 var(--sidepadding); 
}

.shorts-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

@media (min-width: 768px) { .shorts-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .shorts-grid { grid-template-columns: 1fr 1fr 1fr; } }

.shorts-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;

    display: flex;
    flex-direction: column;
    gap: 20px;

    & p {
        font-size: 15px;
        color: var(--darkgrey);
    }
}

.long-form-container {
    position: relative;
    min-width: 333px;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.shorts-container iframe,
.long-form-container iframe {
    width: 100%;
    height: 100%;
}

/* ====================FOOTER==================== */

footer {
    width: 100%;
    max-width: var(--lockedvw);
    margin: 0 auto;   
    
    padding: 80px var(--sidepadding) 30px; 
}

.footer-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;

    color: var(--lightgrey);

    gap: 20px;

    font-size: 15px;
    white-space: nowrap;

    & p {
        font-size: 11px;
        opacity: .5;
    }
}

.discord-link { position: relative; }

.discord-link button{
    display: flex;
    align-items: center;
    gap: 6px;

    fill: var(--lightgrey);
}

.clipboard-notice {
    position: absolute;

    background-color: var(--black);
    border-radius: 5px;

    width: 100%;
    padding: 8px;
    display: grid;
    place-items: center;

    bottom: 30px;
    margin: 0 auto;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;

    & p {
        color: white;
        font-weight: 500;
    }

    & svg {
        position: absolute;
        width: 16px;
        padding-top: 32px;
        fill: var(--black);
        z-index: -1;
    }
}

.clipboard-notice--show {
    opacity: 1;
    pointer-events: auto;
}

.clipboard-notice--hide {
    opacity: 0;
    pointer-events: none;
}