body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: #1E1E1E;
    color: white;
    font-size: 62.5%;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

h1 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 3.6rem;
    line-height: 130%;
    word-spacing: 5px;
    margin: 0;
}

.title {
    text-align: center;
    margin: 2vh auto 9vh auto;
    overflow-wrap: break-word;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.placementGrid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.article {
    height: fit-content;
    border: solid 5px #FA595E;
    border-radius: 20px;
    background-color: #2e2e2e;
    transition: 0.3s ease;
    text-decoration: none;
    box-shadow: 0px 4px 10px #FA595E;
}

.article:hover {
    transform: translateY(-5px);
    transition: 0.3s ease;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.article img {
    height: 50%;
    width: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0px 0px;
}

.articleText {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 2rem;
    margin: 0px 0 0px 0;
    letter-spacing: 1px;
    color: white;
}

.article p {
    font-size: 1rem;
    color: #cccccc;
}

.articleTags {
    display: flex;
    gap: 1rem;
}

.articleTag {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.articleTag:nth-child(1){
    background-color: #22814A;
}

.articleTag:nth-child(2){
    background-color: #5E77F9;
}

.articleTag:nth-child(3){
    background-color: #eca956;
}

.articleImage {
    height: 40vh;
    width: 100vw;
    object-fit: cover;
    object-position: center;
}

.subtitle {
    text-align: center;
    margin: 0 0 2vh 0;
    font-size: 1.4rem;
    color: #cccccc;
}

/* markdown rendering styles (Medium‐like dark theme) */
.markdown-body {
    color: #e0e0e0;
    font-size: 1.6rem;
    line-height: 1.7;
    width: 50vw;
    margin: 0 auto;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    font-family: "Pacifico", sans-serif;
    font-weight: 600;
    line-height: 1.25;
    margin-top: 2.4rem;
    margin-bottom: 1.2rem;
    color: #ffffff;
}

.markdown-body h1 {
    font-size: 2rem;
    font-style: italic;
}
.markdown-body h2 {
    font-size: 1.4rem;
}
.markdown-body h3 {
    font-size: 1rem;
}

.markdown-body p {
    margin: 1.2rem 0;
    font-size: 1rem;
}

.markdown-body li {
    font-size: 1rem;
}

.markdown-body a {
    color: #5E77F9;
    text-decoration: none;
}
.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body ul,
.markdown-body ol {
    margin: 1rem 0 1rem 2rem;
}

.markdown-body blockquote {
    border-left: 4px solid #444;
    padding-left: 1rem;
    color: #aaa;
    margin: 1rem 0;
}

.markdown-body code {
    background: #333;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Source Code Pro', monospace;
    font-size: 1.4rem;
}

.markdown-body pre {
    background: #2b2b2b;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}

.markdown-body img {
    max-width: 100%;
    display: block;
    margin: 1.2rem auto;
}

@media only screen and (max-width: 1024px) {
    .markdown-body {
        width: 60vw;
    }
}

@media only screen and (max-width: 768px) {
    .markdown-body {
        width: 90vw;
    }
}

@media only screen and (max-width: 880px) {
    .placementGrid {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 2.5rem;
    }
}

@media only screen and (max-width: 450px) {
    .article h2 {
        font-size: 1.4rem;
    }

    .article p {
        margin: 1rem 0;
    }

    .wrapper {
        padding: 1rem;
    }

    .markdown-body {
        width: calc(100vw - 2rem);
    }
}

@media only screen and (max-width: 370px) {
    .articleImage {
        height: 30vh;
    }

    .articleTags {
        flex-wrap: wrap;
    }
}