/*
Theme Name: BookRivo
Theme URI: https://bookrivo.org/
Author: Ahmod Musa
Author URI: https://ahmodmusa.com/
Description: Modern Bookstore & Publisher WooCommerce Theme. Lightweight, accessible, block-ready, and optimized for publishers, indie bookstores, and authors.
Version: 1.6.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bookrivo
Tags: e-commerce, block-patterns, full-site-editing, custom-colors, custom-menu, featured-images, translation-ready, rtl-language-support, wide-blocks, accessibility-ready

BookRivo WordPress Theme, (C) 2026 BookRivo Team
BookRivo is distributed under the terms of the GNU GPL.
*/

/* Reset & Base Foundation styles for Block Theme fallback */
:root {
    --bookrivo-forest-green: #18392F;
    --bookrivo-forest: #18392F;
    --bookrivo-warm-ivory: #FAF8F2;
    --bookrivo-ivory: #FAF8F2;
    --bookrivo-antique-gold: #BA9054;
    --bookrivo-gold: #BA9054;
    --bookrivo-ink-black: #24352D;
    --bookrivo-ink: #24352D;
    --bookrivo-paper-white: #FFFFFF;
    --bookrivo-white: #FFFFFF;
    --bookrivo-muted-gray: #70796F;
    --bookrivo-muted: #70796F;
    --bookrivo-border-subtle: #E8E7DF;
    --bookrivo-line: #E8E7DF;
}

html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
    background-color: var(--wp--preset--color--warm-ivory, var(--bookrivo-warm-ivory));
    color: var(--wp--preset--color--ink-black, var(--bookrivo-ink-black));
    font-family: var(--wp--preset--font-family--body, 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Accessibility: Focus Visible for Keyboard Users (Suppress on Mouse Clicks) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible),
summary:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--wp--preset--color--antique-gold, var(--bookrivo-antique-gold, #c79a57));
    outline-offset: 3px;
    border-radius: 4px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--wp--preset--color--antique-gold, var(--bookrivo-antique-gold, #c79a57));
    outline-offset: 1px;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--bookrivo-paper-white);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--bookrivo-forest-green);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
