/*
Theme Name: Evergrow Blogs
Theme URI: https://blog.withevergrow.com
Author: Evergrow
Author URI: https://withevergrow.com
Description: AWWWARDS-level blog theme for Evergrow — dark green, gold, cream design language with iPhone-safe animations and built-in SEO/AEO structured data. Appearance screenshot: place assets/images/hero_thumbnail.webp in the theme (recommended 1200×900).
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: evergrow-blog
Tags: blog, custom-colors, custom-logo, featured-images, threaded-comments, translation-ready

Evergrow — Blog Theme
Copyright 2026 Evergrow
*/

/* ==========================================================================
   CRITICAL ABOVE-FOLD CSS
   Inlined here so the first paint is styled before theme.css loads.
   ========================================================================== */

:root {
    --color-paper: #FAF9F6;
    --color-dark: #1A202C;
    --color-gold: #D5B473;
    --color-green: #45523E;
    --color-warm: #B87333;
    --color-deep-green: #2A3226;
    --color-off-white: #F2F0EA;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1280px;
    --content-width: 720px;
    --nav-height: 72px;
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-snap: cubic-bezier(0.86, 0, 0.07, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-dark);
    background-color: var(--color-paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

#page-wrapper {
    overflow-x: clip;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    word-wrap: normal !important;
}

/* Home: bento + featured carousel first paint (expanded in theme.css) */
.sp-bento {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.sp-featured-carousel__track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
