/* =============================================================
   Hobbijou theme — main stylesheet
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
    --hb-bg: #f6efe2;
    --hb-bg-warm: #efe5d2;
    --hb-surface: #fbf6ec;
    --hb-surface-2: #fffaf0;
    --hb-ink: #1d1813;
    --hb-ink-soft: #5a4f44;
    --hb-ink-mute: #8a7d6e;
    --hb-line: #e3d8c2;
    --hb-line-strong: #cdbf9f;
    --hb-accent: #c4593c;
    --hb-accent-soft: #f1d6cc;
    --hb-accent-deep: #9a4429;
    --hb-highlight: #d9a64a;

    --hb-shadow-sm: 0 1px 2px rgba(29, 24, 19, 0.05);
    --hb-shadow-md: 0 6px 18px -8px rgba(29, 24, 19, 0.16);
    --hb-shadow-lg: 0 18px 44px -18px rgba(29, 24, 19, 0.22);

    --hb-radius: 14px;
    --hb-radius-sm: 10px;
    --hb-radius-lg: 22px;

    --hb-font-display: "Fraunces", "Times New Roman", Georgia, serif;
    --hb-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

    --hb-container: 1200px;
    --hb-container-narrow: 720px;
}

/* ---------- Reset (light) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--hb-bg);
    color: var(--hb-ink);
    font-family: var(--hb-font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--hb-accent); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--hb-accent-deep); }
button { font-family: inherit; }

/* Skip link */
.hb-skip {
    position: absolute; left: -9999px; top: -9999px;
    background: var(--hb-ink); color: var(--hb-surface);
    padding: 12px 18px; border-radius: 8px; z-index: 9999;
    font-size: 14px; font-weight: 600;
}
.hb-skip:focus { left: 12px; top: 12px; outline: 2px solid var(--hb-accent); }

/* Screen reader only */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); height: 1px;
    margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}

/* ---------- Container ---------- */
.hb-container {
    width: 100%;
    max-width: var(--hb-container);
    margin-inline: auto;
    padding-inline: 24px;
}
.hb-container--narrow { max-width: var(--hb-container-narrow); }
@media (max-width: 600px) {
    .hb-container { padding-inline: 18px; }
}

/* ---------- Header ---------- */
.hb-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(246, 239, 226, 0.92);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--hb-line);
}
.hb-header__inner {
    display: flex; align-items: center; gap: 24px;
    min-height: 70px; padding-block: 14px;
}
.hb-header__brand { flex: 0 0 auto; }
.hb-brand {
    display: inline-flex; align-items: center;
    text-decoration: none; color: var(--hb-ink);
}
.hb-brand__name {
    font-family: var(--hb-font-display);
    font-size: 26px; font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1;
}
.hb-brand:hover { color: var(--hb-accent); }
.custom-logo-link img,
.custom-logo { max-height: 50px; width: auto; }

/* Nav */
.hb-nav {
    margin-left: auto;
    display: flex; align-items: center; gap: 8px;
}
.hb-nav__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: 4px;
    flex-wrap: wrap;
}
.hb-nav__list li a,
.hb-nav__list .menu-item a {
    display: inline-block;
    padding: 9px 14px;
    font-size: 14px; font-weight: 500;
    color: var(--hb-ink); text-decoration: none;
    border-radius: 8px;
    transition: background 0.18s ease, color 0.18s ease;
}
.hb-nav__list li a:hover,
.hb-nav__list .menu-item a:hover {
    background: rgba(29, 24, 19, 0.05);
    color: var(--hb-accent);
}
.hb-nav__list .current-menu-item > a,
.hb-nav__list .current_page_item > a {
    color: var(--hb-accent); font-weight: 600;
}

/* Sub menus */
.hb-nav__list .sub-menu,
.hb-nav__list .children {
    position: absolute;
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius);
    padding: 8px;
    box-shadow: var(--hb-shadow-md);
    min-width: 220px;
    list-style: none;
    margin: 4px 0 0 0;
    opacity: 0; visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    z-index: 50;
}
.hb-nav__list > li { position: relative; }
.hb-nav__list > li:hover > .sub-menu,
.hb-nav__list > li:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}

/* CTA menu item — Hobby Finder */
.hb-nav__list .hb-nav__cta { margin-left: 6px; }
.hb-nav__list .hb-nav__cta > a {
    background: var(--hb-ink);
    color: var(--hb-surface);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: var(--hb-shadow-sm);
    position: relative;
}
.hb-nav__list .hb-nav__cta > a::before {
    content: "✦";
    margin-right: 6px;
    color: var(--hb-highlight);
    font-size: 0.9em;
}
.hb-nav__list .hb-nav__cta > a:hover {
    background: var(--hb-accent-deep);
    color: var(--hb-surface);
    transform: translateY(-1px);
    box-shadow: var(--hb-shadow-md);
}

/* Search toggle */
.hb-search-toggle {
    appearance: none; background: transparent; border: 1px solid var(--hb-line);
    border-radius: 999px;
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--hb-ink); cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    margin-left: 8px;
}
.hb-search-toggle:hover {
    background: var(--hb-surface); border-color: var(--hb-ink); color: var(--hb-accent);
}
.hb-search-panel {
    border-top: 1px solid var(--hb-line);
    background: var(--hb-surface);
    padding-block: 18px;
}
.hb-search-panel[hidden] { display: none; }

/* Mobile nav toggle */
.hb-nav-toggle {
    display: none;
    appearance: none; background: transparent; border: 0;
    width: 40px; height: 40px; padding: 0;
    margin-left: auto; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hb-nav-toggle__bar {
    width: 22px; height: 2px; background: var(--hb-ink); border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.22s ease;
}
.hb-nav-toggle[aria-expanded="true"] .hb-nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hb-nav-toggle[aria-expanded="true"] .hb-nav-toggle__bar:nth-child(2) { opacity: 0; }
.hb-nav-toggle[aria-expanded="true"] .hb-nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 920px) {
    .hb-nav-toggle { display: inline-flex; }
    .hb-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--hb-surface);
        border-bottom: 1px solid var(--hb-line);
        padding: 18px 24px 24px;
        flex-direction: column; align-items: stretch; gap: 8px;
        margin: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        opacity: 0; visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }
    .hb-nav.is-open {
        opacity: 1; visibility: visible; transform: translateY(0);
    }
    .hb-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .hb-nav__list li a {
        padding: 14px 12px;
        font-size: 16px;
        border-radius: 8px;
    }
    .hb-nav__list .sub-menu,
    .hb-nav__list .children {
        position: static; box-shadow: none; border: 0; background: transparent;
        opacity: 1; visibility: visible; transform: none;
        padding: 0 0 0 12px; margin: 0;
    }
    .hb-nav__list .hb-nav__cta { margin: 8px 0 4px 0; }
    .hb-nav__list .hb-nav__cta > a { text-align: center; }
    .hb-search-toggle { align-self: flex-start; margin: 8px 0 0 0; }
}

/* ---------- Eyebrow ---------- */
.hb-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--hb-ink-soft);
}
.hb-eyebrow__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--hb-accent); display: inline-block; flex-shrink: 0;
}
.hb-eyebrow--accent { color: var(--hb-accent-deep); }

/* ---------- Section heading ---------- */
.hb-section-head {
    text-align: left;
    margin-bottom: 32px;
    display: flex; flex-direction: column; gap: 10px;
}
.hb-section-title {
    font-family: var(--hb-font-display);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.018em;
    margin: 0;
    color: var(--hb-ink);
}
.hb-section-title em {
    font-style: italic; color: var(--hb-accent);
}

/* ---------- Buttons ---------- */
.hb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px; font-weight: 600;
    line-height: 1; letter-spacing: 0.005em;
    cursor: pointer; text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.18s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    min-height: 48px;
}
.hb-btn--primary {
    background: var(--hb-ink); color: var(--hb-surface);
    box-shadow: var(--hb-shadow-sm);
}
.hb-btn--primary:hover {
    background: var(--hb-accent-deep); color: var(--hb-surface);
    transform: translateY(-1px); box-shadow: var(--hb-shadow-md);
}
.hb-btn--ghost {
    background: transparent; color: var(--hb-ink);
    border-color: var(--hb-line-strong);
}
.hb-btn--ghost:hover {
    background: var(--hb-ink); color: var(--hb-surface); border-color: var(--hb-ink);
}
.hb-btn__arrow {
    display: inline-flex; transition: transform 0.22s ease;
}
.hb-btn:hover .hb-btn__arrow { transform: translateX(3px); }

/* ---------- Main spacing ---------- */
.hb-main { padding-block: 56px; }
.hb-main > * + * { margin-top: 80px; }
@media (max-width: 720px) {
    .hb-main { padding-block: 32px; }
    .hb-main > * + * { margin-top: 56px; }
}

/* ---------- HOMEPAGE: hero ---------- */
.hb-hero__grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 28px;
    align-items: stretch;
}
@media (max-width: 980px) {
    .hb-hero__grid { grid-template-columns: 1fr; }
}

.hb-hero__feature {
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius-lg);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.hb-hero__feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--hb-shadow-lg);
}
.hb-hero__feature-link { display: block; color: inherit; }
.hb-hero__feature-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--hb-bg-warm);
}
.hb-hero__feature-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.hb-hero__feature:hover .hb-hero__feature-img { transform: scale(1.04); }
.hb-hero__feature-body {
    padding: 28px 32px 30px;
    display: flex; flex-direction: column; gap: 12px;
}
.hb-hero__feature-title {
    font-family: var(--hb-font-display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0;
    color: var(--hb-ink);
}
.hb-hero__feature-excerpt {
    font-size: 16px; line-height: 1.55;
    color: var(--hb-ink-soft);
    margin: 0;
}
.hb-hero__feature-meta {
    font-size: 13px; color: var(--hb-ink-mute);
    letter-spacing: 0.02em;
}

/* Hobby Finder card */
.hb-hf-card {
    position: relative;
    background: var(--hb-bg-warm);
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius-lg);
    padding: 36px 32px 32px;
    overflow: hidden;
    display: flex; flex-direction: column;
}
.hb-hf-card__bg {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hb-hf-card__blob {
    position: absolute; border-radius: 50%; filter: blur(48px); opacity: 0.55;
}
.hb-hf-card__blob--1 {
    top: -80px; right: -60px; width: 220px; height: 220px;
    background: var(--hb-accent-soft);
}
.hb-hf-card__blob--2 {
    bottom: -90px; left: -70px; width: 240px; height: 240px;
    background: #f1e3a6; opacity: 0.45;
}
.hb-hf-card__media {
    position: relative; z-index: 1;
    align-self: center;
    margin-bottom: 18px;
    width: 140px; height: 140px;
}
.hb-hf-card__media img,
.hb-hf-card__illu {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 50%;
}
.hb-hf-card__body {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; gap: 14px;
}
.hb-hf-card__title {
    font-family: var(--hb-font-display);
    font-size: clamp(26px, 3.5vw, 34px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.018em;
    margin: 0;
    color: var(--hb-ink);
}
.hb-hf-card__text {
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--hb-ink-soft);
    margin: 0;
}
.hb-hf-card .hb-btn { align-self: flex-start; margin-top: 4px; }
.hb-hf-card__meta {
    font-size: 12.5px;
    color: var(--hb-ink-mute);
    letter-spacing: 0.02em;
    margin: 4px 0 0;
}

/* ---------- HOMEPAGE: categories ---------- */
.hb-cats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.hb-cat-card {
    display: flex; flex-direction: column; gap: 8px;
    padding: 22px 22px 20px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius);
    color: var(--hb-ink);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
}
.hb-cat-card:hover {
    transform: translateY(-3px);
    border-color: var(--hb-ink);
    background: var(--hb-surface-2);
    box-shadow: var(--hb-shadow-md);
    color: var(--hb-ink);
}
.hb-cat-card__icon {
    font-size: 28px; line-height: 1;
    width: 46px; height: 46px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hb-bg-warm);
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.hb-cat-card:hover .hb-cat-card__icon {
    background: var(--hb-accent-soft);
    transform: rotate(-4deg);
}
.hb-cat-card__name {
    font-family: var(--hb-font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.005em;
}
.hb-cat-card__count {
    font-size: 12.5px;
    color: var(--hb-ink-mute);
}

/* ---------- HOMEPAGE: inpaklijst banner ---------- */
.hb-pl-banner {
    /* Container handles outer max-width */
}
.hb-pl-banner__inner {
    position: relative;
    background: var(--hb-ink);
    color: var(--hb-bg-warm);
    border-radius: var(--hb-radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 0;
    box-shadow: var(--hb-shadow-md);
}
@media (max-width: 800px) {
    .hb-pl-banner__inner { grid-template-columns: 1fr; }
}

/* Subtle paper-grain background overlay on dark side */
.hb-pl-banner__inner::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(217, 166, 74, 0.10), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(196, 89, 60, 0.12), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.hb-pl-banner__media {
    position: relative;
    z-index: 1;
    align-self: stretch;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #fbf6ec 0%, #efe5d2 100%);
    padding: 36px;
    min-height: 320px;
}
@media (max-width: 800px) {
    .hb-pl-banner__media { min-height: 240px; padding: 28px; }
}
.hb-pl-banner__media img,
.hb-pl-banner__illu {
    width: 100%; max-width: 380px; height: auto;
    display: block;
}

.hb-pl-banner__body {
    position: relative;
    z-index: 1;
    padding: 44px 48px 44px 44px;
    display: flex; flex-direction: column; gap: 14px;
}
@media (max-width: 800px) {
    .hb-pl-banner__body { padding: 32px 28px 36px; }
}

.hb-pl-banner .hb-eyebrow {
    color: var(--hb-highlight);
}
.hb-pl-banner .hb-eyebrow__dot {
    background: var(--hb-highlight);
}
.hb-pl-banner__title {
    font-family: var(--hb-font-display);
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--hb-bg-warm);
    margin: 0;
}
.hb-pl-banner__text {
    font-size: 16px;
    line-height: 1.55;
    color: rgba(246, 239, 226, 0.78);
    margin: 0;
    max-width: 480px;
}
.hb-pl-banner__features {
    list-style: none;
    padding: 0;
    margin: 6px 0 8px;
    display: flex; flex-direction: column;
    gap: 8px;
}
.hb-pl-banner__features li {
    display: flex; align-items: center; gap: 10px;
    font-size: 14.5px;
    color: var(--hb-bg-warm);
    line-height: 1.4;
}
.hb-pl-banner__check {
    flex-shrink: 0;
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hb-highlight);
    color: var(--hb-ink);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

/* CTA button on dark background — needs explicit treatment */
.hb-pl-banner .hb-btn--primary {
    align-self: flex-start;
    background: var(--hb-bg-warm);
    color: var(--hb-ink);
    margin-top: 4px;
}
.hb-pl-banner .hb-btn--primary:hover {
    background: var(--hb-highlight);
    color: var(--hb-ink);
}

/* ---------- Cards grid ---------- */
.hb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
@media (max-width: 600px) {
    .hb-grid { gap: 22px; }
}

.hb-card {
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.hb-card:hover {
    transform: translateY(-3px);
    border-color: var(--hb-line-strong);
    box-shadow: var(--hb-shadow-md);
}
.hb-card__link {
    display: flex; flex-direction: column; height: 100%;
    color: inherit; text-decoration: none;
}
.hb-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--hb-bg-warm);
}
.hb-card__img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.hb-card:hover .hb-card__img { transform: scale(1.05); }
.hb-card__img--placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--hb-bg-warm), var(--hb-accent-soft));
    color: var(--hb-ink-soft);
    padding: 20px;
    text-align: center;
}
.hb-card__img--placeholder span {
    font-family: var(--hb-font-display);
    font-size: 18px;
    font-style: italic;
    line-height: 1.3;
}
.hb-card__body {
    padding: 20px 22px 22px;
    display: flex; flex-direction: column; gap: 8px;
    flex: 1;
}
.hb-card__cat {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--hb-accent);
}
.hb-card__title {
    font-family: var(--hb-font-display);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--hb-ink);
    transition: color 0.2s ease;
}
.hb-card:hover .hb-card__title { color: var(--hb-accent); }
.hb-card__excerpt {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--hb-ink-soft);
    margin: 0;
}
.hb-card__meta {
    font-size: 12.5px;
    color: var(--hb-ink-mute);
    margin-top: auto;
    padding-top: 4px;
}

/* ---------- "More" link below latest ---------- */
.hb-latest__more {
    margin-top: 36px; text-align: center;
}

/* ---------- About strip ---------- */
.hb-about__inner {
    text-align: center;
    padding: 50px 24px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius-lg);
    position: relative;
    overflow: hidden;
}
.hb-about__inner::before {
    content: "“";
    position: absolute;
    top: -40px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--hb-font-display);
    font-size: 200px;
    color: var(--hb-accent-soft);
    line-height: 1;
    opacity: 0.6;
    pointer-events: none;
}
.hb-about__quote {
    position: relative;
    font-family: var(--hb-font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.4;
    color: var(--hb-ink);
    max-width: 640px;
    margin: 0 auto 14px;
}
.hb-about__sig {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hb-ink-soft);
    font-weight: 600;
    margin: 0;
}

/* ---------- Single post ---------- */
.hb-post__head {
    text-align: center;
    margin-bottom: 28px;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.hb-post__cat {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--hb-accent);
    padding: 6px 14px;
    border: 1px solid var(--hb-line);
    border-radius: 999px;
    background: var(--hb-surface);
}
.hb-post__title {
    font-family: var(--hb-font-display);
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.022em;
    margin: 0;
    color: var(--hb-ink);
}
.hb-post__lead {
    font-size: 18.5px;
    line-height: 1.55;
    color: var(--hb-ink-soft);
    max-width: 600px;
    margin: 0;
}
.hb-post__meta {
    display: flex; align-items: center; gap: 8px;
    font-size: 13.5px; color: var(--hb-ink-soft);
    margin-top: 4px;
    flex-wrap: wrap; justify-content: center;
}
.hb-post__author {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; color: var(--hb-ink);
}
.hb-post__avatar { border-radius: 50%; }
.hb-post__dot { color: var(--hb-ink-mute); }

.hb-post__hero {
    margin: 0 auto 40px;
    max-width: var(--hb-container);
}
.hb-post__hero-img {
    width: 100%;
    border-radius: var(--hb-radius-lg);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Content typography */
.hb-post__content,
.hb-page__content {
    font-size: 17.5px;
    line-height: 1.75;
    color: var(--hb-ink);
}
.hb-post__content > * + *,
.hb-page__content > * + * { margin-top: 1.1em; }
.hb-post__content h2,
.hb-page__content h2 {
    font-family: var(--hb-font-display);
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-top: 1.8em;
    color: var(--hb-ink);
}
.hb-post__content h3,
.hb-page__content h3 {
    font-family: var(--hb-font-display);
    font-size: 22px;
    font-weight: 600;
    margin-top: 1.6em;
}
.hb-post__content a,
.hb-page__content a {
    color: var(--hb-accent);
    text-decoration: underline;
    text-decoration-color: var(--hb-accent-soft);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}
.hb-post__content a:hover,
.hb-page__content a:hover {
    color: var(--hb-accent-deep);
    text-decoration-color: var(--hb-accent-deep);
}
.hb-post__content blockquote,
.hb-page__content blockquote {
    border-left: 3px solid var(--hb-accent);
    padding: 6px 0 6px 22px;
    margin: 2em 0;
    font-family: var(--hb-font-display);
    font-style: italic;
    font-size: 21px;
    line-height: 1.45;
    color: var(--hb-ink);
}
.hb-post__content img,
.hb-page__content img {
    border-radius: var(--hb-radius);
    margin-block: 1em;
}
.hb-post__content ul,
.hb-post__content ol,
.hb-page__content ul,
.hb-page__content ol {
    padding-left: 1.4em;
}
.hb-post__content li + li,
.hb-page__content li + li { margin-top: 0.4em; }
.hb-post__content code,
.hb-page__content code {
    background: var(--hb-bg-warm);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.92em;
}
.hb-post__content pre,
.hb-page__content pre {
    background: var(--hb-ink); color: var(--hb-surface);
    padding: 18px 20px; border-radius: var(--hb-radius);
    overflow-x: auto;
}

.hb-post__tags {
    margin-top: 36px; padding-top: 20px;
    border-top: 1px solid var(--hb-line);
    font-size: 14px;
}
.hb-post__tags a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    border-radius: 999px;
    margin: 4px 4px 0 0;
    color: var(--hb-ink-soft);
    text-decoration: none;
}
.hb-post__tags a:hover {
    background: var(--hb-ink); color: var(--hb-surface); border-color: var(--hb-ink);
}
.hb-post__tags-label {
    font-weight: 600; margin-right: 8px;
}

/* ---------- Page ---------- */
.hb-page__head {
    text-align: center;
    margin-bottom: 32px;
}
.hb-page__title {
    font-family: var(--hb-font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.022em;
    margin: 0;
    color: var(--hb-ink);
}
.hb-page__hero {
    margin: 0 auto 40px;
}
.hb-page__hero-img {
    width: 100%;
    border-radius: var(--hb-radius-lg);
    aspect-ratio: 16 / 9; object-fit: cover;
}

/* ---------- Archive ---------- */
.hb-archive__head {
    text-align: center;
    align-items: center;
    margin-bottom: 40px;
}
.hb-archive__head .hb-eyebrow,
.hb-archive__head .hb-section-title { align-self: center; }
.hb-archive__desc {
    color: var(--hb-ink-soft); font-size: 16px;
    max-width: 600px; margin: 4px auto 0;
}
.hb-archive__searchform { margin-top: 16px; }

/* Pagination */
.hb-pagination {
    margin-top: 56px;
    display: flex; justify-content: center;
}
.hb-pagination .nav-links,
.hb-pagination > div {
    display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
}
.hb-pagination a, .hb-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 14px; font-weight: 600;
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    color: var(--hb-ink); text-decoration: none;
    transition: all 0.18s ease;
}
.hb-pagination a:hover {
    background: var(--hb-ink); color: var(--hb-surface); border-color: var(--hb-ink);
}
.hb-pagination .current {
    background: var(--hb-accent); color: var(--hb-surface); border-color: var(--hb-accent);
}

/* ---------- Search form ---------- */
.hb-searchform {
    display: flex; gap: 8px;
    max-width: 520px;
    margin: 0 auto;
}
.hb-searchform__input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--hb-line-strong);
    background: var(--hb-surface);
    border-radius: 999px;
    font-family: inherit; font-size: 15px;
    color: var(--hb-ink);
    transition: border-color 0.2s, background 0.2s;
}
.hb-searchform__input:focus {
    outline: none;
    border-color: var(--hb-accent); background: var(--hb-surface-2);
}
.hb-searchform__btn {
    padding: 12px 22px;
    border: 0; border-radius: 999px;
    background: var(--hb-ink); color: var(--hb-surface);
    font-weight: 600; font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.hb-searchform__btn:hover { background: var(--hb-accent-deep); }

/* ---------- 404 ---------- */
.hb-404__inner {
    text-align: center;
    max-width: 560px; margin: 40px auto;
    padding: 60px 24px;
    display: flex; flex-direction: column; gap: 18px; align-items: center;
}
.hb-404__title {
    font-family: var(--hb-font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}
.hb-404__lead {
    font-size: 17px; line-height: 1.55;
    color: var(--hb-ink-soft); margin: 0;
}
.hb-404__searchform { width: 100%; }
.hb-404__back { margin-top: 8px; }

/* ---------- Comments ---------- */
.hb-comments {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--hb-line);
}
.hb-comments__title {
    font-family: var(--hb-font-display);
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
}
.hb-comments__list {
    list-style: none; padding: 0; margin: 0 0 32px;
}
.hb-comments__list .comment {
    padding: 18px 0;
    border-bottom: 1px solid var(--hb-line);
}
.hb-comments__list .children {
    list-style: none; padding-left: 24px; margin-top: 12px;
    border-left: 2px solid var(--hb-line);
}
.comment-meta {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 8px;
    font-size: 13.5px;
    color: var(--hb-ink-soft);
}
.comment-meta .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 600; color: var(--hb-ink); font-style: normal; }

.hb-commentform input[type="text"],
.hb-commentform input[type="email"],
.hb-commentform input[type="url"],
.hb-commentform textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--hb-line-strong);
    border-radius: var(--hb-radius-sm);
    background: var(--hb-surface);
    font-family: inherit; font-size: 15px;
    color: var(--hb-ink);
    margin-bottom: 12px;
}
.hb-commentform textarea { min-height: 130px; }
.hb-commentform input:focus,
.hb-commentform textarea:focus {
    outline: none; border-color: var(--hb-accent);
}
.hb-commentform .submit {
    padding: 12px 24px;
    background: var(--hb-ink); color: var(--hb-surface);
    border: 0; border-radius: 999px;
    font-weight: 600; cursor: pointer;
    transition: background 0.2s ease;
}
.hb-commentform .submit:hover { background: var(--hb-accent-deep); }
.hb-commentform label { font-size: 14px; color: var(--hb-ink-soft); display: block; margin-bottom: 4px; }

/* ---------- Footer ---------- */
.hb-footer {
    margin-top: 80px;
    background: var(--hb-ink);
    color: var(--hb-bg-warm);
    padding: 56px 0 0;
}
.hb-footer a { color: var(--hb-bg-warm); }
.hb-footer a:hover { color: var(--hb-highlight); }
.hb-footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
@media (max-width: 800px) {
    .hb-footer__inner { grid-template-columns: 1fr; gap: 32px; }
}
.hb-brand--footer { color: var(--hb-bg-warm); }
.hb-brand--footer .hb-brand__name { color: var(--hb-bg-warm); }
.hb-footer__tag {
    margin: 12px 0 0; font-size: 14px; color: var(--hb-ink-mute);
    max-width: 360px;
}
.hb-footer__list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.hb-footer__list a {
    font-size: 14px;
    text-decoration: none;
}
.hb-footer__widgets .hb-widget__title {
    font-family: var(--hb-font-display);
    font-size: 16px; margin: 0 0 10px;
    color: var(--hb-bg-warm);
}
.hb-footer__widgets ul { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 1.8; }
.hb-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}
.hb-footer__bottom-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
    font-size: 13px; color: var(--hb-ink-mute);
}
.hb-footer__bottom-inner a { color: var(--hb-ink-mute); }
.hb-footer__bottom-inner a:hover { color: var(--hb-bg-warm); }

/* ---------- Block editor compatibility ---------- */
.alignwide { margin-left: -40px; margin-right: -40px; max-width: calc(100% + 80px); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
@media (max-width: 800px) {
    .alignwide { margin-left: 0; margin-right: 0; max-width: 100%; }
}
.wp-caption { margin-block: 1.5em; }
.wp-caption .wp-caption-text {
    font-size: 13.5px; color: var(--hb-ink-soft);
    text-align: center; margin-top: 8px; font-style: italic;
}

/* ---------- Print ---------- */
@media print {
    .hb-header, .hb-footer, .hb-related, .hb-comments { display: none !important; }
    body { background: white; color: black; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* =============================================================
   v1.2 ADDITIONS — sidebar, author box, tools, breadcrumbs, footer
   ============================================================= */

/* ---------- Section head centered variant ---------- */
.hb-section-head--center { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: 32px; }
.hb-section-head--center .hb-eyebrow { justify-content: center; }
.hb-section-lead {
    font-size: 16px; line-height: 1.55;
    color: var(--hb-ink-soft);
    margin: 12px auto 0;
    max-width: 540px;
}

/* ---------- Breadcrumbs ---------- */
.hb-bc {
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--hb-ink-mute);
}
.hb-bc__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.hb-bc__item { display: inline-flex; align-items: center; }
.hb-bc__sep { color: var(--hb-line-strong); }
.hb-bc__link {
    color: var(--hb-ink-soft);
    text-decoration: none;
    transition: color .15s;
}
.hb-bc__link:hover { color: var(--hb-accent); }
.hb-bc__item--current { color: var(--hb-ink); font-weight: 500; }

/* ---------- Layout wrapper (article + sidebar) ---------- */
.hb-layout {
    display: block;
}
@media (min-width: 960px) {
    .hb-layout--with-side {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 56px;
        max-width: 1140px;
    }
}
.hb-layout__main { min-width: 0; }
.hb-layout__side { min-width: 0; }

/* On post/page WITH sidebar: lose the "narrow" container constraint visually */
.hb-layout--with-side .hb-post__content,
.hb-layout--with-side .hb-page__content {
    max-width: 720px;
}

/* ---------- Sidebar ---------- */
.hb-side {
    display: flex; flex-direction: column;
    gap: 24px;
}
@media (min-width: 960px) {
    .hb-side { position: sticky; top: 28px; }
}
.hb-side__widget {
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius);
    padding: 22px 22px 20px;
    box-shadow: var(--hb-shadow-sm);
}
.hb-side__eyebrow {
    display: inline-block;
    font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; font-weight: 600;
    color: var(--hb-accent);
    margin-bottom: 6px;
}
.hb-side__title {
    font-family: var(--hb-font-display);
    font-size: 18px; font-weight: 600;
    line-height: 1.25; letter-spacing: -0.01em;
    color: var(--hb-ink);
    margin: 0 0 12px;
}

/* Author mini-card in sidebar */
.hb-side__author { background: var(--hb-bg-warm); border-color: var(--hb-line-strong); }
.hb-side__author-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.hb-side__author-avatar { border-radius: 50%; flex-shrink: 0; }
.hb-side__author-meta { flex: 1; min-width: 0; }
.hb-side__author-name {
    font-family: var(--hb-font-display); font-size: 17px; font-weight: 600;
    line-height: 1.2; margin: 4px 0 2px; color: var(--hb-ink);
}
.hb-side__author-role { font-size: 12.5px; color: var(--hb-ink-soft); display: block; }
.hb-side__author-bio { font-size: 13.5px; line-height: 1.55; color: var(--hb-ink-soft); margin: 0; }

/* Newsletter widget */
.hb-side__newsletter { background: var(--hb-ink); border-color: var(--hb-ink); color: var(--hb-bg); }
.hb-side__newsletter .hb-side__eyebrow { color: var(--hb-highlight); }
.hb-side__newsletter .hb-side__title { color: var(--hb-bg); }
.hb-side__text { font-size: 13.5px; line-height: 1.55; color: rgba(251,246,236,0.78); margin: 0 0 14px; }
.hb-side__form { display: flex; flex-direction: column; gap: 8px; }
.hb-side__label { position: absolute; left: -10000px; }
.hb-side__input {
    width: 100%; padding: 11px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    color: var(--hb-bg); font-size: 14px;
    font-family: inherit;
}
.hb-side__input::placeholder { color: rgba(251,246,236,0.45); }
.hb-side__input:focus { outline: 2px solid var(--hb-highlight); outline-offset: 2px; border-color: transparent; }
.hb-side__submit {
    padding: 11px 16px;
    background: var(--hb-highlight); color: var(--hb-ink);
    border: none; border-radius: 999px;
    font-size: 13.5px; font-weight: 600;
    font-family: inherit;
    cursor: pointer; transition: transform .15s, background .15s;
}
.hb-side__submit:hover { background: #e4b65d; transform: translateY(-1px); }
.hb-side__fineprint { font-size: 11.5px; color: rgba(251,246,236,0.5); margin: 10px 0 0; }

/* Recent articles list */
.hb-side__list { list-style: none; margin: 0; padding: 0; }
.hb-side__item + .hb-side__item { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hb-line); }
.hb-side__link { display: flex; gap: 10px; text-decoration: none; color: inherit; align-items: flex-start; }
.hb-side__thumb {
    flex-shrink: 0; width: 64px; height: 64px;
    border-radius: 8px; overflow: hidden;
    background: var(--hb-bg-warm);
}
.hb-side__thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-side__thumb .hb-card__img--placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; padding: 4px; text-align: center;
    color: var(--hb-ink-mute);
}
.hb-side__link-body { flex: 1; min-width: 0; }
.hb-side__link-title {
    display: block;
    font-family: var(--hb-font-display); font-size: 14.5px; font-weight: 600;
    line-height: 1.3; color: var(--hb-ink);
    margin-bottom: 4px;
    transition: color .15s;
}
.hb-side__link:hover .hb-side__link-title { color: var(--hb-accent); }
.hb-side__link-date { font-size: 12px; color: var(--hb-ink-mute); }

/* Tools list in sidebar */
.hb-side__tool-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.hb-side__tool-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    background: var(--hb-bg-warm);
    border-radius: 10px;
    text-decoration: none; color: var(--hb-ink);
    font-size: 14px; font-weight: 500;
    transition: background .15s, transform .15s;
}
.hb-side__tool-link:hover { background: var(--hb-accent-soft); transform: translateX(2px); }
.hb-side__tool-emoji { font-size: 16px; line-height: 1; }

/* Categories list in sidebar */
.hb-side__cat-list { list-style: none; padding: 0; margin: 0; }
.hb-side__cat-list li + li { border-top: 1px solid var(--hb-line); }
.hb-side__cat-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 0;
    text-decoration: none; color: var(--hb-ink);
    font-size: 14px;
    transition: color .15s, padding-left .15s;
}
.hb-side__cat-link:hover { color: var(--hb-accent); padding-left: 4px; }
.hb-side__cat-count {
    font-size: 11.5px; font-weight: 600;
    color: var(--hb-ink-mute);
    background: var(--hb-bg-warm);
    padding: 2px 8px; border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

/* ---------- Author box (EEAT, after content) ---------- */
.hb-author-box {
    margin: 48px 0 32px;
    padding: 28px 28px 26px;
    background: linear-gradient(135deg, var(--hb-bg-warm) 0%, var(--hb-surface) 100%);
    border: 1px solid var(--hb-line-strong);
    border-radius: var(--hb-radius-lg);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    box-shadow: var(--hb-shadow-sm);
}
@media (max-width: 600px) {
    .hb-author-box {
        grid-template-columns: 1fr;
        padding: 22px;
        text-align: center;
    }
    .hb-author-box__avatar { justify-self: center; }
}
.hb-author-box__avatar-img {
    border-radius: 50%;
    border: 3px solid var(--hb-surface);
    box-shadow: var(--hb-shadow-md);
}
.hb-author-box__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; font-weight: 600;
    color: var(--hb-accent);
    margin-bottom: 4px;
}
@media (max-width: 600px) { .hb-author-box__eyebrow { justify-content: center; } }
.hb-author-box__eyebrow-dot {
    width: 5px; height: 5px; border-radius: 50%; background: var(--hb-accent);
}
.hb-author-box__name {
    font-family: var(--hb-font-display);
    font-size: 24px; font-weight: 600;
    line-height: 1.15; letter-spacing: -0.015em;
    color: var(--hb-ink);
    margin: 0 0 4px;
}
.hb-author-box__role {
    font-size: 13.5px; color: var(--hb-ink-soft);
    margin: 0 0 10px;
}
.hb-author-box__expertise {
    font-size: 12.5px;
    color: var(--hb-ink-soft);
    margin: 0 0 12px;
}
.hb-author-box__exp-label {
    font-weight: 600; color: var(--hb-ink);
    margin-right: 4px;
}
.hb-author-box__bio {
    font-size: 14.5px; line-height: 1.6;
    color: var(--hb-ink);
    margin: 0 0 16px;
}
.hb-author-box__meta {
    display: flex; flex-wrap: wrap; gap: 16px 24px;
    padding: 12px 0;
    margin: 0 0 14px;
    border-top: 1px dashed var(--hb-line-strong);
    border-bottom: 1px dashed var(--hb-line-strong);
}
@media (max-width: 600px) { .hb-author-box__meta { justify-content: center; } }
.hb-author-box__meta-item { display: flex; flex-direction: column; gap: 2px; }
.hb-author-box__meta-label {
    font-size: 10.5px; letter-spacing: 0.08em;
    text-transform: uppercase; font-weight: 600;
    color: var(--hb-ink-mute);
}
.hb-author-box__meta-value {
    font-size: 13px; color: var(--hb-ink); font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.hb-author-box__actions {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 14px;
}
@media (max-width: 600px) { .hb-author-box__actions { justify-content: center; } }
.hb-author-box__archive {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 600;
    color: var(--hb-accent);
    text-decoration: none;
    transition: gap .15s;
}
.hb-author-box__archive:hover { gap: 10px; color: var(--hb-accent-deep); }
.hb-author-box__socials {
    display: flex; gap: 8px;
    list-style: none; padding: 0; margin: 0;
}
.hb-author-box__socials a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    border-radius: 50%;
    color: var(--hb-ink-soft);
    transition: all .15s;
}
.hb-author-box__socials a:hover {
    background: var(--hb-ink); color: var(--hb-bg);
    border-color: var(--hb-ink);
    transform: translateY(-2px);
}

/* ---------- Tools section (homepage) ---------- */
.hb-tools { padding: 48px 0; }
@media (min-width: 800px) { .hb-tools { padding: 64px 0; } }

.hb-tools__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 32px;
}
.hb-tool-card {
    position: relative;
    display: flex; flex-direction: column; gap: 10px;
    padding: 22px 22px 20px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius);
    text-decoration: none; color: inherit;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
    overflow: hidden;
    animation: hb-tool-in .5s cubic-bezier(.2,.7,.3,1) calc(var(--hb-i, 0) * 0.06s) both;
}
@keyframes hb-tool-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.hb-tool-card::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at top right, var(--hb-accent-soft) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.hb-tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--hb-accent);
    box-shadow: var(--hb-shadow-lg);
}
.hb-tool-card:hover::before { opacity: 0.6; }
.hb-tool-card > * { position: relative; z-index: 1; }
.hb-tool-card__emoji {
    font-size: 28px; line-height: 1;
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hb-bg-warm);
    border-radius: 12px;
    margin-bottom: 4px;
    transition: transform .25s ease;
}
.hb-tool-card:hover .hb-tool-card__emoji {
    transform: rotate(-6deg) scale(1.06);
}
.hb-tool-card__cat {
    font-size: 11px; letter-spacing: 0.12em;
    text-transform: uppercase; font-weight: 600;
    color: var(--hb-accent);
}
.hb-tool-card__title {
    font-family: var(--hb-font-display);
    font-size: 19px; font-weight: 600;
    line-height: 1.2; letter-spacing: -0.01em;
    color: var(--hb-ink);
    margin: 0;
}
.hb-tool-card__desc {
    font-size: 14px; line-height: 1.5;
    color: var(--hb-ink-soft);
    margin: 0;
    flex: 1;
}
.hb-tool-card__cta {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 600;
    color: var(--hb-accent);
    margin-top: 8px;
    transition: gap .25s ease;
}
.hb-tool-card:hover .hb-tool-card__cta { gap: 12px; }
.hb-tool-card__arrow { transition: transform .25s ease; }

/* ---------- New Footer (4 cols) ---------- */
/* Override old footer styles cleanly by giving more specific structure */
.hb-footer {
    margin-top: 80px;
    background: var(--hb-ink);
    color: var(--hb-bg);
}
.hb-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0 40px !important;
    align-items: start;
}
@media (min-width: 700px) {
    .hb-footer__inner {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 40px;
    }
}
.hb-footer__col { min-width: 0; }
.hb-footer__brand {
    display: inline-block;
    text-decoration: none; color: var(--hb-bg);
    margin-bottom: 14px;
}
.hb-footer__brand img {
    max-height: 44px; width: auto;
    filter: brightness(0) invert(1);
}
.hb-footer__name {
    font-family: var(--hb-font-display);
    font-size: 26px; font-weight: 700;
    letter-spacing: -0.02em;
}
.hb-footer__about {
    font-size: 14px; line-height: 1.6;
    color: rgba(251,246,236,0.72);
    margin: 0 0 18px;
    max-width: 360px;
}
.hb-footer__socials {
    list-style: none; padding: 0; margin: 0;
    display: flex; gap: 8px;
}
.hb-footer__social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--hb-bg);
    text-decoration: none;
    transition: all .15s;
}
.hb-footer__social-link:hover {
    background: var(--hb-highlight);
    border-color: var(--hb-highlight);
    color: var(--hb-ink);
    transform: translateY(-2px);
}
.hb-footer__title {
    font-family: var(--hb-font-display);
    font-size: 14px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--hb-highlight);
    margin: 0 0 16px;
}
.hb-footer__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.hb-footer__list a {
    font-size: 14px;
    color: rgba(251,246,236,0.78);
    text-decoration: none;
    transition: color .15s, padding-left .15s;
    display: inline-block;
}
.hb-footer__list a:hover {
    color: var(--hb-bg);
    padding-left: 4px;
}
.hb-footer__widgets {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 28px 0 0 !important;
}
.hb-footer__widgets .hb-widget__title {
    font-family: var(--hb-font-display);
    font-size: 14px;
    color: var(--hb-highlight);
    margin: 0 0 10px;
    letter-spacing: 0.06em; text-transform: uppercase;
}
.hb-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
}
.hb-footer__bottom-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
    font-size: 12.5px; color: rgba(251,246,236,0.5);
}
.hb-footer__company { color: rgba(251,246,236,0.4); }
.hb-footer__bottom-inner a {
    color: rgba(251,246,236,0.6);
    text-decoration: none;
    transition: color .15s;
}
.hb-footer__bottom-inner a:hover { color: var(--hb-highlight); }
.hb-footer__copy { margin: 0; }
.hb-footer__back { margin: 0; }
