* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #3c3841;
    color: #fff;
    font-family: "Lucida Console", monospace;
}

/* Header Styles */

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: #ba90ef;
    padding: 10px;
    border-bottom: 2px solid #ba90ef;
}

.header-logo {
    display: flex;
    align-items: center;

    font-size: 3em;
}

.header-logo span{
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    font-size: .8em;
    transform: translateX(-0.08em);
}

header a {
    font-size: 2em;
    color: #fff;
    text-decoration: none;
    margin-right: 10px;
}

.header-links {
    align-self: flex-end;
}

.header-links a:hover {
    color: #ba90ef;
}

/* Header and Newsletter Section */


.hero-and-newsletter {
    position: relative;
    width: calc(100% - 32px);
    max-width: 1000px;
    margin: 48px auto;
}

/* Hero Panel */

.hero {
    position: relative;
    isolation: isolate;
    padding: 64px 40px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.hero::before {
    inset: 0;
    background: #ba90ef;
    clip-path: polygon(
        64px 0, 100% 0, 100% calc(100% - 64px),
        calc(100% - 64px) 100%, 0 100%, 0 64px
    );
    z-index: -10;
}

.hero::after {
    inset: 1px;
    background: #51495c;
    clip-path: polygon(
        63px 0, 100% 0, 100% calc(100% - 63px),
        calc(100% - 63px) 100%, 0 100%, 0 63px
    );
    z-index: -5;
}

.hero-eyebrow {
    color: #ba90ef;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero h2 {
    margin: 12px 0;
    font-size: 2.5em;
}

.hero-button {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 20px;
    background: #ba90ef;
    border-radius: 6px;
    color: #3c3841;
    text-decoration: none;
}

.hero-button:hover {
    background: #9c6fd1;
    color: #fff;
}

/* Newsletter Section */

.newsletter {
    position: absolute;
    top: 50%;
    left: calc(100% + 24px);
    width: 300px;
    padding: 24px;
    border-left: 2px solid #ba90ef;
    transform: translateY(-50%);
}

.newsletter h2 {
    margin-bottom: 12px;
    color: #ba90ef;
}

.newsletter p {
    margin-bottom: 16px;
}

.newsletter form {
    display: grid;
    gap: 12px;
}

.newsletter input,
.newsletter button {
    padding: 10px 12px;
    font: inherit;
}

.newsletter button {
    border: 0;
    background: #ba90ef;
    color: #3c3841;
    cursor: pointer;
}

/* Article and Feed Section */

.articles-and-feed {
    position: relative;
    width: calc(100% - 32px);
    max-width: 1000px;
    margin: 48px auto;
}

.feed {
    position: absolute;
    top: 35%;
    left: calc(100% + 24px);
    width: 300px;
    padding: 24px;
    border-left: 2px solid #ba90ef;
    transform: translateY(-50%);
}

.feed h2 {
    color: #ba90ef;
}

.feed-item {
    margin-top: 16px;
    padding: 16px;
    background: #45414b;
    border: 1px solid #655d6e;
}

.feed-item h3 {
    margin-bottom: 8px;
    color: #d5c9e2;
    font-size: 1em;
}

.feed-item p {
    margin-bottom: 12px;
    color: #c2bdc8;
    font-size: 0.9em;
    line-height: 1.5;
}

.feed-item .feed-button {
    color: #c5b7d8;
    font-size: 0.85em;
    text-decoration: none;
}

.feed-item .feed-button:hover {
    color: #ba90ef;
    text-decoration: underline;
}

/* Article Panels */

.article-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 0 auto;
    max-width: 1000px;
}

.article-panel {
    position: relative;
    isolation: isolate;
    padding: 24px;
}

.article-panel h2 {
    margin: 12px 0;
    font-size: 1.5em;
    color: #ba90ef;
}

.article-type {
    display: flex;
    justify-content: space-between;
}

.article-button::after {
    content: "";
    position: absolute;
    inset: 0;
}

.article-type p {
    color: #ba90ef;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.article-panel::before,
.article-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.article-panel::before {
    inset: 0;
    background: #ba90ef;
    clip-path: polygon(
        32px 0, 100% 0, 100% calc(100% - 32px),
        calc(100% - 32px) 100%, 0 100%, 0 32px
    );
    z-index: -10;
}

.article-panel::after {
    inset: 1px;
    background: #51495c;
    clip-path: polygon(
        31px 0, 100% 0, 100% calc(100% - 31px),
        calc(100% - 31px) 100%, 0 100%, 0 31px
    );
    z-index: -5;
}

.article-panel:nth-child(even)::before {
    clip-path: polygon(
        0 0, calc(100% - 32px) 0, 100% 32px,
        100% 100%, 32px 100%, 0 calc(100% - 32px)
    );
}

.article-panel:nth-child(even)::after {
    clip-path: polygon(
        0 0, calc(100% - 31px) 0, 100% 31px,
        100% 100%, 31px 100%, 0 calc(100% - 31px)
    );
}

/* Feed Panel Section */



/* Media Queries */

@media (max-width: 1360px) {
    .hero-and-newsletter {
        margin-bottom: 0;
    }

    .newsletter {
        position: static;
        width: auto;
        border-left: 0;
        border-top: 2px solid #ba90ef;
        transform: none;
        margin-top: 24px;
    }

    .articles-and-feed {
        margin-bottom: 0;
    }

    .feed {
        position: static;
        width: auto;
        border-left: 0;
        border-top: 2px solid #ba90ef;
        transform: none;
        margin-top: 24px;
    }
}

@media (max-width: 640px) {
    .article-panels {
        grid-template-columns: 1fr;
    }
}