/*
Theme Name: GoldenIris Theme
Theme URI: https://goldeneye.dev
Author: Tim Golden (GoldenEye)
Author URI: https://goldeneye.dev
Description: A modern WordPress theme for GoldenEye Content Hub with mini-sites support via Custom Post Types. Built with Tailwind CSS.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: goldeniris-theme
Tags: blog, portfolio, custom-colors, custom-menu, featured-images, full-width-template, threaded-comments
*/

/*
 * Main styles are handled by Tailwind CSS.
 * This file contains the theme header and any critical CSS that must load immediately.
 *
 * Build: npm run build:css
 * Watch: npm run watch:css
 */

/* CSS Custom Properties - Design Tokens */
:root {
    /* Colors - GoldenIris Brand */
    --color-gold: #C9A84C;
    --color-plum: #6B1F3A;
    --color-navy: #1B2A4A;
    --color-cream: #EFE7D0;
    --color-surface: #FAFAF8;

    /* Backgrounds */
    --color-bg: #EFE7D0;
    --color-bg-alt: #FAFAF8;
    --color-bg-dark: #1B2A4A;

    /* Text */
    --color-text: #1B2A4A;
    --color-text-muted: #4A5568;
    --color-text-light: #FAFAF8;

    /* Borders */
    --color-border: #CFC8B5;
    --color-border-dark: #1B2A4A;

    /* Status */
    --color-success: #4F7A5C;
    --color-warning: #D89B2B;
    --color-error: #8B2C2C;
    --color-info: #1B2A4A;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --container-max: 1280px;
    --container-padding: 1.5rem;

    /* Effects */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

    --transition: 150ms ease-in-out;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #1B2A4A;
        --color-bg-alt: #6B1F3A;
        --color-text: #FAFAF8;
        --color-text-muted: #CFC8B5;
        --color-border: #CFC8B5;
    }
}

/* Critical above-the-fold styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-gold);
    color: var(--color-navy);
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Dark theme prose overrides for Topics */
.entry-content.prose-invert {
    --tw-prose-body: #EFE7D0;
    --tw-prose-headings: #FAFAF8;
    --tw-prose-links: #C9A84C;
    --tw-prose-bold: #FAFAF8;
    --tw-prose-counters: #CFC8B5;
    --tw-prose-bullets: #CFC8B5;
    --tw-prose-hr: #CFC8B5;
    --tw-prose-quotes: #EFE7D0;
    --tw-prose-quote-borders: #C9A84C;
    --tw-prose-code: #FAFAF8;
    --tw-prose-pre-code: #EFE7D0;
    --tw-prose-pre-bg: rgba(27, 42, 74, 0.8);
    color: #EFE7D0;
}

.entry-content.prose-invert p,
.entry-content.prose-invert li,
.entry-content.prose-invert td,
.entry-content.prose-invert th {
    color: #EFE7D0;
}

.entry-content.prose-invert h1,
.entry-content.prose-invert h2,
.entry-content.prose-invert h3,
.entry-content.prose-invert h4 {
    color: #FAFAF8;
}

.entry-content.prose-invert a {
    color: #C9A84C;
}

.entry-content.prose-invert strong {
    color: #FAFAF8;
}
