/*
Theme Name: Saffron
Description: A premium, serif-led block theme for food blogs featuring a featured recipe hero, dynamic color schemes, and deep recipe integration.
Author: Locker Forge
Author URI: https://lockerforge.com
Version: 1.1.2
Requires at least: 6.0
Tested up to: 7.1
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: saffron
Tags: blog, food, one-column, two-columns, block-patterns, block-styles, custom-colors, editor-style, featured-images, full-site-editing, right-sidebar, sticky-post, threaded-comments, translation-ready, wide-blocks.
*/

/* --------------------------------------------------------------
   1. Base Typography & Reset
   (Heavy lifting is done by theme.json, this is fallback)
-------------------------------------------------------------- */
:root {
    --saffron-font-display: "Playfair Display", Georgia, serif;
    --saffron-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--saffron-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6,
.wp-block-post-title,
.wp-block-heading {
    font-family: var(--saffron-font-display);
    font-weight: 700;
    line-height: 1.2;
}

/* --------------------------------------------------------------
   2. WordPress Core Required Classes
-------------------------------------------------------------- */
.alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
}

.alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    font-size: 0.85em;
    color: #666;
    text-align: center;
    margin-top: 0.5em;
}

.sticky {
    display: block;
}

.gallery-caption {
    font-size: 0.85em;
    color: #666;
}

.bypostauthor {
    display: block;
}

/* 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 !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    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;
}

/* --------------------------------------------------------------
   3. Accessibility & Basic Interactions
-------------------------------------------------------------- */
a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Prevent FOUC for JS-dependent sticky header */
.js .site-header {
    transition: transform 0.3s ease-in-out;
}