/*
Theme Name: dds_anhnt246.com
Theme URI: https://anhnt246.com
Author: Анна Нестерова
Author URI: https://anhnt246.com
Description: Информационный lifestyle-ресурс о здоровом образе жизни, основах питания, домашних кулинарных навыках и практиках повседневного благополучия.
Version: 1.1
Text Domain: dds_anhnt246
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ===== CSS VARIABLES ===== */
:root {
    --color-sage: #8FBC8F;
    --color-sage-dark: #6E9B6E;
    --color-cream: #FDF8F0;
    --color-linen: #E8DDD0;
    --color-olive: #4A5D4A;
    --color-olive-light: #5E745E;
    --color-terracotta: #D27D56;
    --color-terracotta-dark: #B8693F;
    --color-white: #FFFFFF;
    --color-black: #2A2A2A;
    --color-muted: #8A8A7A;
    --color-border: #D4CFC5;

    --font-heading: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Lora', 'Georgia', serif;
    --font-ui: 'Source Sans 3', 'Helvetica Neue', sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 40px;
    --shadow-card: 0 2px 12px rgba(74, 93, 74, 0.08);
    --shadow-btn: 0 2px 8px rgba(74, 93, 74, 0.12);
    --transition: 0.25s ease;

    --header-height: 90px;
    --header-compact: 54px;
}

/* ===== QUIET MODE ===== */
body.quiet-mode {
    filter: sepia(0.35) saturate(0.6) brightness(0.92) contrast(0.88);
}
body.quiet-mode img {
    filter: saturate(0.5);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    color: var(--color-olive);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
}

p {
    margin: 0 0 1.15em;
}

a {
    color: var(--color-sage-dark);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--color-terracotta);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-olive);
    line-height: 1.3;
    margin: 0 0 0.6em;
    font-weight: 700;
}

h1 { font-size: 2.3rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

ul, ol {
    margin: 0 0 1.15em 1.4em;
}

blockquote {
    border-left: 3px solid var(--color-sage);
    margin: 1.5em 0;
    padding: 0.8em 1.4em;
    background: rgba(143, 188, 143, 0.06);
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
}
table th, table td {
    border: 1px solid var(--color-border);
    padding: 0.6em 0.9em;
    text-align: left;
}
table th {
    background: var(--color-linen);
    font-family: var(--font-ui);
    font-weight: 600;
}

code, pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}
pre {
    background: var(--color-olive);
    color: var(--color-cream);
    padding: 1.2em;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.2em 0;
}

/* ===== UTILITY ===== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    position: relative;
    transition: all 0.35s ease;
}

.site-header .header-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    transition: height 0.35s ease;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.35s ease;
}

.brand-logo-svg {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.brand-text {
    display: flex;
    flex-direction: column;
    transition: opacity 0.35s ease;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-olive);
    line-height: 1.25;
    max-width: 320px;
}

.brand-desc {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--color-muted);
    line-height: 1.35;
    max-width: 320px;
    margin-top: 2px;
}

/* Compact header */
.site-header.compact .header-inner {
    height: var(--header-compact);
}

.site-header.compact .brand-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.site-header.compact .brand-logo,
.site-header.compact .brand-logo-svg {
    width: 36px;
    height: 36px;
}

.site-header.compact .header-nav a {
    padding: 0.3em 0.6em;
    font-size: 0.82rem;
}

/* Monogram for compact mode */
.brand-monogram {
    display: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-olive);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-linen);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-header.compact .brand-monogram {
    display: flex;
}

.site-header.compact .brand-logo,
.site-header.compact .brand-logo-svg {
    display: none;
}

/* Navigation */
.header-nav-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header-nav {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
}

.header-nav li {
    list-style: none;
}

.header-nav a {
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-olive);
    padding: 0.4em 0.85em;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    display: block;
}

.header-nav a:hover,
.header-nav .current-menu-item a {
    background: var(--color-sage);
    color: var(--color-white);
}

/* Header utility buttons */
.header-utils {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-quiet-mode,
.btn-search-toggle {
    background: none;
    border: 1.5px solid var(--color-border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-olive);
    transition: all var(--transition);
    flex-shrink: 0;
}

.btn-quiet-mode:hover,
.btn-search-toggle:hover {
    border-color: var(--color-sage);
    background: rgba(143, 188, 143, 0.08);
}

.btn-quiet-mode.active {
    background: var(--color-olive);
    border-color: var(--color-olive);
    color: var(--color-cream);
}

.btn-quiet-mode svg,
.btn-search-toggle svg {
    width: 18px;
    height: 18px;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-olive);
    position: absolute;
    left: 8px;
    transition: all 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 26px; }

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 19px;
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 19px;
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(74, 93, 74, 0.85);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.search-overlay.open {
    display: flex;
}

.search-overlay-inner {
    width: 90%;
    max-width: 560px;
}

.search-overlay .search-field {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1.3rem;
    padding: 1em 1.4em;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--color-white);
    color: var(--color-olive);
    outline: none;
}

.search-overlay .search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--color-muted);
    padding: 1rem 0 0.5rem;
    max-width: 1260px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.breadcrumbs a {
    color: var(--color-sage-dark);
}

.breadcrumbs span.separator {
    margin: 0 0.4em;
    color: var(--color-border);
}

/* ===== FRONT PAGE ===== */
.front-hero {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Wellness checklist */
.wellness-checklist {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2.2rem 2.5rem;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(143, 188, 143, 0.18);
}

.wellness-checklist h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3em;
}

.wellness-checklist-desc {
    font-family: var(--font-ui);
    font-size: 0.88rem;
    color: var(--color-muted);
    margin-bottom: 1.4rem;
}

.checklist-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.checklist-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 0.8rem;
    background: var(--color-cream);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-olive);
    text-align: center;
    user-select: none;
}

.checklist-item:hover {
    border-color: var(--color-sage);
}

.checklist-item.checked {
    background: rgba(143, 188, 143, 0.12);
    border-color: var(--color-sage);
}

.checklist-item.checked .checklist-icon {
    background: var(--color-sage);
    color: var(--color-white);
}

.checklist-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-linen);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all var(--transition);
}

.checklist-progress {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--color-muted);
    margin-top: 1rem;
    text-align: center;
}

/* Thematic sections */
.thematic-section {
    padding: 3rem 0;
}

.thematic-section h2 {
    text-align: center;
    margin-bottom: 0.3em;
}

.thematic-section-desc {
    text-align: center;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Categories grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.category-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.6rem 1.2rem;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    text-decoration: none;
}

.category-card:hover {
    border-color: var(--color-sage);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.category-card-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

.category-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3em;
}

.category-card p {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--color-muted);
    margin: 0;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    counter-reset: step-counter;
}

.step-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    position: relative;
    border: 1px solid var(--color-border);
    counter-increment: step-counter;
}

.step-card::before {
    content: counter(step-counter);
    position: absolute;
    top: -0.7em;
    left: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-white);
    background: var(--color-sage);
    width: 2.2em;
    height: 2.2em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card h3 {
    margin-top: 0.8rem;
    font-size: 1.1rem;
}

.step-card p {
    font-family: var(--font-ui);
    font-size: 0.88rem;
    color: var(--color-muted);
    margin: 0;
}

/* Quote block */
.daily-quote-section {
    background: var(--color-olive);
    color: var(--color-cream);
    border-radius: var(--radius-md);
    padding: 3rem 2.5rem;
    text-align: center;
    margin: 2rem 0;
}

.daily-quote-section h2 {
    color: var(--color-cream);
    margin-bottom: 0.5em;
}

.daily-quote-section p {
    font-family: var(--font-ui);
    color: rgba(253, 248, 240, 0.8);
    max-width: 580px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* Posts mosaic */
.posts-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    margin: 2rem 0;
}

.posts-mosaic .card:first-child {
    grid-row: 1 / 3;
}

/* Tips section */
.tips-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tip-block {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--color-border);
}

.tip-block h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5em;
}

.tip-block p {
    font-family: var(--font-ui);
    font-size: 0.88rem;
    color: var(--color-muted);
    margin: 0;
}

.tip-block-icon {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
}

/* ===== CARDS ===== */
.card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.card-thumb-wrap {
    position: relative;
    overflow: hidden;
}

.card-thumb-wrap a {
    display: block;
}

.card-thumb-wrap img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card-thumb-wrap img {
    transform: scale(1.04);
}

.card-no-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--color-linen), var(--color-sage));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0.5;
}

.card-body {
    flex: 1;
    padding: 1.3rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-family: var(--font-ui);
    font-size: 0.76rem;
    color: var(--color-muted);
    margin-bottom: 0.6em;
    display: flex;
    gap: 0.8em;
    flex-wrap: wrap;
}

.card-meta-cat {
    color: var(--color-sage-dark);
    font-weight: 600;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 0.5em;
}

.card-title a {
    color: var(--color-olive);
}

.card-title a:hover {
    color: var(--color-terracotta);
}

.card-excerpt {
    font-family: var(--font-ui);
    font-size: 0.86rem;
    color: var(--color-olive-light);
    line-height: 1.6;
    flex: 1;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-readmore {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-sage-dark);
    border: 1.5px solid var(--color-sage);
    border-radius: var(--radius-lg);
    padding: 0.4em 1.2em;
    margin-top: 0.8em;
    transition: all var(--transition);
    box-shadow: var(--shadow-btn);
    text-align: center;
    align-self: flex-start;
}

.card-readmore:hover {
    background: var(--color-terracotta);
    border-color: var(--color-terracotta);
    color: var(--color-white);
    box-shadow: none;
}

/* Large card (mosaic first child) */
.posts-mosaic .card:first-child .card-title {
    font-size: 1.4rem;
}

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65em 1.8em;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--color-sage);
    color: var(--color-sage-dark);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-btn);
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background: var(--color-terracotta);
    border-color: var(--color-terracotta);
    color: var(--color-white);
    box-shadow: none;
}

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

.btn-primary:hover {
    background: var(--color-terracotta-dark);
    border-color: var(--color-terracotta-dark);
}

/* ===== CONTENT AREA ===== */
.content-area {
    max-width: 1260px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
}

.content-with-sidebar {
    display: flex;
    gap: 3rem;
}

.content-primary {
    flex: 0 0 67%;
    max-width: 67%;
    min-width: 0;
}

.content-full {
    max-width: 85%;
    margin: 0 auto;
}

.sidebar {
    flex: 0 0 27%;
    max-width: 27%;
    min-width: 0;
}

/* Sidebar widgets */
.widget {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--color-sage);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: 0.4em 0;
    border-bottom: 1px solid rgba(212, 207, 197, 0.5);
    font-family: var(--font-ui);
    font-size: 0.88rem;
}

.widget li:last-child {
    border-bottom: none;
}

.widget li a {
    color: var(--color-olive);
}

.widget li a:hover {
    color: var(--color-terracotta);
}

/* ===== SINGLE POST ===== */
.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 0.3em;
}

.entry-meta {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--color-muted);
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

.entry-featured {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.entry-featured img {
    width: 100%;
    display: block;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.78;
}

.entry-content h2 {
    margin-top: 1.8em;
}

.entry-content h3 {
    margin-top: 1.4em;
}

.entry-content img {
    border-radius: var(--radius-sm);
}

.entry-tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-family: var(--font-ui);
    font-size: 0.82rem;
}

.entry-tags a {
    display: inline-block;
    background: var(--color-linen);
    padding: 0.25em 0.7em;
    border-radius: var(--radius-lg);
    margin: 0.2em;
    color: var(--color-olive);
    transition: all var(--transition);
}

.entry-tags a:hover {
    background: var(--color-sage);
    color: var(--color-white);
}

/* Post navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-family: var(--font-ui);
    font-size: 0.88rem;
}

.post-nav a {
    max-width: 45%;
    color: var(--color-olive);
}

.post-nav-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--color-muted);
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 0.3em;
}

/* ===== COMMENTS ===== */
.comments-area {
    margin-top: 3rem;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    list-style: none;
}

.comment-item {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.5rem 1.5rem 1.8rem;
    margin-bottom: 1.2rem;
    box-shadow: 1px 2px 6px rgba(74, 93, 74, 0.05);
}

/* Torn edge notebook effect */
.comment-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(
        180deg,
        var(--color-sage) 0%,
        var(--color-sage) 20%,
        transparent 20%,
        transparent 25%,
        var(--color-sage) 25%,
        var(--color-sage) 45%,
        transparent 45%,
        transparent 50%,
        var(--color-sage) 50%,
        var(--color-sage) 70%,
        transparent 70%,
        transparent 75%,
        var(--color-sage) 75%,
        var(--color-sage) 95%,
        transparent 95%
    );
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.comment-item::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: rgba(143, 188, 143, 0.3);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
    font-family: var(--font-ui);
}

.comment-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: block;
}

.comment-author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-olive);
}

.comment-date {
    font-size: 0.76rem;
    color: var(--color-muted);
}

.comment-content {
    font-size: 0.92rem;
    padding-left: 0.5rem;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-reply-link {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--color-sage-dark);
    font-weight: 600;
}

.children {
    margin-left: 2rem;
    list-style: none;
    padding: 0;
}

/* Comment form */
.comment-respond {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    margin-top: 1.5rem;
}

.comment-reply-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.comment-form label {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-olive);
    display: block;
    margin-bottom: 0.3em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.92rem;
    padding: 0.65em 0.9em;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-cream);
    color: var(--color-olive);
    transition: border-color var(--transition);
    outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--color-sage);
}

.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.comment-form .form-submit input {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65em 2em;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--color-sage);
    color: var(--color-sage-dark);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-btn);
}

.comment-form .form-submit input:hover {
    background: var(--color-terracotta);
    border-color: var(--color-terracotta);
    color: var(--color-white);
    box-shadow: none;
}

.comment-form p {
    margin-bottom: 1em;
}

/* ===== SEARCH FORM ===== */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form .search-field {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.92rem;
    padding: 0.6em 1em;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    color: var(--color-olive);
    outline: none;
    transition: border-color var(--transition);
}

.search-form .search-field:focus {
    border-color: var(--color-sage);
}

.search-form .search-submit {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6em 1.4em;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--color-sage);
    color: var(--color-sage-dark);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.search-form .search-submit:hover {
    background: var(--color-terracotta);
    border-color: var(--color-terracotta);
    color: var(--color-white);
}

/* ===== PAGINATION ===== */
.pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 2.5rem 0 1rem;
    flex-wrap: wrap;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.6em;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--color-border);
    color: var(--color-olive);
    text-decoration: none;
    transition: all var(--transition);
}

.pagination-wrap a:hover {
    border-color: var(--color-sage);
    background: rgba(143, 188, 143, 0.08);
}

.pagination-wrap .current {
    background: var(--color-sage);
    border-color: var(--color-sage);
    color: var(--color-white);
}

.pagination-wrap .dots {
    border-color: transparent;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-olive);
    color: var(--color-cream);
    margin-top: auto;
}

.footer-rituals {
    background: rgba(0, 0, 0, 0.12);
    padding: 2rem 0;
    text-align: center;
}

.footer-rituals h3 {
    color: var(--color-cream);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.rituals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ritual-card {
    background: rgba(253, 248, 240, 0.06);
    border: 1px solid rgba(253, 248, 240, 0.1);
    border-radius: var(--radius-md);
    padding: 1.3rem;
}

.ritual-card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.ritual-card h4 {
    color: var(--color-cream);
    font-size: 0.95rem;
    margin-bottom: 0.3em;
}

.ritual-card p {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: rgba(253, 248, 240, 0.7);
    margin: 0;
    line-height: 1.55;
}

.footer-widgets {
    max-width: 1260px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.footer-widget {
    font-family: var(--font-ui);
    font-size: 0.88rem;
}

.footer-widget .widget-title {
    color: var(--color-cream);
    border-bottom-color: rgba(253, 248, 240, 0.2);
    font-size: 1rem;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget li {
    padding: 0.35em 0;
    border-bottom: 1px solid rgba(253, 248, 240, 0.07);
}

.footer-widget li:last-child {
    border-bottom: none;
}

.footer-widget a {
    color: rgba(253, 248, 240, 0.75);
    transition: color var(--transition);
}

.footer-widget a:hover {
    color: var(--color-cream);
}

.footer-widget p {
    color: rgba(253, 248, 240, 0.7);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(253, 248, 240, 0.1);
    padding: 1.2rem 1.5rem;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: rgba(253, 248, 240, 0.5);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 -2px 16px rgba(74, 93, 74, 0.12);
    padding: 1rem 1.5rem;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    border-top: 2px solid var(--color-sage);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner p {
    margin: 0;
    color: var(--color-olive);
}

.cookie-accept {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.5em 1.5em;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--color-sage);
    background: var(--color-sage);
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.cookie-accept:hover {
    background: var(--color-terracotta);
    border-color: var(--color-terracotta);
}

/* ===== 404 ===== */
.error-404-page {
    text-align: center;
    padding: 3rem 0;
}

.error-404-page h1 {
    font-size: 5rem;
    color: var(--color-sage);
    margin-bottom: 0.2em;
}

.error-404-page p {
    font-family: var(--font-ui);
    font-size: 1.05rem;
    color: var(--color-muted);
    margin-bottom: 1.5em;
}

.error-404-page .search-form {
    max-width: 420px;
    margin: 0 auto 1.5rem;
}

/* ===== ARCHIVE / BLOG HEADER ===== */
.archive-header {
    margin-bottom: 1.5rem;
}

.archive-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.3em;
}

.archive-description {
    font-family: var(--font-ui);
    font-size: 0.92rem;
    color: var(--color-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .header-nav-wrap {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.5rem 2rem;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 300;
        gap: 1.5rem;
    }

    .header-nav-wrap.open {
        right: 0;
    }

    .header-nav {
        flex-direction: column;
        width: 100%;
    }

    .header-nav a {
        font-size: 1.05rem;
        padding: 0.6em 0.8em;
    }

    .nav-toggle {
        display: block;
        z-index: 301;
    }

    .content-with-sidebar {
        flex-direction: column;
    }

    .content-primary,
    .sidebar {
        flex: none;
        max-width: 100%;
    }

    .front-hero,
    .content-full {
        max-width: 100%;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .posts-mosaic {
        grid-template-columns: 1fr;
    }

    .posts-mosaic .card:first-child {
        grid-row: auto;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .rituals-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .tips-columns {
        grid-template-columns: 1fr;
    }

    .brand-desc {
        display: none;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.15rem; }

    .site-header .header-inner {
        padding: 0 1rem;
    }

    .content-area {
        padding: 1rem 1rem 2rem;
    }

    .breadcrumbs {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .checklist-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .wellness-checklist {
        padding: 1.5rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .card-thumb-wrap a {
        position: static;
    }

    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .children {
        margin-left: 1rem;
    }

    .cookie-banner {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .entry-title {
        font-size: 1.6rem;
    }

    .brand-name {
        font-size: 0.82rem;
        max-width: 200px;
    }
}
