/*
Theme Name: Kayapool Blog
Theme URI: https://kayapool.co.ke/blog
Author: Kayapool
Author URI: https://kayapool.co.ke
Description: A fast, SEO-focused WordPress theme for Kayapool editorial posts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: kayapool-blog
*/

:root {
    --bg: #050a0f;
    --panel: #0b1722;
    --panel-soft: #102334;
    --text: #f7fbff;
    --muted: rgba(247, 251, 255, 0.66);
    --line: rgba(255, 255, 255, 0.11);
    --brand: #22c55e;
    --accent: #38bdf8;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration-color: rgba(56, 189, 248, 0.45);
    text-underline-offset: 0.2em;
}

a:hover {
    color: #e0f7ff;
}

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

.skip-link {
    left: 1rem;
    position: absolute;
    top: -4rem;
    z-index: 20;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(5, 10, 15, 0.92);
}

.wrap {
    margin: 0 auto;
    max-width: var(--max);
    padding: 0 1rem;
}

.nav {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    font-weight: 900;
    letter-spacing: 0.18em;
    line-height: 1.1;
    text-decoration: none;
    text-transform: uppercase;
}

.brand span {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    margin-top: 0.25rem;
}

.nav-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

.button {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 800;
    min-height: 40px;
    padding: 0.55rem 0.8rem;
    text-decoration: none;
}

.button-primary {
    background: var(--accent);
    border-color: transparent;
    color: #03111c;
}

.hero {
    border-bottom: 1px solid var(--line);
    padding: clamp(2.75rem, 7vw, 5.25rem) 0;
}

.eyebrow {
    color: #a7f3d0;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.08;
}

.hero h1,
.page-title {
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    letter-spacing: 0;
    margin: 0;
    max-width: 900px;
}

.hero p,
.archive-intro {
    color: var(--muted);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 720px;
}

.content-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    padding: 2rem 0 3rem;
}

.post-card {
    background: linear-gradient(180deg, rgba(16, 35, 52, 0.9), rgba(11, 23, 34, 0.96));
    border: 1px solid var(--line);
    border-radius: 0.55rem;
    min-height: 100%;
    padding: 1rem;
}

.post-card h2 {
    font-size: 1.25rem;
    margin: 0.6rem 0;
}

.meta {
    color: rgba(247, 251, 255, 0.55);
    font-size: 0.86rem;
}

.excerpt {
    color: var(--muted);
}

.read-more {
    color: #bae6fd;
    font-weight: 800;
}

.single-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
    padding: 2.5rem 0 3.5rem;
}

.article {
    margin: 0 auto;
    max-width: 780px;
    width: 100%;
}

.article h1 {
    font-size: clamp(2rem, 6vw, 3.8rem);
    margin: 0.65rem 0;
}

.entry-content {
    color: rgba(247, 251, 255, 0.82);
    font-size: 1.08rem;
}

.entry-content h2,
.entry-content h3 {
    color: var(--text);
    margin-top: 2rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
    margin-bottom: 1.25rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--brand);
    color: #dffcec;
    margin: 1.5rem 0;
    padding-left: 1rem;
}

.post-nav,
.pagination {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    color: rgba(247, 251, 255, 0.56);
    padding: 2rem 0;
}

.not-found {
    padding: 4rem 0;
}

@media (max-width: 720px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-links {
        justify-content: flex-start;
    }
}
