/*
Theme Name: AstroFla
Theme URI: https://astrofla.com
Author: AstroFla
Author URI: https://astrofla.com
Description: A modern astrology blog theme inspired by Reiro by Fueko. Features Libre Baskerville serif headings, clean editorial layout, yellow accent cards, Editor's Choice section, Reiro-style sidebar, light/dark/sepia modes, full WordPress Customizer support, and trust-building components for astrology content.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astrofla
Tags: blog, one-column, two-columns, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, theme-options, translation-ready

AstroFla WordPress Theme v2.1 — Reiro-inspired design for astrology blogs.
*/

/* ============================================
   CSS CUSTOM PROPERTIES — Reiro Design System
   ============================================ */
:root {
    --color-bg:             #FFFFFF;
    --color-bg-alt:         #F7F7F7;
    --color-bg-card:        #FFFFFF;
    --color-surface:        #F0F0F0;
    --color-text:           #15171A;
    --color-text-secondary: #687385;
    --color-text-muted:     #99A1AF;
    --color-accent:         #15171A;
    --color-accent-hover:   #303236;
    --color-accent-soft:    #F0F0F0;
    --color-border:         #E5E7EB;
    --color-border-light:   #F0F0F2;
    --color-tag-bg:         #F3F4F6;
    --color-tag-text:       #4B5563;
    --color-success:        #16a34a;
    --color-yellow:         #FDC844;
    --color-yellow-hover:   #F5BD30;
    --color-yellow-light:   #FFF3D0;

    --font-serif:    'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --font-sans:     -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

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

    --max-width:    1200px;
    --max-width-sm: 680px;
    --radius:       8px;
    --radius-md:    12px;
    --radius-lg:    16px;
    --radius-xl:    20px;

    --ease:     cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.25s;
}

/* Dark mode */
[data-theme="dark"] {
    --color-bg:             #15171A;
    --color-bg-alt:         #1C1E21;
    --color-bg-card:        #22252A;
    --color-surface:        #2A2D33;
    --color-text:           #E8E8ED;
    --color-text-secondary: #A0A5B2;
    --color-text-muted:     #6B7080;
    --color-accent:         #FFFFFF;
    --color-accent-hover:   #D1D5DB;
    --color-accent-soft:    #2A2D33;
    --color-border:         #2E3138;
    --color-border-light:   #262930;
    --color-tag-bg:         #2A2D33;
    --color-tag-text:       #A0A5B2;
    --color-yellow:         #FDC844;
    --color-yellow-hover:   #F5BD30;
    --color-yellow-light:   #3D3520;
}

/* Sepia mode */
[data-theme="sepia"] {
    --color-bg:             #F5ECD7;
    --color-bg-alt:         #EDE3CA;
    --color-bg-card:        #FBF5E6;
    --color-surface:        #E8DFC8;
    --color-text:           #2C2416;
    --color-text-secondary: #6B5D4D;
    --color-text-muted:     #9A8B76;
    --color-accent:         #2C2416;
    --color-accent-hover:   #4A3D2A;
    --color-accent-soft:    #E8DFC8;
    --color-border:         #DDD3BB;
    --color-border-light:   #E5DBCA;
    --color-tag-bg:         #E8DFC8;
    --color-tag-text:       #6B5D4D;
    --color-yellow:         #E8B830;
    --color-yellow-hover:   #D4A620;
    --color-yellow-light:   #F5ECD7;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.0625rem; }
h5 { font-size: 0.9375rem; }

p {
    font-size: 0.9375rem;
    line-height: 1.72;
    color: var(--color-text-secondary);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--narrow { max-width: var(--max-width-sm); }
.container--wide   { max-width: 1320px; }

section { padding: var(--space-4xl) 0; }

/* Two-column layout with sidebar */
.layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-2xl);
    align-items: start;
}

.layout-sidebar__main { min-width: 0; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
    transition: background var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}

.nav.is-scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav__logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.nav__logo img,
.nav__logo svg { height: 26px; width: auto; }
.custom-logo-link img { height: 26px; width: auto; }

.nav__center {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav__link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.01em;
    transition: color var(--duration) var(--ease);
    position: relative;
}

.nav__link:hover,
.nav__link--active,
.current-menu-item > a { color: var(--color-text); }

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

/* Icon buttons in nav */
.nav__icon-btn,
.nav__search-toggle,
.nav__theme-toggle {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all var(--duration) var(--ease);
}

.nav__icon-btn:hover,
.nav__search-toggle:hover,
.nav__theme-toggle:hover {
    color: var(--color-text);
    border-color: var(--color-text-muted);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.6875rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    line-height: 1.4;
}

.btn--sm { padding: 0.5rem 1.125rem; font-size: 0.75rem; }
.btn--lg { padding: 0.8125rem 1.875rem; font-size: 0.875rem; }

.btn--primary {
    background: var(--color-accent);
    color: var(--color-bg);
}
.btn--primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.btn--secondary {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}
.btn--secondary:hover {
    border-color: var(--color-text);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    padding: 0.625rem 0;
}
.btn--ghost:hover { color: var(--color-text-secondary); }

.btn--white {
    background: #FFFFFF;
    color: #15171A;
}
.btn--white:hover { background: #F0F0F0; }

.btn--outline-white {
    background: transparent;
    color: #E8E8ED;
    border: 1.5px solid rgba(255,255,255,0.2);
}
.btn--outline-white:hover { border-color: rgba(255,255,255,0.5); }

.btn--yellow {
    background: var(--color-yellow);
    color: #15171A;
    font-weight: 700;
}
.btn--yellow:hover {
    background: var(--color-yellow-hover);
    transform: translateY(-1px);
}

.btn__arrow {
    width: 14px; height: 14px;
    transition: transform var(--duration) var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(2px); }

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav__burger span {
    display: block;
    width: 20px; height: 1.5px;
    background: var(--color-text);
    border-radius: 1px;
    transition: all var(--duration) var(--ease);
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--color-bg);
    padding: 80px var(--space-xl) var(--space-xl);
    flex-direction: column;
    gap: var(--space-md);
    overflow-y: auto;
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.mobile-menu a:hover { color: var(--color-text-secondary); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: calc(64px + var(--space-4xl)) 0 var(--space-3xl);
    text-align: center;
}

.hero--left { text-align: left; }
.hero--with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    text-align: left;
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.hero__label-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--color-text-muted);
    animation: blink 2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero__title {
    margin-bottom: var(--space-lg);
    max-width: 700px;
}

.hero--center .hero__title { margin-left: auto; margin-right: auto; }

.hero__title em { font-style: italic; font-weight: 400; }

.hero__subtitle {
    font-size: 1rem;
    max-width: 520px;
    margin-bottom: var(--space-xl);
    line-height: 1.75;
}

.hero--center .hero__subtitle { margin-left: auto; margin-right: auto; }

.hero__buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero--center .hero__buttons { justify-content: center; }

.hero__content { min-width: 0; }

.hero__image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--color-surface);
    transition: box-shadow 0.3s ease, border-radius 0.3s ease;
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Background image mode (center/left layouts with image) */
.hero--has-bg-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero--has-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    z-index: 1;
    pointer-events: none;
}

[data-theme="dark"] .hero--has-bg-image::before {
    background: rgba(21,23,26,0.75);
}

.hero--has-bg-image > .container {
    position: relative;
    z-index: 2;
}

/* ============================================
   TRUST METRICS
   ============================================ */
.metrics {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

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

.metric { text-align: center; }

.metric__value {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

.metric__label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    gap: var(--space-md);
    flex-wrap: wrap;
}

.section-head__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text);
    margin-bottom: 4px;
}

.section-head__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--duration) var(--ease);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.section-head__link:hover { color: var(--color-text-secondary); }

/* ============================================
   EDITOR'S CHOICE / FEATURED POSTS (Reiro-style)
   ============================================ */
.editors-choice {
    padding: var(--space-3xl) 0;
}

.editors-choice__container {
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.editors-choice__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
    z-index: 1;
}

.editors-choice__badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.editors-choice__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.2;
}

.editors-choice__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

/* Yellow featured card — Reiro signature */
.ec-card {
    background: var(--color-yellow);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    transition: transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}

.ec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(253, 200, 68, 0.25);
}

.ec-card__img-wrap {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.ec-card__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.ec-card__img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(160deg, #E8E2F0, #F0E8DF);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-card__body { padding: var(--space-xs) var(--space-sm) var(--space-sm); }

.ec-card__title {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: #15171A;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.ec-card__title a { color: inherit; }
.ec-card__title a:hover { opacity: 0.7; }

.ec-card__author {
    font-size: 0.8125rem;
    color: rgba(21,23,26,0.6);
}

.editors-choice__footer {
    text-align: center;
}

.editors-choice__footer a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--duration) var(--ease);
}

.editors-choice__footer a:hover { color: var(--color-text-secondary); }

/* ============================================
   CATEGORIES
   ============================================ */
.categories {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.categories__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.categories__list::-webkit-scrollbar { display: none; }

.cat-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 100px;
    border: 1.5px solid var(--color-border);
    background: var(--color-bg-card);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
    text-decoration: none;
}

.cat-chip:hover,
.cat-chip--active,
.cat-chip.current-cat {
    border-color: var(--color-accent);
    color: var(--color-text);
    background: var(--color-accent-soft);
}

/* ============================================
   POST CARDS — standard grid cards
   ============================================ */
.posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

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

.pcard {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
    display: flex;
    flex-direction: column;
}

.pcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

[data-theme="dark"] .pcard:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.25); }

.pcard__img-wrap { position: relative; overflow: hidden; }

.pcard__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.pcard:hover .pcard__img { transform: scale(1.03); }

/* Category tags as pills below image (Reiro style) */
.pcard__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.pcard__tag-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: 3px 12px;
    border-radius: 100px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    transition: all var(--duration) var(--ease);
}

.pcard__tag-pill:hover {
    color: var(--color-text);
    border-color: var(--color-text-muted);
}

/* Legacy overlay tag (keep for compat) */
.pcard__tag {
    position: absolute;
    top: 12px; left: 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--color-bg);
    color: var(--color-text);
    padding: 3px 10px;
    border-radius: 100px;
}

.pcard__tag a { color: inherit; }

.pcard__body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pcard__title {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    margin-bottom: 8px;
    line-height: 1.3;
}
.pcard__title a { transition: color var(--duration) var(--ease); }
.pcard__title a:hover { color: var(--color-text-secondary); }

.pcard__excerpt {
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.pcard__author { display: flex; align-items: center; gap: 8px; }

.pcard__avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-surface);
}

.pcard__author-name { font-size: 0.8125rem; font-weight: 600; color: var(--color-text); }
.pcard__read-time { font-size: 0.75rem; color: var(--color-text-muted); }

/* ============================================
   WHAT'S NEW — large post + sidebar layout
   ============================================ */
.whats-new {
    padding: var(--space-3xl) 0;
}

.whats-new__layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-2xl);
    align-items: start;
}

.whats-new__main { min-width: 0; }

/* Large featured post card (Reiro blog main card) */
.post-large {
    margin-bottom: var(--space-xl);
}

.post-large__img-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.post-large__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease);
}

.post-large:hover .post-large__img { transform: scale(1.02); }

.post-large__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.post-large__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.post-large__title a { color: inherit; transition: color var(--duration) var(--ease); }
.post-large__title a:hover { color: var(--color-text-secondary); }

.post-large__excerpt {
    font-size: 0.9375rem;
    line-height: 1.72;
    color: var(--color-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-large__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ============================================
   SIDEBAR (Reiro-style)
   ============================================ */
.sidebar { position: sticky; top: 84px; }

/* Yellow newsletter card — Reiro signature */
.sidebar-newsletter {
    background: var(--color-yellow);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.sidebar-newsletter__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(21,23,26,0.5);
    margin-bottom: var(--space-sm);
}

.sidebar-newsletter__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #15171A;
    line-height: 1.3;
    margin-bottom: var(--space-lg);
}

.sidebar-newsletter__input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 100px;
    border: none;
    background: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: #15171A;
    outline: none;
    margin-bottom: var(--space-sm);
}

.sidebar-newsletter__input::placeholder { color: #99A1AF; }
.sidebar-newsletter__input:focus { box-shadow: 0 0 0 2px rgba(21,23,26,0.15); }

.sidebar-newsletter__btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 100px;
    border: none;
    background: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    color: #15171A;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.sidebar-newsletter__btn:hover { background: #F0F0F0; }

/* Sidebar small post cards */
.sidebar-post {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-xl);
}

.sidebar-post__img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.sidebar-post__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease);
}

.sidebar-post:hover .sidebar-post__img { transform: scale(1.03); }

.sidebar-post__tags {
    display: flex;
    gap: 6px;
    margin-bottom: var(--space-xs);
}

.sidebar-post__title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: 4px;
}

.sidebar-post__title a { color: inherit; transition: color var(--duration) var(--ease); }
.sidebar-post__title a:hover { color: var(--color-text-secondary); }

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

/* Generic widget styling */
.widget {
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.widget__title {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border-light);
}

.widget ul { list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--color-border-light); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { font-size: 0.875rem; color: var(--color-text-secondary); transition: color var(--duration) var(--ease); }
.widget ul li a:hover { color: var(--color-text); }

.tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tagcloud a {
    font-size: 0.75rem !important;
    padding: 4px 12px;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    color: var(--color-text-secondary);
    transition: all var(--duration) var(--ease);
}
.tagcloud a:hover { border-color: var(--color-accent); color: var(--color-text); }

/* ============================================
   FEATURED POSTS (fcard — legacy compat)
   ============================================ */
.featured__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-xl);
}

.fcard {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}

.fcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

[data-theme="dark"] .fcard:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

.fcard__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: var(--color-surface);
}

.fcard__body { padding: var(--space-lg); }
.fcard--hero .fcard__body { padding: var(--space-xl); }

.fcard__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-tag-text);
    background: var(--color-tag-bg);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: var(--space-sm);
}

.fcard__tag a { color: inherit; }
.fcard__tag a:hover { color: var(--color-text); }

.fcard__title { margin-bottom: 8px; transition: color var(--duration) var(--ease); }
.fcard:hover .fcard__title { color: var(--color-text-secondary); }
.fcard--hero .fcard__title { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

.fcard__excerpt {
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fcard__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.fcard__meta-item { display: flex; align-items: center; gap: 3px; }

.fcard__sidebar { display: flex; flex-direction: column; gap: var(--space-lg); }

.fcard--sm { display: grid; grid-template-columns: 130px 1fr; }
.fcard--sm .fcard__img { aspect-ratio: 1; height: 100%; }
.fcard--sm .fcard__body { padding: var(--space-md); display: flex; flex-direction: column; justify-content: center; }
.fcard--sm .fcard__title { font-size: 0.9375rem; }

/* ============================================
   SINGLE POST
   ============================================ */
.single-post__header {
    padding: calc(64px + var(--space-3xl)) 0 var(--space-2xl);
    text-align: center;
}

.single-post__tag { margin-bottom: var(--space-md); }

.single-post__title {
    max-width: 720px;
    margin: 0 auto var(--space-lg);
}

.single-post__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.single-post__meta-item { display: flex; align-items: center; gap: 6px; }

.single-post__feature-img {
    max-width: 960px;
    margin: 0 auto var(--space-2xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.single-post__feature-img img { width: 100%; }

.single-post__content {
    max-width: var(--max-width-sm);
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text);
}

.single-post__content p { margin-bottom: var(--space-lg); font-size: inherit; color: inherit; }
.single-post__content h2 { margin: var(--space-2xl) 0 var(--space-lg); }
.single-post__content h3 { margin: var(--space-xl) 0 var(--space-md); }
.single-post__content img { border-radius: var(--radius-md); margin: var(--space-xl) 0; }
.single-post__content blockquote {
    border-left: 3px solid var(--color-yellow);
    padding-left: var(--space-lg);
    margin: var(--space-xl) 0;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-text-secondary);
}
.single-post__content ul, .single-post__content ol { margin: var(--space-lg) 0; padding-left: var(--space-xl); }
.single-post__content li { margin-bottom: var(--space-sm); }
.single-post__content a { color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; }
.single-post__content a:hover { color: var(--color-text-secondary); }

/* Post navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border-light);
    margin-top: var(--space-2xl);
}

.post-nav__item { display: flex; flex-direction: column; gap: 4px; }
.post-nav__item--next { text-align: right; }
.post-nav__label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); }
.post-nav__title { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; transition: color var(--duration) var(--ease); }
.post-nav__title:hover { color: var(--color-text-secondary); }

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

.author-box__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--color-surface); flex-shrink: 0; }
.author-box__name { font-family: var(--font-serif); font-weight: 700; margin-bottom: 4px; }
.author-box__bio { font-size: 0.875rem; }

/* ============================================
   SUBSCRIBE COMPONENTS
   ============================================ */
.subscribe-section { background: var(--color-bg); padding: var(--space-4xl) 0; }

.subscribe-card {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}

.subscribe-card__icon {
    width: 44px; height: 44px;
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius);
    background: var(--color-yellow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
}

.subscribe-card__title { margin-bottom: 8px; }

.subscribe-card__desc {
    max-width: 420px;
    margin: 0 auto var(--space-xl);
    font-size: 0.9375rem;
}

.subscribe-form {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
}

/* Stacked layout for subscribe page and when name field is shown */
.subscribe-form--stacked,
.subscribe-form--with-name {
    flex-direction: column;
    align-items: stretch;
}

.subscribe-form--stacked .subscribe-form__btn,
.subscribe-form--with-name .subscribe-form__btn {
    width: 100%;
}

.subscribe-form__input {
    flex: 1;
    padding: 0.6875rem 1.125rem;
    border-radius: 100px;
    border: 1.5px solid var(--color-border);
    background: var(--color-bg);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text);
    outline: none;
    transition: border-color var(--duration) var(--ease);
}

.subscribe-form__input::placeholder { color: var(--color-text-muted); }
.subscribe-form__input:focus { border-color: var(--color-text); }

.subscribe-form__btn {
    padding: 0.6875rem 1.5rem;
    border-radius: 100px;
    border: none;
    background: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}

.subscribe-form__btn:hover { background: var(--color-accent-hover); }

.subscribe-form__note {
    margin-top: var(--space-md);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Dark CTA section */
.cta-dark {
    background: #15171A;
    color: #E8E8ED;
    padding: var(--space-4xl) 0;
}

[data-theme="sepia"] .cta-dark { background: #2C2416; }

.cta-dark__inner { text-align: center; max-width: 560px; margin: 0 auto; }
.cta-dark h2 { color: #FFFFFF; margin-bottom: var(--space-md); }
.cta-dark p { color: #A0A5B2; margin-bottom: var(--space-xl); }

.cta-dark .subscribe-form__input {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: #E8E8ED;
}
.cta-dark .subscribe-form__input::placeholder { color: #6B7080; }
.cta-dark .subscribe-form__input:focus { border-color: rgba(255,255,255,0.4); }
.cta-dark .subscribe-form__btn { background: var(--color-yellow); color: #15171A; }
.cta-dark .subscribe-form__btn:hover { background: var(--color-yellow-hover); }
.cta-dark .subscribe-form__note { color: #6B7080; }

/* ============================================
   PAGE TEMPLATES
   ============================================ */
.page-header {
    padding: calc(64px + var(--space-3xl)) 0 var(--space-2xl);
    text-align: center;
    border-bottom: 1px solid var(--color-border-light);
}

.page-header__title { max-width: 600px; margin: 0 auto var(--space-md); }
.page-header__desc { max-width: 480px; margin: 0 auto; }

.page-content {
    max-width: var(--max-width-sm);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
}

.page-content p { margin-bottom: var(--space-lg); }
.page-content h2 { margin: var(--space-2xl) 0 var(--space-lg); }

/* About page */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.about__title { margin-bottom: var(--space-lg); }
.about__text { margin-bottom: var(--space-xl); }

.about__features { list-style: none; display: flex; flex-direction: column; gap: var(--space-lg); }

.about__feature { display: flex; align-items: flex-start; gap: var(--space-md); }

.about__feature-icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: var(--radius);
    background: var(--color-yellow-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text);
    margin-top: 2px;
}

.about__feature-text h4 { font-family: var(--font-sans); font-weight: 600; font-size: 0.875rem; margin-bottom: 2px; }
.about__feature-text p { font-size: 0.8125rem; }

.about__image {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

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

/* ============================================
   AUTHORS / ABOUT PAGE (Reiro-style)
   ============================================ */
.authors-page {
    padding: var(--space-3xl) 0;
}

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

.author-card {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    transition: all var(--duration) var(--ease);
}

.author-card:hover {
    border-color: var(--color-border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

[data-theme="dark"] .author-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

.author-card__avatar-wrap { flex-shrink: 0; }

.author-card__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-surface);
}

.author-card__body { flex: 1; min-width: 0; }

.author-card__name {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.author-card__name a { color: inherit; transition: color var(--duration) var(--ease); }
.author-card__name a:hover { color: var(--color-text-secondary); }

.author-card__bio {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    font-size: 0.8125rem;
}

.author-card__post-count {
    color: var(--color-text-muted);
    font-weight: 500;
}

.author-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color var(--duration) var(--ease);
}

.author-card__link:hover { color: var(--color-text); }

/* ============================================
   CONTACT PAGE (Reiro-style)
   ============================================ */
.contact-page {
    padding: var(--space-3xl) 0;
}

.contact-page__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-page__section-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
}

/* Contact form */
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.contact-form__field {
    margin-bottom: var(--space-md);
}

.contact-form__field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.contact-form__field input,
.contact-form__field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text);
    background: var(--color-bg);
    outline: none;
    transition: border-color var(--duration) var(--ease);
    resize: vertical;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    border-color: var(--color-text);
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
    color: var(--color-text-muted);
}

.contact-form__submit {
    margin-top: var(--space-sm);
}

/* Contact info card */
.contact-info-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.contact-info-card__title {
    font-size: 1rem;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
}

.contact-info-card__item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-info-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--color-yellow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    flex-shrink: 0;
}

.contact-info-card__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.contact-info-card__value {
    font-size: 0.875rem;
    color: var(--color-text);
    font-weight: 500;
}

a.contact-info-card__value { text-decoration: underline; text-underline-offset: 3px; }
a.contact-info-card__value:hover { color: var(--color-text-secondary); }

.contact-info-card__social {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

.contact-info-card__social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.contact-info-card__social-link {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--duration) var(--ease);
}

.contact-info-card__social-link:hover {
    color: var(--color-text);
    border-color: var(--color-text-muted);
}

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-page {
    padding: calc(64px + var(--space-3xl)) 0 var(--space-4xl);
}

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

/* ============================================
   FEATURED PAGE (all featured posts)
   ============================================ */
.featured-page {
    padding: calc(64px + var(--space-3xl)) 0 var(--space-4xl);
}

.featured-page__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.featured-page__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border-light);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer__brand { max-width: 280px; }

.footer__logo {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    display: flex; align-items: center; gap: 8px;
    margin-bottom: var(--space-md);
}

.footer__desc { font-size: 0.8125rem; line-height: 1.65; }

.footer__col-title {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.footer__links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__link { font-size: 0.8125rem; color: var(--color-text-secondary); transition: color var(--duration) var(--ease); }
.footer__link:hover { color: var(--color-text); }

.footer .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0;
}

.footer .widget__title { border-bottom: none; padding-bottom: 0; }

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
    gap: var(--space-md);
}

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

.footer__social-link {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-muted);
    transition: all var(--duration) var(--ease);
}

.footer__social-link:hover { color: var(--color-text); border-color: var(--color-text-muted); }

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

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

.search-overlay__inner {
    width: 100%;
    max-width: 560px;
    padding: var(--space-xl);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.search-overlay__input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1.5px solid var(--color-border);
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg);
    outline: none;
}

.search-overlay__input:focus { border-color: var(--color-text); }

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

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px; height: 38px;
    padding: 0 10px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--duration) var(--ease);
}

.pagination a:hover { border-color: var(--color-text); color: var(--color-text); }
.pagination .current { background: var(--color-accent); color: var(--color-bg); border-color: var(--color-accent); }

/* ============================================
   COMMENTS
   ============================================ */
.comments-area { margin-top: var(--space-2xl); padding-top: var(--space-2xl); border-top: 1px solid var(--color-border-light); }
.comments-area .comments-title { margin-bottom: var(--space-xl); }

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

.comment {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.comment-author { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.comment-author img { width: 32px; height: 32px; border-radius: 50%; }
.comment-author .fn { font-weight: 600; font-size: 0.875rem; }
.comment-metadata { font-size: 0.75rem; color: var(--color-text-muted); }
.comment-content p { font-size: 0.9rem; }

.comment-respond { margin-top: var(--space-xl); }
.comment-respond .comment-reply-title { margin-bottom: var(--space-lg); }

.comment-form label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 4px; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6875rem 1.125rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text);
    background: var(--color-bg);
    margin-bottom: var(--space-md);
    outline: none;
    transition: border-color var(--duration) var(--ease);
}

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

.comment-form .submit { margin-top: var(--space-sm); }

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    padding: calc(64px + var(--space-4xl)) 0 var(--space-4xl);
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

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

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.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); }
.aligncenter { display: block; margin: 0 auto var(--space-lg); }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.75rem; color: var(--color-text-muted); margin-top: var(--space-xs); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin: var(--space-xl) 0; }
.gallery-item img { border-radius: var(--radius); }

.screen-reader-text {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .layout-sidebar { grid-template-columns: 1fr; }
    .whats-new__layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .featured__grid { grid-template-columns: 1fr; }
    .fcard__sidebar { display: grid; grid-template-columns: 1fr 1fr; }
    .editors-choice__grid { grid-template-columns: repeat(2, 1fr); }
    .posts__grid { grid-template-columns: repeat(2, 1fr); }
    .featured-page__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .about__grid { grid-template-columns: 1fr; }
    .hero--with-image { grid-template-columns: 1fr; }
    .contact-page__grid { grid-template-columns: 1fr; }
    .authors-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav__center { display: none; }
    .nav__burger { display: flex; }
    .hero { padding: calc(64px + var(--space-3xl)) 0 var(--space-2xl); }
    .hero__buttons { flex-direction: column; align-items: stretch; }
    .hero--center .hero__buttons { align-items: center; }
    .btn { max-width: 280px; }
    .metrics__inner { gap: var(--space-xl); }
    .editors-choice__grid { grid-template-columns: 1fr; }
    .fcard--sm { grid-template-columns: 1fr; }
    .fcard__sidebar { grid-template-columns: 1fr; }
    .posts__grid { grid-template-columns: 1fr; }
    .featured-page__grid { grid-template-columns: 1fr; }
    .subscribe-form { flex-direction: column; }
    .footer__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
    .footer__bottom { flex-direction: column; text-align: center; }
    .post-nav { grid-template-columns: 1fr; }
    .author-box { flex-direction: column; text-align: center; }
    .editors-choice__container { padding: var(--space-2xl) var(--space-lg); }
    .contact-form__row { grid-template-columns: 1fr; }
    .author-card { flex-direction: column; align-items: center; text-align: center; }
    .author-card__avatar { width: 80px; height: 80px; }
    .author-card__meta { justify-content: center; }
}

@media (max-width: 480px) {
    section { padding: var(--space-3xl) 0; }
    .container { padding: 0 var(--space-lg); }
    .ec-card { padding: var(--space-sm); }
}

/* Accessibility */
:focus-visible { outline: 2px solid var(--color-yellow); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .nav, .mobile-menu, .subscribe-section, .cta-dark, .footer__social, .search-overlay { display: none; }
    body { background: white; color: black; }
}
