/*
Theme Name: Storybook Storefront
Theme URI: https://github.com/westorybook/storybook-storefront
Author: Storybook Team
Description: Custom WooCommerce-compatible block theme engineered for a personalized children's storybook storefront.
Version: 0.1.0
Requires at least: 7.0
Tested up to: 7.1.3
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: storybook-storefront
Tags: block-theme, full-site-editing, e-commerce, custom-colors, custom-typography
*/

/* ==========================================================================
   CSS Custom Properties (Breakpoints & Tokens)
   ========================================================================== */
:root {
    --sb-breakpoint-sm: 640px;
    --sb-breakpoint-md: 768px;
    --sb-breakpoint-lg: 1024px;
    --sb-breakpoint-xl: 1280px;

    --sb-transition-fast: 150ms ease;
    --sb-transition-normal: 250ms ease;
}

/* ==========================================================================
   Base & Reset Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wp-site-blocks {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.site-main {
    flex: 1 0 auto;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Accessibility & Focus
   ========================================================================== */
:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent, #0284c7);
    outline-offset: 2px;
}

.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(--wp--preset--color--surface, #ffffff);
    clip: auto !important;
    clip-path: none;
    color: var(--wp--preset--color--contrast, #0f172a);
    display: block;
    font-size: 0.875rem;
    height: auto;
    left: 1rem;
    line-height: normal;
    padding: 0.75rem 1rem;
    position: fixed;
    top: 1rem;
    width: auto;
    z-index: 100000;
}
