:root {
    --primary-text-color: white;
    --secondary-text-color: black;
    --tertiary-text-color: lightgray;
    
    --primary-highlight-color: #F9A73F;

    --primary-bg-color: black;
    --secondary-bg-color: #171717;

    --primary-btn-color: #F9A73F;
}

*, *::before, *::after {
    box-sizing: inherit;
}

* {
    font: inherit;
    margin: 0;
    padding: 0;
}

html {
    box-sizing: border-box;
}

img, picture, svg {
    display: block;
    max-width: 100%;
}

body {
    color: var(--primary-text-color);
    font-family: Arial, sans-serif;
    background-color: var(--primary-bg-color);
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Navigation */
.primary-header {
    background-color: var(--primary-bg-color);
    padding: .5rem 2rem;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-Logo {
    flex-shrink: 0;
}

.logo {
    width: 150px;
    height: 50px;
}

.mobile-nav-toggle {
    display: none;
}

.primary-nav {
    width: 100%;
    margin-right: 1rem;
    z-index: 10;
}

.nav-list {
    display: flex;
    justify-content: end;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: bold;
}

.nav-list a {
    color: var(--primary-text-color);
}

.nav-list a:hover,
.nav-list a:focus {
    color: var(--primary-btn-color);
}

.nav-buy {
    white-space: nowrap;
    font-size: 1.25rem;
    background-color: var(--primary-btn-color);
    padding: .5rem 1rem;
    border-radius: .15rem;
    border: none;
}

.nav-buy:link, .nav-buy:visited, .nav-buy:active {
    color: var(--secondary-text-color);
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, .25);
    position: relative;
    height: 37.5vw;
    min-height: 40vh;
}

.video-bg {
    position: absolute;
    z-index: -10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.hero-btn-wrapper {
    margin-top: 2rem;
}

.hero-btn{
    white-space: nowrap;
    font-size: 1.5rem;
    background-color: var(--primary-btn-color);
    margin-left: 1rem;
    padding: .5rem 1.25rem;
    border-radius: .15rem;
    border: none;
}

.hero-btn:link, .hero-btn:visited, .hero-btn:active {
    color: var(--secondary-text-color);
}

/* About */
.about-grid-container {
    display: grid;
}

.about-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 3rem 4rem;
}

.about-heading {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-highlight-color);
}

.about-context {
    margin-top: 1rem;
    font-size: 1.125rem;
}

.about-img {
    width: 100%;
    height: 100%;
    max-height: 500px;
}

/* News and Community */
.news-heading, .community-heading {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin: 3.5rem 0;
}

.news-grid-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 10rem;
}

.news-card:link, .news-card:visited, .community-card:link, .community-card:visited  {
    color: var(--primary-text-color);
}

.news-img, .community-img {
    min-width: 300px;
}

.news-date {
    color: var(--tertiary-text-color);
    margin: 1rem 0;
}

.news-title {
    font-size: 1.5rem;
}

.community-grid-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 10rem;
}

.community-title {
    font-size: 1.5rem;
    margin: 1rem 0;
}

/* Footer */
.primary-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 3.5rem;
    padding: 2rem 5rem;
    background-color: var(--secondary-bg-color);
}

.footer-logo {
    width: 90px;
    height: 30px;
}

.socials-nav {
    display: flex;
    gap: 1rem;
}

.socials-icon {
    width: 30px;
    height: 30px;
}

/* Media Queries */
@media (max-width: 1475px) {
    .news-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1025px) {
    /* Navigation */
    .mobile-nav-toggle {
        display: block;
        cursor: pointer;
        background: none;
        border: 0;
    }

    .primary-nav {
        display: none;
        position: absolute;
        inset: 4rem 0 auto;
        background-color: var(--primary-bg-color);
        padding-bottom: 1rem;
    }
    
    .primary-nav[data-visible] {
        display: block;
    }

    .nav-list {
        display: grid;
        justify-content: center;
        text-align: center;
        gap: 1rem;
    }

    .nav-buy {
        display: none;
    }

    /* Hero */
    .hero-logo {
        width: 319px;
        height: 73px;
    }

    .hero-btn-wrapper {
        margin-top: 1rem;
    }

    .hero-btn{
        font-size: 1rem;
        padding: .5rem 1rem;
    }

    /* About */
    .about-text-container {
        margin: 3rem 2rem;
    }

    .about-heading {
        font-size: 2.5rem;
    }

    /* News and Community */
    .news-grid-container, .community-grid-container  {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .news-img, .community-img {
        max-height: 300px;
    }

    .news-heading, .community-heading {
        font-size: 2.5rem;
    }
}

@media (min-width: 800px) {
    .about-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .about-img {
        grid-row: 1 / 2;
        max-height: 363px;
    }

    .news-grid-container, .community-grid-container  {
        margin: 0 3rem;
    }

    .primary-footer {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 3rem;
    }

    .footer-logo-link {
        align-self: flex-start;
    }
}

@media (max-width: 550px) {
    .about-heading, .news-heading, .community-heading {
        font-size: 2rem;
    }

    .about-context {
        font-size: 1rem;
    }

    .news-title {
        font-size: 1.25rem;
    }
}