/*
Theme Name: SpillKits Online Blog
Theme URI: https://spillkits.online/
Author: SpillKits Online
Author URI: https://spillkits.online/
Description: Minimal high-contrast blog theme using SpillKits Online yellow/black palette. Optimised for blogging with a simple contact page.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spillkits-online
*/

:root {
    --sko-yellow: #FFD60A;
    --sko-black: #111111;
    --sko-white: #FFFFFF;
    --sko-grey: #D9D9D9;
    --sko-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--sko-font-sans);
    color: var(--sko-white);
    background: radial-gradient(circle at top left, #222222 0, #000000 55%);
    line-height: 1.6;
}

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

a:hover,
a:focus {
    text-decoration: underline;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background-color: var(--sko-black);
    border-bottom: 3px solid var(--sko-yellow);
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title a {
    color: var(--sko-white);
}

.site-description {
    margin: 0;
    font-size: 0.85rem;
    color: var(--sko-grey);
}

.sko-logo-badge {
    width: 40px;
    height: 48px;
    border-radius: 6px;
    background-color: var(--sko-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sko-black);
    font-weight: 800;
    font-size: 0.55rem;
    flex-shrink: 0;
}

.main-navigation {
    display: flex;
    gap: 1rem;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.main-navigation a {
    color: var(--sko-white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
    color: var(--sko-yellow);
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--sko-grey);
    color: var(--sko-white);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.site-main {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.post-card {
    background-color: rgba(17,17,17,0.92);
    border-radius: 10px;
    border: 1px solid #222;
    padding: 1.5rem;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.6);
    border-color: var(--sko-yellow);
}

.post-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.post-card-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sko-grey);
    margin-bottom: 0.75rem;
}

.post-card-excerpt {
    font-size: 0.95rem;
    color: var(--sko-grey);
}

.post-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post-card-readmore::after {
    content: "→";
    font-size: 0.85rem;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.single-article,
.page-article {
    max-width: 760px;
    margin: 0 auto;
    background-color: rgba(17,17,17,0.96);
    border-radius: 10px;
    border: 1px solid #222;
    padding: 2rem 2rem 2.5rem;
    box-shadow: 0 18px 44px rgba(0,0,0,0.55);
}

.single-article h1,
.page-article h1 {
    margin-top: 0;
    font-size: 2rem;
}

.entry-meta {
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--sko-grey);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.entry-content {
    font-size: 1rem;
    color: var(--sko-grey);
}

.entry-content h2,
.entry-content h3 {
    color: var(--sko-white);
}

.entry-content a {
    font-weight: 600;
}

.entry-footer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--sko-grey);
    border-top: 1px solid #222;
    padding-top: 1rem;
}

.category-links a {
    margin-right: 0.5rem;
}

.site-footer {
    background-color: #050505;
    border-top: 2px solid #222;
    color: var(--sko-grey);
    font-size: 0.8rem;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.footer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

.footer-menu a {
    color: var(--sko-grey);
}

.footer-menu a:hover {
    color: var(--sko-yellow);
}

.sko-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #333;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sko-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background-color: var(--sko-yellow);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    border: 1px solid #333;
    font-size: 0.85rem;
}

.pagination .current,
.pagination .page-numbers:hover {
    background-color: var(--sko-yellow);
    border-color: var(--sko-yellow);
    color: var(--sko-black);
}

.contact-intro {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--sko-grey);
}

.contact-grid {
    display: grid;
    gap: 1.5rem;
}

.contact-panel {
    background-color: #0b0b0b;
    border-radius: 8px;
    border: 1px solid #222;
    padding: 1.25rem 1.5rem;
}

.contact-panel h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.contact-panel p {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}

.contact-note {
    font-size: 0.8rem;
    color: var(--sko-grey);
    margin-top: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-navigation {
        width: 100%;
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 0.75rem;
        display: none;
    }
    .main-navigation.toggled ul {
        display: flex;
    }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }
    .single-article,
    .page-article {
        padding: 1.5rem 1.25rem 2rem;
    }
}
