/*
Theme Name: Comfort Hijab
Theme URI: https://comforthijab.com/
Description: Lightweight custom child theme for Comfort Hijab, built on GeneratePress.
Author: Comfort Hijab
Template: generatepress
Version: 1.1.0
Text Domain: comfort-hijab
*/

/* =========================================================
   COMFORT HIJAB — LOCKED DESIGN TOKENS
   ========================================================= */
:root {
    --ch-primary: #1C3B36;
    --ch-primary-dark: #142C29;

    --ch-accent: #F5B890;
    --ch-accent-soft: #EAC4A4;

    --ch-bg: #F8F3EC;
    --ch-surface: #FFFFFF;

    --ch-text: #252525;
    --ch-muted: #756F69;
    --ch-border: #DED6CE;

    --ch-success: #58705C;
    --ch-sale: #8A3D3D;

    --ch-container: 1280px;
    --ch-wide: 1440px;

    --ch-radius-sm: 6px;
    --ch-radius-md: 10px;
    --ch-radius-lg: 16px;

    --ch-space-1: 4px;
    --ch-space-2: 8px;
    --ch-space-3: 12px;
    --ch-space-4: 16px;
    --ch-space-5: 24px;
    --ch-space-6: 32px;
    --ch-space-7: 48px;
    --ch-space-8: 64px;
    --ch-space-9: 80px;
    --ch-space-10: 96px;
}

/* =========================================================
   GLOBAL FOUNDATION
   ========================================================= */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ch-bg);
    color: var(--ch-text);
    font-family: "Hind Siliguri", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--ch-primary);
    text-decoration: none;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        opacity 180ms ease;
}

a:hover {
    color: var(--ch-primary-dark);
}

:focus-visible {
    outline: 2px solid var(--ch-accent);
    outline-offset: 3px;
}

/* =========================================================
   GENERATEPRESS BASE NORMALIZATION
   ========================================================= */
.site {
    background: var(--ch-bg);
}

.site-content {
    max-width: var(--ch-container);
    margin-inline: auto;
    padding-inline: 24px;
}

.content-area {
    width: 100%;
}

.widget-area {
    display: none;
}

.inside-article,
.site-main {
    margin: 0;
}

.entry-content {
    margin-top: 0;
}

.entry-title {
    color: var(--ch-primary);
    font-weight: 600;
}

button,
input[type="button"],
input[type="submit"],
.button {
    border-radius: var(--ch-radius-sm);
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.button:hover {
    transform: translateY(-1px);
}

/* Prevent accidental horizontal overflow from custom sections. */
.site,
.site-content,
.site-header,
.site-footer {
    overflow-x: clip;
}

/* =========================================================
   RESPONSIVE FOUNDATION
   ========================================================= */
@media (min-width: 769px) {
    .site-content {
        padding-inline: 32px;
    }
}

@media (min-width: 1440px) {
    .site-content {
        max-width: var(--ch-wide);
    }
}

@media (max-width: 768px) {
    .site-content {
        padding-inline: 16px;
    }

    body {
        font-size: 15.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
