/*
Theme Name: Hollywood Breaking
Theme URI: https://hollywoodbreaking.com/
Author: Hollywood Breaking
Author URI: https://hollywoodbreaking.com/
Description: A refined, editorial WordPress theme inspired by high-fashion magazine aesthetics. Features Didone typography, monochromatic palette, deep-scroll homepage, and immersive article layouts.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hollywood-breaking
Tags: blog, entertainment, news, one-column, two-columns, custom-menu, featured-images, translation-ready, custom-logo, editor-style
*/

/* ==========================================================================
   ROOT VARIABLES
   ========================================================================== */

:root {
    --hb-black: #1a1a1a;
    --hb-dark: #2c2c2c;
    --hb-charcoal: #3d3d3d;
    --hb-gray: #6b6b6b;
    --hb-gray-mid: #999;
    --hb-gray-light: #c8c8c8;
    --hb-silver: #e8e8e8;
    --hb-off-white: #f5f4f0;
    --hb-white: #ffffff;
    --hb-cream: #faf9f6;
    --hb-accent: #c8102e;

    --font-display: 'Playfair Display', 'Didot', 'Georgia', serif;
    --font-body: 'Source Serif 4', 'Georgia', serif;
    --font-sans: 'Outfit', 'Helvetica Neue', 'Arial', sans-serif;

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

    --max-w: 1340px;
    --max-w-narrow: 740px;
    --max-w-wide: 1100px;
    --header-h: 60px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --trans: 0.3s var(--ease);
}

/* ==========================================================================
   RESET
   ========================================================================== */

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--hb-black);
    background: var(--hb-white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--hb-accent); }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
::selection { background: var(--hb-black); color: var(--hb-white); }

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.wrap--narrow { max-width: var(--max-w-narrow); }
.wrap--wide   { max-width: var(--max-w-wide); }

/* ==========================================================================
   SITE HEADER  (matches header.php exactly)
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--hb-white);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
    box-shadow: 0 1px 0 var(--hb-silver);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

/* Top bar */
.top-bar {
    background: var(--hb-black);
    color: var(--hb-white);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.5rem var(--space-lg);
    line-height: 1.4;
}

/* Header main row */
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    max-width: var(--max-w);
    margin: 0 auto;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 100px;
}
.header-left  { justify-content: flex-start; }
.header-right { justify-content: flex-end; }

.header-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: var(--hb-black);
    transition: opacity 0.2s;
}
.header-btn:hover { opacity: 0.6; }
.header-btn svg {
    width: 20px; height: 20px;
    stroke: currentColor; stroke-width: 1.5; fill: none;
}

/* Site branding / logo */
.site-branding { text-align: center; flex: 1; }

.site-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
}
.site-title a { color: var(--hb-black); }
.site-title a:hover { color: var(--hb-black); opacity: 0.7; }

.custom-logo-link img { max-height: 50px; width: auto; }

/* Primary nav */
.primary-nav {
    border-top: 1px solid var(--hb-silver);
    border-bottom: 1px solid var(--hb-silver);
}

.primary-nav .nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.primary-nav .nav-menu::-webkit-scrollbar { display: none; }
.primary-nav .nav-menu li { flex-shrink: 0; }

.primary-nav .nav-menu a {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.85rem 1.2rem;
    color: var(--hb-black);
    position: relative;
}

.primary-nav .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 1.2rem; right: 1.2rem;
    height: 2px;
    background: var(--hb-black);
    transform: scaleX(0);
    transition: transform var(--trans);
}
.primary-nav .nav-menu a:hover::after,
.primary-nav .nav-menu .current-menu-item a::after,
.primary-nav .nav-menu .current_page_item a::after {
    transform: scaleX(1);
}
.primary-nav .nav-menu a:hover { color: var(--hb-black); }

/* ==========================================================================
   MOBILE MENU  (matches header.php IDs)
   ========================================================================== */

.mobile-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0; visibility: hidden;
    transition: opacity var(--trans), visibility var(--trans);
}
.mobile-overlay.is-active { opacity: 1; visibility: visible; }

.mobile-menu {
    position: fixed; top: 0; left: 0;
    width: 320px; max-width: 85vw; height: 100%;
    background: var(--hb-white);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
    padding: var(--space-xl) var(--space-lg);
}
.mobile-menu.is-active { transform: translateX(0); }

.mobile-menu-close {
    position: absolute; top: var(--space-md); right: var(--space-md);
    background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--hb-black);
}
.mobile-menu-close svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.5; fill: none; }

.mobile-menu .nav-menu { padding-top: var(--space-lg); }
.mobile-menu .nav-menu li { border-bottom: 1px solid var(--hb-silver); }
.mobile-menu .nav-menu a {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 1rem 0; color: var(--hb-black);
}

/* ==========================================================================
   SEARCH OVERLAY  (matches header.php IDs)
   ========================================================================== */

.search-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.97);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.search-overlay.is-active { opacity: 1; visibility: visible; }

.search-overlay-close {
    position: absolute; top: var(--space-lg); right: var(--space-lg);
    background: none; border: none; cursor: pointer; color: var(--hb-black); padding: 0.5rem;
}
.search-overlay-close svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 1.5; fill: none; }

.search-overlay-form { width: 90%; max-width: 700px; }
.search-overlay-form input[type="search"] {
    width: 100%;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    border: none; border-bottom: 2px solid var(--hb-black);
    padding: var(--space-md) 0;
    text-align: center; outline: none; background: transparent;
}

/* ==========================================================================
   HERO SECTION  (homepage — matches index.php)
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: var(--space-3xl);
}

.hero-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.hero:hover .hero-img { transform: scale(1.03); }

/* Placeholder when no featured image */
.hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c2c2c 0%, #555 100%);
}

.hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: var(--space-3xl) var(--space-2xl) var(--space-2xl);
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    color: var(--hb-white);
}

.hero-cat {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    margin-bottom: var(--space-md);
    color: var(--hb-white);
    border-bottom: 2px solid var(--hb-accent);
    padding-bottom: 2px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    max-width: 800px;
    color: var(--hb-white);
}

.hero-excerpt {
    font-family: var(--font-body);
    font-size: 1.05rem; line-height: 1.6;
    max-width: 580px; opacity: 0.85;
    color: var(--hb-white);
}

.hero-byline {
    display: block;
    margin-top: var(--space-md);
    font-family: var(--font-sans);
    font-size: 0.7rem; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    opacity: 0.7; color: var(--hb-white);
}

/* ==========================================================================
   HOMEPAGE SECTIONS  (matches index.php)
   ========================================================================== */

.home-section {
    margin-bottom: var(--space-3xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header::after {
    content: '';
    display: block;
    width: 60px; height: 1px;
    background: var(--hb-black);
    margin: var(--space-md) auto 0;
}

.section-title {
    font-family: var(--font-sans);
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--hb-black);
}

.section-link {
    font-family: var(--font-sans);
    font-size: 0.65rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--hb-gray);
    border-bottom: 1px solid var(--hb-gray-light);
    padding-bottom: 1px;
}
.section-link:hover { color: var(--hb-black); border-color: var(--hb-black); }

/* ==========================================================================
   POST GRIDS  (class names matching index.php exactly)
   ========================================================================== */

/* 3 column */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* 4 column */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* Asymmetric: 1 large + 2 stacked */
.grid-asym {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-xl);
}

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

/* Horizontal list */
.list-horiz {
    display: flex;
    flex-direction: column;
}

/* Numbered list */
.list-numbered {
    display: flex;
    flex-direction: column;
    max-width: var(--max-w-wide);
    margin: 0 auto;
}

/* ==========================================================================
   POST CARD  (matches hb_post_card() in template-tags.php)
   ========================================================================== */

.post-card {
    position: relative;
}

.post-card .thumb {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-md);
    background: var(--hb-off-white);
    display: block;
}

.post-card .thumb img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

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

/* Landscape cards (default for grids like Vogue) */
.post-card .thumb--landscape img {
    aspect-ratio: 4 / 3;
}

.post-card .thumb--wide img {
    aspect-ratio: 16 / 10;
}

.post-card .thumb--square img {
    aspect-ratio: 1;
}

.post-card-cat {
    font-family: var(--font-sans);
    font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--hb-accent);
    margin-bottom: var(--space-sm);
    display: block;
}
.post-card-cat:hover { color: var(--hb-black); }

.post-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem; font-weight: 700;
    line-height: 1.22; letter-spacing: -0.01em;
    margin-bottom: var(--space-sm);
}
.post-card-title a:hover { color: var(--hb-accent); }

.post-card-excerpt {
    font-family: var(--font-body);
    font-size: 0.92rem; line-height: 1.6;
    color: var(--hb-gray);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    font-family: var(--font-sans);
    font-size: 0.65rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--hb-gray-mid);
}
.post-card-meta .sep { margin: 0 0.4rem; color: var(--hb-gray-light); }

/* Large card variant */
.post-card--large .post-card-title { font-size: 1.8rem; }
.post-card--large .post-card-excerpt { font-size: 1rem; }

/* Small card variant */
.post-card--small .post-card-title { font-size: 1rem; line-height: 1.3; }
.post-card--small .thumb img { aspect-ratio: 4 / 3; }

/* Horizontal card variant */
.post-card--horiz {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-lg);
    align-items: center;
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--hb-silver);
}

.post-card--horiz .thumb {
    margin-bottom: 0;
}

.post-card--horiz .thumb img {
    aspect-ratio: 4 / 3;
}

.post-card--horiz .post-card-title {
    font-size: 1.3rem;
}

/* ==========================================================================
   NUMBERED POST  (matches index.php numbered section)
   ========================================================================== */

.numbered-post {
    display: grid;
    grid-template-columns: 60px 1fr 120px;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--hb-silver);
    align-items: center;
}

.numbered-post:last-child { border-bottom: none; }

.numbered-rank {
    font-family: var(--font-display);
    font-size: 2.5rem; font-weight: 300;
    color: var(--hb-gray-light);
    line-height: 1;
}

.numbered-body .post-card-cat {
    margin-bottom: var(--space-xs);
}

.numbered-body .post-card-title {
    font-size: 1.05rem;
}

.numbered-thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

/* ==========================================================================
   SINGLE ARTICLE  (matches single.php)
   ========================================================================== */

.single-article { max-width: 100%; }

/* Article header */
.article-header {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg) var(--space-xl);
    max-width: var(--max-w-narrow);
    margin: 0 auto;
}

.article-header__cat {
    font-family: var(--font-sans);
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--hb-accent);
    margin-bottom: var(--space-lg);
    display: inline-block;
}

.article-header__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.article-header__dek {
    font-family: var(--font-body);
    font-size: 1.2rem; line-height: 1.5;
    color: var(--hb-gray);
    max-width: 620px;
    margin: 0 auto var(--space-lg);
}

.article-header__meta {
    font-family: var(--font-sans);
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--hb-gray-mid);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.article-header__byline a {
    color: var(--hb-black);
    font-weight: 700;
}

/* Article hero image */
.article-hero {
    margin-bottom: var(--space-2xl);
}

.article-hero img {
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
}

.article-hero__caption {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--hb-gray-mid);
    text-align: right;
    padding: var(--space-sm) var(--space-lg) 0;
    max-width: var(--max-w);
    margin: 0 auto;
}

/* Article body */
.article-body {
    max-width: var(--max-w-narrow);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.article-body p {
    font-family: var(--font-body);
    font-size: 1.12rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    color: var(--hb-dark);
}

.article-body h2 {
    font-family: var(--font-display);
    font-size: 1.6rem; font-weight: 700;
    margin: var(--space-2xl) 0 var(--space-lg);
    line-height: 1.2;
}

.article-body h3 {
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 700;
    margin: var(--space-xl) 0 var(--space-md);
}

.article-body h4 {
    font-family: var(--font-sans);
    font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    margin: var(--space-xl) 0 var(--space-md);
}

.article-body blockquote {
    border-left: 3px solid var(--hb-black);
    padding-left: var(--space-xl);
    margin: var(--space-2xl) 0;
    font-family: var(--font-display);
    font-size: 1.4rem; font-style: italic;
    line-height: 1.5; color: var(--hb-charcoal);
}

.article-body figure {
    margin: var(--space-2xl) calc(-1 * var(--space-lg));
}
.article-body figure img { width: 100%; }
.article-body figcaption {
    font-family: var(--font-sans);
    font-size: 0.75rem; color: var(--hb-gray-mid);
    margin-top: var(--space-sm);
    padding: 0 var(--space-lg);
}

.article-body ul,
.article-body ol { margin: var(--space-lg) 0; padding-left: var(--space-lg); }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li {
    font-size: 1.05rem; line-height: 1.7;
    margin-bottom: var(--space-sm); color: var(--hb-dark);
}

.article-body a {
    color: var(--hb-black);
    border-bottom: 1px solid var(--hb-gray-light);
}
.article-body a:hover {
    border-bottom-color: var(--hb-accent);
    color: var(--hb-accent);
}

/* Drop cap on first paragraph */
.article-body > p:first-of-type::first-letter {
    font-family: var(--font-display);
    float: left;
    font-size: 4.5rem; line-height: 0.8;
    padding-right: 0.15em; padding-top: 0.08em;
    font-weight: 700; color: var(--hb-black);
}

/* ==========================================================================
   ARTICLE FOOTER ELEMENTS (share, tags, bio)
   ========================================================================== */

.article-footer {
    max-width: var(--max-w-narrow);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Social share */
.article-share {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--hb-silver);
    border-bottom: 1px solid var(--hb-silver);
    margin: var(--space-lg) 0;
}

.article-share-label {
    font-family: var(--font-sans);
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--hb-gray);
}

.share-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--hb-silver);
    background: transparent; cursor: pointer;
    transition: all 0.2s; color: var(--hb-black);
}
.share-btn:hover { background: var(--hb-black); border-color: var(--hb-black); color: var(--hb-white); }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* Tags */
.article-tags {
    padding: var(--space-lg) 0;
}

.article-tags__label {
    font-family: var(--font-sans);
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--hb-gray-mid);
    margin-right: var(--space-md);
}

.article-tags__list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.article-tags__tag {
    font-family: var(--font-sans);
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--hb-silver);
    transition: all 0.2s;
}
.article-tags__tag:hover {
    background: var(--hb-black); border-color: var(--hb-black); color: var(--hb-white);
}

/* Author bio */
.author-bio {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    margin: var(--space-xl) 0;
    padding: var(--space-xl);
    background: var(--hb-cream);
}

.author-bio__avatar {
    flex: 0 0 80px;
    width: 80px; height: 80px;
}

.author-bio__avatar img {
    width: 80px; height: 80px;
    max-width: none;
    border-radius: 50%; object-fit: cover;
    display: block;
}

.author-bio__label {
    font-family: var(--font-sans);
    font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--hb-gray-mid);
    margin-bottom: var(--space-xs);
}

.author-bio__name {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700;
    display: block;
    margin-bottom: var(--space-sm);
}

.author-bio__desc {
    font-size: 0.9rem; color: var(--hb-gray); line-height: 1.6;
}

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

.post-nav__label {
    font-family: var(--font-sans);
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--hb-gray-mid);
    display: block;
    margin-bottom: var(--space-sm);
}

.post-nav__title {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 700; line-height: 1.3;
}

.post-nav__next { text-align: right; }

/* Related posts */
.related-posts {
    max-width: var(--max-w);
    margin: var(--space-3xl) auto;
    padding: 0 var(--space-lg);
}

/* ==========================================================================
   ARCHIVE / CATEGORY / SEARCH  (matches archive.php, search.php)
   ========================================================================== */

.archive-header {
    text-align: center;
    padding: var(--space-3xl) 0 var(--space-2xl);
    border-bottom: 1px solid var(--hb-silver);
    margin-bottom: var(--space-2xl);
}

.archive-header__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.archive-header__title span {
    font-style: italic;
    text-transform: none;
}

.archive-header__desc {
    font-family: var(--font-body);
    font-size: 1.1rem; color: var(--hb-gray);
    max-width: 600px; margin: 0 auto;
}

.archive-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-3xl);
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.archive-grid .post-card {
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--hb-silver);
}
.archive-grid .post-card:last-child { border-bottom: none; }
.archive-grid .post-card .thumb img { aspect-ratio: 16 / 10; }
.archive-grid .post-card .post-card-title { font-size: 1.6rem; }

/* First card in archive is featured */
.archive-grid .post-card:first-child .post-card-title { font-size: 2rem; }

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

.sidebar { padding-top: var(--space-sm); }

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

.widget-title,
.widgettitle {
    font-family: var(--font-sans);
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    padding-bottom: var(--space-md);
    border-bottom: 3px solid var(--hb-black);
    margin-bottom: var(--space-lg);
}

.widget ul li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--hb-silver);
    font-family: var(--font-body);
    font-size: 0.92rem;
}
.widget ul li a:hover { color: var(--hb-accent); }

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination,
.nav-links,
ul.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-2xl) 0;
    list-style: none;
    margin: 0;
}

ul.page-numbers li { list-style: none; margin: 0; }

.pagination a, .pagination span,
.nav-links a, .nav-links span,
ul.page-numbers a, ul.page-numbers span {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.6rem 1rem;
    border: 1px solid transparent;
    color: var(--hb-black);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a:hover, .nav-links a:hover,
ul.page-numbers a:hover { border-color: var(--hb-black); color: var(--hb-black); }

.pagination .current, .nav-links .current,
ul.page-numbers .current { background: var(--hb-black); color: var(--hb-white); }

/* ==========================================================================
   COMMENTS  (matches comments.php)
   ========================================================================== */

.comments-area {
    max-width: var(--max-w-narrow);
    margin: var(--space-2xl) auto;
    padding: 0 var(--space-lg);
}

.comments-title {
    font-family: var(--font-sans);
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    padding-bottom: var(--space-md);
    border-bottom: 3px solid var(--hb-black);
    margin-bottom: var(--space-xl);
}

.comment-list { list-style: none; padding: 0; }
.comment-body { padding: var(--space-lg) 0; border-bottom: 1px solid var(--hb-silver); }
.comment-meta { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-family: var(--font-sans); font-weight: 700; font-size: 0.88rem; }
.comment-metadata { font-family: var(--font-sans); font-size: 0.72rem; color: var(--hb-gray-mid); }
.comment-content p { font-size: 0.95rem; line-height: 1.7; }

.comment-respond label {
    font-family: var(--font-sans);
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    display: block; margin-bottom: var(--space-xs);
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--hb-silver);
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}
.comment-respond input:focus,
.comment-respond textarea:focus { outline: none; border-color: var(--hb-black); }

.comment-respond .submit {
    background: var(--hb-black); color: var(--hb-white); border: none;
    padding: 0.85rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    cursor: pointer;
}
.comment-respond .submit:hover { background: var(--hb-accent); }

/* ==========================================================================
   FOOTER  (matches footer.php)
   ========================================================================== */

.site-footer {
    background: var(--hb-black);
    color: var(--hb-white);
    padding: var(--space-3xl) 0 0;
    margin-top: var(--space-3xl);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-lg) var(--space-3xl);
}

.footer-brand .footer-logo {
    font-family: var(--font-display);
    font-size: 1.8rem; font-weight: 900;
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: var(--space-lg); display: block;
    color: var(--hb-white);
}
.footer-brand .footer-logo:hover { color: var(--hb-white); opacity: 0.8; }

.footer-brand p {
    font-size: 0.88rem; line-height: 1.7;
    color: rgba(255,255,255,0.6);
    max-width: 320px;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    margin-bottom: var(--space-lg);
    color: rgba(255,255,255,0.5);
}

.footer-nav li { margin-bottom: var(--space-sm); }
.footer-nav a {
    font-family: var(--font-sans);
    font-size: 0.85rem; color: rgba(255,255,255,0.7);
}
.footer-nav a:hover { color: var(--hb-white); }

.footer-social {
    display: flex; gap: var(--space-md);
    margin-top: var(--space-lg);
}

.footer-social a {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%; color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}
.footer-social a:hover { background: var(--hb-white); color: var(--hb-black); border-color: var(--hb-white); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--space-lg);
    text-align: center;
    max-width: var(--max-w);
    margin: 0 auto;
}

.footer-bottom p {
    font-family: var(--font-sans);
    font-size: 0.7rem; letter-spacing: 0.06em;
    color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    max-width: var(--max-w-narrow);
    margin: 0 auto;
}

.error-404__code {
    font-family: var(--font-display);
    font-size: 8rem; font-weight: 300;
    line-height: 1; color: var(--hb-silver);
    display: block; margin-bottom: var(--space-md);
}

.error-404__title {
    font-size: 1.5rem; margin-bottom: var(--space-lg);
}

.error-404__message {
    color: var(--hb-gray); margin-bottom: var(--space-xl);
}

.error-404__link {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 0.85rem 2rem;
    background: var(--hb-black); color: var(--hb-white);
    transition: background 0.2s;
}
.error-404__link:hover { background: var(--hb-accent); color: var(--hb-white); }

.error-404__search { margin-top: var(--space-xl); }

/* No results */
.no-results {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.no-results h2 {
    font-size: 1.5rem; margin-bottom: var(--space-lg);
}

.no-results p { color: var(--hb-gray); }

.no-results__search {
    max-width: 400px;
    margin: var(--space-xl) auto 0;
}

/* Search form */
.search-form {
    display: flex;
    border: 1px solid var(--hb-silver);
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
}

.search-form button {
    padding: 0.75rem 1.2rem;
    background: var(--hb-black); color: var(--hb-white);
    border: none; cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
}

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

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-asym { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .archive-layout { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
    .post-card--horiz { grid-template-columns: 200px 1fr; }
    .numbered-post { grid-template-columns: 50px 1fr 100px; }
}

@media (max-width: 768px) {
    :root { --space-3xl: 3rem; --space-2xl: 2rem; }
    .top-bar { font-size: 0.6rem; }
    .site-title { font-size: 1.8rem; }
    .primary-nav .nav-menu a { padding: 0.7rem 0.8rem; font-size: 0.62rem; }
    .hero { aspect-ratio: 3 / 4; }
    .hero-title { font-size: clamp(1.5rem, 5vw, 2rem); }
    .hero-excerpt { display: none; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-asym { grid-template-columns: 1fr; }
    .post-card--horiz { grid-template-columns: 1fr; }
    .numbered-post { grid-template-columns: 40px 1fr; }
    .numbered-thumb { display: none; }
    .footer-top { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: 1fr; }
    .article-body > p:first-of-type::first-letter { font-size: 3.5rem; }
    .article-share { flex-wrap: wrap; }
    .author-bio { flex-direction: column; text-align: center; align-items: center; }
    .post-nav { grid-template-columns: 1fr; gap: var(--space-lg); }
    .post-nav__next { text-align: left; }
}

@media (max-width: 480px) {
    .wrap { padding-left: var(--space-md); padding-right: var(--space-md); }
    .site-title { font-size: 1.4rem; }
    .article-header { padding: var(--space-xl) var(--space-md) var(--space-lg); }
    .article-body { padding: 0 var(--space-md); }
    .article-footer { padding: 0 var(--space-md); }
}

/* ==========================================================================
   WORDPRESS CORE ALIGNMENT & BLOCKS
   ========================================================================== */

.alignwide { max-width: var(--max-w-wide); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(-50vw + 50%); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.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); }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-family: var(--font-sans); font-size: 0.75rem; color: var(--hb-gray-mid); margin-top: var(--space-sm); }

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

.sticky .post-card-cat::before { content: '★ '; }
.bypostauthor .comment-author .fn { color: var(--hb-accent); }

.screen-reader-text {
    clip: rect(1px,1px,1px,1px); position: absolute !important;
    height: 1px; width: 1px; overflow: hidden;
}

.wp-block-image { margin: var(--space-2xl) 0; }
.wp-block-quote { border-left: 3px solid var(--hb-black); padding-left: var(--space-xl); margin: var(--space-2xl) 0; font-family: var(--font-display); font-size: 1.3rem; font-style: italic; }
.wp-block-pullquote { border-top: 3px solid var(--hb-black); border-bottom: 3px solid var(--hb-black); padding: var(--space-xl) 0; margin: var(--space-2xl) 0; text-align: center; }
.wp-block-pullquote blockquote p { font-family: var(--font-display); font-size: 1.5rem; font-style: italic; line-height: 1.4; }
.wp-block-separator { border: none; border-top: 1px solid var(--hb-silver); margin: var(--space-2xl) 0; }
.has-drop-cap:not(:focus)::first-letter { font-family: var(--font-display); font-size: 4.5rem; font-weight: 700; float: left; line-height: 0.8; padding-right: 0.15em; padding-top: 0.05em; }

/* Smooth reveal animation */
.reveal-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }
