/*
Theme Name: The Chronicle
Theme URI: https://github.com/google-deepmind/antigravity
Description: A simple, authoritative, and responsive editorial blog theme for WordPress with modular ad spaces, custom news tickers, and robust accessibility settings. Inspired by the authnews templates.
Version: 1.0.0
Author: Antigravity AI
Author URI: https://github.com/google-deepmind/antigravity
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-chronicle
Tags: one-column, two-columns, custom-menu, featured-images, flexible-header, translation-ready, accessibility-ready

This theme is designed to work with Tailwind CSS.
*/

/* Core Custom Layout & Animation Styles */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
}

body {
    font-family: 'Atkinson Hyperlegible Next', sans-serif;
    background-color: #f8f9ff;
    color: #121c2a;
    min-height: max(884px, 100dvh);
}

.breaking-ticker {
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.reading-rail {
    max-width: 720px;
    margin: 0 auto;
}

.reading-progress-bar {
    height: 4px;
    background: #ba1a1a; /* Burgundy accent */
    width: 0%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: width 0.1s ease-out;
}

.dyslexic-font {
    font-family: 'OpenDyslexic', sans-serif !important;
}

/* Custom Toggle Switch for Settings */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input { 
    opacity: 0; 
    width: 0; 
    height: 0; 
}

.slider {
    position: absolute; 
    cursor: pointer; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background-color: #76777d; 
    transition: .4s; 
    border-radius: 2px;
}

.slider:before {
    position: absolute; 
    content: ""; 
    height: 20px; 
    width: 20px; 
    left: 4px; 
    bottom: 4px;
    background-color: white; 
    transition: .4s; 
    border-radius: 1px;
}

input:checked + .slider { 
    background-color: #000000; 
}

input:checked + .slider:before { 
    transform: translateX(24px); 
}

input:focus + .slider { 
    box-shadow: 0 0 0 2px #2563EB; 
}
