/*
Theme Name: Maison Élégante
Theme URI: https://maisonelegante.com
Author: Maison Élégante
Author URI: https://maisonelegante.com
Description: A magazine-quality WordPress theme for home decor inspiration blogs. Features elegant editorial layouts, Pinterest-optimized imagery, and a warm, inviting design aesthetic perfect for interior design content.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
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: maison-elegante
Tags: blog, one-column, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, theme-options, translation-ready

Maison Élégante — Where Home Meets Inspiration.
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
    /* Colors */
    --me-bg: #FAF9F7;
    --me-bg-alt: #F5F2EE;
    --me-card-bg: #FFFFFF;
    --me-text: #2D2926;
    --me-text-light: #6B635B;
    --me-text-muted: #9B9389;
    --me-accent: #9CAF94;
    --me-accent-hover: #879D7F;
    --me-accent-alt: #D4A5A5;
    --me-border: #E8E4DF;
    --me-border-light: #F0ECE8;
    --me-shadow: rgba(45, 41, 38, 0.06);
    --me-shadow-md: rgba(45, 41, 38, 0.10);
    --me-overlay: rgba(45, 41, 38, 0.45);
    --me-white: #FFFFFF;

    /* Typography */
    --me-font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --me-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Sizes */
    --me-text-xs: 0.75rem;
    --me-text-sm: 0.875rem;
    --me-text-base: 1.125rem;
    --me-text-lg: 1.25rem;
    --me-text-xl: 1.5rem;
    --me-text-2xl: 1.75rem;
    --me-text-3xl: 2.25rem;
    --me-text-4xl: 3rem;

    /* Spacing */
    --me-space-xs: 0.25rem;
    --me-space-sm: 0.5rem;
    --me-space-md: 1rem;
    --me-space-lg: 1.5rem;
    --me-space-xl: 2rem;
    --me-space-2xl: 3rem;
    --me-space-3xl: 4rem;
    --me-space-4xl: 6rem;

    /* Layout */
    --me-container: 1200px;
    --me-content-width: 800px;
    --me-sidebar-width: 340px;
    --me-radius: 12px;
    --me-radius-sm: 8px;
    --me-radius-pill: 50px;
    --me-transition: 0.3s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--me-font-body);
    font-size: var(--me-text-base);
    line-height: 1.75;
    color: var(--me-text);
    background-color: var(--me-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom logo — inline display in header */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo-link img,
.me-header__logo-wrap img {
    display: inline-block;
    max-width: 220px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.me-header__tagline {
    font-size: var(--me-text-xs);
    color: var(--me-text-muted);
    margin: 0;
    letter-spacing: 0.04em;
}

a {
    color: var(--me-accent);
    text-decoration: none;
    transition: color var(--me-transition);
}

a:hover {
    color: var(--me-accent-hover);
}

ul,
ol {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--me-font-heading);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--me-text);
}

h1 {
    font-size: var(--me-text-4xl);
}

h2 {
    font-size: var(--me-text-3xl);
}

h3 {
    font-size: var(--me-text-2xl);
}

h4 {
    font-size: var(--me-text-xl);
}

h5 {
    font-size: var(--me-text-lg);
}

h6 {
    font-size: var(--me-text-base);
}

p {
    margin-bottom: var(--me-space-lg);
}

/* Container */
.me-container {
    width: 100%;
    max-width: var(--me-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--me-space-xl);
    padding-right: var(--me-space-xl);
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    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: var(--me-card-bg);
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    color: var(--me-text);
    display: block;
    font-size: var(--me-text-sm);
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --me-text-4xl: 2rem;
        --me-text-3xl: 1.625rem;
        --me-text-2xl: 1.375rem;
        --me-text-xl: 1.25rem;
    }

    .me-container {
        padding-left: var(--me-space-md);
        padding-right: var(--me-space-md);
    }
}