:root {
    --bg: #f7f7f5;
    --surface: #ffffff;
    --text: #15171a;
    --text-soft: #5f6368;
    --border: #deded9;

    --green: #18a957;
    --blue: #168bd2;
    --purple: #6548d8;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: 'Fira Code', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    min-height: 100vh;
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}


/* HEADER */

.site-header {
    background: #15191f;
    border: 0;
    padding: 18px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 54px;
    width: auto;
    display: block;
}

.site-slogan {
    color: #a9b0ba;
    font-size: 0.8rem;
    font-family: var(--mono);
}


/* MAIN */

.main-layout {
    padding: 70px 0 100px;
}

.content-area {
    width: min(900px, 100%);
    margin: 0 auto;
}


/* POSTS */

.post-list {
    width: 100%;
}

.post-card {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;

    padding: 42px 0;
    margin: 0;

    transition: none;
}

.post-card:hover {
    transform: none;
    border-color: var(--border);
}


/* FEATURED / NEWEST POST */

.post-list .post-card:first-child {
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--text);

    padding: 0 0 55px;
    margin-bottom: 12px;
}

.post-list .post-card:first-child::before {
    content: "LATEST";
    display: inline-block;

    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;

    letter-spacing: 0.12em;

    color: var(--purple);

    margin-bottom: 18px;
}


/* TITLES */

.post-title {
    margin: 0 0 12px;

    font-family: var(--font);
    font-size: 1.65rem;
    font-weight: 750;

    line-height: 1.2;
    letter-spacing: -0.035em;
}

.post-title a {
    color: var(--text);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--blue);
}

.post-list .post-card:first-child .post-title {
    max-width: 850px;

    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;

    letter-spacing: -0.055em;
}


/* DATE / CATEGORY */

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 18px;

    color: var(--text-soft);

    font-family: var(--mono);
    font-size: 0.72rem;
}

.badge {
    background: #e9f7ee;

    border: 0;
    border-radius: 100px;

    color: var(--purple);

    padding: 3px 9px;

    font-size: 0.67rem;
    font-weight: 600;
}


/* DESCRIPTION */

.post-description {
    max-width: 760px;

    color: var(--text-soft);

    font-size: 1rem;
    line-height: 1.75;

    margin-bottom: 20px;
}

.post-list .post-card:first-child .post-description {
    font-size: 1.1rem;
    max-width: 780px;
}


/* READ ARTICLE */

.read-more {
    display: inline-flex;
    align-items: center;

    color: var(--purple);

    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 600;

    text-decoration: none;
}

.read-more:hover {
    color: var(--blue);
}


/* SINGLE ARTICLE */

.single-post {
    background: transparent;
    border: 0;
    padding: 0;
}

.single-post:hover {
    transform: none;
}

.single-post .post-header {
    padding-bottom: 32px;
    margin-bottom: 40px;

    border-bottom: 1px solid var(--border);
}

.single-post .post-title {
    color: var(--text);

    font-family: var(--font);

    font-size: clamp(2.5rem, 6vw, 4.5rem);

    line-height: 1.05;
    letter-spacing: -0.055em;
}


/* ARTICLE */

.post-body {
    color: #33383e;

    font-size: 1.05rem;
    line-height: 1.85;
}

.post-body img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0 0 2.5rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2,
.post-body h3 {
    color: var(--text);
    font-family: var(--font);
}

.post-body h2 {
    margin: 3rem 0 1rem;

    font-size: 1.8rem;
    letter-spacing: -0.03em;
}

.post-body h3 {
    margin: 2.5rem 0 0.8rem;

    font-size: 1.4rem;
}

.post-body a {
    color: var(--blue);
}

.post-body strong {
    color: var(--text);
}
.post-body p,
.post-body h2,
.post-body h3,
.post-body ul,
.post-body ol,
.post-body blockquote {
    max-width: 760px;
}

/* CODE */

.post-body code {
    background: #e9e9e5;

    color: #4e38bd;

    padding: 3px 6px;

    border-radius: 4px;

    font-family: var(--mono);
}

.post-body pre {
    background: #15191f;
    color: #e8edf2;

    border-radius: 10px;

    padding: 22px;

    margin: 2rem 0;

    overflow-x: auto;
}

.post-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}


/* PAGINATION */

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 50px;

    font-family: var(--mono);
}

.pagination-side {
    flex: 1;
}

.pagination-right {
    text-align: right;
}

.page-number {
    color: var(--text-soft);
    font-size: 0.72rem;
}

.btn {
    background: var(--text);
    color: white;

    border: 0;
    border-radius: 6px;

    padding: 9px 14px;

    text-decoration: none;

    font-size: 0.75rem;
}

.btn:hover {
    background: var(--purple);
}


/* FOOTER */

.site-footer {
    background: #15191f;

    border: 0;

    color: #8e959e;

    padding: 38px 0;

    text-align: center;

    font-size: 0.78rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-content strong {
    color: #d7dce2;
}

.footer-tagline {
    font-family: var(--mono);
    font-size: 0.7rem;
}


/* MOBILE */

@media (max-width: 700px) {

    .container {
        width: calc(100% - 32px);
    }

    .site-header {
         background: #15191f;
        padding: 18px 0;
    }

    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo-img {
         height: 58px;
        width: auto;
    }

    .site-slogan {
        display: none;
    }

    .main-layout {
        padding: 45px 0 70px;
    }

    .post-list .post-card:first-child .post-title {
        font-size: 2.35rem;
    }

    .post-card {
        padding: 32px 0;
    }

    .post-title {
        font-size: 1.4rem;
    }

    .post-description {
        font-size: 0.95rem;
    }

}