/* ============== */
/*  Landing Page  */
/* ============== */
/* Property order: custom props → position → display/flex →
   sizing → spacing → typography → colors/borders */

.hero {
    color-scheme: dark;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 5rem;
    min-height: 90dvh;
    padding: 5rem 4rem 3rem;
    color: var(--d-clr-text);
    background: var(--clr-bg-highlight);
}

.hero__body {
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1rem;
    min-width: 0;
    max-width: var(--content-width);
}

.hero__body h1 {
    max-width: 700px;
    font-size: clamp(2rem, 4vw + 1rem, 3rem);
    text-wrap: balance;
}

.hero__desc {
    max-width: 450px;
    font-size: 1.25rem;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__image {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    flex-shrink: 0;
    width: 90%;
    height: 100%;
    max-width: 100%;
    min-width: 300px;
    mask-image: linear-gradient(to right, transparent 0%, #0004 50%, #0008 70%, #000a 100%);
}

.hero__image img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 48rem) {
    .hero {
        flex-direction: column;
        justify-content: flex-end;
    }

    .hero__image {
        width: 100%;
        min-width: 0;
        max-width: 400px;
    }
}

.main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 0 1rem;
}

.news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.news__article {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--clr-surface);

    img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 0.5rem;
    }
}

/*===============*/
/* Nav overrides */
/*===============*/

#nav {
    position: fixed;
    backdrop-filter: blur(25px) brightness(0.8);
    background: transparent;
    color: var(--clr-text-inv);
}