/*
Theme Name: Validator First
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://example.com/
Description: Ultra minimal validator-first WordPress theme with paginated post list, category sidebar, and single post view.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: validator-first
*/

:root {
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --color-text: #111111;
    --color-muted: #555555;
    --color-border: #dddddd;
    --color-bg: #ffffff;
    --color-link: #0a58ca;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

a {
    color: var(--color-link);
}

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

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

.site {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: var(--space-md);
}

.site-header,
.site-footer {
    padding: var(--space-md) 0;
}

.site-header {
    border-bottom: 1px solid var(--color-border);
}

.site-footer {
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-lg);
    color: var(--color-muted);
}

.site-title {
    margin: 0;
    font-size: 1.75rem;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    margin: var(--space-xs) 0 0;
    color: var(--color-muted);
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: var(--space-lg);
    align-items: start;
}

.content-area,
.sidebar {
    min-width: 0;
    margin-top: 1rem;
}

.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-list-item,
.entry {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.post-list-item:last-child,
.entry:last-child {
    border-bottom: 0;
}

.entry-title,
.post-card-title {
    margin: 0 0 var(--space-xs);
    line-height: 1.25;
}

.entry-meta,
.post-card-meta {
    margin: 0 0 var(--space-sm);
    color: var(--color-muted);
    font-size: 0.95rem;
}

.entry-summary,
.entry-content {
    margin: 0;
}

.sidebar-title {
    margin-top: 0;
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li + li {
    margin-top: var(--space-xs);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    text-decoration: none;
}

.pagination .current {
    font-weight: 700;
}

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

.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    white-space: normal;
    padding: var(--space-xs) var(--space-sm);
    background: #f0f0f0;
}

@media (max-width: 800px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

.post-card-thumbnail {
    display: block;
    margin-bottom: 1rem;
}

.post-card-image {
    display: block;
    width: 100%;
    height: auto;
}

.site-footer-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
}

.site-footer-badges img {
    display: block;
}