/* ============================================
   DailyDecorLab Theme Stylesheet
   A minimal, elegant blog theme
   ============================================ */

/* ── CSS Custom Properties ── */
:root {
    /* Colors */
    --color-text: #3d3d3d;
    --color-text-light: #6b6b6b;
    --color-text-lighter: #a8a8a8;
    --color-accent: #e6b8af; /* Dusty Rose */
    --color-accent-hover: #d1a59c;
    --color-bg: #fdfaf6; /* Soft Cream */
    --color-bg-alt: #fff4f2; /* Pale Blush */
    --color-white: #ffffff;
    --color-border: #f0e6e1;
    --color-border-light: #f7efeb;

    /* Typography */
    --font-body: 'Lora', Georgia, 'Times New Roman', serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Font sizes - fluid scale */
    --text-xs: clamp(0.75rem, 0.7rem + 0.15vw, 0.8125rem);
    --text-sm: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
    --text-base: clamp(0.9375rem, 0.9rem + 0.18vw, 1rem);
    --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.175rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --container-max: 1400px;
    --container-narrow: 800px;
    --header-height: 90px;
    --border-radius: 16px;
    --border-radius-lg: 32px;

    /* Transitions */
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Box Shadows */
    --shadow-soft: 0 10px 40px rgba(230, 184, 175, 0.1);
    --shadow-hover: 0 20px 60px rgba(230, 184, 175, 0.18);
}

.container--wide {
    max-width: var(--container-max);
}

/* Global Airiness */
section {
    padding: var(--space-4xl) 0;
}

.section-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
}

/* ── About Me Snippet Section ── */
.about-snippet-section {
    background-color: var(--color-white);
}

.about-snippet-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-4xl);
}

.about-snippet__title {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.about-snippet__text {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.about-snippet__signature {
    margin-bottom: var(--space-xl);
}

.signature-text {
    font-family: 'Dancing Script', cursive;
    font-size: var(--text-3xl);
    color: var(--color-accent);
}

.about-snippet__image-frame {
    position: relative;
    padding-bottom: 120%;
    background-color: var(--color-bg-alt);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.author-image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-accent);
    opacity: 0.3;
}

/* ── Popular Section ── */
.popular-section {
    background-color: var(--color-bg-alt);
    border-radius: var(--border-radius-lg);
    margin: 0 var(--space-lg);
    padding: var(--space-4xl) var(--space-xl);
}

.posts-grid--four {
    grid-template-columns: repeat(4, 1fr);
}

/* ── Visual Board Section ── */
.visual-board-section {
    padding: var(--space-4xl) 0;
    text-align: center;
}

.visual-board-header {
    margin-bottom: var(--space-3xl);
}

.visual-board-title {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-sm);
}

.visual-board-subtitle {
    color: var(--color-text-lighter);
    font-style: italic;
}

.visual-board-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    align-items: start;
}

.visual-board__item {
    background-color: var(--color-bg-alt);
    border-radius: var(--border-radius);
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-soft);
    position: relative;
}

/* Pinterest style varying heights */
.visual-board__item--1 { aspect-ratio: 1/1.5; }
.visual-board__item--2 { aspect-ratio: 1/1.2; margin-top: var(--space-xl); }
.visual-board__item--3 { aspect-ratio: 1/1.8; }
.visual-board__item--4 { aspect-ratio: 1/1.3; margin-top: var(--space-lg); }
.visual-board__item--5 { aspect-ratio: 1/1.6; }
.visual-board__item--6 { aspect-ratio: 1/1.4; }
.visual-board__item--7 { aspect-ratio: 1/1.7; margin-top: calc(-1 * var(--space-xl)); }
.visual-board__item--8 { aspect-ratio: 1/1.2; }
.visual-board__item--9 { aspect-ratio: 1/1.5; margin-top: var(--space-md); }
.visual-board__item--10 { aspect-ratio: 1/1.3; }

.visual-board__item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-hover);
    z-index: 10;
}

.visual-board__item::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s var(--transition);
}

.visual-board__item:hover::after {
    opacity: 1;
}

/* ── Improved Footer ── */
.site-footer {
    background-color: var(--color-white);
    padding-top: var(--space-4xl);
}

.footer-middle-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
    text-align: left;
}

.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-branding__label {
    font-size: var(--text-xs);
    color: var(--color-text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.footer-signature {
    font-family: 'Dancing Script', cursive;
    font-size: var(--text-2xl);
    color: var(--color-accent);
    margin-top: var(--space-sm);
}

.footer-info-block {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.footer-info-title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.footer-info-text {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.footer-social__list {
    justify-content: center;
}

.footer-navigation {
    text-align: right;
}

.footer-navigation .footer-menu {
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-xs);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    margin-bottom: var(--space-xl);
}

.footer-bottom {
    padding: var(--space-xl) 0 var(--space-2xl);
    background-color: var(--color-white);
}

.footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
}

.site-info__tagline {
    margin-left: var(--space-sm);
    color: var(--color-text-lighter);
    font-style: italic;
}

.back-to-top {
    background-color: var(--color-bg-alt);
    border: none;
    padding: 0.5rem 1.25rem;
}

.back-to-top:hover {
    background-color: var(--color-accent);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 2rem);
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ── Focus Styles ── */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Remove default outlines when using mouse */
:focus:not(:focus-visible) {
    outline: none;
}

/* ── Accessibility ── */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-white);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--color-text);
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.skip-link:focus {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--border-radius);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(230, 184, 175, 0.4);
}

.btn--primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 184, 175, 0.5);
}

.btn--outline {
    border: 1.5px solid var(--color-border);
    color: var(--color-text-light);
    background: transparent;
}

.btn--outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: var(--color-bg-alt);
    transform: translateY(-2px);
}

.btn-arrow {
    transition: transform var(--transition);
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(253, 250, 246, 0.85); /* Soft Cream translucent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--space-xl);
}

/* Header scrolled state */
.site-header.is-scrolled {
    box-shadow: var(--shadow-soft);
    border-bottom-color: transparent;
}

/* Branding */
.site-branding {
    flex-shrink: 0;
}

.site-title-link {
    display: block;
}

.site-title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text);
    line-height: 1.2;
}

.site-description {
    display: none;
}

.site-logo img {
    max-height: 48px;
    width: auto;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation .menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.main-navigation .menu li a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-light);
    border-radius: var(--border-radius);
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.main-navigation .menu li a:hover,
.main-navigation .menu li.current-menu-item > a,
.main-navigation .menu li.current_page_item > a {
    color: var(--color-text);
    background-color: var(--color-bg-alt);
}

/* Submenu */
.main-navigation .menu li {
    position: relative;
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: var(--space-md) 0;
    background: var(--color-white);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition);
    z-index: 100;
}

.main-navigation .menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li a {
    padding: 0.5rem 1.5rem;
    font-size: var(--text-xs);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--color-text-light);
    transition: all var(--transition);
}

.search-toggle:hover {
    color: var(--color-text);
    background-color: var(--color-bg-alt);
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color var(--transition);
}

.menu-toggle:hover {
    background-color: var(--color-bg-alt);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--color-text);
    border-radius: 1px;
    transition: all var(--transition);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-lg) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
}

.search-overlay.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-overlay-inner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.search-overlay .search-form {
    flex: 1;
}

.search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--color-text-light);
    flex-shrink: 0;
    transition: all var(--transition);
}

.search-close:hover {
    color: var(--color-text);
    background-color: var(--color-bg-alt);
}

/* Mobile Menu Overlay — hidden on desktop */
.mobile-menu {
    display: none;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-field {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius);
    outline: none;
    transition: border-color var(--transition);
}

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

.search-field::placeholder {
    color: var(--color-text-lighter);
}

.search-submit {
    position: absolute;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: color var(--transition);
}

.search-submit:hover {
    color: var(--color-text);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    padding: var(--space-4xl) 0;
    text-align: center;
    background-image: radial-gradient(circle at 10% 20%, rgba(230, 184, 175, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 90% 80%, rgba(230, 184, 175, 0.05) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66 3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-46-14c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm60-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM85.796 64.845c-.321.321-.841.321-1.162 0-.321-.321-.321-.841 0-1.162.321-.321.841-.321 1.162 0 .321.321.321.841 0 1.162zm-54.064-36.064c-.321.321-.841.321-1.162 0-.321-.321-.321-.841 0-1.162.321-.321.841-.321 1.162 0 .321.321.321.841 0 1.162zM4.303 50.37a.822.822 0 0 1 0-1.162c.32-.321.84-.321 1.162 0 .321.321.321.84 0 1.162a.822.822 0 0 1-1.162 0zm70.741 26.34a.822.822 0 0 1 0-1.162c.321-.321.84-.321 1.162 0 .321.321.321.84 0 1.162a.822.822 0 0 1-1.162 0zM17.316 48.21c-.321.321-.841.321-1.162 0-.321-.321-.321-.841 0-1.162.321-.321.841-.321 1.162 0 .321.321.321.841 0 1.162zm22.582 28.97c-.321.321-.841.321-1.162 0-.321-.321-.321-.841 0-1.162.321-.321.841-.321 1.162 0 .321.321.321.841 0 1.162zm56.902 4.456c-.321.321-.841.321-1.162 0-.321-.321-.321-.841 0-1.162.321-.321.841-.321 1.162 0 .321.321.321.841 0 1.162zm-54.064-36.064c-.321.321-.841.321-1.162 0-.321-.321-.321-.841 0-1.162.321-.321.841-.321 1.162 0 .321.321.321.841 0 1.162z' fill='%23e6b8af' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    padding: var(--space-xl) 0;
}

.hero-label {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-accent);
    text-transform: lowercase;
    font-style: italic;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
    font-family: var(--font-serif);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 2.5rem + 4vw, 5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 4px;
    opacity: 0.3;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--space-3xl);
    font-weight: 400;
    font-family: var(--font-body);
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-sm);
}

.section-header::after {
    content: '';
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.section-line {
    display: none; /* Hide old line style */
}

.section-footer {
    text-align: center;
    margin-top: var(--space-2xl);
}

.featured-section,
.latest-section,
.related-posts {
    padding: var(--space-3xl) 0;
}

.latest-section {
    border-top: 1px solid var(--color-border-light);
}

/* ============================================
   FEATURED GRID
   ============================================ */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-lg);
}

.featured-card--large {
    grid-row: 1 / 3;
}

.featured-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    transition: box-shadow var(--transition);
}

.featured-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.featured-card__image {
    display: block;
    overflow: hidden;
}

.featured-card__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.featured-card:hover .featured-card__image img {
    transform: scale(1.03);
}

.featured-card--large {
    display: flex;
    flex-direction: column;
}

.featured-card__content {
    padding: var(--space-lg);
}

.featured-card__title {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.35;
    margin: var(--space-sm) 0;
}

.featured-card--large .featured-card__title {
    font-size: var(--text-xl);
}

.featured-card__title a:hover {
    color: var(--color-accent);
}

.featured-card__excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0 0 var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xs);
    color: var(--color-text-light);
}

/* ============================================
   POSTS GRID
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-2xl);
}

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

/* ============================================
   POST CARD
   ============================================ */
.post-card {
    background: var(--color-white);
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}

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

.post-card__image {
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    margin: var(--space-sm);
}

.post-card__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
    aspect-ratio: 4 / 5; /* Vertical Pinterest style */
    object-fit: cover;
}

.post-card:hover .post-card__image img {
    transform: scale(1.05);
}

.post-card__content {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    text-align: center;
}

.post-card__title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.3;
    margin: var(--space-sm) 0;
    letter-spacing: -0.01em;
}

.post-card__title a:hover {
    color: var(--color-accent);
}

.post-card__excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: italic;
}

.post-card__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--text-xs);
    color: var(--color-text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    background: var(--color-bg-alt);
    color: var(--color-accent);
    margin: var(--space-sm);
    border-radius: var(--border-radius-lg);
}

/* Post Categories */
.post-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.post-category {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color var(--transition);
}

.post-category:hover {
    color: var(--color-accent-hover);
}

.meta-sep {
    color: var(--color-border);
}

.reading-time {
    white-space: nowrap;
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.categories-section {
    padding: var(--space-4xl) 0;
    background-color: var(--color-white);
}

.categories-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.category-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition);
    text-decoration: none;
    overflow: hidden;
    max-width: 120px;
}

.category-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* Category thumbnail */
.category-card__thumbnail,
.category-card__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.category-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback icon when no thumbnail */
.category-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    color: var(--color-text-light);
}

/* Category info */
.category-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.category-card__name {
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card__count {
    font-size: var(--text-xs);
    color: var(--color-text-light);
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post__header {
    padding: var(--space-4xl) 0 var(--space-3xl);
    text-align: center;
    background-image: radial-gradient(circle at top, rgba(230, 184, 175, 0.08) 0%, transparent 60%);
}

.single-post__title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 2rem + 3vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text);
}

.single-post__meta {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
}

.post-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--color-white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
}

.post-author img {
    border-radius: 50%;
    border: 2px solid var(--color-bg-alt);
}

.post-author__info {
    text-align: left;
}

.post-author__name {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-text);
}

.post-author__details {
    font-size: var(--text-xs);
    color: var(--color-text-lighter);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-style: italic;
}

.post-thumbnail {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: var(--shadow-hover);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.post-thumbnail__caption {
    font-size: var(--text-xs);
    color: var(--color-text-light);
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    font-style: italic;
}

/* Entry Content */
.entry-content {
    font-size: var(--text-base);
    line-height: 1.9;
    color: var(--color-text);
}

.entry-content > * + * {
    margin-top: 1.5em;
}

.entry-content h2 {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-top: 2.5em;
    color: var(--color-text);
}

.entry-content h3 {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.35;
    margin-top: 2em;
    color: var(--color-text);
}

.entry-content h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-top: 1.8em;
}

.entry-content p {
    color: var(--color-text);
}

.entry-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.entry-content a:hover {
    color: var(--color-accent-hover);
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5em;
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 0.4em;
}

.entry-content li::marker {
    color: var(--color-accent);
}

.entry-content blockquote {
    border-left: none;
    padding: var(--space-2xl) var(--space-xl);
    margin: 3em 0;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-lg);
    font-style: italic;
    position: relative;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.entry-content blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: normal;
    line-height: 1;
    padding-top: 10px;
}

.entry-content blockquote p {
    color: var(--color-text);
    font-size: var(--text-lg);
    line-height: 1.6;
    margin-bottom: 0;
}

.entry-content blockquote cite {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-top: var(--space-sm);
    font-style: normal;
}

.entry-content pre {
    background: var(--color-text);
    color: #e0e0e0;
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    overflow-x: auto;
    font-size: var(--text-sm);
    line-height: 1.6;
}

.entry-content code {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    font-size: 0.9em;
}

.entry-content :not(pre) > code {
    background: var(--color-bg-alt);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    color: var(--color-accent-hover);
}

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

.entry-content figure {
    margin: 2em 0;
}

.entry-content figcaption {
    font-size: var(--text-xs);
    color: var(--color-text-light);
    text-align: center;
    margin-top: var(--space-sm);
    font-style: italic;
}

.entry-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2.5em 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.entry-content th,
.entry-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    text-align: left;
}

.entry-content th {
    background: var(--color-bg-alt);
    font-weight: 600;
}

.entry-content--wide {
    max-width: none;
}

/* Page Links */
.page-links {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    font-size: var(--text-sm);
}

.page-links__label {
    font-weight: 500;
}

.page-links a,
.page-links > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: var(--text-sm);
    transition: all var(--transition);
}

.page-links a:hover {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

.page-links > span {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

/* Post Footer */
.single-post__footer {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}

.post-tags__label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-light);
}

.post-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: var(--text-xs);
    color: var(--color-text-light);
    background: var(--color-bg-alt);
    border-radius: 20px;
    transition: all var(--transition);
}

.post-tag:hover {
    background: var(--color-text);
    color: var(--color-white);
}

/* Share Links */
.post-share {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.post-share__label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-light);
    white-space: nowrap;
}

.post-share__links {
    display: flex;
    gap: var(--space-sm);
}

.post-share__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--color-text-light);
    background: var(--color-bg-alt);
    transition: all var(--transition);
}

.post-share__link:hover {
    color: var(--color-white);
    background: var(--color-text);
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--color-bg-alt);
    border-radius: var(--border-radius-lg);
}

.author-bio__avatar img {
    border-radius: 50%;
}

.author-bio__name {
    font-family: var(--font-serif);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.author-bio__description {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================
   POST NAVIGATION
   ============================================ */
.post-navigation {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.post-navigation__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.post-navigation__link {
    display: block;
    padding: var(--space-lg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition);
}

.post-navigation__link:hover {
    border-color: var(--color-accent);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.post-navigation__link--next {
    text-align: right;
}

.post-navigation__label {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-xs);
}

.post-navigation__title {
    display: block;
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Related Posts */
.related-posts {
    padding: var(--space-3xl) 0;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area-wrapper {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--color-border-light);
}

.comments-title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-2xl);
}

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

.comment-list > li {
    margin-bottom: var(--space-xl);
}

.comment-body {
    padding: var(--space-lg);
    background: var(--color-bg-alt);
    border-radius: var(--border-radius-lg);
}

.comment-meta {
    margin-bottom: var(--space-md);
}

.comment-author.vcard {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.comment-author.vcard img {
    border-radius: 50%;
}

.comment-author-info {
    display: flex;
    flex-direction: column;
}

.comment-author-info .fn {
    font-weight: 500;
    font-size: var(--text-sm);
    font-style: normal;
}

.comment-date {
    font-size: var(--text-xs);
    color: var(--color-text-light);
}

.comment-content {
    font-size: var(--text-sm);
    line-height: 1.7;
}

.comment-content p + p {
    margin-top: 1em;
}

.comment-actions {
    margin-top: var(--space-md);
    display: flex;
    gap: var(--space-md);
}

.comment-actions a {
    font-size: var(--text-xs);
    color: var(--color-accent);
    font-weight: 500;
}

.comment-actions a:hover {
    color: var(--color-accent-hover);
}

/* Comment children (replies) */
.comment-list .children {
    margin-left: var(--space-xl);
    margin-top: var(--space-md);
    padding-left: var(--space-lg);
    border-left: 2px solid var(--color-border-light);
}

.comment-list .children li {
    margin-bottom: var(--space-md);
}

/* Comment form */
.comment-respond {
    margin-top: var(--space-2xl);
}

.comment-reply-title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.comment-form label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius);
    outline: none;
    transition: border-color var(--transition);
}

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

.comment-form p {
    margin-bottom: var(--space-md);
}

.comment-form .submit {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    font-size: var(--text-sm);
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--color-white);
    background: var(--color-text);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color var(--transition);
}

.comment-form .submit:hover {
    background: var(--color-accent);
}

.comment-awaiting-moderation {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.no-comments {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    font-style: italic;
}

/* ============================================
   ARCHIVE HEADERS
   ============================================ */
.archive-header, .page-header {
    padding: var(--space-4xl) 0 var(--space-3xl);
    text-align: center;
    background-image: radial-gradient(circle at bottom, rgba(230, 184, 175, 0.05) 0%, transparent 60%);
    margin-bottom: var(--space-2xl);
    border-radius: var(--border-radius-lg);
}

.archive-title, .page-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 2rem + 3vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.archive-description, .page-description {
    max-width: 600px;
    margin: var(--space-md) auto 0;
    font-size: var(--text-lg);
    color: var(--color-text-light);
    line-height: 1.6;
    font-style: italic;
}

.search-query {
    color: var(--color-accent);
    font-style: italic;
}

.search-again {
    margin-top: var(--space-lg);
    max-width: 500px;
}

/* Page Hero */
.page-hero {
    padding: var(--space-4xl) 0 var(--space-3xl);
    text-align: center;
    background-image: radial-gradient(circle at bottom, rgba(230, 184, 175, 0.05) 0%, transparent 60%);
    margin-bottom: var(--space-2xl);
}

.page-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 2rem + 3vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--color-text);
}

.page-hero__label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-md);
}

.page-hero__description {
    margin-top: var(--space-md);
    font-size: var(--text-lg);
    color: var(--color-text-light);
}

.page-content {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

/* About page image */
.about-image {
    margin-top: var(--space-xl);
}

.about-image__figure {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: var(--space-4xl) 0;
}

.error-404__code {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(4rem, 3rem + 5vw, 8rem);
    font-weight: 700;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.error-404__title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.error-404__message {
    font-size: var(--text-base);
    color: var(--color-text-light);
    max-width: 480px;
    margin: 0 auto var(--space-xl);
}

.error-404__actions {
    margin-bottom: var(--space-2xl);
}

.error-404__search {
    max-width: 400px;
    margin: 0 auto;
}

.error-404__search p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.error-404__recent {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border-light);
}

/* ============================================
   NO RESULTS
   ============================================ */
.no-results {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.no-results__icon {
    color: var(--color-border);
    margin-bottom: var(--space-lg);
}

.no-results__title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.no-results__content p {
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

.no-results__content .search-form {
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
    padding-top: var(--space-2xl);
}

.pagination .page-numbers,
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    font-size: var(--text-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all var(--transition);
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

.pagination .prev,
.pagination .next {
    gap: 0.3rem;
    padding: 0 1rem;
}

.pagination-arrow {
    font-size: 1.1em;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border-light);
    text-align: center;
}

.newsletter-section .widget-title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

/* ============================================
   SIDEBAR / WIDGETS
   ============================================ */

/* Content + Sidebar layout */
.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-3xl);
    align-items: start;
}

.content-area {
    min-width: 0;
}

.sidebar-area {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
}

.widget-area {
    padding-top: var(--space-2xl);
}

.widget {
    margin-bottom: var(--space-2xl);
}

.widget-title {
    font-family: var(--font-serif);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: var(--text-sm);
}

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

.widget ul li a {
    color: var(--color-text-light);
    transition: color var(--transition);
}

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

/* ============================================
   FOOTER
   ============================================ */

/* Footer top: widget area */
.footer-top {
    padding: var(--space-4xl) 0 var(--space-2xl);
    border-bottom: 1px solid var(--color-border-light);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3xl);
}

.footer-widget-area .widget-title {
    color: var(--color-text);
    border-bottom-color: var(--color-accent);
    font-size: var(--text-lg);
    text-transform: lowercase;
    font-style: italic;
}

.footer-widget-area .widget ul li {
    border-bottom-color: var(--color-border-light);
}

.footer-widget-area .widget ul li a {
    color: var(--color-text-light);
}

.footer-widget-area .widget ul li a:hover {
    color: var(--color-accent);
}

/* Footer middle: branding + nav + social */
.footer-middle {
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.footer-site-title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-text);
    transition: color var(--transition);
}

.footer-site-title:hover {
    color: var(--color-accent);
}

.footer-logo img {
    max-height: 40px;
    width: auto;
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--color-text-lighter);
    font-style: italic;
    margin: 0;
}

.footer-navigation .footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}

.footer-navigation .footer-menu li a {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    transition: color var(--transition);
    text-transform: lowercase;
}

.footer-navigation .footer-menu li a:hover {
    color: var(--color-accent);
}

/* Footer social links */
.footer-social__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--space-md);
}

.footer-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--color-accent);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition);
}

.footer-social__link:hover {
    color: var(--color-white);
    background: var(--color-accent);
    transform: translateY(-4px);
}

/* Footer bottom: copyright + back-to-top */
.site-info {
    font-size: var(--text-xs);
    color: var(--color-text-light);
}

.site-info a {
    color: var(--color-text);
    transition: color var(--transition);
}

.site-info a:hover {
    color: var(--color-accent);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    font-size: var(--text-xs);
    color: var(--color-text-light);
    padding: var(--space-md) 0;
}

.breadcrumbs a {
    color: var(--color-text-light);
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

.breadcrumb-separator {
    margin: 0 var(--space-sm);
    color: var(--color-border);
}

/* ============================================
   ALIGNMENTS (Gutenberg)
   ============================================ */
.alignwide {
    margin-left: calc(-25vw + 50%);
    margin-right: calc(-25vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: var(--space-lg);
    margin-bottom: var(--space-md);
}

.alignright {
    float: right;
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .posts-grid,
    .posts-grid--three {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .featured-card--large {
        grid-row: auto;
    }

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

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

    /* About snippet tablet */
    .about-snippet-inner {
        gap: var(--space-2xl);
    }

    /* Visual board tablet */
    .visual-board-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .visual-board__item--4,
    .visual-board__item--5,
    .visual-board__item--6,
    .visual-board__item--7,
    .visual-board__item--8,
    .visual-board__item--9,
    .visual-board__item--10 {
        margin-top: 0;
    }

    /* Footer grid tablet */
    .footer-middle-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .footer-navigation {
        text-align: center;
    }

    .footer-navigation .footer-menu {
        align-items: center;
    }

    .footer-info-block {
        grid-column: 1 / -1;
    }

    /* Sidebar tablet */
    .content-sidebar-wrap {
        grid-template-columns: 1fr 260px;
        gap: var(--space-xl);
    }

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

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        --space-3xl: 3rem;
        --space-4xl: 4rem;
    }

    .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    /* Header mobile */
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
    }

    .search-toggle {
        display: none;
    }

    /* Mobile menu overlay */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        background: var(--color-white);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }

    .mobile-menu.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-menu__inner {
        display: flex;
        flex-direction: column;
        gap: var(--space-lg);
        padding: calc(var(--header-height) + var(--space-lg)) var(--space-md) var(--space-xl);
        min-height: 100%;
    }

    /* Search inside mobile menu */
    .mobile-menu__search {
        padding-bottom: var(--space-md);
        border-bottom: 1px solid var(--color-border);
    }

    .mobile-menu__search .search-form {
        max-width: 100%;
    }

    /* Mobile nav links */
    .mobile-menu__list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .mobile-menu__list li a {
        display: flex;
        align-items: center;
        padding: 0.875rem 0;
        font-size: var(--text-lg);
        font-weight: 450;
        color: var(--color-text);
        border-bottom: 1px solid var(--color-border-light);
        transition: color var(--transition);
        min-height: 48px;
    }

    .mobile-menu__list li:first-child a {
        border-top: none;
    }

    .mobile-menu__list li a:hover,
    .mobile-menu__list li.current-menu-item > a,
    .mobile-menu__list li.current_page_item > a {
        color: var(--color-accent);
    }

    /* Mobile submenu */
    .mobile-menu__list .sub-menu {
        list-style: none;
        margin: 0;
        padding: 0 0 0 var(--space-lg);
    }

    .mobile-menu__list .sub-menu li a {
        font-size: var(--text-base);
        color: var(--color-text-light);
        padding: 0.625rem 0;
    }

    /* Mobile social links */
    .mobile-menu__social {
        margin-top: auto;
        padding-top: var(--space-md);
        border-top: 1px solid var(--color-border);
    }

    .mobile-menu__social-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: var(--space-md);
        justify-content: center;
    }

    .mobile-menu__social-list li a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        color: var(--color-text-light);
        background: var(--color-bg-alt);
        transition: all var(--transition);
    }

    .mobile-menu__social-list li a:hover {
        color: var(--color-white);
        background: var(--color-accent);
    }

    /* Scroll lock when mobile menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Keep hamburger above mobile menu overlay */
    .site-header {
        z-index: 1000;
    }

    /* Grids mobile */
    .posts-grid,
    .posts-grid--three {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

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

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

    /* About snippet mobile */
    .about-snippet-inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .about-snippet__image-frame {
        padding-bottom: 80%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Visual board mobile */
    .visual-board-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .visual-board__item--2,
    .visual-board__item--4,
    .visual-board__item--7,
    .visual-board__item--9 {
        margin-top: 0;
    }

    /* Footer grid mobile */
    .footer-middle-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }

    .footer-branding {
        align-items: center;
    }

    .footer-navigation {
        text-align: center;
    }

    .footer-navigation .footer-menu {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Sidebar mobile — stack */
    .content-sidebar-wrap {
        grid-template-columns: 1fr;
    }

    .sidebar-area {
        position: static;
    }

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

    /* Popular section mobile */
    .popular-section {
        margin: 0;
        border-radius: 0;
        padding: var(--space-2xl) var(--space-md);
    }

    /* Single post mobile */
    .single-post__title {
        font-size: var(--text-2xl);
    }

    .post-navigation__inner {
        grid-template-columns: 1fr;
    }

    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .post-author__info {
        text-align: center;
    }

    .post-author__details {
        justify-content: center;
    }

    /* Hero mobile */
    .hero-section {
        padding: var(--space-2xl) 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .hero-title {
        font-size: var(--text-2xl);
    }

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

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .post-navigation,
    .related-posts,
    .comments-area-wrapper,
    .newsletter-section,
    .search-overlay,
    .mobile-menu,
    .post-share,
    .hero-actions {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .container {
        max-width: 100%;
    }

    a {
        text-decoration: underline;
    }

    .entry-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .post-card,
    .featured-card,
    .category-card {
        animation: fadeInUp 0.4s ease-out both;
    }

    .posts-grid .post-card:nth-child(2) { animation-delay: 0.05s; }
    .posts-grid .post-card:nth-child(3) { animation-delay: 0.1s; }
    .posts-grid .post-card:nth-child(4) { animation-delay: 0.15s; }
    .posts-grid .post-card:nth-child(5) { animation-delay: 0.2s; }
    .posts-grid .post-card:nth-child(6) { animation-delay: 0.25s; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--text-xs);
    color: var(--color-text-light);
    text-align: center;
    margin-top: var(--space-sm);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
    margin: 2em 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: var(--border-radius);
}

.sticky .post-card {
    border-color: var(--color-accent);
}

.bypostauthor > .comment-body {
    border-left: 3px solid var(--color-accent);
}
