/*
Theme Name: TM Theme
Theme URI: https://theresamatters.com
Description: Minimal theme for The Cozy Bunny Den. Custom pages via TM Pages plugin.
Version: 1.0.0
Author: The Cozy Bunny Den
Author URI: https://theresamatters.com
License: Proprietary
Text Domain: tm-theme
*/

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
    background-color: #FDFBF7;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #B889A6;
    text-decoration: none;
}

a:hover {
    color: #A97595;
}

/* ============================================
   BRAND VARIABLES (CSS Custom Properties)
   ============================================ */

:root {
    /* Primary Colors */
    --dusty-rose: #D4A5A5;
    --mauve: #B889A6;
    --charcoal: #333333;
    --dark-plum: #3E3340;
    --cream: #FDFBF7;
    --warm-pink-bg: #FBF7FA;
    --white: #FFFFFF;
    --light-pink: #fdeef1;

    /* CTA Colors */
    --cta-primary: #B889A6;
    --cta-primary-hover: #A97595;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Nunito Sans', sans-serif;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-max: 1100px;

    /* Border Radius */
    --btn-radius: 50px;
}

/* ============================================
   TYPOGRAPHY (Google Fonts)
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-plum);
    line-height: 1.2;
    margin-top: 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

@media (max-width: 768px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn,
button,
input[type="submit"] {
    display: inline-block;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--cta-primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--cta-primary-hover);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   WORDPRESS DEFAULTS
   ============================================ */

/* Entry content - no constraints, pages define their own */
.entry-content {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Screen reader text */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   BLANK TEMPLATE - Full Width, No Constraints
   ============================================ */

body.blank-template {
    background: none;
    margin: 0;
    padding: 0;
}

body.blank-template .entry-content,
body.blank-template article,
body.blank-template #main,
body.blank-template .site-main {
    max-width: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* ============================================
   DEFENSIVE STYLES - Prevent runaway elements
   ============================================ */

/* WordPress emoji - MUST be constrained */
img.emoji,
img[src*="s.w.org/images/core/emoji"] {
    width: 1em !important;
    height: 1em !important;
    max-width: 1em !important;
    max-height: 1em !important;
    vertical-align: -0.1em;
    display: inline !important;
}

/* SVGs need explicit constraints */
svg:not(.emoji) {
    max-width: 100%;
    height: auto;
}
