

/* =========================
    RESET
========================= */

* {
    /* outline: 0.5px solid lightblue; */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}


/* =========================
    GLOBAL STYLES
========================= */

:root {
    --color-bg: #FAF4EE;
    --color-text: #5A2F18;
    --color-accent: #D17632;
    --color-surface: #F5EAE2;
    --color-border: #C9A88C;
    --color-depth: #3D1E2E;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--color-bg);
    color: var(--color-text);
}

main {
    flex: 1;
}

.container {
    max-width: 1440px;
    margin-inline: auto;
    padding: 1.5rem;
}

h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.25;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.5rem);
    line-height: 1.35;
    margin-top: 1.6rem;
}

p {
    font-size: 1.2rem;
    max-width: 75ch;
    margin-block: 1.6rem;
    line-height: 1.7;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    color: var(--color-text)
}

a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 0.5rem;
    color: var(--color-text);
}

img {
    width: 100%;
}

.container img {
    width: 100%;
    border-radius: 6px;
}

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

header .container {
    display: flex;
    flex-direction: column;
}

header h1, .site-name {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: inherit;
}

header h1 a, .site-name a {
    color: inherit;
}

header ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


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

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer {
    background-color: var(--color-depth);
    color: var(--color-bg);
}


/* SINGLE POST ============================================================ */

.single-post-header {
    margin-bottom: 2.5rem;
}

.single-post-header h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 0.75rem;
}

.single-post-header p {
    margin-block: 0.6rem;
}

.single-post-sidebar {
    display: none;
}

article h2 {
    margin-top: 2.5rem;
}

article p {
    font-size: 1.15rem;
    max-width: 75ch;
}

.single-post-meta {
    font-size: 0.9rem;
    color: var(--color-border);
    margin-bottom: 0.4rem;
}

.single-post-disclosure {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--color-text);
    max-width: 65ch;
}

.single-post-disclosure a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.single-post-cover {
    margin-bottom: 2rem;
}

.single-post-featured-image {
    margin: 0;
}

.single-post-featured-image img {
    display: block;
    border-radius: 0;
    max-height: 58vh;
    object-fit: cover;
}

/* =========================
    DESKTOP
========================= */

@media (min-width: 1200px) {

    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    header ul {
        flex-direction: row;
        gap: 2rem;
    }

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

    .textLeft {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
    }

    .textImageBlock > img {
        width: 36%;
    }

    .cover-img {
        width: 100%;
        max-height: 60vh;
        object-fit: cover;
        display: block;
    }

    /* SINGLE POST ============================================================ */

    .single-post-layout {
        display: grid;
        grid-template-columns:
        1fr
        minmax(0,720px)
        minmax(320px,360px)
        1fr;
        gap: 2rem;
    }

    .single-post-sidebar {
        display: block;
        grid-column: 3;
        min-height: 150px;
        background-color: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: 12px;
    }

    .single-post-featured-image img {
        width: 100%;
        border-radius: 12px;
        max-height: 520px;
        object-fit: cover;
    }

    .single-post-layout article {
        grid-column: 2;
    }

}

