/*
Theme Name: Ultra Light
Theme URI: https://github.com/example/ultra-light
Author: Antigravity
Author URI: https://example.com
Description: The most lightweight, compatible, and "perfect" WordPress theme ever made. Zero bloat, maximum performance.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ultra-light
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* --- MODERN CSS RESET (Piccalilli Inspired) --- */

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--wp--preset--color--base, #ffffff);
    color: var(--wp--preset--color--contrast, #0f0f0f);
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- WORDPRESS CORE ALIGNMENTS --- */

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    width: 100vw;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* --- STRUCTURE --- */

.site-header {
    padding: var(--wp--preset--spacing--40, 1.5rem);
    border-bottom: 1px solid var(--wp--preset--color--gray-200, #eee);
}

.site-main {
    padding: var(--wp--preset--spacing--40, 2rem) var(--wp--preset--spacing--30, 1rem);
    max-width: var(--wp--style--global--content-size, 800px);
    margin: 0 auto;
}

.site-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--wp--preset--color--gray-200, #eee);
    color: var(--wp--preset--color--gray-600, #666);
}

/* --- ACCESSIBILITY --- */

/* Visible focus styles for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--wp--preset--color--contrast, #0f0f0f);
    outline-offset: 2px;
}

/* Fallback for browsers that don't support :focus-visible */
@supports not selector(:focus-visible) {
    :focus {
        outline: 2px solid var(--wp--preset--color--contrast, #0f0f0f);
        outline-offset: 2px;
    }
}

.skip-link:focus {
    top: 5px;
    left: 5px;
    z-index: 100000;
    color: var(--wp--preset--color--base, #ffffff);
    background-color: var(--wp--preset--color--branding, #0f0f0f);
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}