/*
Theme Name: Wito Blog
Theme URI: https://wito.co.ke/blog/
Author: Wito
Author URI: https://wito.co.ke/
Description: A custom editorial theme for Wito's event production and event operations blog.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: wito-blog
*/

:root {
    --wito-purple: #6d007d;
    --wito-deep: #27002f;
    --wito-pink: #ef1855;
    --wito-yellow: #fdec07;
    --wito-ink: #201124;
    --wito-muted: #6c5a70;
    --wito-soft: #fbf6fb;
    --wito-line: rgba(109, 0, 125, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--wito-soft);
    color: var(--wito-ink);
    font-family: Poppins, Outfit, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wito-wrap {
    width: min(100% - 32px, 1180px);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: linear-gradient(90deg, var(--wito-purple), #8d0087);
    box-shadow: 0 18px 48px rgba(39, 0, 47, 0.22);
}

.site-nav {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 900;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 10px;
    background: #27002f;
    color: var(--wito-yellow);
    font-size: 23px;
    line-height: 1;
}

.brand-mark::after {
    content: "";
    position: absolute;
    right: -5px;
    top: -5px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--wito-pink);
    box-shadow: 0 0 0 2px var(--wito-yellow);
}

.brand-name {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.brand-tag {
    display: block;
    margin-top: 3px;
    color: var(--wito-yellow);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.nav-links a {
    opacity: 0.92;
}

.nav-links a:hover {
    color: var(--wito-yellow);
}

.nav-cta {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    border-radius: 999px;
    background: var(--wito-yellow);
    color: var(--wito-deep);
    padding: 0 22px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.blog-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(109, 0, 125, 0.83), rgba(90, 0, 99, 0.86)),
        radial-gradient(circle at 75% 18%, rgba(253, 236, 7, 0.28), transparent 28%),
        linear-gradient(135deg, #6d007d, #ef1855);
    color: #fff;
}

.blog-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 132px 132px;
    opacity: 0.55;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 430px;
    align-items: center;
    padding: 78px 0;
}

.hero-kicker,
.section-kicker {
    color: var(--wito-yellow);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.hero-title {
    max-width: 820px;
    margin: 18px 0 0;
    font-size: clamp(42px, 8vw, 86px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 660px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 700;
    line-height: 1.7;
}

.blog-main {
    padding: 56px 0 72px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: start;
}

.post-list {
    display: grid;
    gap: 22px;
}

.post-card,
.single-card,
.sidebar-card {
    border: 1px solid var(--wito-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(60, 0, 75, 0.08);
}

.post-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    overflow: hidden;
}

.post-thumb {
    min-height: 230px;
    background:
        radial-gradient(circle at 30% 22%, rgba(253, 236, 7, 0.42), transparent 24%),
        linear-gradient(145deg, var(--wito-purple), var(--wito-pink));
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    padding: 28px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--wito-pink);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.post-title {
    margin: 10px 0 0;
    color: var(--wito-deep);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
}

.post-title a:hover {
    color: var(--wito-purple);
}

.post-excerpt {
    margin: 14px 0 0;
    color: var(--wito-muted);
    font-weight: 600;
}

.read-more {
    display: inline-flex;
    margin-top: 18px;
    border-radius: 999px;
    background: var(--wito-yellow);
    color: var(--wito-deep);
    padding: 11px 18px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.single-card {
    padding: clamp(24px, 4vw, 46px);
}

.single-card .post-title {
    font-size: clamp(36px, 6vw, 64px);
}

.entry-content {
    margin-top: 26px;
    color: #332238;
    font-size: 18px;
}

.entry-content h2,
.entry-content h3 {
    color: var(--wito-deep);
    line-height: 1.12;
}

.entry-content a {
    color: var(--wito-purple);
    font-weight: 800;
}

.entry-content blockquote {
    margin: 28px 0;
    border-left: 5px solid var(--wito-yellow);
    background: var(--wito-soft);
    padding: 18px 22px;
    color: var(--wito-deep);
    font-size: 20px;
    font-weight: 800;
}

.sidebar {
    display: grid;
    gap: 18px;
}

.sidebar-card {
    padding: 22px;
}

.sidebar-card h2,
.sidebar-card h3 {
    margin: 0 0 14px;
    color: var(--wito-deep);
    font-size: 18px;
    font-weight: 900;
}

.sidebar-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-card li + li {
    margin-top: 10px;
}

.sidebar-card a {
    color: var(--wito-muted);
    font-weight: 800;
}

.sidebar-card a:hover {
    color: var(--wito-purple);
}

.search-form {
    display: grid;
    gap: 10px;
}

.search-field {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--wito-line);
    border-radius: 8px;
    padding: 0 14px;
    color: var(--wito-deep);
    font: inherit;
    font-weight: 700;
}

.search-submit {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--wito-deep);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.page-numbers {
    display: grid;
    min-width: 40px;
    min-height: 40px;
    place-items: center;
    border: 1px solid var(--wito-line);
    border-radius: 999px;
    background: #fff;
    color: var(--wito-deep);
    font-weight: 900;
}

.page-numbers.current {
    background: var(--wito-yellow);
}

.empty-state {
    padding: 42px;
    text-align: center;
}

.site-footer {
    background: var(--wito-deep);
    color: #fff;
    padding: 42px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .site-nav,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .post-card {
        grid-template-columns: 1fr;
    }

    .post-thumb {
        min-height: 220px;
    }
}

@media (max-width: 560px) {
    .wito-wrap {
        width: min(100% - 24px, 1180px);
    }

    .hero-inner {
        min-height: 360px;
        padding: 54px 0;
    }

    .post-body,
    .sidebar-card {
        padding: 20px;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
    }
}
