/*
Theme Name: Web Pixels Ultra Light
Theme URI: https://web-pixels.local/
Author: Web Pixels
Author URI: https://web-pixels.local/
Description: Ultra-lightweight, speed-optimized WordPress theme with adjustable content width.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: webpixels-ultra-light
*/

:root {
    --wpul-content-width: 1140px;
    --wpul-body-bg: #ffffff;
    --wpul-text: #111827;
    --wpul-muted: #4b5563;
    --wpul-border: #e5e7eb;
    --wpul-link: #0f5bd8;
    --wpul-link-hover: #0b44a2;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--wpul-text);
    background: var(--wpul-body-bg);
}

a {
    color: var(--wpul-link);
    text-decoration-thickness: 1px;
}

a:hover,
a:focus {
    color: var(--wpul-link-hover);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.site-width {
    width: min(100% - 2rem, var(--wpul-content-width));
    margin-inline: auto;
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

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

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

.menu-toggle {
    display: none;
}

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

.main-nav a {
    text-decoration: none;
    color: var(--wpul-text);
}

.site-main {
    padding: 1.5rem 0 2rem;
}

.wpul-breadcrumbs {
    margin: 0 0 1rem;
}

.wpul-breadcrumbs-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    color: var(--wpul-muted);
    font-size: 0.92rem;
}

.wpul-breadcrumbs-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.wpul-breadcrumbs-item + .wpul-breadcrumbs-item::before {
    content: '/';
    color: var(--wpul-border);
}

.wpul-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.wpul-breadcrumbs a:hover,
.wpul-breadcrumbs a:focus {
    color: var(--wpul-link-hover);
}

.entry {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--wpul-border);
}

.entry:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.entry-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    line-height: 1.2;
}

.entry-meta {
    margin: 0 0 0.75rem;
    color: var(--wpul-muted);
    font-size: 0.9rem;
}

.entry-content,
.entry-summary {
    overflow-wrap: anywhere;
}

.wp-block-image,
figure {
    margin: 0 0 1rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border: 1px solid var(--wpul-border);
    border-radius: 0.35rem;
    text-decoration: none;
    color: var(--wpul-text);
}

.pagination .current {
    background: var(--wpul-text);
    color: #fff;
    border-color: var(--wpul-text);
}

.site-footer {
    border-top: 1px solid var(--wpul-border);
    padding: 1.25rem 0 1.75rem;
    color: var(--wpul-muted);
    font-size: 0.92rem;
}

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

.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    padding: 0.5rem 0.75rem;
    background: #111;
    color: #fff;
    z-index: 9999;
}

@media (max-width: 782px) {
    html,
    body {
        overflow-x: hidden;
    }

    .site-width,
    .site-main,
    .site-header,
    .site-footer {
        max-width: 100%;
    }

    .entry-content > * {
        max-width: 100%;
    }

    .site-main {
        padding-top: 1rem;
    }
}
