
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #090b18 0%,
            #11162c 42%,
            #1b2441 72%,
            #30244b 100%
        );
}


/* ============================================================
   BACKGROUND
   ============================================================ */

.background {
    position: fixed;
    inset: 0;

    overflow: hidden;

    pointer-events: none;
}

.background::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(255,255,255,.08),
            transparent 45%
        );
}

.glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(50px);

    opacity: .45;
}

.glow-one {
    width: 500px;
    height: 500px;

    top: -250px;
    right: -120px;

    background: rgba(207, 79, 154, .35);
}

.glow-two {
    width: 450px;
    height: 450px;

    bottom: -260px;
    left: -160px;

    background: rgba(68, 116, 220, .25);
}

.orb {
    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.07);

    box-shadow:
        inset 0 0 50px rgba(255,255,255,.025);
}

.orb-one {
    width: 430px;
    height: 430px;

    top: 18%;
    right: -270px;
}

.orb-two {
    width: 280px;
    height: 280px;

    bottom: 8%;
    left: -180px;
}


/* ============================================================
   PAGE
   ============================================================ */

.page {
    position: relative;

    width: min(940px, 94vw);

    margin: 0 auto;

    padding:
        42px 0 30px;
}


/* ============================================================
   HEADER
   ============================================================ */

.header {
    display: flex;

    align-items: center;

    gap: 25px;

    margin-bottom: 28px;
}

.avatar {
    width: 76px;
    height: 76px;

    flex: 0 0 76px;

    overflow: hidden;

    border-radius: 50%;

    border:
        2px solid rgba(255,255,255,.75);

    box-shadow:
        0 12px 35px rgba(0,0,0,.28);

    transition:
        transform .3s ease;
}

.avatar:hover {
    transform: scale(1.06);
}

.avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.header-text {
    flex: 1;
}

.eyebrow {
    margin-bottom: 7px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .24em;

    color:
        rgba(255,255,255,.48);
}

h1 {
    margin: 0;

    font-size: clamp(44px, 7vw, 68px);

    line-height: .95;

    letter-spacing: -.045em;
}

.header p {
    margin: 12px 0 0;

    font-size: 15px;

    color:
        rgba(255,255,255,.58);
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.navigation {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 28px;
}

.nav-link {
    display: inline-flex;

    align-items: center;

    min-height: 35px;

    padding: 0 15px;

    border-radius: 999px;

    border:
        1px solid rgba(255,255,255,.10);

    background:
        rgba(255,255,255,.045);

    color:
        rgba(255,255,255,.65);

    text-decoration: none;

    font-size: 12px;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}

.nav-link:hover {
    color: #fff;

    background:
        rgba(255,255,255,.10);

    transform:
        translateY(-2px);
}


/* ============================================================
   POSTS
   ============================================================ */

.posts {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.post {
    position: relative;

    min-height: 250px;

    padding: 28px;

    border-radius: 25px;

    border:
        1px solid rgba(255,255,255,.11);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.035)
        );

    box-shadow:
        0 20px 60px rgba(0,0,0,.18);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;

    animation:
        post-in .7s ease both;
}

.post:hover {
    transform:
        translateY(-5px);

    border-color:
        rgba(255,255,255,.20);

    box-shadow:
        0 28px 70px rgba(0,0,0,.25);
}

.post.featured {
    grid-column: span 2;

    min-height: 280px;

    background:
        linear-gradient(
            135deg,
            rgba(204,70,151,.17),
            rgba(255,255,255,.055) 55%,
            rgba(80,108,205,.10)
        );
}

.post:nth-child(2) {
    animation-delay: .08s;
}

.post:nth-child(3) {
    animation-delay: .16s;
}

@keyframes post-in {

    from {
        opacity: 0;

        transform:
            translateY(18px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* ============================================================
   POST CONTENT
   ============================================================ */

.post-meta {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 18px;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .12em;

    color:
        rgba(255,255,255,.43);
}

.separator {
    opacity: .5;
}

.post h2 {
    margin: 0 0 13px;

    max-width: 720px;

    font-size: clamp(25px, 4vw, 38px);

    line-height: 1.1;

    letter-spacing: -.025em;
}

.post:not(.featured) h2 {
    font-size: 25px;
}

.post p {
    max-width: 680px;

    margin: 0;

    font-size: 15px;

    line-height: 1.7;

    color:
        rgba(255,255,255,.62);
}

.read {
    position: absolute;

    left: 28px;
    bottom: 27px;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: #fff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition:
        gap .25s ease,
        color .25s ease;
}

.read span {
    font-size: 19px;
}

.read:hover {
    gap: 13px;

    color:
        #ff9fd5;
}

.soon {
    position: absolute;

    left: 28px;
    bottom: 27px;

    font-size: 11px;

    color:
        rgba(255,255,255,.34);
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
    margin-top: 28px;

    text-align: center;

    font-size: 11px;

    color:
        rgba(255,255,255,.30);
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .page {
        width: min(94vw, 560px);

        padding:
            25px 0 25px;
    }

    .header {
        align-items: flex-start;

        gap: 17px;
    }

    .avatar {
        width: 58px;
        height: 58px;

        flex-basis: 58px;
    }

    .header p {
        font-size: 13px;
    }

    .posts {
        grid-template-columns: 1fr;
    }

    .post.featured {
        grid-column: span 1;
    }

    .post {
        min-height: 245px;
    }

    .post.featured {
        min-height: 285px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;
    }
}
