/*
Theme Name: Henley
Theme URI: https://altonhenley.com
Author: Alton Henley
Author URI: https://altonhenley.com
Description: A professional portfolio theme for academic leaders, authors, and civic technologists. Clean editorial design with custom page templates for publications, projects, and speaking engagements.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: henley
Tags: one-column, two-columns, custom-header, custom-menu, featured-images, threaded-comments, translation-ready, custom-logo, custom-colors

Henley — A professional portfolio for academic leaders and civic innovators.
*/

/* ========================================================================
   CSS Custom Properties
   ======================================================================== */

:root {
    /* Primary palette — academic authority */
    --h-charcoal:     #1A1A2E;
    --h-charcoal-mid: #252540;
    --h-slate:        #16213E;
    --h-steel:        #0F3460;
    --h-accent:       #E94560;
    --h-accent-dark:  #C73550;
    --h-gold:         #D4A843;
    --h-gold-light:   #E9C46A;

    /* Neutrals */
    --h-white:        #FFFFFF;
    --h-snow:         #FAFAFA;
    --h-cloud:        #F4F4F8;
    --h-silver:       #E2E2EA;
    --h-gray:         #9393A8;
    --h-dim:          #6B6B80;
    --h-dark:         #3A3A4E;
    --h-text:         #2A2A3C;
    --h-text-light:   #5A5A70;

    /* Typography */
    --h-font-display: 'Playfair Display', Georgia, serif;
    --h-font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --h-font-mono:    'JetBrains Mono', 'Fira Code', monospace;

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

    /* Layout */
    --h-container:    1140px;
    --h-container-sm: 760px;
    --h-container-lg: 1320px;
    --h-radius:       6px;
    --h-radius-lg:    12px;
    --h-radius-xl:    16px;

    /* Shadows */
    --h-shadow-sm:  0 1px 3px rgba(26, 26, 46, 0.06);
    --h-shadow-md:  0 4px 16px rgba(26, 26, 46, 0.08);
    --h-shadow-lg:  0 8px 32px rgba(26, 26, 46, 0.10);
    --h-shadow-xl:  0 16px 48px rgba(26, 26, 46, 0.14);

    /* Transitions */
    --h-ease: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================================================
   Reset & Base
   ======================================================================== */

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

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--h-font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--h-text);
    background-color: var(--h-white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--h-steel);
    text-decoration: none;
    transition: color var(--h-ease);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--h-font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--h-charcoal);
    margin-top: 0;
}

h1 { font-size: clamp(2.25rem, 4vw, 3rem); margin-bottom: var(--h-lg); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: var(--h-md); }
h3 { font-size: 1.5rem; margin-bottom: var(--h-md); }
h4 { font-size: 1.2rem; margin-bottom: var(--h-sm); }

p { margin-top: 0; margin-bottom: var(--h-md); }
ul, ol { padding-left: var(--h-xl); margin-bottom: var(--h-md); }

blockquote {
    margin: var(--h-xl) 0;
    padding: var(--h-lg) var(--h-xl);
    border-left: 3px solid var(--h-accent);
    background: var(--h-cloud);
    border-radius: 0 var(--h-radius) var(--h-radius) 0;
    font-style: italic;
    color: var(--h-text-light);
}

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

::selection { background: var(--h-accent); color: white; }

/* ========================================================================
   Layout
   ======================================================================== */

.h-container {
    max-width: var(--h-container);
    margin: 0 auto;
    padding: 0 var(--h-xl);
}

.h-container--sm { max-width: var(--h-container-sm); }
.h-container--lg { max-width: var(--h-container-lg); }

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

.h-section--cloud { background-color: var(--h-cloud); }
.h-section--dark {
    background-color: var(--h-charcoal);
    color: var(--h-white);
}

.h-section--dark h2,
.h-section--dark h3,
.h-section--dark h4 { color: var(--h-white); }
.h-section--dark p { color: var(--h-gray); }

.h-section__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--h-3xl);
}

.h-section__label {
    display: inline-block;
    font-family: var(--h-font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--h-accent);
    margin-bottom: var(--h-sm);
}

.h-section--dark .h-section__label { color: var(--h-gold-light); }

.h-grid {
    display: grid;
    gap: var(--h-xl);
}

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

@media (max-width: 1024px) {
    .h-grid--3, .h-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .h-grid--2, .h-grid--3, .h-grid--4 { grid-template-columns: 1fr; }
    .h-section { padding: var(--h-3xl) 0; }
}

/* ========================================================================
   Header
   ======================================================================== */

.h-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--h-silver);
    transition: box-shadow var(--h-ease);
}

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

.h-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: var(--h-container-lg);
    margin: 0 auto;
    padding: 0 var(--h-xl);
}

.h-header__brand {
    font-family: var(--h-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--h-charcoal);
    letter-spacing: -0.01em;
}

.h-header__brand:hover { color: var(--h-charcoal); }
.h-header__brand span { color: var(--h-accent); font-weight: 400; }

/* Navigation */
.h-nav {
    display: flex;
    align-items: center;
    gap: var(--h-xs);
}

.h-nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.h-nav__link {
    display: block;
    padding: var(--h-sm) var(--h-md);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--h-dim);
    border-radius: var(--h-radius);
    transition: all var(--h-ease);
}

.h-nav__link:hover,
.current-menu-item .h-nav__link {
    color: var(--h-charcoal);
    background: var(--h-cloud);
}

.h-nav__cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--h-white) !important;
    background: var(--h-accent);
    border-radius: 100px;
    margin-left: var(--h-sm);
    transition: all var(--h-ease);
}

.h-nav__cta:hover {
    background: var(--h-accent-dark);
    color: var(--h-white) !important;
    transform: translateY(-1px);
    box-shadow: var(--h-shadow-md);
}

.h-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--h-sm);
    cursor: pointer;
    color: var(--h-charcoal);
}

.h-menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
    .h-menu-toggle { display: block; }

    .h-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--h-white);
        border-bottom: 1px solid var(--h-silver);
        box-shadow: var(--h-shadow-lg);
        padding: var(--h-lg);
        flex-direction: column;
        align-items: stretch;
        transform: translateY(-110%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .h-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .h-nav__list { flex-direction: column; }
    .h-nav__link { padding: var(--h-md); font-size: 1rem; }
    .h-nav__cta { margin-left: 0; margin-top: var(--h-md); text-align: center; justify-content: center; }
}

/* ========================================================================
   Buttons
   ======================================================================== */

.h-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--h-sm);
    padding: 0.7rem 1.6rem;
    font-family: var(--h-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--h-ease);
    text-decoration: none;
    line-height: 1.4;
}

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

.h-btn svg { width: 16px; height: 16px; transition: transform var(--h-ease); }
.h-btn:hover svg { transform: translateX(3px); }

.h-btn--primary { background: var(--h-accent); color: var(--h-white); }
.h-btn--primary:hover { background: var(--h-accent-dark); color: var(--h-white); }

.h-btn--dark { background: var(--h-charcoal); color: var(--h-white); }
.h-btn--dark:hover { background: var(--h-charcoal-mid); color: var(--h-white); }

.h-btn--outline { background: transparent; color: var(--h-charcoal); border-color: var(--h-silver); }
.h-btn--outline:hover { border-color: var(--h-accent); color: var(--h-accent); }

.h-btn--white { background: var(--h-white); color: var(--h-charcoal); }
.h-btn--white:hover { background: var(--h-cloud); color: var(--h-accent); }

.h-btn--sm { padding: 0.45rem 1.1rem; font-size: 0.85rem; }
.h-btn--lg { padding: 0.85rem 2rem; font-size: 1.05rem; }

/* ========================================================================
   Hero (Front Page)
   ======================================================================== */

.h-hero {
    position: relative;
    padding: var(--h-4xl) 0;
    background: linear-gradient(160deg, var(--h-charcoal) 0%, var(--h-slate) 40%, var(--h-steel) 100%);
    color: var(--h-white);
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
}

.h-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 75% 25%, rgba(233, 69, 96, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 15% 80%, rgba(212, 168, 67, 0.06) 0%, transparent 50%);
}

/* Subtle geometric pattern */
.h-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
}

.h-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr auto 0.8fr;
    gap: var(--h-2xl);
    align-items: center;
}

/* Hero Photo */
.h-hero__photo {
    position: relative;
}

.h-hero__photo-frame {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 8px rgba(233, 69, 96, 0.08),
        0 16px 48px rgba(0, 0, 0, 0.3);
}

.h-hero__photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.h-hero__photo-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid rgba(212, 168, 67, 0.15);
}

.h-hero__photo-ring--outer {
    inset: -24px;
    border-color: rgba(212, 168, 67, 0.07);
}

.h-hero__label {
    font-family: var(--h-font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--h-gold-light);
    margin-bottom: var(--h-md);
}

.h-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    color: var(--h-white);
    line-height: 1.1;
    margin-bottom: var(--h-lg);
    letter-spacing: -0.02em;
}

.h-hero__title em {
    font-style: italic;
    color: var(--h-gold-light);
}

.h-hero__text {
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.6);
    max-width: 520px;
    margin-bottom: var(--h-xl);
}

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

/* Hero sidebar — credentials */
.h-hero__credentials {
    display: flex;
    flex-direction: column;
    gap: var(--h-md);
}

.h-credential {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--h-radius-lg);
    padding: var(--h-lg);
    transition: all var(--h-ease);
}

.h-credential:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.h-credential__label {
    font-family: var(--h-font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--h-gray);
    margin-bottom: var(--h-xs);
}

.h-credential__value {
    font-family: var(--h-font-display);
    font-size: 1.1rem;
    color: var(--h-white);
    line-height: 1.35;
}

@media (max-width: 1100px) {
    .h-hero__inner { grid-template-columns: 1fr 1fr; }
    .h-hero__photo { order: -1; grid-column: 1 / -1; justify-self: center; }
    .h-hero__photo-frame { width: 180px; height: 180px; }
}

@media (max-width: 900px) {
    .h-hero__inner { grid-template-columns: 1fr; text-align: center; }
    .h-hero__photo { justify-self: center; }
    .h-hero__credentials {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .h-credential { flex: 1; min-width: 200px; text-align: left; }
}

@media (max-width: 640px) {
    .h-hero__photo-frame { width: 150px; height: 150px; }
}

@media (max-width: 480px) {
    .h-hero__actions { flex-direction: column; }
    .h-btn { width: 100%; }
}

/* ========================================================================
   Cards
   ======================================================================== */

.h-card {
    background: var(--h-white);
    border: 1px solid var(--h-silver);
    border-radius: var(--h-radius-lg);
    padding: var(--h-2xl);
    transition: all var(--h-ease);
    position: relative;
    overflow: hidden;
}

.h-card:hover {
    box-shadow: var(--h-shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.h-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--h-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--h-ease);
}

.h-card:hover::before { transform: scaleX(1); }

.h-card__label {
    font-family: var(--h-font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--h-gray);
    margin-bottom: var(--h-sm);
}

.h-card__title {
    font-size: 1.3rem;
    margin-bottom: var(--h-sm);
}

.h-card__text {
    color: var(--h-text-light);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: var(--h-md);
}

.h-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--h-xs);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--h-accent);
    transition: gap var(--h-ease);
}

.h-card__link:hover { gap: 0.6rem; color: var(--h-accent-dark); }
.h-card__link svg { width: 14px; height: 14px; }

/* ========================================================================
   Publication Cards (special variant)
   ======================================================================== */

.h-pub {
    display: flex;
    gap: var(--h-xl);
    align-items: flex-start;
    background: var(--h-white);
    border: 1px solid var(--h-silver);
    border-radius: var(--h-radius-lg);
    padding: var(--h-xl);
    transition: all var(--h-ease);
}

.h-pub:hover {
    box-shadow: var(--h-shadow-lg);
    transform: translateY(-3px);
    border-color: transparent;
}

.h-pub__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--h-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.h-pub__icon--article { background: rgba(233, 69, 96, 0.08); color: var(--h-accent); }
.h-pub__icon--book    { background: rgba(15, 52, 96, 0.08); color: var(--h-steel); }

.h-pub__source {
    font-family: var(--h-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--h-gray);
    margin-bottom: 0.15rem;
}

.h-pub__title {
    font-family: var(--h-font-display);
    font-size: 1.15rem;
    color: var(--h-charcoal);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.h-pub__desc {
    font-size: 0.88rem;
    color: var(--h-text-light);
    line-height: 1.55;
    margin: 0;
}

/* ========================================================================
   Book Page
   ======================================================================== */

.h-book__hero {
    background: linear-gradient(160deg, var(--h-charcoal) 0%, var(--h-slate) 100%);
    padding: calc(var(--h-4xl) + 72px) 0 var(--h-4xl);
    color: var(--h-white);
}

.h-book__hero-inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--h-3xl);
    align-items: start;
}

/* Cover */
.h-book__cover {
    position: relative;
}

.h-book__cover img {
    width: 100%;
    border-radius: var(--h-radius-lg);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 16px 48px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.h-book__cover-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    background: var(--h-charcoal-mid);
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--h-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--h-sm);
    color: var(--h-gray);
    font-size: 0.85rem;
}

/* Info */
.h-book__title {
    font-family: var(--h-font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--h-white);
    line-height: 1.15;
    margin-bottom: var(--h-sm);
    letter-spacing: -0.01em;
}

.h-book__subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
    margin-bottom: var(--h-md);
}

.h-book__author {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--h-xl);
}

/* Meta row */
.h-book__meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--h-lg);
    margin-bottom: var(--h-2xl);
    padding-bottom: var(--h-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.h-book__meta-item {
    display: flex;
    flex-direction: column;
}

.h-book__meta-label {
    font-family: var(--h-font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--h-gray);
    margin-bottom: 0.1rem;
}

.h-book__meta-value {
    font-size: 0.95rem;
    color: var(--h-white);
    font-weight: 500;
}

/* Buy section */
.h-book__buy {
    margin-bottom: var(--h-xl);
}

.h-book__buy-heading {
    font-family: var(--h-font-body);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--h-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--h-md);
}

.h-book__buy-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--h-sm);
}

.h-book__buy-note {
    font-size: 0.9rem;
    color: var(--h-gray);
    font-style: italic;
}

/* Assessment companion */
.h-book__assessment {
    margin-top: var(--h-xl);
    padding-top: var(--h-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.h-book__assessment-label {
    display: block;
    font-family: var(--h-font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--h-gold-light);
    margin-bottom: var(--h-sm);
}

/* Description content area */
.h-book__content {
    font-size: 1.05rem;
    line-height: 1.85;
}

.h-book__content p { margin-bottom: var(--h-lg); }
.h-book__content h2 { margin-top: var(--h-2xl); }
.h-book__content h3 { margin-top: var(--h-xl); }
.h-book__content ul, .h-book__content ol { margin-bottom: var(--h-lg); }

.h-book__content blockquote {
    border-left: 3px solid var(--h-accent);
    padding: var(--h-lg) var(--h-xl);
    background: var(--h-cloud);
    border-radius: 0 var(--h-radius) var(--h-radius) 0;
    margin: var(--h-xl) 0;
    font-style: italic;
    color: var(--h-text-light);
}

@media (max-width: 768px) {
    .h-book__hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .h-book__cover {
        max-width: 260px;
        margin: 0 auto;
    }

    .h-book__meta-row {
        justify-content: center;
    }

    .h-book__buy-links {
        justify-content: center;
    }

    .h-book__assessment {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================================================
   Stats Bar
   ======================================================================== */

.h-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--h-xl);
    text-align: center;
}

.h-stats__item { padding: var(--h-xl) var(--h-md); }

.h-stats__number {
    font-family: var(--h-font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--h-accent);
    line-height: 1.1;
    margin-bottom: var(--h-xs);
}

.h-section--dark .h-stats__number { color: var(--h-gold-light); }

.h-stats__label {
    font-size: 0.88rem;
    color: var(--h-text-light);
}

.h-section--dark .h-stats__label { color: var(--h-gray); }

@media (max-width: 768px) {
    .h-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .h-stats { grid-template-columns: 1fr; }
}

/* ========================================================================
   CTA Banner
   ======================================================================== */

.h-cta {
    background: linear-gradient(135deg, var(--h-charcoal) 0%, var(--h-steel) 100%);
    border-radius: var(--h-radius-xl);
    padding: var(--h-3xl) var(--h-2xl);
    text-align: center;
    color: var(--h-white);
    position: relative;
    overflow: hidden;
}

.h-cta::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(233, 69, 96, 0.06);
}

.h-cta > * { position: relative; z-index: 1; }
.h-cta h2 { color: var(--h-white); }
.h-cta p { color: rgba(255,255,255,0.6); max-width: 540px; margin: 0 auto var(--h-xl); font-size: 1.05rem; }

.h-cta__actions {
    display: flex;
    justify-content: center;
    gap: var(--h-md);
    flex-wrap: wrap;
}

/* ========================================================================
   Page Header
   ======================================================================== */

.h-page-header {
    background: linear-gradient(160deg, var(--h-charcoal) 0%, var(--h-slate) 100%);
    padding: var(--h-3xl) 0 var(--h-2xl);
    text-align: center;
    color: var(--h-white);
}

.h-page-header h1 { color: var(--h-white); margin-bottom: var(--h-sm); }
.h-page-header p { color: rgba(255,255,255,0.6); font-size: 1.1rem; max-width: 580px; margin: 0 auto; }

/* ========================================================================
   Content
   ======================================================================== */

.h-content { padding: var(--h-3xl) 0; }

.h-content--sidebar {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--h-3xl);
}

@media (max-width: 900px) {
    .h-content--sidebar { grid-template-columns: 1fr; }
}

.h-content__main { min-width: 0; }
.h-content__main h2 { margin-top: var(--h-2xl); }
.h-content__main h2:first-child { margin-top: 0; }

/* ========================================================================
   Footer
   ======================================================================== */

.h-footer {
    background: var(--h-charcoal);
    color: rgba(255, 255, 255, 0.45);
    padding: var(--h-3xl) 0 0;
}

.h-footer a { color: rgba(255, 255, 255, 0.45); }
.h-footer a:hover { color: var(--h-white); }

.h-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--h-3xl);
    padding-bottom: var(--h-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.h-footer__brand {
    font-family: var(--h-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--h-white);
    margin-bottom: var(--h-md);
}

.h-footer__brand span { color: var(--h-accent); font-weight: 400; }

.h-footer__about { font-size: 0.9rem; line-height: 1.7; max-width: 320px; }

.h-footer__heading {
    font-family: var(--h-font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: var(--h-lg);
}

.h-footer__links { list-style: none; padding: 0; margin: 0; }
.h-footer__links li { margin-bottom: var(--h-sm); }

.h-footer__links a {
    font-size: 0.88rem;
    transition: all var(--h-ease);
}

.h-footer__links a:hover { padding-left: 3px; }

.h-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--h-lg) 0;
    font-size: 0.8rem;
}

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

.h-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    transition: all var(--h-ease);
}

.h-footer__social a:hover { background: var(--h-accent); color: white; }
.h-footer__social svg { width: 16px; height: 16px; }

@media (max-width: 768px) {
    .h-footer__grid { grid-template-columns: 1fr; gap: var(--h-xl); }
    .h-footer__bottom { flex-direction: column; gap: var(--h-md); text-align: center; }
}

/* ========================================================================
   Blog / Post Cards
   ======================================================================== */

.h-post-card {
    background: var(--h-white);
    border: 1px solid var(--h-silver);
    border-radius: var(--h-radius-lg);
    overflow: hidden;
    transition: all var(--h-ease);
}

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

.h-post-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--h-cloud);
}

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

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

.h-post-card__body { padding: var(--h-xl); }

.h-post-card__meta { font-size: 0.78rem; color: var(--h-gray); margin-bottom: var(--h-sm); }

.h-post-card__title { font-size: 1.15rem; margin-bottom: var(--h-sm); }
.h-post-card__title a { color: var(--h-charcoal); }
.h-post-card__title a:hover { color: var(--h-accent); }

.h-post-card__excerpt { font-size: 0.88rem; color: var(--h-text-light); margin-bottom: 0; }

/* ========================================================================
   Single Post
   ======================================================================== */

.h-article { max-width: var(--h-container-sm); margin: 0 auto; }
.h-article__header { text-align: center; margin-bottom: var(--h-2xl); }
.h-article__meta { font-size: 0.88rem; color: var(--h-gray); margin-bottom: var(--h-lg); }
.h-article__featured { border-radius: var(--h-radius-lg); overflow: hidden; margin-bottom: var(--h-2xl); }
.h-article__content { font-size: 1.05rem; line-height: 1.85; }
.h-article__content p { margin-bottom: var(--h-lg); }

/* ========================================================================
   Sidebar & Widgets
   ======================================================================== */

.h-sidebar { font-size: 0.92rem; }

.h-widget {
    margin-bottom: var(--h-xl);
    padding: var(--h-xl);
    background: var(--h-cloud);
    border-radius: var(--h-radius-lg);
}

.h-widget__title { font-size: 1rem; font-weight: 700; margin-bottom: var(--h-md); }
.h-widget ul { list-style: none; padding: 0; margin: 0; }
.h-widget li { padding: var(--h-sm) 0; border-bottom: 1px solid var(--h-silver); }
.h-widget li:last-child { border-bottom: none; }

/* ========================================================================
   Search & 404
   ======================================================================== */

.h-search-form {
    display: flex;
    max-width: 480px;
    margin: var(--h-xl) auto;
}

.h-search-form input[type="search"] {
    flex: 1;
    padding: var(--h-md) var(--h-lg);
    border: 2px solid var(--h-silver);
    border-right: none;
    border-radius: 100px 0 0 100px;
    font-size: 1rem;
    font-family: var(--h-font-body);
}

.h-search-form input[type="search"]:focus { outline: none; border-color: var(--h-accent); }

.h-search-form button {
    padding: var(--h-md) var(--h-xl);
    background: var(--h-accent);
    color: var(--h-white);
    border: 2px solid var(--h-accent);
    border-radius: 0 100px 100px 0;
    font-family: var(--h-font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--h-ease);
}

.h-search-form button:hover { background: var(--h-accent-dark); border-color: var(--h-accent-dark); }

.h-404 { text-align: center; padding: var(--h-4xl) 0; }

.h-404__number {
    font-family: var(--h-font-display);
    font-size: 8rem;
    font-weight: 700;
    color: var(--h-silver);
    line-height: 1;
    margin-bottom: var(--h-lg);
}

/* ========================================================================
   Forms
   ======================================================================== */

.h-content input[type="text"],
.h-content input[type="email"],
.h-content input[type="url"],
.h-content textarea {
    width: 100%;
    padding: var(--h-md) var(--h-lg);
    border: 1px solid var(--h-silver);
    border-radius: var(--h-radius);
    font-family: var(--h-font-body);
    font-size: 1rem;
    transition: border-color var(--h-ease);
}

.h-content input:focus,
.h-content textarea:focus {
    outline: none;
    border-color: var(--h-accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

/* ========================================================================
   Pagination
   ======================================================================== */

.h-pagination {
    display: flex;
    justify-content: center;
    gap: var(--h-sm);
    margin-top: var(--h-3xl);
}

.h-pagination a,
.h-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--h-md);
    border: 1px solid var(--h-silver);
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--h-dim);
    transition: all var(--h-ease);
}

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

/* ========================================================================
   WordPress Classes
   ======================================================================== */

.alignleft   { float: left; margin: 0 var(--h-xl) var(--h-md) 0; }
.alignright  { float: right; margin: 0 0 var(--h-md) var(--h-xl); }
.aligncenter { display: block; margin: var(--h-xl) auto; }

.wp-caption { max-width: 100%; margin-bottom: var(--h-lg); }
.wp-caption-text { font-size: 0.82rem; color: var(--h-gray); padding: var(--h-sm) 0; }

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