/* Keep the site light even when the system prefers dark */
:root {
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-bg: #fff;
        --primary-text: #353d49;
        --secondary-text: #252627;
        --link-color: #879094;
        --shadow-color: rgba(0, 0, 0, 0.15);
        --borders: #555;
    }

    img {
        opacity: 1;
    }
}

/* Hide published date in post header */
.post-data time.dt-published {
    display: none;
}

/* Make header and footer logos larger while keeping them responsive */
header .logo img,
footer .logo img {
    height: 60px;
    max-width: 100%;
}

.post .e-content p,
.home-hero .home-intro p {
    text-align: justify;
    text-justify: inter-word;
}

.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1rem 0;
}

.home-hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: left;
}

.home-logo img {
    height: 120px;
    max-width: 100%;
    display: block;
}

.home-title {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.home-title .p-name {
    margin: 0;
}

.home-hero .home-intro {
    width: 100%;
    max-width: 800px;
}

/* Hide header logo on the home page in favor of the centered hero logo */
.home-page header .logo {
    display: none;
}

/* Right align menu on the home page even without the logo */
.home-page header {
    justify-content: flex-end;
}

/* Show more of the card images (less vertical crop) */
.card img {
    height: 250px;
    object-position: center;
}

/* Constrain post hero width to match content width */
.post-hero {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1rem;
    border-radius: 10px;
    overflow: hidden;
}
