/*
Theme Name: Heritage Cultures
Theme URI: https://chickamaugacherokee.org
Author: Heritage Media
Author URI: https://chickamaugacherokee.org
Description: Magazine culturel dédié aux peuples du monde, traditions ancestrales, voyages ethnographiques et patrimoine immatériel. Une exploration respectueuse des cultures qui façonnent l'humanité.
Version: 1.4.2
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heritage-cultures
Tags: blog, magazine, editorial, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================================
   DESIGN TOKENS - HERITAGE CULTURES
   ============================================ */
:root {
    /* Surface Colors - Warm & Natural */
    --hc-surface-base: #FDFBF7;
    --hc-surface-elevated: #FFFFFF;
    --hc-surface-muted: #F5F1EA;
    --hc-surface-accent: #EDE8DE;
    
    /* Primary Palette - Earth Tones */
    --hc-earth-deep: #2C2416;
    --hc-earth-warm: #5C4A32;
    --hc-earth-medium: #8B7355;
    --hc-earth-soft: #A69378;
    
    /* Accent - Refined */
    --hc-accent-primary: #9B6B4A;
    --hc-accent-hover: #7D5539;
    
    /* Text Hierarchy */
    --hc-text-primary: #1A1612;
    --hc-text-secondary: #4A443C;
    --hc-text-tertiary: #7A7167;
    --hc-text-muted: #9E9587;
    
    /* Borders & Dividers */
    --hc-border-light: rgba(44, 36, 22, 0.08);
    --hc-border-medium: rgba(44, 36, 22, 0.12);
    --hc-border-strong: rgba(44, 36, 22, 0.2);
    
    /* Typography Scale */
    --hc-font-display: 'Playfair Display', 'Georgia', serif;
    --hc-font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
    
    /* Spacing System */
    --hc-space-xs: 4px;
    --hc-space-sm: 8px;
    --hc-space-md: 16px;
    --hc-space-lg: 24px;
    --hc-space-xl: 32px;
    --hc-space-2xl: 48px;
    --hc-space-3xl: 64px;
    --hc-space-4xl: 96px;
    
    /* Layout */
    --hc-container-max: 1280px;
    --hc-content-max: 720px;
    
    /* Radius */
    --hc-radius-sm: 4px;
    --hc-radius-md: 8px;
    --hc-radius-lg: 12px;
    
    /* Shadows */
    --hc-shadow-sm: 0 1px 2px rgba(44, 36, 22, 0.04);
    --hc-shadow-md: 0 4px 12px rgba(44, 36, 22, 0.06);
    --hc-shadow-lg: 0 8px 24px rgba(44, 36, 22, 0.08);
    --hc-shadow-xl: 0 16px 48px rgba(44, 36, 22, 0.1);
    
    /* Transitions */
    --hc-transition-fast: 150ms ease;
    --hc-transition-base: 250ms ease;
    --hc-transition-slow: 400ms ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--hc-font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--hc-text-primary);
    background-color: var(--hc-surface-base);
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

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

ul, ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--hc-font-display);
    font-weight: 600;
    line-height: 1.25;
    color: var(--hc-text-primary);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
    font-family: var(--hc-font-body);
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-family: var(--hc-font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

p {
    margin-bottom: var(--hc-space-md);
}

p:last-child {
    margin-bottom: 0;
}

.hc-text-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--hc-text-secondary);
}

.hc-text-small {
    font-size: 0.875rem;
}

.hc-text-caption {
    font-size: 0.8125rem;
    color: var(--hc-text-tertiary);
    letter-spacing: 0.02em;
}

.hc-text-overline {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hc-text-tertiary);
}

/* ============================================
   LAYOUT COMPONENTS
   ============================================ */
.hc-container {
    width: 100%;
    max-width: var(--hc-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--hc-space-lg);
    padding-right: var(--hc-space-lg);
}

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

.hc-section {
    padding-top: var(--hc-space-4xl);
    padding-bottom: var(--hc-space-4xl);
}

.hc-section--compact {
    padding-top: var(--hc-space-3xl);
    padding-bottom: var(--hc-space-3xl);
}

.hc-section--muted {
    background-color: var(--hc-surface-muted);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.hc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hc-border-light);
    transition: box-shadow var(--hc-transition-base);
}

.hc-header.is-scrolled {
    box-shadow: var(--hc-shadow-md);
}

.hc-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.hc-logo {
    display: flex;
    align-items: center;
    gap: var(--hc-space-md);
}

.hc-logo__mark {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hc-logo__mark svg {
    width: 100%;
    height: 100%;
}

.hc-logo__text {
    font-family: var(--hc-font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--hc-text-primary);
    letter-spacing: -0.02em;
}

.hc-nav {
    display: flex;
    align-items: center;
    gap: var(--hc-space-xl);
}

.hc-nav__link {
    position: relative;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--hc-text-secondary);
    padding: var(--hc-space-sm) 0;
    transition: color var(--hc-transition-fast);
}

.hc-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--hc-accent-primary);
    transition: width var(--hc-transition-base);
}

.hc-nav__link:hover,
.hc-nav__link.is-active {
    color: var(--hc-text-primary);
}

.hc-nav__link:hover::after,
.hc-nav__link.is-active::after {
    width: 100%;
}

.hc-header__search {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--hc-text-tertiary);
    transition: all var(--hc-transition-fast);
    cursor: pointer;
}

.hc-header__search:hover {
    background-color: var(--hc-surface-muted);
    color: var(--hc-text-primary);
}

.hc-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--hc-text-primary);
}

/* ============================================
   BUTTONS & INTERACTIVE
   ============================================ */
.hc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--hc-space-sm);
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--hc-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--hc-transition-fast);
    white-space: nowrap;
}

.hc-btn--primary {
    background-color: var(--hc-accent-primary);
    color: #FFFFFF;
}

.hc-btn--primary:hover {
    background-color: var(--hc-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--hc-shadow-md);
}

.hc-btn--secondary {
    background-color: transparent;
    color: var(--hc-text-primary);
    border: 1.5px solid var(--hc-border-strong);
}

.hc-btn--secondary:hover {
    background-color: var(--hc-surface-muted);
    border-color: var(--hc-text-tertiary);
}

.hc-btn--ghost {
    background-color: transparent;
    color: var(--hc-accent-primary);
    padding: var(--hc-space-sm) var(--hc-space-md);
}

.hc-btn--ghost:hover {
    background-color: rgba(155, 107, 74, 0.08);
}

.hc-link {
    color: var(--hc-accent-primary);
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color var(--hc-transition-fast);
}

.hc-link:hover {
    border-bottom-color: currentColor;
}

/* ============================================
   CARD SYSTEM
   ============================================ */
.hc-card {
    background-color: var(--hc-surface-elevated);
    border-radius: var(--hc-radius-lg);
    overflow: hidden;
    transition: all var(--hc-transition-base);
}

.hc-card:hover {
    box-shadow: var(--hc-shadow-lg);
}

.hc-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.hc-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--hc-transition-slow);
}

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

.hc-card__body {
    padding: var(--hc-space-lg);
}

.hc-card__meta {
    display: flex;
    align-items: center;
    gap: var(--hc-space-md);
    margin-bottom: var(--hc-space-sm);
}

.hc-card__category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hc-accent-primary);
}

.hc-card__date {
    font-size: 0.8125rem;
    color: var(--hc-text-muted);
}

.hc-card__title {
    font-family: var(--hc-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: var(--hc-space-sm);
    color: var(--hc-text-primary);
    transition: color var(--hc-transition-fast);
}

.hc-card:hover .hc-card__title {
    color: var(--hc-accent-primary);
}

.hc-card__excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--hc-text-tertiary);
}

.hc-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--hc-space-md);
    margin-top: var(--hc-space-md);
    border-top: 1px solid var(--hc-border-light);
}

.hc-card__read-time {
    font-size: 0.8125rem;
    color: var(--hc-text-muted);
}

/* Card Variants */
.hc-card--featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
}

.hc-card--featured .hc-card__image {
    aspect-ratio: auto;
    min-height: 400px;
}

.hc-card--featured .hc-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--hc-space-2xl);
}

.hc-card--featured .hc-card__title {
    font-size: 1.75rem;
}

.hc-card--horizontal {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
}

.hc-card--horizontal .hc-card__image {
    aspect-ratio: 4 / 3;
}

.hc-card--minimal {
    background: transparent;
    box-shadow: none;
}

.hc-card--minimal:hover {
    box-shadow: none;
}

/* ============================================
   ARTICLE GRID LAYOUTS
   ============================================ */
.hc-grid {
    display: grid;
    gap: var(--hc-space-xl);
}

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

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

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

.hc-grid--featured {
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: repeat(2, 1fr);
}

.hc-grid--featured > :first-child {
    grid-row: span 2;
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hc-hero {
    position: relative;
    padding: calc(80px + var(--hc-space-4xl)) 0 var(--hc-space-4xl);
    background-color: var(--hc-surface-muted);
    overflow: hidden;
}

.hc-hero__content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hc-hero__overline {
    display: inline-flex;
    align-items: center;
    gap: var(--hc-space-sm);
    margin-bottom: var(--hc-space-lg);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hc-accent-primary);
}

.hc-hero__title {
    margin-bottom: var(--hc-space-lg);
}

.hc-hero__description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--hc-text-secondary);
    margin-bottom: var(--hc-space-xl);
}

.hc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hc-space-md);
}

.hc-hero__decoration {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 45%;
    opacity: 0.15;
    background-size: cover;
    background-position: center;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.hc-section-header {
    margin-bottom: var(--hc-space-2xl);
}

.hc-section-header--center {
    text-align: center;
}

.hc-section-header__overline {
    display: block;
    margin-bottom: var(--hc-space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hc-accent-primary);
}

.hc-section-header__title {
    margin-bottom: var(--hc-space-md);
}

.hc-section-header__description {
    max-width: 600px;
    color: var(--hc-text-tertiary);
}

.hc-section-header--center .hc-section-header__description {
    margin-left: auto;
    margin-right: auto;
}

.hc-section-header__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--hc-space-xl);
}

/* ============================================
   FOOTER
   ============================================ */
.hc-footer {
    background-color: var(--hc-earth-deep);
    color: rgba(255, 255, 255, 0.85);
    padding-top: var(--hc-space-4xl);
}

.hc-footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--hc-transition-fast);
}

.hc-footer a:hover {
    color: #FFFFFF;
}

.hc-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--hc-space-3xl);
    padding-bottom: var(--hc-space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hc-footer__brand {
    max-width: 300px;
}

.hc-footer__logo {
    display: flex;
    align-items: center;
    gap: var(--hc-space-md);
    margin-bottom: var(--hc-space-lg);
}

.hc-footer__logo-text {
    font-family: var(--hc-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
}

.hc-footer__tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.hc-footer__title {
    font-family: var(--hc-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #FFFFFF;
    margin-bottom: var(--hc-space-lg);
}

.hc-footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--hc-space-sm);
}

.hc-footer__links a {
    font-size: 0.9375rem;
    padding: var(--hc-space-xs) 0;
}

.hc-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--hc-space-xl) 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.hc-footer__legal {
    display: flex;
    gap: var(--hc-space-xl);
}

/* Footer Newsletter Form */
.hc-footer__form {
    display: flex;
    gap: var(--hc-space-sm);
}

.hc-footer__input {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9375rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--hc-radius-md);
    color: #FFFFFF;
    transition: all var(--hc-transition-fast);
}

.hc-footer__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.hc-footer__input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.hc-footer__submit {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hc-accent-primary);
    border: none;
    border-radius: var(--hc-radius-md);
    color: #FFFFFF;
    cursor: pointer;
    transition: all var(--hc-transition-fast);
}

.hc-footer__submit:hover {
    background-color: var(--hc-accent-hover);
    transform: translateY(-2px);
}

.hc-footer__submit:active {
    transform: translateY(0);
}

/* ============================================
   SINGLE ARTICLE
   ============================================ */
.hc-article {
    padding-top: calc(80px + var(--hc-space-3xl));
}

.hc-article__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--hc-space-2xl);
}

.hc-article__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--hc-space-lg);
    margin-bottom: var(--hc-space-lg);
}

.hc-article__category {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hc-accent-primary);
}

.hc-article__date {
    font-size: 0.9375rem;
    color: var(--hc-text-muted);
}

.hc-article__title {
    margin-bottom: var(--hc-space-lg);
}

.hc-article__excerpt {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--hc-text-secondary);
}

.hc-article__cover {
    aspect-ratio: 21 / 9;
    border-radius: var(--hc-radius-lg);
    overflow: hidden;
    margin-bottom: var(--hc-space-3xl);
}

.hc-article__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hc-article__content {
    max-width: var(--hc-content-max);
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

.hc-article__content h2 {
    margin-top: var(--hc-space-2xl);
    margin-bottom: var(--hc-space-md);
}

.hc-article__content h3 {
    margin-top: var(--hc-space-xl);
    margin-bottom: var(--hc-space-md);
}

.hc-article__content p {
    margin-bottom: var(--hc-space-lg);
}

.hc-article__content blockquote {
    margin: var(--hc-space-xl) 0;
    padding: var(--hc-space-lg) var(--hc-space-xl);
    border-left: 3px solid var(--hc-accent-primary);
    background-color: var(--hc-surface-muted);
    font-family: var(--hc-font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--hc-text-secondary);
}

.hc-article__content figure {
    margin: var(--hc-space-xl) 0;
}

.hc-article__content figcaption {
    margin-top: var(--hc-space-sm);
    font-size: 0.875rem;
    color: var(--hc-text-muted);
    text-align: center;
}

/* ============================================
   ARCHIVE & CATEGORY PAGES
   ============================================ */
.hc-archive-header {
    padding: calc(80px + var(--hc-space-3xl)) 0 var(--hc-space-2xl);
    background-color: var(--hc-surface-muted);
    text-align: center;
}

.hc-archive-header__title {
    margin-bottom: var(--hc-space-md);
}

.hc-archive-header__description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--hc-text-tertiary);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.hc-newsletter {
    background-color: var(--hc-surface-accent);
    text-align: center;
}

.hc-newsletter__inner {
    max-width: 560px;
    margin: 0 auto;
}

.hc-newsletter__title {
    margin-bottom: var(--hc-space-md);
}

.hc-newsletter__description {
    color: var(--hc-text-tertiary);
    margin-bottom: var(--hc-space-xl);
}

.hc-newsletter__form {
    display: flex;
    gap: var(--hc-space-md);
}

.hc-newsletter__input {
    flex: 1;
    padding: 16px 20px;
    font-size: 1rem;
    border: 1.5px solid var(--hc-border-medium);
    border-radius: var(--hc-radius-md);
    background-color: var(--hc-surface-elevated);
    color: var(--hc-text-primary);
    transition: border-color var(--hc-transition-fast);
}

.hc-newsletter__input:focus {
    outline: none;
    border-color: var(--hc-accent-primary);
}

.hc-newsletter__input::placeholder {
    color: var(--hc-text-muted);
}

/* ============================================
   404 PAGE
   ============================================ */
.hc-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--hc-space-xl);
}

.hc-404__code {
    font-family: var(--hc-font-display);
    font-size: 8rem;
    font-weight: 700;
    color: var(--hc-surface-accent);
    line-height: 1;
    margin-bottom: var(--hc-space-lg);
}

.hc-404__title {
    margin-bottom: var(--hc-space-md);
}

.hc-404__description {
    color: var(--hc-text-tertiary);
    margin-bottom: var(--hc-space-xl);
}

/* ============================================
   PAGINATION
   ============================================ */
.hc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--hc-space-sm);
    margin-top: var(--hc-space-3xl);
}

.hc-pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--hc-space-md);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--hc-text-secondary);
    border-radius: var(--hc-radius-md);
    transition: all var(--hc-transition-fast);
}

.hc-pagination__item:hover {
    background-color: var(--hc-surface-muted);
    color: var(--hc-text-primary);
}

.hc-pagination__item.is-current {
    background-color: var(--hc-accent-primary);
    color: #FFFFFF;
}

/* ============================================
   UTILITIES
   ============================================ */
.hc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.hc-divider {
    height: 1px;
    background-color: var(--hc-border-light);
    border: none;
    margin: var(--hc-space-2xl) 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 1024px) {
    .hc-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hc-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hc-card--featured {
        grid-template-columns: 1fr;
    }
    
    .hc-card--featured .hc-card__image {
        min-height: 280px;
    }
    
    .hc-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --hc-space-4xl: 64px;
    }
    
    .hc-header__inner {
        height: 68px;
    }
    
    .hc-nav {
        display: none;
    }
    
    .hc-mobile-toggle {
        display: flex;
    }
    
    .hc-grid--2,
    .hc-grid--3,
    .hc-grid--4 {
        grid-template-columns: 1fr;
    }
    
    .hc-card--horizontal {
        grid-template-columns: 1fr;
    }
    
    .hc-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--hc-space-xl);
    }
    
    .hc-footer__bottom {
        flex-direction: column;
        gap: var(--hc-space-md);
        text-align: center;
    }
    
    .hc-newsletter__form {
        flex-direction: column;
    }
    
    .hc-hero__decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .hc-container {
        padding-left: var(--hc-space-md);
        padding-right: var(--hc-space-md);
    }
    
    .hc-404__code {
        font-size: 5rem;
    }
}

/* ============================================
   ARTICLE CONTENT TYPOGRAPHY
   ============================================ */
.hc-article__content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--hc-text-secondary);
}

.hc-article__content p {
    margin-bottom: var(--hc-space-lg);
}

.hc-article__content h2 {
    font-family: var(--hc-font-display);
    font-size: 1.625rem;
    font-weight: 600;
    color: var(--hc-text-primary);
    margin: var(--hc-space-2xl) 0 var(--hc-space-md);
    line-height: 1.3;
}

.hc-article__content h3 {
    font-family: var(--hc-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hc-text-primary);
    margin: var(--hc-space-xl) 0 var(--hc-space-md);
}

.hc-article__content figure,
.hc-article__content .wp-block-image {
    margin: var(--hc-space-xl) 0;
}

.hc-article__content figure img,
.hc-article__content .wp-block-image img {
    width: 100%;
    height: auto;
    border-radius: var(--hc-radius-lg);
    display: block;
}

.hc-article__content figcaption {
    font-size: 0.875rem;
    color: var(--hc-text-muted);
    text-align: center;
    margin-top: var(--hc-space-sm);
    font-style: italic;
}

.hc-article__content blockquote {
    margin: var(--hc-space-xl) 0;
    padding: var(--hc-space-lg) var(--hc-space-xl);
    background-color: var(--hc-surface-muted);
    border-left: 4px solid var(--hc-accent-primary);
    border-radius: 0 var(--hc-radius-md) var(--hc-radius-md) 0;
}

.hc-article__content blockquote p {
    font-family: var(--hc-font-display);
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--hc-text-primary);
    margin-bottom: 0;
}

.hc-article__content blockquote cite {
    display: block;
    margin-top: var(--hc-space-sm);
    font-family: var(--hc-font-body);
    font-size: 0.875rem;
    font-style: normal;
    color: var(--hc-text-tertiary);
}

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

.hc-article__content a:hover {
    text-decoration-thickness: 2px;
}

.hc-article__content strong {
    color: var(--hc-text-primary);
    font-weight: 600;
}

.hc-article__content ul,
.hc-article__content ol {
    margin: var(--hc-space-lg) 0;
    padding-left: var(--hc-space-xl);
}

.hc-article__content li {
    margin-bottom: var(--hc-space-sm);
}

/* ============================================
   ARTICLE TAGS
   ============================================ */
.hc-article__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--hc-space-sm);
    margin-top: var(--hc-space-2xl);
    padding-top: var(--hc-space-xl);
    border-top: 1px solid var(--hc-border-light);
}

.hc-article__tags-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hc-text-secondary);
    margin-right: var(--hc-space-sm);
}

.hc-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    background-color: var(--hc-surface-muted);
    color: var(--hc-text-secondary);
    border-radius: 50px;
    transition: all var(--hc-transition-fast);
}

.hc-tag:hover {
    background-color: var(--hc-accent-primary);
    color: #FFFFFF;
}

/* ============================================
   ARTICLE SHARE
   ============================================ */
.hc-article__share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--hc-space-lg);
    margin-top: var(--hc-space-2xl);
    padding-top: var(--hc-space-xl);
    border-top: 1px solid var(--hc-border-light);
}

.hc-article__share-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hc-text-secondary);
}

.hc-article__share-links {
    display: flex;
    gap: var(--hc-space-sm);
}

.hc-share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hc-surface-muted);
    border: none;
    border-radius: 50%;
    color: var(--hc-text-secondary);
    cursor: pointer;
    transition: all var(--hc-transition-fast);
}

.hc-share-btn:hover {
    background-color: var(--hc-earth-deep);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.hc-share-btn.is-copied {
    background-color: #059669;
    color: #FFFFFF;
}

/* ============================================
   ARTICLE READ TIME (in header)
   ============================================ */
.hc-article__read-time {
    font-size: 0.875rem;
    color: var(--hc-text-muted);
}

/* ============================================
   ARTICLE COVER IMAGE
   ============================================ */
.hc-article__cover {
    margin: 0 auto var(--hc-space-3xl);
    max-width: 1000px;
    border-radius: var(--hc-radius-lg);
    overflow: hidden;
}

.hc-article__cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   SEARCH MODAL
   ============================================ */
.hc-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    background-color: rgba(26, 22, 18, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--hc-transition-base);
}

.hc-search-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.hc-search-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.hc-search-modal__content {
    position: relative;
    width: 100%;
    max-width: 640px;
    padding: 0 var(--hc-space-lg);
    transform: translateY(-20px);
    transition: transform var(--hc-transition-base);
}

.hc-search-modal.is-open .hc-search-modal__content {
    transform: translateY(0);
}

.hc-search-form {
    display: flex;
    align-items: center;
    background-color: var(--hc-surface-elevated);
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow-xl);
    overflow: hidden;
}

.hc-search-form__input {
    flex: 1;
    padding: var(--hc-space-lg) var(--hc-space-xl);
    font-size: 1.125rem;
    border: none;
    background: transparent;
    color: var(--hc-text-primary);
    outline: none;
}

.hc-search-form__input::placeholder {
    color: var(--hc-text-muted);
}

.hc-search-form__submit {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--hc-text-tertiary);
    cursor: pointer;
    transition: all var(--hc-transition-fast);
}

.hc-search-form__submit:hover {
    color: var(--hc-accent-primary);
    background-color: var(--hc-surface-muted);
}

.hc-search-modal__close {
    position: absolute;
    top: calc(100% + var(--hc-space-lg));
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    transition: all var(--hc-transition-fast);
}

.hc-search-modal__close:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateX(-50%) scale(1.05);
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.hc-mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    background-color: var(--hc-surface-base);
    padding-top: 80px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all var(--hc-transition-base);
}

.hc-mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.hc-mobile-nav__inner {
    height: 100%;
    overflow-y: auto;
    padding: var(--hc-space-xl) var(--hc-space-lg);
}

.hc-mobile-nav__menu {
    display: flex;
    flex-direction: column;
}

.hc-mobile-nav__list {
    display: flex;
    flex-direction: column;
    gap: var(--hc-space-xs);
}

.hc-mobile-nav__list a {
    display: block;
    padding: var(--hc-space-md) var(--hc-space-lg);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--hc-text-primary);
    border-radius: var(--hc-radius-md);
    transition: all var(--hc-transition-fast);
}

.hc-mobile-nav__list a:hover,
.hc-mobile-nav__list .current-menu-item a {
    background-color: var(--hc-surface-muted);
    color: var(--hc-accent-primary);
}

/* ============================================
   ACCESSIBILITY - FOCUS STATES
   ============================================ */
*:focus-visible {
    outline: 2px solid var(--hc-accent-primary);
    outline-offset: 2px;
}

.hc-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(155, 107, 74, 0.3);
}

.hc-nav__link:focus-visible,
.hc-card:focus-visible,
a:focus-visible {
    outline: 2px solid var(--hc-accent-primary);
    outline-offset: 2px;
    border-radius: var(--hc-radius-sm);
}

.hc-header__search:focus-visible,
.hc-mobile-toggle:focus-visible {
    outline: 2px solid var(--hc-accent-primary);
    outline-offset: 2px;
}

/* Screen Reader Only */
.hc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip Link */
.hc-skip-link {
    position: absolute;
    top: -100%;
    left: var(--hc-space-md);
    z-index: 9999;
    padding: var(--hc-space-md) var(--hc-space-lg);
    background-color: var(--hc-accent-primary);
    color: #FFFFFF;
    font-weight: 600;
    border-radius: var(--hc-radius-md);
    transition: top var(--hc-transition-fast);
}

.hc-skip-link:focus {
    top: var(--hc-space-md);
}

/* ============================================
   HEADER BUTTON FIXES
   ============================================ */
.hc-header__search {
    background: none;
    border: none;
}

.hc-mobile-toggle {
    background: none;
    border: none;
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.hc-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--hc-surface-muted);
    z-index: 1001;
}

.hc-reading-progress__bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--hc-accent-primary), var(--hc-accent-hover));
    transition: width 50ms linear;
}

/* ============================================
   LOADING STATES
   ============================================ */
.hc-loading {
    position: relative;
    pointer-events: none;
}

.hc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--hc-border-medium);
    border-top-color: var(--hc-accent-primary);
    border-radius: 50%;
    animation: hc-spin 0.8s linear infinite;
}

@keyframes hc-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.hc-toast {
    position: fixed;
    bottom: var(--hc-space-xl);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: var(--hc-space-md) var(--hc-space-xl);
    background-color: var(--hc-earth-deep);
    color: #FFFFFF;
    border-radius: var(--hc-radius-md);
    box-shadow: var(--hc-shadow-xl);
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--hc-transition-base);
}

.hc-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.hc-toast--success {
    background-color: #059669;
}

.hc-toast--error {
    background-color: #dc2626;
}

/* ============================================
   ARCHIVE HEADER
   ============================================ */
.hc-archive-header {
    padding: calc(80px + var(--hc-space-3xl)) 0 var(--hc-space-2xl);
    background-color: var(--hc-surface-muted);
    text-align: center;
}

.hc-archive-header__title {
    margin-bottom: var(--hc-space-md);
}

.hc-archive-header__description {
    font-size: 1.125rem;
    color: var(--hc-text-tertiary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   IMAGE LAZY LOADING
   ============================================ */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity var(--hc-transition-base);
}

img[loading="lazy"].is-loaded,
img:not([loading="lazy"]) {
    opacity: 1;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
    :root {
        --hc-border-light: rgba(44, 36, 22, 0.25);
        --hc-border-medium: rgba(44, 36, 22, 0.4);
        --hc-text-tertiary: #3A352E;
    }
    
    .hc-card {
        border: 1px solid var(--hc-border-medium);
    }
    
    .hc-btn {
        border: 2px solid currentColor;
    }
}

/* ============================================
   FORM VALIDATION STATES
   ============================================ */
.hc-newsletter__input:invalid:not(:placeholder-shown),
.hc-footer__input:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
}

.hc-newsletter__input:valid:not(:placeholder-shown),
.hc-footer__input:valid:not(:placeholder-shown) {
    border-color: #059669;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .hc-header,
    .hc-footer,
    .hc-mobile-nav,
    .hc-search-modal,
    .hc-article__share,
    .hc-newsletter,
    .hc-btn,
    .hc-reading-progress {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .hc-article__content {
        max-width: 100%;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    .hc-article__cover img {
        max-height: 300px;
        object-fit: contain;
    }
}

/*--------------------------------------------------------------
 * Front Page - Categories Grid
 *--------------------------------------------------------------*/
.hc-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--hc-space-lg);
    margin-top: var(--hc-space-xl);
}

.hc-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--hc-radius-lg);
    overflow: hidden;
    text-decoration: none;
    background: var(--hc-earth-deep, #1a1612);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform var(--hc-transition-base), box-shadow var(--hc-transition-base);
}

.hc-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hc-category-card__image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.hc-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--hc-transition-slow);
}

.hc-category-card:hover .hc-category-card__image img {
    transform: scale(1.08);
}

.hc-category-card__content {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--hc-space-lg);
    background: var(--hc-earth-deep, #1a1612);
    color: #FFFFFF;
}

.hc-category-card__title {
    font-family: var(--hc-font-display);
    font-size: 1.375rem;
    font-weight: 600;
    margin: 0 0 var(--hc-space-xs) 0;
    color: #FFFFFF;
}

.hc-category-card__description {
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0 0 var(--hc-space-sm) 0;
    color: #FFFFFF;
}

.hc-category-card__count {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    color: #FFFFFF;
}

/* Responsive Categories Grid */
@media (max-width: 1024px) {
    .hc-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hc-categories-grid {
        grid-template-columns: 1fr;
        gap: var(--hc-space-md);
    }
    
    .hc-category-card__image {
        height: 200px;
    }
}

/*--------------------------------------------------------------
 * Front Page - Highlight Section
 *--------------------------------------------------------------*/
.hc-highlight {
    padding: var(--hc-space-4xl) 0;
    background-color: var(--hc-earth-deep);
}

.hc-highlight__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hc-highlight__quote {
    margin: 0;
}

.hc-highlight__quote p {
    font-family: var(--hc-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--hc-space-lg);
}

.hc-highlight__quote cite {
    display: block;
    font-family: var(--hc-font-body);
    font-size: 0.9375rem;
    font-style: normal;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
}

/*--------------------------------------------------------------
 * Footer Form (Front Page)
 *--------------------------------------------------------------*/
.hc-footer__form {
    display: flex;
    gap: var(--hc-space-sm);
}

.hc-footer__input {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9375rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--hc-radius-md);
    color: #FFFFFF;
    outline: none;
    transition: border-color var(--hc-transition-fast);
}

.hc-footer__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.hc-footer__input:focus {
    border-color: rgba(255, 255, 255, 0.4);
}

.hc-footer__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: var(--hc-radius-md);
    color: #FFFFFF;
    cursor: pointer;
    transition: background var(--hc-transition-fast);
}

.hc-footer__submit:hover {
    background: rgba(255, 255, 255, 0.25);
}

/*--------------------------------------------------------------
 * Search Modal
 *--------------------------------------------------------------*/
.hc-search-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--hc-transition-base);
}

.hc-search-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.hc-search-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 22, 18, 0.8);
    backdrop-filter: blur(8px);
}

.hc-search-modal__content {
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 0 var(--hc-space-lg);
}

.hc-search-form {
    display: flex;
    background: var(--hc-surface-elevated);
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow-xl);
    overflow: hidden;
}

.hc-search-form__input {
    flex: 1;
    padding: 20px 24px;
    font-size: 1.125rem;
    border: none;
    background: transparent;
    color: var(--hc-text-primary);
    outline: none;
}

.hc-search-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    background: var(--hc-accent-primary);
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    transition: background var(--hc-transition-fast);
}

.hc-search-form__submit:hover {
    background: var(--hc-accent-hover);
}

.hc-search-modal__close {
    position: absolute;
    top: -60px;
    right: var(--hc-space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--hc-transition-fast);
}

.hc-search-modal__close:hover {
    opacity: 1;
}

/*--------------------------------------------------------------
 * Mobile Navigation
 *--------------------------------------------------------------*/
.hc-mobile-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--hc-surface-base);
    transform: translateX(100%);
    transition: transform var(--hc-transition-base);
}

.hc-mobile-nav.is-open {
    transform: translateX(0);
}

.hc-mobile-nav__inner {
    padding: var(--hc-space-xl);
}

.hc-mobile-nav__list {
    display: flex;
    flex-direction: column;
    gap: var(--hc-space-md);
}

.hc-mobile-nav__list a {
    display: block;
    padding: var(--hc-space-md) 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--hc-text-primary);
    border-bottom: 1px solid var(--hc-border-light);
}

/*--------------------------------------------------------------
 * Front Page Responsive
 *--------------------------------------------------------------*/
@media (max-width: 768px) {
    .hc-section-header__row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--hc-space-md);
    }
}
