/*
 * HipeFashion Main Stylesheet
 * Loaded by functions.php â?? enqueued after Google Fonts
 *
 * Color Variables (can be overridden via Customizer dynamic CSS)
 * --hf-primary: #3d3228  (deep taupe / charcoal brown)
 * --hf-accent:  #c8a97a  (champagne gold)
 * --hf-link:    #3d3228
 */

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

:root {
    --hf-primary:   #3d3228;
    --hf-accent:    #c8a97a;
    --hf-link:      #3d3228;
    --hf-bg:        hsl(40, 20%, 97%);
    --hf-bg-alt:    hsl(38, 15%, 94%);
    --hf-text:      hsl(0, 0%, 18%);
    --hf-text-muted:hsl(0, 0%, 42%);
    --hf-border:    hsl(34, 20%, 85%);
    --hf-header-h:  68px;
    --hf-container: 1200px;
    --hf-radius:    6px;
    --hf-radius-pill: 9999px;
    --hf-transition:150ms ease;
    --hf-logo-max-width: 220px;
    --hf-logo-mobile-max-width: 180px;
    --hf-logo-max-height: 56px;
    --hf-font-sans:    'Inter', system-ui, sans-serif;
    --hf-font-serif:   'Playfair Display', 'Georgia', serif;
}

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

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

body {
    font-family: var(--hf-font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--hf-text);
    background-color: var(--hf-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--hf-link);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--hf-transition);
}

a:hover {
    color: var(--hf-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--hf-font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: hsl(0, 0%, 12%);
}

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

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

/* =========================================================================
   Skip Link
   ====================================================================== */

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 8px;
    top: 8px;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--hf-primary);
    color: #fff;
    border-radius: var(--hf-radius);
    text-decoration: none;
}

/* =========================================================================
   Container
   ====================================================================== */

.container {
    width: 100%;
    max-width: var(--hf-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--hf-font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--hf-radius-pill);
    cursor: pointer;
    border: none;
    transition: background var(--hf-transition), color var(--hf-transition), box-shadow var(--hf-transition);
}

.btn--primary {
    background-color: var(--hf-primary);
    color: var(--hf-bg);
    box-shadow: 0 2px 12px rgba(61, 50, 40, 0.22);
}

.btn--primary:hover {
    background-color: hsl(28, 25%, 20%);
    color: var(--hf-bg);
    box-shadow: 0 4px 18px rgba(61, 50, 40, 0.30);
}

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

.btn--outline:hover {
    background-color: var(--hf-primary);
    color: var(--hf-bg);
}

/* =========================================================================
   SITE HEADER
   ====================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--hf-border);
    transition: box-shadow var(--hf-transition);
}

.site-header.is-scrolled {
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.header-inner {
    display: flex;
    align-items: center;
    height: var(--hf-header-h);
    gap: 24px;
    min-width: 0;
}

/* Logo / Site Title */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    max-width: min(100%, var(--hf-logo-max-width));
}

.site-logo,
.footer-logo {
    display: flex;
    align-items: center;
    max-width: 100%;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    line-height: 0;
}

.custom-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

.site-header .custom-logo {
    max-width: min(100%, var(--hf-logo-max-width));
    max-height: var(--hf-logo-max-height);
}

.site-footer .custom-logo {
    max-width: min(100%, var(--hf-logo-max-width));
}

.site-title-link,
.footer-site-title {
    font-family: var(--hf-font-serif);
    font-size: 1.375rem;
    font-weight: 800;
    text-decoration: none;
    color: hsl(0, 0%, 14%);
    letter-spacing: -0.01em;
    display: inline-block;
    white-space: nowrap;
}

.site-title-link:hover,
.footer-site-title:hover { opacity: 0.85; }

.site-title-accent { color: var(--hf-primary); }

/* Primary Nav */
.primary-nav {
    flex: 1;
    min-width: 0;
}

.primary-nav .nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 28px;
}

.primary-nav .nav-menu > li > a {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: hsl(0, 0%, 30%);
    transition: color var(--hf-transition);
}

.primary-nav .nav-menu > li > a:hover,
.primary-nav .nav-menu > li.current-menu-item > a {
    color: var(--hf-primary);
}

/* --- Dropdown sub-menus (desktop) --- */
.primary-nav .nav-menu > li {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.primary-nav .nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 110;
    min-width: 200px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    background-color: #ffffff;
    border: 1px solid var(--hf-border);
    border-radius: var(--hf-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

/* Invisible bridge so mouse can travel from parent to dropdown */
.primary-nav .nav-menu > li > .sub-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

.primary-nav .nav-menu > li:hover > .sub-menu,
.primary-nav .nav-menu > li:focus-within > .sub-menu {
    display: block;
}

.primary-nav .nav-menu .sub-menu li {
    display: block;
}

.primary-nav .nav-menu .sub-menu li a {
    display: block;
    padding: 8px 18px;
    font-size: 12.5px;
    font-weight: 500;
    color: hsl(0, 0%, 30%);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.02em;
    transition: background-color var(--hf-transition), color var(--hf-transition);
}

.primary-nav .nav-menu .sub-menu li a:hover {
    background-color: var(--hf-bg-alt);
    color: var(--hf-primary);
}

.primary-nav .nav-menu .sub-menu .sub-menu {
    top: -8px;
    left: 100%;
    margin: 0 0 0 2px;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Search Toggle */
.search-toggle,
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: hsl(0, 0%, 35%);
    transition: color var(--hf-transition);
    border-radius: var(--hf-radius);
}

.search-toggle:hover,
.menu-toggle:hover { color: var(--hf-primary); }

/* Mobile toggle bars */
.menu-toggle { flex-direction: column; gap: 5px; }
.menu-toggle__bar {
    display: block;
    width: 20px;
    height: 1.5px;
    background-color: hsl(0, 0%, 22%);
    transition: transform 200ms ease, opacity 200ms ease;
}
.menu-open .menu-toggle__bar:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.menu-open .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle__bar:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Search Drawer */
.header-search {
    border-top: 1px solid var(--hf-border);
    padding: 12px 0;
}
.header-search:not([hidden]) { display: block; }

.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.search-field {
    flex: 1;
    padding: 10px 16px;
    background-color: var(--hf-bg-alt);
    border: 1px solid var(--hf-border);
    border-radius: var(--hf-radius);
    font-family: var(--hf-font-sans);
    font-size: 14px;
    color: var(--hf-text);
    outline: none;
    transition: border-color var(--hf-transition);
}
.search-field:focus { border-color: var(--hf-primary); }
.search-field::placeholder { color: hsl(0, 0%, 55%); }

.search-submit {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--hf-text-muted);
    transition: color var(--hf-transition);
}
.search-submit:hover { color: var(--hf-primary); }

/* Mobile nav (hidden on desktop) */
@media (max-width: 1024px) {
    .primary-nav { display: none; }
    .primary-nav.is-open { display: block; }
    .primary-nav.is-open .nav-menu { flex-direction: column; gap: 4px; padding: 8px 0; }
    .primary-nav.is-open .nav-menu > li > a { display: block; padding: 8px 4px; }
    .menu-toggle { display: flex !important; }
}

@media (min-width: 1025px) {
    .menu-toggle { display: none; }
}

/* =========================================================================
   HERO SECTION
   ====================================================================== */

.hero-section {
    position: relative;
    height: clamp(520px, 72vh, 720px);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: hsl(22, 15%, 18%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(10, 7, 5, 0.38);
}

.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8,5,3,0.72) 0%,
        rgba(8,5,3,0.20) 45%,
        rgba(8,5,3,0.28) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-inner {
    max-width: 680px;
    width: 100%;
}

.hero-section .hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 10px;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: hsl(38, 40%, 76%);
    font-weight: 500;
    margin: 0 0 22px;
}

.hero-section .hero-eyebrow::before,
.hero-section .hero-eyebrow::after {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background: hsl(38, 35%, 62%);
    flex-shrink: 0;
}

.hero-section .hero-heading {
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    line-height: 1.08;
    color: #ffffff !important;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.hero-section .hero-description {
    font-size: 15px;
    color: hsl(34, 18%, 82%) !important;
    line-height: 1.75;
    margin: 0 auto 40px;
    max-width: 420px;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.hero-cta--primary {
    padding: 14px 34px;
    background-color: #ffffff;
    color: hsl(28, 25%, 18%) !important;
    border-radius: var(--hf-radius-pill);
    box-shadow: 0 2px 20px rgba(0,0,0,0.18);
}

.hero-cta--primary:hover {
    background-color: hsl(38, 35%, 92%);
    color: hsl(28, 25%, 14%) !important;
    box-shadow: 0 4px 28px rgba(0,0,0,0.22);
    opacity: 1;
    text-decoration: none;
}

.hero-cta--ghost {
    padding: 13px 28px;
    background-color: transparent;
    color: rgba(255,255,255,0.88) !important;
    border-radius: var(--hf-radius-pill);
    border: 1.5px solid rgba(255,255,255,0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-cta--ghost:hover {
    border-color: rgba(255,255,255,0.8);
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.1);
    opacity: 1;
    text-decoration: none;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* =========================================================================
   SECTION HEADERS
   ====================================================================== */

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 44px;
}

.section-header--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-eyebrow {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hf-primary);
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.85;
}

.section-title {
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
    color: hsl(0, 0%, 10%);
    margin: 0;
    letter-spacing: -0.01em;
}

.section-viewall {
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hf-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid var(--hf-primary);
    padding-bottom: 1px;
    white-space: nowrap;
    transition: opacity var(--hf-transition), gap 200ms ease;
    opacity: 0.75;
}
.section-viewall:hover { opacity: 1; gap: 8px; }
/* =========================================================================
   SECTIONS: Padding
   ====================================================================== */

.section-categories,
.section-posts,
.newsletter-section {
    padding-top: clamp(64px, 9vw, 104px);
    padding-bottom: clamp(64px, 9vw, 104px);
}

.section-categories { background-color: var(--hf-bg); }
.section-posts { background-color: var(--hf-bg-alt); }

/* =========================================================================
   CATEGORY GRID
   ====================================================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .category-grid { grid-template-columns: repeat(6, 1fr); }
}

.category-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    background-color: hsl(34, 18%, 85%);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 400ms ease;
}

.category-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}

.category-card:hover .category-card__overlay {
    opacity: 0.75;
}

.category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.70) 0%,
        rgba(0,0,0,0.12) 55%,
        rgba(0,0,0,0.04) 100%
    );
    transition: opacity 400ms ease;
    opacity: 0.52;
}

.category-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 14px;
}

.category-card__name {
    font-family: var(--hf-font-serif);
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: block;
    letter-spacing: -0.01em;
}

/* =========================================================================
   POST GRID
   ====================================================================== */

.post-grid {
    display: grid;
    gap: 36px;
}

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

@media (min-width: 600px) {
    .post-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .post-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .post-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .post-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .post-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================================
   POST CARD â?? Premium Editorial
   ====================================================================== */

.post-card {
    display: flex;
    flex-direction: column;
    transition: transform 300ms ease;
}

.post-card:hover {
    transform: translateY(-3px);
}

.post-card__image-wrap {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 18px;
    background-color: var(--hf-bg-alt);
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    transition: box-shadow 300ms ease;
}

.post-card:hover .post-card__image-wrap {
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Category pill overlaid on image */
.post-card__cat-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    background-color: rgba(15, 10, 7, 0.58);
    padding: 5px 11px;
    border-radius: 9999px;
    text-decoration: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background-color 200ms ease;
}

.post-card__cat-pill:hover {
    background-color: rgba(15, 10, 7, 0.78);
}

.post-card__body { flex: 1; }

.post-card__title {
    font-family: var(--hf-font-serif);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.post-card__title a {
    text-decoration: none;
    color: hsl(0, 0%, 10%);
    transition: color var(--hf-transition);
}

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

.post-card__excerpt {
    font-size: 13px;
    color: hsl(0, 0%, 46%);
    line-height: 1.72;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.005em;
}

/* Bottom meta row: date + Read â?? */
.post-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid hsl(34, 18%, 90%);
}

.post-card__date {
    font-size: 11px;
    color: hsl(0, 0%, 56%);
    letter-spacing: 0.03em;
}

.post-card__read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--hf-primary);
    text-decoration: none;
    transition: gap 250ms ease;
}

.post-card:hover .post-card__read-link { gap: 11px; }

/* =========================================================================
   PINTEREST FOLLOW BOX (Sidebar)
   ====================================================================== */

.pinterest-follow-box {
    background: linear-gradient(135deg, hsl(28, 30%, 26%) 0%, var(--hf-primary) 100%);
    border-radius: 12px;
    padding: 32px 26px;
    text-align: center;
    margin-top: 28px;
    box-shadow: 0 4px 24px rgba(61, 50, 40, 0.22);
}

.pinterest-follow-box__icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.pinterest-follow-box__title {
    font-family: var(--hf-font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.pinterest-follow-box__desc {
    font-size: 12.5px;
    color: hsl(34, 18%, 70%);
    line-height: 1.65;
    margin-bottom: 22px;
}

.pinterest-follow-box__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 24px;
    background-color: #ffffff;
    color: hsl(28, 25%, 18%);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 9999px;
    transition: background-color 200ms ease, box-shadow 200ms ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.pinterest-follow-box__btn:hover {
    background-color: hsl(38, 35%, 94%);
    color: hsl(28, 25%, 14%);
    box-shadow: 0 4px 18px rgba(0,0,0,0.20);
}

/* =========================================================================
   EDITOR'S PICKS SECTION â?? Staggered Editorial Grid
   ====================================================================== */

.section-editors-picks {
    background-color: hsl(22, 15%, 11%);
    padding-top: clamp(56px, 7vw, 88px);
    padding-bottom: clamp(56px, 7vw, 88px);
}

/* Section header */
.ep-header {
    margin-bottom: 36px;
}

@media (min-width: 768px) {
    .ep-header { margin-bottom: 44px; }
}

.ep-eyebrow {
    font-size: 10px;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: hsl(38, 35%, 58%);
    font-weight: 500;
    margin-bottom: 10px;
}

.ep-title {
    font-family: var(--hf-font-serif);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

/* 3-column grid with middle card taller for editorial rhythm */
.ep-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

@media (min-width: 600px) {
    .ep-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        align-items: stretch;
    }
}

/* Base card */
.ep-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    height: 440px;
}

/* Middle card is taller for editorial stagger */
@media (min-width: 600px) {
    .ep-card:nth-child(1) { height: 440px; }
    .ep-card:nth-child(2) { height: 500px; margin-top: -30px; }
    .ep-card:nth-child(3) { height: 440px; }
}

.ep-card:hover .ep-card__img {
    transform: scale(1.05);
}

.ep-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ep-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.ep-card__img--placeholder {
    background-color: hsl(22, 15%, 22%);
}

.ep-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(6,4,2,0.94) 0%,
        rgba(6,4,2,0.32) 52%,
        rgba(6,4,2,0.06) 100%
    );
    z-index: 2;
    transition: opacity 400ms ease;
}

.ep-card:hover .ep-card__overlay {
    opacity: 0.92;
}

/* Number badge */
.ep-card__num {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 3;
    font-family: var(--hf-font-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: hsl(38, 35%, 68%);
    opacity: 0.8;
}

/* Body */
.ep-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 26px;
}

.ep-card__cat {
    display: block;
    font-size: 9px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: hsl(38, 35%, 68%);
    font-weight: 600;
    margin-bottom: 10px;
}

.ep-card__title {
    font-family: var(--hf-font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.22;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.ep-card__title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 300ms ease;
}

.ep-card:hover .ep-card__title a {
    color: hsl(38, 40%, 88%);
}

.ep-card__title--sm {
    font-size: 1.08rem;
}

@media (min-width: 768px) {
    .ep-card__title--sm { font-size: 1.18rem; }
}

.ep-card__caption {
    font-size: 13px;
    color: hsl(34, 10%, 65%);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ep-card__caption--hover {
    opacity: 0;
    transition: opacity 300ms ease;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    margin-bottom: 8px;
}

.ep-card:hover .ep-card__caption--hover {
    opacity: 1;
}

.ep-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ep-card__read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    transition: gap 300ms ease;
}

.ep-card:hover .ep-card__read-link {
    gap: 10px;
}

.ep-card__read-link--sm {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    transition: color 200ms ease;
}

.ep-card:hover .ep-card__read-link--sm {
    color: #ffffff;
}

.ep-card__footer-line {
    flex: 1;
    height: 1px;
    background-color: rgba(255,255,255,0.16);
}

.ep-card__date {
    font-size: 10px;
    color: hsl(0, 0%, 40%);
    letter-spacing: 0.05em;
    white-space: nowrap;
    margin-left: auto;
}


/* Bottom CTA */
.ep-cta-wrap {
    margin-top: 44px;
    display: flex;
    justify-content: center;
}

.btn--ep-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 34px;
    border: 1px solid hsl(0, 0%, 30%);
    color: hsl(0, 0%, 65%);
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--hf-radius-pill);
    cursor: pointer;
    transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease;
}

.btn--ep-outline:hover {
    border-color: hsl(38, 35%, 58%);
    color: hsl(38, 35%, 75%);
    background-color: rgba(255,255,255,0.04);
}

/* =========================================================================
   NEWSLETTER SECTION
   ====================================================================== */

.newsletter-section {
    background-color: var(--hf-primary);
    color: var(--hf-bg);
    padding-top: clamp(64px, 9vw, 108px);
    padding-bottom: clamp(64px, 9vw, 108px);
}

.newsletter-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-eyebrow { color: var(--hf-accent) !important; }

.newsletter-title {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    color: var(--hf-bg);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.newsletter-desc {
    font-size: 14px;
    color: hsl(34, 18%, 74%);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form__fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
}

@media (min-width: 540px) {
    .newsletter-form__fields {
        flex-direction: row;
        gap: 8px;
    }
}

.newsletter-form__input {
    flex: 1;
    padding: 13px 20px;
    background-color: hsl(28, 22%, 32%);
    border: 1px solid hsl(28, 22%, 40%);
    color: var(--hf-bg);
    border-radius: var(--hf-radius-pill);
    font-family: var(--hf-font-sans);
    font-size: 14px;
    outline: none;
    transition: border-color var(--hf-transition), box-shadow var(--hf-transition);
}

.newsletter-form__input::placeholder { color: hsl(34, 18%, 54%); }
.newsletter-form__input:focus {
    border-color: var(--hf-accent);
    box-shadow: 0 0 0 3px rgba(200, 169, 122, 0.18);
}

.newsletter-form__submit {
    flex-shrink: 0;
    background-color: var(--hf-accent);
    color: hsl(28, 25%, 14%);
    padding: 13px 28px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--hf-radius-pill);
    cursor: pointer;
    transition: background var(--hf-transition), box-shadow var(--hf-transition);
    white-space: nowrap;
    box-shadow: 0 2px 14px rgba(200, 169, 122, 0.28);
}

.newsletter-form__submit:hover {
    background-color: hsl(38, 40%, 80%);
    box-shadow: 0 4px 20px rgba(200, 169, 122, 0.38);
}

.newsletter-form__note {
    font-size: 11px;
    color: hsl(28, 22%, 48%);
    margin-top: 14px;
    letter-spacing: 0.02em;
}

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

.site-footer {
    background-color: hsl(22, 12%, 11%);
    color: hsl(0, 0%, 68%);
}

.footer-top {
    padding: 72px 0 64px;
    border-bottom: 1px solid hsl(0, 0%, 18%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
}

.footer-col--brand .footer-logo img,
.footer-col--brand .footer-site-title {
    margin-bottom: 16px;
}

.footer-col--brand .footer-site-title { color: #fff; }
.footer-col--brand .footer-site-title .site-title-accent { color: var(--hf-accent); }

.footer-tagline {
    font-size: 13px;
    color: hsl(0, 0%, 48%);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 230px;
}

/* Social icons in footer */
.social-icons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid hsl(0, 0%, 24%);
    color: hsl(0, 0%, 52%);
    text-decoration: none;
    transition: color var(--hf-transition), border-color var(--hf-transition), background-color var(--hf-transition);
}

.social-icon:hover {
    color: #fff;
    border-color: var(--hf-accent);
    background-color: rgba(200, 169, 122, 0.12);
}

/* Footer Widget Titles */
.footer-col .widget-title {
    font-family: var(--hf-font-sans);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid hsl(0, 0%, 18%);
}

.footer-col .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col .widget ul li {
    margin-bottom: 9px;
}

.footer-col .widget ul li a {
    font-size: 13px;
    color: hsl(0, 0%, 50%);
    text-decoration: none;
    transition: color var(--hf-transition);
    line-height: 1.5;
}

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

.footer-bottom {
    padding: 22px 0;
    border-top: 1px solid hsl(0, 0%, 16%);
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    font-size: 12px;
    color: hsl(0, 0%, 35%);
    margin: 0;
    letter-spacing: 0.02em;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu a {
    font-size: 12px;
    color: hsl(0, 0%, 35%);
    text-decoration: none;
    transition: color var(--hf-transition);
    letter-spacing: 0.02em;
}

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

/* =========================================================================
   PAGE HEADER BAR
   ====================================================================== */

.page-header-bar {
    background-color: var(--hf-bg-alt);
    border-bottom: 1px solid var(--hf-border);
    padding: 28px 0 18px;
}

.page-header-bar--no-bg { background: none; border: none; }

.page-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: hsl(0, 0%, 12%);
    margin: 0;
}

.page-eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hf-primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.page-header-bar__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}


/* =========================================================================
   MAIN CONTENT OFFSET (for fixed header)
   The site header is position:fixed. We push #main-content down by the
   header height so content is never hidden beneath it.
   ====================================================================== */

#main-content {
    padding-top: var(--hf-header-h);
}

body.home #main-content > .hero-section:first-child {
    margin-top: calc(-1 * var(--hf-header-h));
}

/* =========================================================================
   WordPress Admin Bar â?? Complete Fix
   WP adds .admin-bar to <body> when a user is logged in.
   The admin bar is 32px on desktop (â?¥782px) and 46px on tablet/mobile.
   Our fixed header must sit BELOW the admin bar, and #main-content must
   compensate for both the header AND the admin bar height.
   ====================================================================== */

/* â??â?? Desktop (admin bar = 32px, always fixed) â??â?? */
.admin-bar .site-header {
    top: 32px;
}

.admin-bar #main-content {
    padding-top: calc(var(--hf-header-h) + 32px);
}

.admin-bar.home #main-content > .hero-section:first-child {
    margin-top: calc(-1 * (var(--hf-header-h) + 32px));
}

/* â??â?? Tablet (admin bar = 46px, still fixed) â??â?? */
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }

    .admin-bar #main-content {
        padding-top: calc(var(--hf-header-h) + 46px);
    }

    .admin-bar.home #main-content > .hero-section:first-child {
        margin-top: calc(-1 * (var(--hf-header-h) + 46px));
    }
}

/* â??â?? Mobile â?¤600px â?? admin bar stays fixed at 46px â??â?? */
@media screen and (max-width: 600px) {
    .admin-bar .site-header {
        top: 46px;
    }

    .admin-bar #main-content {
        padding-top: calc(var(--hf-header-h) + 46px);
    }

    .admin-bar.home #main-content > .hero-section:first-child {
        margin-top: calc(-1 * (var(--hf-header-h) + 46px));
    }
}

/* =========================================================================
   CONTENT LAYOUT: Sidebar + Main
   ====================================================================== */

.site-content {
    padding-top: 32px;
    padding-bottom: 72px;
}

.page .site-content {
    padding-top: 16px;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 1024px) {
    .content-with-sidebar {
        grid-template-columns: 1fr 300px;
    }
}

.content-full {
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
}

/* =========================================================================
   SINGLE POST â?? White Background Override
   ====================================================================== */

body.single,
body.single #main-content {
    background-color: #ffffff;
}

/* =========================================================================
   SINGLE POST â?? Hero Image
   ====================================================================== */

.post-hero {
    position: relative;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background-color: hsl(28, 18%, 88%);
}

@media (max-width: 768px) {
    .post-hero {
        aspect-ratio: 3 / 2;
    }
}

@media (max-width: 480px) {
    .post-hero {
        aspect-ratio: 4 / 3;
    }
}

.post-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Subtle fade at base of hero image â?? smooths transition into white content area */
.post-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.40));
    pointer-events: none;
}

/* =========================================================================
   SINGLE POST â?? Spacing
   ====================================================================== */

body.single .site-content {
    padding-top: 48px;
    padding-bottom: 96px;
}

/* =========================================================================
   SINGLE POST â?? Post Header
   ====================================================================== */

.post-header {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid hsl(34, 20%, 90%);
}

.post-header__cats {
    margin-bottom: 16px;
}

.post-cat-label {
    display: inline-block;
    padding: 5px 14px;
    background-color: hsl(34, 30%, 95%);
    border: 1px solid hsl(34, 22%, 84%);
    border-radius: var(--hf-radius-pill);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hf-primary);
    text-decoration: none;
    transition: background-color var(--hf-transition), border-color var(--hf-transition);
}

.post-cat-label:hover {
    background-color: hsl(28, 25%, 88%);
    border-color: var(--hf-primary);
    color: var(--hf-primary);
}

.post-header__title {
    font-family: var(--hf-font-serif);
    font-size: clamp(1.75rem, 4vw, 2.7rem);
    line-height: 1.14;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
    color: hsl(0, 0%, 5%);
    font-weight: 800;
}

.post-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    font-size: 12px;
    color: hsl(0, 0%, 52%);
}

.post-meta-sep {
    color: hsl(0, 0%, 75%);
}

.post-meta-author a {
    color: hsl(0, 0%, 22%);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--hf-transition);
}

.post-meta-author a:hover {
    color: var(--hf-primary);
}

/* =========================================================================
   SINGLE POST â?? Share Icons
   ====================================================================== */

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

.share-icons__label {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: hsl(0, 0%, 52%);
    font-weight: 600;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    border: 1px solid hsl(34, 20%, 86%);
    color: hsl(0, 0%, 44%);
    text-decoration: none;
    background-color: #ffffff;
    transition:
        color var(--hf-transition),
        border-color var(--hf-transition),
        background-color var(--hf-transition),
        box-shadow var(--hf-transition);
}

.share-icon:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.share-icon--pinterest:hover { color: hsl(3, 79%, 48%); border-color: hsl(3, 79%, 48%); background-color: hsl(3, 79%, 97%); }
.share-icon--twitter:hover   { color: hsl(0, 0%, 8%);   border-color: hsl(0, 0%, 8%);   background-color: hsl(0, 0%, 97%); }
.share-icon--facebook:hover  { color: hsl(221, 44%, 41%); border-color: hsl(221, 44%, 41%); background-color: hsl(221, 44%, 97%); }

.post-share--top    { margin-bottom: 36px; }
.post-share--bottom { margin-top: 40px; margin-bottom: 28px; }

/* =========================================================================
   PROSE â?? Clean, Highly Readable Editorial Article Typography
   ====================================================================== */

.prose {
    font-family: var(--hf-font-sans);
    overflow-wrap: break-word;
    word-break: normal;
}

/* Lead paragraph */
.prose > p:first-of-type {
    font-size: 17px;
    line-height: 1.90;
    color: hsl(0, 0%, 16%);
    font-weight: 400;
    letter-spacing: 0.004em;
}

/* Decorative accent rule after lead paragraph */
.prose > p:first-of-type::after {
    display: none;
}

/* H2 â?? major section */
.prose h2 {
    font-family: var(--hf-font-serif);
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 800;
    color: hsl(0, 0%, 5%);
    margin-top: 2.6em;
    margin-bottom: 0.75em;
    letter-spacing: -0.025em;
    line-height: 1.22;
}

/* H3 â?? subsection */
.prose h3 {
    font-family: var(--hf-font-serif);
    font-size: 1.22rem;
    font-weight: 700;
    color: hsl(0, 0%, 8%);
    margin-top: 2em;
    margin-bottom: 0.5em;
    letter-spacing: -0.015em;
    line-height: 1.28;
}

/* H4 â?? label heading */
.prose h4 {
    font-family: var(--hf-font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--hf-primary);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 2em;
    margin-bottom: 0.7em;
}

/* Body text â?? the core reading experience */
.prose p {
    font-size: 16px;
    line-height: 1.90;
    color: hsl(0, 0%, 20%);
    margin-bottom: 1.4em;
    font-weight: 400;
    letter-spacing: 0.005em;
}

/* Lists */
.prose ul,
.prose ol {
    margin-bottom: 1.6em;
    padding-left: 0;
    list-style: none;
}

.prose ul li,
.prose ol li {
    font-size: 16px;
    color: hsl(0, 0%, 22%);
    line-height: 1.80;
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--hf-accent);
}

.prose ol {
    counter-reset: prose-ol;
}

.prose ol li {
    counter-increment: prose-ol;
}

.prose ol li::before {
    content: counter(prose-ol);
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 11px;
    font-weight: 700;
    color: var(--hf-primary);
    letter-spacing: 0.02em;
}

/* Links */
.prose a {
    color: var(--hf-link);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: hsl(28, 25%, 60%);
    transition: text-decoration-color var(--hf-transition);
}

.prose a:hover {
    text-decoration-color: var(--hf-primary);
}

.prose p,
.prose li,
.prose a,
.prose figcaption {
    overflow-wrap: break-word;
}

/* Blockquote */
.prose blockquote {
    border-left: none;
    padding: 30px 32px 30px 38px;
    margin: 2.6em 0;
    background: linear-gradient(135deg, hsl(28, 25%, 97%) 0%, hsl(34, 20%, 95%) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.prose blockquote::before {
    content: '\201C';
    font-family: var(--hf-font-serif);
    font-size: 5rem;
    color: var(--hf-accent);
    opacity: 0.25;
    position: absolute;
    top: -8px;
    left: 10px;
    line-height: 1;
    pointer-events: none;
}

.prose blockquote p {
    font-family: var(--hf-font-serif);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.74;
    color: hsl(0, 0%, 16%);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.prose blockquote p::after {
    display: none;
}

.prose strong { color: hsl(0, 0%, 6%); font-weight: 700; }
.prose em     { font-style: italic; color: hsl(0, 0%, 22%); }

/* Images in content */
.prose img {
    border-radius: 10px;
    margin: 1.8em 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    max-width: 100%;
    height: auto;
}

.prose figure { margin: 2.2em 0; }

.prose figcaption {
    font-size: 12px;
    color: hsl(0, 0%, 54%);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.prose hr {
    border: none;
    border-top: 1px solid hsl(34, 20%, 88%);
    margin: 2.8em 0;
}

.entry-content > :first-child {
    margin-top: 0 !important;
}

.page .page-header-bar {
    padding: 20px 0 8px;
}

.page .site-content {
    padding-top: 0;
}

.page .entry-content.prose > p:first-of-type {
    font-size: 16px;
    line-height: 1.8;
    color: hsl(0, 0%, 20%);
    font-weight: 400;
    letter-spacing: 0.005em;
}

.page .entry-content.prose > p:first-of-type::after {
    display: none;
}

.page .entry-content.prose h2,
.page .entry-content.prose h3,
.page .entry-content.prose h4 {
    margin-top: 1.1em;
    margin-bottom: 0.35em;
}

.page .entry-content.prose p,
.page .entry-content.prose ul,
.page .entry-content.prose ol {
    margin-bottom: 0.75em;
}

.page .entry-content.prose a {
    overflow-wrap: break-word;
    word-break: normal;
    word-wrap: break-word;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid hsl(34, 20%, 90%);
}

.post-tag {
    display: inline-block;
    padding: 5px 14px;
    font-size: 11.5px;
    background-color: hsl(34, 25%, 95%);
    border: 1px solid hsl(34, 22%, 86%);
    color: hsl(0, 0%, 38%);
    text-decoration: none;
    border-radius: var(--hf-radius-pill);
    letter-spacing: 0.02em;
    transition:
        border-color var(--hf-transition),
        color var(--hf-transition),
        background-color var(--hf-transition);
}

.post-tag:hover {
    border-color: var(--hf-primary);
    color: var(--hf-primary);
    background-color: hsl(28, 25%, 92%);
}

/* =========================================================================
   AUTHOR BOX â?? Premium, Responsive, Editorial
   ====================================================================== */

.author-box {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    background-color: #ffffff;
    border: 1px solid hsl(34, 20%, 88%);
    border-radius: 14px;
    padding: 28px 28px 28px 32px;
    margin: 52px 0 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 18px rgba(61, 50, 40, 0.07);
}

/* Left accent stripe */
.author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    bottom: 0;
    background: linear-gradient(180deg, var(--hf-primary) 0%, var(--hf-accent) 100%);
}

.author-box__avatar {
    flex-shrink: 0;
}

.author-box__avatar-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid hsl(34, 20%, 85%);
    display: block;
    background-color: hsl(34, 18%, 88%);
}

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

.author-box__byline {
    display: block;
    font-family: var(--hf-font-sans);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: var(--hf-accent);
    margin-bottom: 4px;
}

.author-box__name {
    font-family: var(--hf-font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
}

.author-box__name a {
    text-decoration: none;
    color: hsl(0, 0%, 8%);
    transition: color var(--hf-transition);
}

.author-box__name a:hover {
    color: var(--hf-primary);
}

.author-box__bio {
    font-size: 13.5px;
    color: hsl(0, 0%, 42%);
    line-height: 1.72;
    margin: 0 0 16px;
}


/* Mobile: stack vertically */
@media (max-width: 560px) {
    .author-box {
        flex-direction: column;
        gap: 16px;
        padding: 24px 22px 24px 28px;
    }

    .author-box__avatar-img {
        width: 58px;
        height: 58px;
    }
}

/* =========================================================================
   COMMENTS â?? Clean, Premium, Fully Responsive
   ====================================================================== */

.comments-area {
    margin-top: 56px;
    padding-top: 0;
}

.comments-title {
    font-family: var(--hf-font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: hsl(0, 0%, 6%);
    letter-spacing: -0.01em;
    margin: 0 0 36px;
}

/* â??â?? Comment list â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â?? */

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}

.comment-item {
    padding: 0;
    margin: 0;
}

.comment-item + .comment-item {
    border-top: 1px solid hsl(34, 20%, 91%);
    padding-top: 28px;
    margin-top: 28px;
}

/* Nested replies */
.comment-item .children {
    list-style: none;
    padding: 0;
    margin: 24px 0 0 48px;
    padding-left: 24px;
    border-left: 2px solid hsl(34, 22%, 88%);
}

.comment-item .children .comment-item {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid hsl(34, 20%, 92%);
}

.comment-item .children .comment-item:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.comment-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.comment-author-avatar .avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid hsl(34, 20%, 88%);
    display: block;
    background-color: hsl(34, 18%, 90%);
}

.comment-content-wrap {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 8px;
}

.comment-author-name {
    font-size: 13.5px;
    font-weight: 700;
    color: hsl(0, 0%, 10%);
    letter-spacing: -0.005em;
}

.comment-time {
    font-size: 11px;
    color: hsl(0, 0%, 58%);
}

.comment-text {
    font-size: 14px;
    color: hsl(0, 0%, 28%);
    line-height: 1.78;
}

.comment-text p {
    margin-bottom: 0.5em;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-reply a,
.edit-link a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hf-primary);
    font-weight: 700;
    text-decoration: none;
    margin-top: 10px;
    opacity: 0.65;
    transition: opacity var(--hf-transition);
}

.comment-reply a:hover,
.edit-link a:hover {
    opacity: 1;
}

.comment-awaiting-moderation {
    display: inline-block;
    font-size: 11.5px;
    color: hsl(38, 40%, 36%);
    background-color: hsl(38, 40%, 92%);
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 10px;
}

/* â??â?? Comment Form â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â?? */

.comment-form-wrap {
    margin-top: 48px;
    padding-top: 0;
}

.comment-form {
    background-color: hsl(38, 22%, 97%);
    border: 1px solid hsl(34, 20%, 88%);
    border-radius: 14px;
    padding: 32px;
}

/* Title */
#reply-title,
.comment-reply-title {
    display: block;
    font-family: var(--hf-font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: hsl(0, 0%, 6%);
    letter-spacing: -0.01em;
    margin: 0 0 6px;
}

/* Logged-in / must-log-in messages */
.must-log-in,
.logged-in-as {
    font-size: 13px;
    color: hsl(0, 0%, 48%);
    margin-bottom: 22px;
    line-height: 1.5;
}

.must-log-in a,
.logged-in-as a {
    color: var(--hf-primary);
    font-weight: 600;
}

/* Form layout */
.comment-form p {
    margin-bottom: 18px;
}

.comment-form p:last-of-type {
    margin-bottom: 0;
}

.comment-form-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 600px) {
    .comment-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Labels */
.comment-field-label,
.comment-form label {
    display: block;
    font-family: var(--hf-font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: hsl(0, 0%, 30%);
    margin-bottom: 7px;
}

/* Fields */
.comment-field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    display: block;
    width: 100%;
    padding: 11px 16px;
    background-color: #ffffff;
    border: 1.5px solid hsl(34, 20%, 84%);
    border-radius: 10px;
    font-family: var(--hf-font-sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--hf-text);
    outline: none;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.comment-field:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--hf-primary);
    box-shadow: 0 0 0 3px rgba(61, 50, 40, 0.09);
}

.comment-field::placeholder,
.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: hsl(0, 0%, 60%);
}

.comment-field--textarea,
.comment-form textarea {
    resize: vertical;
    min-height: 128px;
    line-height: 1.72;
}

/* Cookie consent */
.comment-form-cookies {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px;
    margin-bottom: 22px !important;
}

.comment-cookie-label,
.comment-form .comment-form-cookies label {
    font-family: var(--hf-font-sans);
    font-size: 12.5px;
    color: hsl(0, 0%, 44%);
    line-height: 1.55;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    cursor: pointer;
}

/* Submit */
.comment-form .form-submit {
    margin-top: 4px;
    margin-bottom: 0;
}

.comment-form .submit,
.comment-form input[type="submit"] {
    display: inline-block;
    background-color: var(--hf-primary);
    color: var(--hf-bg);
    font-family: var(--hf-font-sans);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 13px 34px;
    border: none;
    border-radius: var(--hf-radius-pill);
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 2px 12px rgba(61, 50, 40, 0.22);
    transition: background-color 200ms ease, box-shadow 200ms ease;
}

.comment-form .submit:hover,
.comment-form input[type="submit"]:hover {
    background-color: hsl(28, 28%, 20%);
    box-shadow: 0 4px 20px rgba(61, 50, 40, 0.30);
}

/* Mobile */
@media (max-width: 560px) {
    .comment-form {
        padding: 22px 18px;
    }

    .comment-item .children {
        margin-left: 28px;
        padding-left: 16px;
    }
}

/* =========================================================================
   RELATED POSTS
   ====================================================================== */

.related-posts { margin-bottom: 40px; }

.related-posts__title {
    font-size: 1.25rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hf-border);
}

.related-posts__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px) {
    .related-posts__grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================================
   POST NAVIGATION
   ====================================================================== */

.post-navigation {
    padding: 24px 0;
    margin-bottom: 40px;
}

.post-navigation__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.post-nav-link {
    display: block;
    text-decoration: none;
    padding: 12px;
    border-radius: var(--hf-radius);
    transition: background-color var(--hf-transition);
}

.post-nav-link:hover { background-color: var(--hf-bg-alt); }
.post-nav-link--next { text-align: right; }

.post-nav-link__label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: hsl(0, 0%, 50%);
    margin-bottom: 4px;
}

.post-nav-link__title {
    display: block;
    font-family: var(--hf-font-serif);
    font-size: 14px;
    font-weight: 600;
    color: hsl(0, 0%, 20%);
    line-height: 1.4;
}

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

.widget-area { display: flex; flex-direction: column; gap: 40px; }

.widget-title {
    font-family: var(--hf-font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: hsl(0, 0%, 20%);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--hf-border);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid hsl(34, 18%, 91%);
}
.widget ul li:last-child { border: none; padding-bottom: 0; }
.widget ul li a {
    font-size: 13.5px;
    color: hsl(0, 0%, 28%);
    text-decoration: none;
    line-height: 1.5;
    transition: color var(--hf-transition);
}
.widget ul li a:hover { color: var(--hf-primary); opacity: 1; }

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

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--hf-border);
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--hf-border);
    border-radius: var(--hf-radius);
    font-size: 13px;
    text-decoration: none;
    color: hsl(0, 0%, 35%);
    transition: border-color var(--hf-transition), color var(--hf-transition), background-color var(--hf-transition);
}

.page-numbers.current,
.page-numbers:hover {
    background-color: var(--hf-primary);
    border-color: var(--hf-primary);
    color: var(--hf-bg);
    opacity: 1;
}

/* =========================================================================
   BREADCRUMBS
   ====================================================================== */

.breadcrumbs {
    margin-bottom: 0;
    display: block;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: hsl(0, 0%, 50%);
}

.breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumbs__item a,
.breadcrumbs__item a:visited {
    color: hsl(0, 0%, 50%);
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.breadcrumbs__item a:hover,
.breadcrumbs__item a:focus {
    color: var(--hf-primary);
    opacity: 1;
    text-decoration: none !important;
}

.breadcrumb__sep { color: hsl(0, 0%, 65%); margin: 0 2px; }

/* =========================================================================
   NOT FOUND (404)
   ====================================================================== */

.not-found-page { min-height: 60vh; display: flex; align-items: center; }

.not-found-inner { text-align: center; max-width: 520px; margin: 0 auto; padding: 64px 0; }

.not-found__code {
    font-family: var(--hf-font-serif);
    font-size: 7rem;
    font-weight: 800;
    color: hsl(34, 18%, 85%);
    line-height: 1;
    margin-bottom: 8px;
}

.not-found__title { font-size: 1.5rem; margin-bottom: 16px; }

.not-found__desc { font-size: 15px; color: hsl(0, 0%, 42%); line-height: 1.7; margin-bottom: 28px; }

.not-found__actions { margin-bottom: 32px; }

.not-found__search-label { font-size: 14px; color: hsl(0, 0%, 42%); margin-bottom: 12px; }

/* =========================================================================
   ARCHIVE / SEARCH
   ====================================================================== */

.archive-description { font-size: 14px; color: var(--hf-text-muted); margin-top: 8px; }
.archive-description p { margin: 0; }

.search-count { font-size: 14px; color: var(--hf-text-muted); margin-top: 4px; }

.no-results { padding: 40px 0; }
.no-results p { font-size: 15px; color: var(--hf-text-muted); margin-bottom: 20px; }

/* =========================================================================
   AD AREAS (Mediavine Journey / Google AdSense safe)
   Ad containers below have no custom style that could conflict with ads
   ====================================================================== */

.single-ad-area { margin: 32px 0; min-height: 1px; /* allow ads to set their own height */ }

.homepage-widget-area { padding-top: 32px; padding-bottom: 32px; }

/* =========================================================================
   AUTHOR ARCHIVE
   ====================================================================== */

.author-archive-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

/* =========================================================================
   SCREEN READER UTILITIES
   ====================================================================== */

.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;
}

/* =========================================================================
   PRINT
   ====================================================================== */

@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .related-posts,
    .post-navigation,
    .newsletter-section,
    .share-icons,
    .breadcrumbs,
    .comments-area { display: none !important; }

    .site-content { padding: 0; }
    .content-with-sidebar { display: block; }
    #main-content { padding-top: 0; }

    .post-header__title { font-size: 1.75rem; }
    .prose p { font-size: 12pt; line-height: 1.6; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}

/* =========================================================================
   FORMS â?? Native + Plugin (CF7 / WPForms / Gravity Forms / Generic)
   All input, select, textarea, checkbox, radio elements styled uniformly.
   ====================================================================== */

/* Base field shared by all form plugins and native WP forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
input[type="date"],
select,
textarea,
.form-control,
.wpcf7-text,
.wpcf7-email,
.wpcf7-url,
.wpcf7-tel,
.wpcf7-textarea,
.wpcf7-select,
.wpforms-field-input,
.wpforms-field-email,
.wpforms-field-textarea,
.wpforms-field-select,
.gfield input,
.gfield select,
.gfield textarea {
    display: block;
    width: 100%;
    padding: 11px 14px;
    font-family: var(--hf-font-sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--hf-text);
    background-color: #fff;
    border: 1px solid hsl(34, 18%, 82%);
    border-radius: var(--hf-radius);
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus,
.form-control:focus,
.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-textarea:focus,
.wpcf7-select:focus,
.wpforms-field-input:focus,
.wpforms-field-email:focus,
.wpforms-field-textarea:focus,
.wpforms-field-select:focus,
.gfield input:focus,
.gfield select:focus,
.gfield textarea:focus {
    outline: none;
    border-color: var(--hf-primary);
    box-shadow: 0 0 0 3px hsl(28, 25%, 28%, 0.12);
}

textarea,
.form-textarea,
.wpcf7-textarea,
.wpforms-field-textarea,
.gfield textarea {
    min-height: 130px;
    resize: vertical;
}

select,
.form-select,
.wpcf7-select,
.wpforms-field-select,
.gfield select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"],
.form-check-input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--hf-primary);
    cursor: pointer;
    border: 1px solid hsl(34, 18%, 72%);
    border-radius: 3px;
}

input[type="radio"],
.form-check-input[type="radio"] { border-radius: 50%; }

/* Labels */
label,
.form-label,
.wpcf7-form-control-wrap label,
.wpforms-field-label,
.gfield_label {
    display: block;
    font-family: var(--hf-font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hf-text);
    margin-bottom: 6px;
}

label span[aria-hidden="true"] { color: var(--hf-accent); }

/* Form layout helpers */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; gap: 16px; }
.form-row--two-col { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row--two-col { grid-template-columns: 1fr; } }

.form-group--checkbox { display: flex; align-items: flex-start; gap: 10px; }
.form-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    color: var(--hf-text-muted);
}
.form-check-label a { color: var(--hf-primary); text-decoration: underline; }

/* Contact page layout */
.contact-main { max-width: 640px; }
.contact-intro { margin-bottom: 32px; }
.contact-intro-text {
    font-size: 15px;
    color: var(--hf-text-muted);
    margin-bottom: 28px;
    line-height: 1.7;
}
.contact-form-wrap { max-width: 580px; }

/* CF7 overrides */
.wpcf7 form { margin: 0; }
.wpcf7-form-control-wrap { display: block; margin-bottom: 20px; }
.wpcf7-not-valid-tip { font-size: 12px; color: hsl(4, 70%, 50%); margin-top: 4px; }
.wpcf7-response-output {
    padding: 12px 16px;
    border-radius: var(--hf-radius);
    font-size: 14px;
    margin-top: 16px;
    border: 1px solid transparent;
}
.wpcf7-mail-sent-ok { background: hsl(140, 40%, 95%); border-color: hsl(140, 40%, 75%); color: hsl(140, 40%, 30%); }
.wpcf7-mail-sent-ng,
.wpcf7-aborted { background: hsl(4, 70%, 96%); border-color: hsl(4, 70%, 80%); color: hsl(4, 70%, 40%); }
.wpcf7-spam-blocked { background: hsl(40, 60%, 95%); border-color: hsl(40, 60%, 75%); color: hsl(40, 60%, 35%); }
.wpcf7-validation-errors { background: hsl(40, 60%, 95%); border-color: hsl(40, 60%, 75%); color: hsl(40, 60%, 35%); }

/* WPForms overrides */
.wpforms-form .wpforms-field { margin-bottom: 20px; }
.wpforms-form .wpforms-submit-container { margin-top: 8px; }
.wpforms-confirmation-container-full { padding: 16px; background: hsl(140, 40%, 95%); border-radius: var(--hf-radius); }

/* Gravity Forms overrides */
.gform_wrapper .gfield { margin-bottom: 20px; }
.gform_wrapper .gform_footer { margin-top: 8px; }
.gform_confirmation_message { padding: 16px; background: hsl(140, 40%, 95%); border-radius: var(--hf-radius); }
.gfield_error input,
.gfield_error select,
.gfield_error textarea { border-color: hsl(4, 70%, 50%); }
.validation_message { font-size: 12px; color: hsl(4, 70%, 50%); margin-top: 4px; }

/* Comment form is also a form â?? consistent styling */
.comment-form .comment-field { width: 100%; }
.comment-form .comment-form-comment { margin-bottom: 16px; }
.comment-form .submit { margin-top: 4px; }

/* =========================================================================
   MOBILE RESPONSIVENESS â?? Comprehensive
   Covers all sections: header, hero, categories, posts, editor's picks,
   newsletter, footer, single post, sidebar, comments, author box.
   Breakpoints: 1024px (tablet landscape), 768px (tablet), 480px (mobile), 380px (small)
   ====================================================================== */

/* â??â?? 1024px and below â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â?? */
@media (max-width: 1024px) {
    .header-inner {
        gap: 16px;
    }

    .site-branding {
        max-width: min(100%, var(--hf-logo-mobile-max-width));
    }

    .site-header .custom-logo {
        max-width: min(100%, var(--hf-logo-mobile-max-width));
    }

    /* Hero */
    .hero-section {
        height: clamp(420px, 60vh, 580px);
    }

    .hero-inner {
        max-width: 580px;
    }

    /* Category grid: 3 columns on tablet */
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    /* Post grid */
    .post-grid.cols-3,
    .post-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    /* Editor's picks: stagger off on tablet */
    .ep-card:nth-child(2) {
        height: 440px;
        margin-top: 0;
    }

    /* Sidebar stacks below content */
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    /* Footer grid: 2 columns */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

/* â??â?? 768px and below â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â?? */
@media (max-width: 768px) {
    /* Container padding */
    .container {
        padding-left: clamp(16px, 5vw, 28px);
        padding-right: clamp(16px, 5vw, 28px);
    }

    /* Hero */
    .hero-section {
        height: clamp(380px, 55vh, 520px);
    }

    .hero-inner {
        max-width: 480px;
    }

    .hero-section .hero-heading {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
    }

    .hero-section .hero-description {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .hero-cta--primary,
    .hero-cta--ghost {
        padding: 12px 24px;
        font-size: 11px;
    }

    .hero-cta-group {
        gap: 10px;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: 1.35rem;
    }

    /* Categories: 2 columns */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Post grid: 1 column */
    .post-grid.cols-2,
    .post-grid.cols-3,
    .post-grid.cols-4 {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Editor's picks: single column stack */
    .ep-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ep-card {
        height: 320px;
    }

    .ep-card:nth-child(1),
    .ep-card:nth-child(2),
    .ep-card:nth-child(3) {
        height: 300px;
        margin-top: 0;
    }

    .ep-card__body {
        padding: 20px;
    }

    .ep-card__title {
        font-size: 1.05rem;
        margin-bottom: 12px;
    }

    /* Newsletter */
    .newsletter-inner {
        max-width: 100%;
    }

    .newsletter-title {
        font-size: 1.4rem;
    }

    .newsletter-form__fields {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form__submit {
        width: 100%;
        justify-content: center;
    }

    /* Footer: single column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-top {
        padding: 48px 0 40px;
    }

    .footer-tagline {
        max-width: 100%;
    }

    /* Single post */
    .post-header__title {
        font-size: clamp(1.5rem, 5vw, 2.1rem);
    }

    .content-full {
        max-width: 100%;
    }

    /* Post share: tighter on mobile */
    .post-share--top {
        margin-bottom: 28px;
    }

    /* Author box: stack on mobile */
    .author-box {
        flex-direction: column;
        gap: 14px;
        padding: 22px 18px 22px 24px;
    }

    .author-box__avatar-img {
        width: 54px;
        height: 54px;
    }

    /* Related posts grid: 1 col */
    .related-posts__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Post navigation */
    .post-navigation__inner {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .post-nav-link--next {
        text-align: left;
    }

    /* Comments */
    .comment-item .children {
        margin-left: 24px;
        padding-left: 16px;
    }

    .comment-form {
        padding: 22px 18px;
    }

    .comment-form-row {
        grid-template-columns: 1fr;
    }

    /* Page header */
    .page-header-bar {
        padding: 24px 0 14px;
    }

    .page-title {
        font-size: 1.4rem;
    }
}

/* â??â?? 480px and below â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â?? */
@media (max-width: 480px) {
    /* Root font scale */
    :root {
        --hf-header-h: 60px;
        --hf-logo-max-height: 44px;
    }

    /* Hero: compact on small phones */
    .hero-section {
        height: clamp(340px, 70vh, 480px);
    }

    .hero-section .hero-heading {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        margin-bottom: 14px;
    }

    .hero-section .hero-description {
        font-size: 13.5px;
        max-width: 280px;
        margin-bottom: 28px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .hero-cta--primary,
    .hero-cta--ghost {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    /* Categories: 2 cols, shorter cards */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .category-card {
        aspect-ratio: 2 / 3;
    }

    /* Section padding: reduce */
    .section-categories,
    .section-posts {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    /* Post cards: single col */
    .post-grid {
        gap: 28px;
    }

    .site-content {
        padding-top: 24px;
        padding-bottom: 56px;
    }

    .post-card__image-wrap {
        aspect-ratio: 16 / 9;
        border-radius: 8px;
    }

    .post-card__title {
        font-size: 1rem;
    }

    /* Editor's picks */
    .ep-card {
        height: 260px;
    }

    .ep-card__title {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    /* Newsletter section */
    .newsletter-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .newsletter-title {
        font-size: 1.25rem;
    }

    .newsletter-desc {
        font-size: 13px;
    }

    /* Single post */
    .post-header__title {
        font-size: clamp(1.4rem, 6.5vw, 1.8rem);
    }

    .prose p,
    .prose ul li,
    .prose ol li {
        font-size: 15px;
        line-height: 1.82;
    }

    .prose > p:first-of-type {
        font-size: 15.5px;
    }

    .prose h2 {
        font-size: 1.35rem;
        margin-top: 2em;
    }

    .prose h3 {
        font-size: 1.08rem;
    }

    .prose blockquote {
        padding: 22px 20px 22px 28px;
        margin: 2em 0;
    }

    .prose blockquote p {
        font-size: 1rem;
    }

    /* Comments */
    .comment-author-avatar .avatar {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .comment-body {
        gap: 10px;
    }

    .comments-title {
        font-size: 1.1rem;
    }

    .comment-form {
        padding: 18px 16px;
    }

    /* Author box */
    .author-box {
        padding: 18px 16px 18px 20px;
    }

    .author-box__name {
        font-size: 1rem;
    }

    .author-box__bio {
        font-size: 13px;
    }

    /* Footer */
    .footer-col .widget-title {
        font-size: 9px;
        letter-spacing: 0.16em;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    /* Post share icons */
    .share-icon {
        width: 30px;
        height: 30px;
    }

    /* Post tags */
    .post-tag {
        font-size: 11px;
        padding: 4px 11px;
    }
}

/* â??â?? 380px and below (very small phones) â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â?? */
@media (max-width: 380px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-section .hero-heading {
        font-size: 1.5rem;
    }

    .hero-cta--primary,
    .hero-cta--ghost {
        max-width: 240px;
        font-size: 10.5px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .post-card__title {
        font-size: 0.97rem;
    }

    .post-header__title {
        font-size: 1.35rem;
    }

    .prose p,
    .prose ul li,
    .prose ol li {
        font-size: 14.5px;
    }

    .newsletter-form__input,
    .newsletter-form__submit {
        font-size: 13px;
        padding: 11px 18px;
    }
}

/* â??â?? Fix: ensure images never overflow â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â?? */
@media (max-width: 768px) {
    img,
    video,
    iframe,
    embed,
    object {
        max-width: 100%;
        height: auto;
    }

    .post-hero__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Prevent horizontal overflow globally */
    .site-header,
    .site-footer,
    .hero-section,
    .section-categories,
    .section-posts,
    .section-editors-picks,
    .newsletter-section {
        overflow-x: hidden;
    }
}

/* â??â?? Fix: search form on mobile â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â?? */
@media (max-width: 480px) {
    .search-form {
        flex-direction: row;
    }

    .search-field {
        font-size: 15px;
    }
}

/* â??â?? Fix: mobile nav open state â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â??â?? */
@media (max-width: 1024px) {
    .primary-nav.is-open {
        background-color: rgba(250, 248, 245, 0.98);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 8px 0 16px;
        border-bottom: 1px solid var(--hf-border);
        z-index: 99;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    .primary-nav.is-open .nav-menu {
        padding: 4px clamp(16px, 5vw, 40px) 8px;
    }

    .primary-nav.is-open .nav-menu > li > a {
        padding: 10px 0;
        font-size: 13px;
        border-bottom: 1px solid hsl(34, 18%, 92%);
    }

    .primary-nav.is-open .nav-menu > li:last-child > a {
        border-bottom: none;
    }

    /* Mobile sub-menus: show inline */
    .primary-nav.is-open .nav-menu .sub-menu {
        display: block;
        position: static;
        background: none;
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0 0 0 16px;
        min-width: 0;
    }

    .primary-nav.is-open .nav-menu .sub-menu li a {
        padding: 8px 0;
        font-size: 12.5px;
        color: hsl(0, 0%, 40%);
        text-decoration: none;
        text-transform: none;
        letter-spacing: 0.02em;
        border-bottom: 1px solid hsl(34, 18%, 94%);
    }

    .primary-nav.is-open .nav-menu .sub-menu li:last-child a {
        border-bottom: none;
    }

    .primary-nav.is-open .nav-menu .sub-menu li a:hover {
        color: var(--hf-primary);
    }
}


