/*
Theme Name: CrispyTheme
Theme URI: https://github.com/christopherspenn/crispytheme
Author: Christopher S. Penn
Author URI: https://christopherspenn.com
Description: A high-performance, markdown-first WordPress Block Theme with built-in SEO capabilities. Features IBM Plex typography, dark mode support, and strict code quality standards.
Version: 1.1.0
Tested up to: 6.7
Requires at least: 6.6
Requires PHP: 8.1
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: crispy-theme
Tags: blog, one-column, two-columns, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, wide-blocks, translation-ready

CrispyTheme is a markdown-first WordPress theme designed for developers and writers
who prefer working with plain text content. It features strict type safety,
comprehensive SEO tools, and a lean, performance-focused architecture.
*/

/* ==========================================================================
   Base Styles - Explicit Color Reset
   Ensures proper text contrast in light and dark modes
   ========================================================================== */

body,
.wp-site-blocks,
.entry-content,
.wp-block-post-content {
	color: var(--wp--preset--color--foreground, #1e293b);
	background-color: var(--wp--preset--color--background, #ffffff);
}

/* Ensure text elements inherit proper color - DO NOT target divs */
p,
li,
span {
	color: inherit;
}

/* Headings should use foreground color explicitly */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
	color: var(--wp--preset--color--foreground, #1e293b);
}

/* Links */
a {
	color: var(--wp--preset--color--primary, #2563eb);
}

a:hover {
	color: var(--wp--preset--color--primary-dark, #1d4ed8);
}

/* Button text must be white on blue background */
.wp-block-button__link,
.wp-element-button {
	color: #ffffff !important;
	background-color: var(--wp--preset--color--primary, #2563eb);
}

.wp-block-button__link:hover,
.wp-element-button:hover {
	background-color: var(--wp--preset--color--primary-dark, #1d4ed8);
}

/* ==========================================================================
   Dark Mode Base Overrides
   ========================================================================== */

.dark-mode body,
.dark-mode .wp-site-blocks,
.dark-mode .entry-content,
.dark-mode .wp-block-post-content {
	color: var(--wp--preset--color--foreground, #e6edf3);
	background-color: var(--wp--preset--color--background, #0d1117);
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6,
.dark-mode .wp-block-heading {
	color: var(--wp--preset--color--foreground, #e6edf3);
}

.dark-mode a {
	color: var(--wp--preset--color--primary, #58a6ff);
}
