@font-face {
font-display:swap;
    font-family: 'Playfair';
    font-style: normal;
    font-display: swap;
    font-weight: 300 900;
    src: url('/wp-content/themes/generatepress-child/./assets/fonts/playfair-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-display:swap;
    font-family: 'Playfair Display';
    font-style: normal;
    font-display: swap;
    font-weight: 400 900;
    src: url('/wp-content/themes/generatepress-child/./assets/fonts/playfair-display-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 Theme Name:     GeneratePress Child
 Theme URI:      https://fursone.com/
 Description:    GeneratePress Child Theme for Fursone Premium Textile Manufacturer.
 Author:         Delia
 Author URI:     https://fursone.com
 Template:       generatepress
 Version:        1.1.0
*/

/* ==========================================================================
   Design Tokens
   Brand: heritage textile (since 1995). Warm craft palette is the established
   identity and is intentionally preserved. Shadows are tinted toward the
   warm charcoal, never pure black.
   ========================================================================== */
:root {
    /* Brand color (locked - do not fluctuate) */
    --bg-primary: #f3f2e6;
    --bg-secondary: #d9d5c9;
    --text-main: #26292a;
    --text-soft: rgba(38, 41, 42, 0.72);
    --cta-button: #934d34;
    --cta-button-hover: #7d3f2a;
    --cta-text: #f3f2e6;

    /* Type */
    --font-body: 'Playfair', serif;
    --font-heading: 'Playfair Display', serif;

    /* Fluid type scale (desktop max -> mobile handled by media query) */
    --fs-h1: clamp(1.875rem, 3vw + 0.75rem, 2.75rem);
    --fs-h2: clamp(1.5rem, 2vw + 0.75rem, 2.125rem);
    --fs-h3: clamp(1.25rem, 1.2vw + 0.75rem, 1.625rem);
    --fs-h4: 1.25rem;
    --fs-h5: 1.1rem;
    --fs-h6: 1rem;

    /* Rhythm */
    --space-section: clamp(3.5rem, 6vw, 5.5rem);
    --radius-card: 14px;
    --radius-soft: 8px;

    /* Tinted shadows (warm charcoal, never pure black) */
    --shadow-card: 0 14px 34px rgba(38, 41, 42, 0.08);
    --shadow-lift: 0 20px 48px rgba(38, 41, 42, 0.12);

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
body, h1, h2, h3, h4, h5, h6, p, a, span {
    color: var(--text-main);
}

body, p, a, span, li, label, input, textarea, button, select, option {
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

h1.hero-title {
    font-family: var(--font-heading, 'Playfair Display', serif) !important;
}

body {
    background-color: var(--bg-primary);
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.65;
}

/* Fluid heading scale. Inline per-page sizes still win, so this only lifts
   content that previously fell back to theme defaults (e.g. blog posts). */
h1 { font-size: var(--fs-h1); line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
h4 { font-size: var(--fs-h4); line-height: 1.35; }
h5 { font-size: var(--fs-h5); line-height: 1.4; }
h6 { font-size: var(--fs-h6); line-height: 1.4; }

/* Selection - brand touch */
::selection {
    background: rgba(147, 77, 52, 0.22);
    color: var(--text-main);
}

/* Visible focus for keyboard users (a11y) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--cta-button);
    outline-offset: 2px;
}

/* Smooth in-page scrolling, disabled for reduced-motion users */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   Section rhythm & container
   ========================================================================== */
section {
    padding: var(--space-section) 0;
}

section:nth-of-type(odd) {
    background-color: var(--bg-primary);
}
section:nth-of-type(even) {
    background-color: var(--bg-secondary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================================================
   Mobile (fix edge overflow + readable type)
   ========================================================================== */
@media (max-width: 768px) {
    /* Global safe padding */
    .container {
        padding: 0 24px !important;
        box-sizing: border-box !important;
    }

    /* Prevent horizontal overflow (edge-to-edge fix) */
    body {
        overflow-x: hidden !important;
    }
    *, *::before, *::after {
        box-sizing: border-box !important;
    }

    /* Mobile typography standard */
    body, p, li, .text-body, .description, .excerpt {
        font-size: 17px !important;
        line-height: 1.7 !important;
    }

    p {
        margin-bottom: 1.5em !important;
    }

    /* Heading hierarchy & spacing */
    h1, .h1-title, .hero-title {
        font-size: 30px !important;
        line-height: 1.25 !important;
        letter-spacing: -0.02em !important;
        margin-bottom: 24px !important;
    }

    h2, .h2-title, .section-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-top: 2em !important;
        margin-bottom: 0.8em !important;
    }

    h3, .h3-title {
        font-size: 20px !important;
        line-height: 1.35 !important;
        margin-top: 1.6em !important;
        margin-bottom: 0.6em !important;
    }

    /* Mobile image handling */
    img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 8px;
    }
}

/* ==========================================================================
   GeneratePress layout overrides (keep - required for full-width pages)
   ========================================================================== */
body .site.grid-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}
body .site-content {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}
body #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}
body .site-main .wp-block-group__inner-container {
    max-width: 100% !important;
    padding: 0 !important;
}

.site-footer {
    margin: 0 !important;
    padding: 0 !important;
}
.site-footer .footer-widgets-container,
.site-footer .site-info {
    display: none !important;
}

/* Hide Featured Image on all Pages globally (custom HTML banners are used) */
body.page .featured-image,
body.page .page-header-image,
body.page .page-header-image-single,
body.page img.wp-post-image {
    display: none !important;
}

/* ==========================================================================
   Featured media (blog hero image)
   ========================================================================== */
.fursone-featured-media {
    margin: -40px auto 60px auto;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-lift);
    max-width: 1200px;
    position: relative;
    z-index: 10;
    aspect-ratio: 16 / 9; /* Prevents CLS */
}
.fursone-featured-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
