/*
Theme Name: MENGBAL.COM
Theme URI: https://www.mengbal.com
Author: Mengbal Editorial
Author URI: https://www.mengbal.com
Description: Minimal, content-first football culture webzine theme with classic editorial grid layout.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mengbal
Tags: blog, news, magazine, two-columns, right-sidebar, responsive-layout
*/

/* RESET & BASE
-------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: #111111;
    background-color: #f6f7fb;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0056b3; /* primary blue used only for links/CTAs */
    text-decoration: none;
}

a:hover,
a:focus {
    color: #003d80;
    text-decoration: underline;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 1rem;
}

:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

/* LAYOUT WRAPPERS
-------------------------------------------- */

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e3ef;
}

.site-header-topbar {
    background-color: #22252f;
    color: #f5f5f5;
    font-size: 0.75rem;
    padding: 0.35rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header-topbar a {
    color: #f5f5f5;
    text-decoration: none;
}

.site-branding-wrapper {
    padding: 1.75rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.site-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 700;
    font-size: 2.3rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
}

.site-title a {
    color: #222222;
    text-decoration: none;
}

.site-description {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #666a80;
}

/* MAIN NAVIGATION
-------------------------------------------- */

.main-navigation {
    border-top: 1px solid #e0e3ef;
    border-bottom: 1px solid #e0e3ef;
    background-color: #ffffff;
}

.main-navigation-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.main-menu > li > a {
    color: #202433;
}

.main-menu > li > a:hover,
.main-menu > li > a:focus {
    color: #0056b3;
}

/* Mobile nav toggle */

.menu-toggle {
    display: none;
    margin-left: auto;
    padding: 0.5rem 0.75rem;
    border-radius: 2px;
    border: 1px solid #c0c5d8;
    background-color: #ffffff;
    color: #222222;
}

.menu-toggle:focus-visible {
    outline: 2px solid #0056b3;
}

/* GRID LAYOUT: HOME / ARCHIVE
-------------------------------------------- */

.site-main-wrapper {
    flex: 1 0 auto;
    max-width: 1200px;
    margin: 1.5rem auto 2.5rem;
    padding: 0 1rem 0;
}

.layout-grid {
    display: grid;
    grid-template-columns: 3fr 1.25fr;
    grid-column-gap: 2.25rem;
    align-items: flex-start;
}

/* Side bar */

.site-sidebar {
    border-left: 1px solid #dde1f0;
    padding-left: 1.75rem;
    margin-top: 0.5rem;
}

.sidebar-section {
    margin-bottom: 2.5rem;
}

.sidebar-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #1e2230;
    margin: 0 0 0.85rem;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 0.75rem;
}

.sidebar-meta {
    font-size: 0.75rem;
    color: #767b92;
}

/* Home layout sections */

.home-hero-grid {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr;
    grid-column-gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.home-featured-main {
    border-right: 1px dotted #cfd3e4;
    padding-right: 1.75rem;
}

.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.75rem;
    color: #7b8095;
    margin-bottom: 0.75rem;
}

.section-heading {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.6rem;
    margin: 0 0 1.2rem;
    color: #181b24;
}

.featured-article-large {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0.9rem;
    background-color: #ffffff;
    padding: 1.2rem 1.2rem 1.4rem;
    border-radius: 4px;
    border: 1px solid #e0e3ef;
}

.featured-article-large .entry-meta {
    margin-bottom: 0.4rem;
}

.featured-article-large .entry-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.5rem;
    margin: 0 0 0.4rem;
}

.featured-article-large .entry-excerpt {
    font-size: 0.95rem;
    color: #3d4152;
    margin: 0 0 0.4rem;
}

.featured-article-large .entry-image {
    margin-bottom: 0.7rem;
}

/* Latest posts column in hero */

.latest-stack {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.latest-card {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 0.9rem;
    padding: 0.85rem 0.9rem 0.95rem;
    border-radius: 4px;
    background-color: #ffffff;
    border: 1px solid #e0e3ef;
}

.latest-card .entry-title {
    font-size: 0.95rem;
    margin: 0 0 0.3rem;
}

.latest-card .entry-meta {
    font-size: 0.75rem;
    color: #81869b;
}

/* Categories band */

.home-categories-band {
    margin-top: 0.5rem;
    padding-top: 2rem;
    border-top: 1px solid #d5d9ea;
}

.category-row-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.1rem;
}

.category-row-heading-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.25rem;
    margin: 0;
}

.category-row-heading a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.category-card {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #e0e3ef;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card .entry-title {
    font-size: 1rem;
    margin: 0 0 0.4rem;
}

.category-card .entry-meta {
    font-size: 0.75rem;
    color: #7b8195;
}

/* POSTS & TYPOGRAPHY
-------------------------------------------- */

.entry-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #7a7f92;
}

.entry-meta a {
    color: inherit;
}

.entry-meta a:hover,
.entry-meta a:focus {
    color: #0056b3;
}

.entry-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 700;
    color: #111111;
}

.entry-title a {
    color: inherit;
}

.entry-title a:hover,
.entry-title a:focus {
    color: #0056b3;
}

.entry-excerpt {
    font-size: 0.98rem;
    color: #2e3240;
}

.entry-content {
    font-size: 1rem;
    color: #161821;
}

.entry-content p {
    margin-bottom: 1.2rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: "Georgia", "Times New Roman", serif;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.entry-content blockquote {
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    border-left: 3px solid #0056b3;
    background-color: #f0f2fb;
    font-style: italic;
}

.entry-tags {
    margin-top: 1.2rem;
    font-size: 0.8rem;
}

/* SINGLE POST LAYOUT */

.single-article-header {
    margin-bottom: 1.8rem;
}

.single-article-header .entry-title {
    font-size: 2rem;
    margin: 0.5rem 0 0.75rem;
}

.single-article-header .entry-meta {
    margin-top: 0.35rem;
}

.single-hero-image {
    margin: 1.5rem 0;
}

/* PAGINATION */

.pagination {
    margin: 2rem 0 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* FOOTER
-------------------------------------------- */

.site-footer {
    margin-top: auto;
    background-color: #161925;
    color: #d2d5e4;
    padding: 2rem 1rem 1.5rem;
    font-size: 0.85rem;
}

.site-footer a {
    color: #ffffff;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.75rem;
    margin-bottom: 1.5rem;
}

.footer-column-title {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    color: #f0f2ff;
}

/* WIDGETS
-------------------------------------------- */

.widget {
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
}

.widget-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* ACCESSIBILITY UTILS */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: #0056b3;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* COMMENTS
-------------------------------------------- */

.comments-area {
    margin-top: 3rem;
    background-color: #ffffff;
    padding: 1.5rem 1.5rem 1.75rem;
    border-radius: 4px;
    border: 1px solid #e0e3ef;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-body {
    margin-bottom: 1.5rem;
}

.comment-meta {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* RESPONSIVE
-------------------------------------------- */

@media (max-width: 1024px) {
    .layout-grid {
        grid-template-columns: 2.3fr 1.2fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-navigation-inner {
        padding: 0.35rem 1rem;
    }

    .menu-toggle {
        display: inline-block;
    }

    .main-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        border-top: 1px solid #e0e3ef;
        padding: 0.75rem 0 0.9rem;
    }

    .main-menu.toggled-on {
        display: flex;
    }

    .site-main-wrapper {
        margin-top: 1rem;
    }

    .layout-grid {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }

    .site-sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #dde1f0;
        padding-top: 1.5rem;
    }

    .home-hero-grid {
        grid-template-columns: 1fr;
        row-gap: 1.75rem;
    }

    .home-featured-main {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px dotted #cfd3e4;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-header-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
