/*
Theme Name: Conservative.to
Theme URI: https://conservative.to/
Author: Toronto Consulting Group
Author URI: https://tcg.to/
Description: A modern, fast and accessible block theme for the Conservative.to media outlet. Built with full site editing, semantic HTML and minimal JavaScript, the theme prioritizes performance and readability while staying SEO‑friendly. It uses a system font stack, defines a simple colour palette and provides base styles for skip links, navigation and focus states.
Version: 1.0.0
License: MIT
License URI: https://opensource.org/licenses/MIT
Tags: blog, news, full-site-editing, accessibility-ready, minimal
Text Domain: conservative
Requires at least: 6.4
Tested up to: 6.5

Copyright (c) 2025 Toronto Consulting Group

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

@charset "utf-8";

/*
 * Base theme styles
 *
 * These rules complement the global styles generated from theme.json. They
 * handle elements that are not yet configurable via theme.json, such as
 * skip links, mobile navigation and custom focus outlines.
 */

/* Skip link hidden off screen until focused */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--neutral-light);
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Focus outlines for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--wp--preset--color--accent);
    outline-offset: 2px;
}

/* Category chip styling */
.category-chip {
    display: inline-block;
    background-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--neutral-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}

/* Post card links */
.post-card a {
    text-decoration: none;
    color: inherit;
}
.post-card a:hover {
    text-decoration: underline;
}

/* Mobile navigation toggle (only visible on small screens when custom nav is used) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--wp--preset--color--primary);
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
    }
    .primary-navigation {
        display: none;
        flex-direction: column;
        gap: var(--wp--preset--spacing--sm);
        background: var(--wp--preset--color--neutral-light);
        padding: var(--wp--preset--spacing--md);
        border: 1px solid var(--wp--preset--color--neutral-medium);
    }
    .primary-navigation.is-open {
        display: flex;
    }
}