/*
Theme Name: Bloglamp
Author: Peregrine themes
Template: bloghash
Text Domain: bloglamp
Description: Bloglamp is the perfect pick for bloggers seeking a lightweight, customizable theme that suits them just right. With plenty of options to adjust colors and typography, making your site unique is a breeze. It’s SEO friendly and fully compatible with WPML, Gutenberg, Elementor, WooCommerce, and supports translation and RTL. Live preview: https://demo.peregrine-themes.com/bloghash/bloglamp.
Author URI: https://peregrine-themes.com/
Theme URI: https://peregrine-themes.com/bloglamp/
Version: 1.0.4
Requires at least: 5.4
Tested up to: 6.9
Requires PHP: 5.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: two-columns, right-sidebar, left-sidebar, footer-widgets, blog, news, entertainment, custom-background, custom-menu, custom-logo, post-formats, sticky-post, editor-style, threaded-comments, translation-ready, custom-colors, featured-images, full-width-template, theme-options, flexible-header, wide-blocks
*/

/* Bloglamp */

.bloglamp {
    --bloghash-radius: 6px;
}

.bloglamp .bloghash-article.post.sticky {
    outline: none;
}

.bloglamp.bloghash-layout__boxed-separated.page .bloghash-article.has-post-thumbnail:not(.format-quote),
.bloglamp.bloghash-layout__boxed-separated.archive .bloghash-article.has-post-thumbnail:not(.format-quote),
.bloglamp.bloghash-layout__boxed-separated.blog .bloghash-article.has-post-thumbnail:not(.format-quote),
.bloglamp.bloghash-layout__boxed-separated.category .bloghash-article.has-post-thumbnail:not(.format-quote),
.bloglamp.bloghash-layout__boxed-separated.search-results .bloghash-article.has-post-thumbnail:not(.format-quote) {
    padding: 0;
}

.bloglamp.bloghash-blog-horizontal .bloghash-article.has-post-thumbnail:not(.format-quote) .bloghash-blog-entry-wrapper {
    align-items: unset;
}

.bloglamp.bloghash-blog-horizontal .bloghash-article.has-post-thumbnail:not(.format-quote) .bloghash-blog-entry-wrapper.bloghash-thumb-right .entry-media,
.bloglamp.bloghash-blog-horizontal .bloghash-article.has-post-thumbnail:not(.format-quote) .bloghash-blog-entry-wrapper.bloghash-thumb-left .entry-media {
    margin: 0;
}

.bloglamp.bloghash-blog-horizontal .bloghash-article.has-post-thumbnail:not(.format-quote) .entry-media .entry-image-link,
.bloglamp.bloghash-blog-horizontal .bloghash-article.has-post-thumbnail:not(.format-quote) .entry-media img {
    height: 100%;
    object-fit: cover;
}

.bloglamp.bloghash-blog-horizontal .bloghash-article.has-post-thumbnail:not(.format-quote) .bloghash-entry-content-wrapper {
    padding: 3rem;
}

@media only screen and (min-width: 869px) {
    .bloglamp .bloghash-article.has-post-thumbnail:not(.format-quote) .entry-media,
    .bloglamp .bloghash-article .entry-media {
        border-radius: var(--bloghash-radius) 0 0 var(--bloghash-radius);
    }

    .bloglamp.bloghash-blog-horizontal .col-xs-12:nth-child(even) .bloghash-article.has-post-thumbnail:not(.format-quote) .bloghash-blog-entry-wrapper .entry-media {
        border-radius: 0 var(--bloghash-radius) var(--bloghash-radius) 0;
    }
}

@media only screen and (max-width: 868px) {
    .bloglamp .bloghash-article.has-post-thumbnail:not(.format-quote) .entry-media {
        border-radius: var(--bloghash-radius) var(--bloghash-radius) 0 0;
    }
}

.bloglamp #bloghash-header-inner {
    box-shadow: 0 1px 6px rgba(190, 190, 190, 0.30);
}

.bloglamp .post-category .cat-links a {
    --bloghash-radius: 0;
    padding-right: 18px;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
}

.bloglamp .post-category .cat-links a:focus,
.bloglamp.using-keyboard .post-category .cat-links a:hover {
    transform: translateY(-2px);
}

.bloglamp .six-slider .bloghash-post-item.rounded {
    border-radius: var(--bloghash-radius);
}

[data-darkmode=dark] .bloghash-post-item {
    border: 1px solid rgba(190,190,190,0.30);
}

/* Personal pages and category archive
--------------------------------------------- */

.zhq-page-works,
.zhq-page-contact,
.category {
    --zhq-surface-border: rgba(10, 10, 10, 0.12);
    --zhq-surface-muted: color-mix(in srgb, var(--bloghash-primary) 6%, var(--bloghash-white));
    --zhq-surface-shadow: 0 14px 32px rgba(20, 24, 54, 0.08);
}

.zhq-page-works #primary .bloghash-entry > .wp-block-group:first-child,
.zhq-page-contact #primary .bloghash-entry > .wp-block-group:first-child {
    position: relative;
    overflow: hidden;
    margin: 0 0 clamp(2rem, 5vw, 3rem);
    padding: clamp(2rem, 6vw, 4.5rem) !important;
    border: 1px solid var(--zhq-surface-border);
    border-left: 5px solid var(--bloghash-primary);
    border-radius: var(--bloghash-radius) !important;
    background:
        linear-gradient(120deg, var(--zhq-surface-muted), var(--bloghash-white) 72%) !important;
}

.zhq-page-works #primary .bloghash-entry > .wp-block-group:first-child::after,
.zhq-page-contact #primary .bloghash-entry > .wp-block-group:first-child::after {
    position: absolute;
    top: -6rem;
    right: -5rem;
    width: 15rem;
    height: 15rem;
    border: 2.5rem solid color-mix(in srgb, var(--bloghash-primary) 12%, transparent);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.zhq-page-works #primary .bloghash-entry > .wp-block-group:first-child h1,
.zhq-page-contact #primary .bloghash-entry > .wp-block-group:first-child h1 {
    position: relative;
    z-index: 1;
    max-width: 12ch;
    margin: 0 0 1rem;
    color: var(--bloghash-secondary);
    font-size: clamp(2.45rem, 6vw, 4.6rem);
    line-height: 1;
    text-align: left !important;
    letter-spacing: -0.055em;
}

.zhq-page-works #primary .zhq-page-intro-label,
.zhq-page-contact #primary .zhq-page-intro-label {
    position: relative;
    z-index: 1;
    display: block;
    width: fit-content;
    margin-bottom: 0.9rem;
    padding: 0.42rem 1.25rem 0.42rem 0.75rem;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
    background: var(--bloghash-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.zhq-page-works #primary .bloghash-entry > .wp-block-group:first-child p,
.zhq-page-contact #primary .bloghash-entry > .wp-block-group:first-child p {
    position: relative;
    z-index: 1;
    max-width: 38rem;
    margin: 0;
    color: color-mix(in srgb, currentColor 78%, transparent);
    font-size: clamp(1rem, 2vw, 1.15rem);
    text-align: left !important;
}

.zhq-page-works .bloghash-entry > .wp-block-separator,
.zhq-page-contact .bloghash-entry > .wp-block-separator {
    display: none;
}

.zhq-page-works .bloghash-entry > h2,
.zhq-page-contact .bloghash-entry > h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: clamp(2.5rem, 6vw, 4rem) 0 1.35rem;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    letter-spacing: -0.035em;
}

.zhq-page-works .bloghash-entry > h2::before,
.zhq-page-contact .bloghash-entry > h2::before {
    display: block;
    width: 2.6rem;
    height: 0.62rem;
    clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
    background: var(--bloghash-primary);
    content: "";
}

.zhq-page-works .wp-block-columns,
.zhq-page-contact .wp-block-columns {
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: flex-start !important;
}

.zhq-page-works .wp-block-column > .wp-block-group,
.zhq-page-works .bloghash-entry > .wp-block-group:not(:first-child),
.zhq-page-contact .wp-block-column > .wp-block-group {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 3.5vw, 2.25rem) !important;
    border: 1px solid var(--zhq-surface-border) !important;
    border-radius: var(--bloghash-radius) !important;
    background: var(--bloghash-white) !important;
    box-shadow: var(--zhq-surface-shadow);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.zhq-page-works .wp-block-column > .wp-block-group::before,
.zhq-page-works .bloghash-entry > .wp-block-group:not(:first-child)::before,
.zhq-page-contact .wp-block-column > .wp-block-group::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 5.25rem;
    height: 0.35rem;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
    background: var(--bloghash-primary);
    content: "";
}

.zhq-page-works .wp-block-column > .wp-block-group:hover,
.zhq-page-works .bloghash-entry > .wp-block-group:not(:first-child):hover,
.zhq-page-contact .wp-block-column > .wp-block-group:hover {
    border-color: color-mix(in srgb, var(--bloghash-primary) 45%, transparent) !important;
    box-shadow: 0 18px 38px rgba(20, 24, 54, 0.13);
    transform: translateY(-3px);
}

.zhq-page-works .wp-block-group h3,
.zhq-page-contact #primary .wp-block-group h2,
.zhq-page-contact #primary .wp-block-group h3 {
    margin-top: 0;
    color: var(--bloghash-secondary);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.zhq-page-works .bloghash-entry > .wp-block-group:not(:first-child) {
    margin-bottom: 1.25rem;
}

.zhq-page-works .wp-block-group p,
.zhq-page-contact #primary .wp-block-group p,
.zhq-page-contact #primary .wp-block-group li {
    color: color-mix(in srgb, currentColor 82%, transparent);
}

.zhq-page-works .wp-block-group p strong {
    color: var(--bloghash-primary);
    font-size: 0.92rem;
    letter-spacing: 0.025em;
}

.zhq-page-works .wp-block-button__link,
.zhq-page-contact .wp-block-button__link {
    padding: 0.72rem 1.1rem !important;
    border: 1px solid var(--bloghash-primary) !important;
    border-radius: 3px !important;
    background: var(--bloghash-primary) !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.035em;
}

.zhq-page-works .wp-block-button__link:hover,
.zhq-page-works .wp-block-button__link:focus,
.zhq-page-contact .wp-block-button__link:hover,
.zhq-page-contact .wp-block-button__link:focus {
    border-color: color-mix(in srgb, var(--bloghash-primary) 78%, #000) !important;
    background: color-mix(in srgb, var(--bloghash-primary) 78%, #000) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.zhq-page-contact .wp-block-column > .wp-block-group + .wp-block-group {
    margin-top: 1.25rem !important;
}

.zhq-page-contact #primary .wp-block-group ul {
    margin: 1.15rem 0;
    padding: 0;
    list-style: none;
    list-style-type: none !important;
}

.zhq-page-contact #primary .wp-block-group li {
    position: relative;
    margin: 0;
    padding: 0.72rem 0 0.72rem 1.2rem;
    border-top: 1px solid var(--zhq-surface-border);
}

.zhq-page-contact #primary .wp-block-group li:last-child {
    border-bottom: 1px solid var(--zhq-surface-border);
}

.zhq-page-contact #primary .wp-block-group li::before {
    position: absolute;
    top: 1.35rem;
    left: 0;
    width: 0.45rem;
    height: 0.45rem;
    background: var(--bloghash-primary);
    content: "";
    transform: rotate(45deg);
}

/* Category archive intro and article cards. */
.zhq-category-intro {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    padding: clamp(1.8rem, 5vw, 3rem);
    border: 1px solid var(--zhq-surface-border);
    border-radius: var(--bloghash-radius);
    background:
        linear-gradient(120deg, var(--zhq-surface-muted), var(--bloghash-white) 72%);
}

.zhq-category-intro::after {
    position: absolute;
    right: -2rem;
    bottom: -4.25rem;
    width: 15rem;
    height: 7rem;
    background: color-mix(in srgb, var(--bloghash-primary) 10%, transparent);
    content: "";
    transform: rotate(-12deg);
}

.zhq-category-intro__eyebrow {
    position: relative;
    z-index: 1;
    display: block;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.5rem 1.35rem 0.5rem 0.8rem;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
    background: var(--bloghash-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
}

.zhq-category-intro__title {
    position: relative;
    z-index: 1;
    margin: 0 0 0.65rem;
    color: var(--bloghash-secondary);
    font-size: clamp(2.25rem, 5vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.zhq-category-intro__description {
    position: relative;
    z-index: 1;
    max-width: 38rem;
    color: color-mix(in srgb, currentColor 78%, transparent);
}

.zhq-category-intro__description > :last-child {
    margin-bottom: 0;
}

.category .bloghash-article {
    overflow: hidden;
    border: 1px solid var(--zhq-surface-border);
    box-shadow: 0 8px 24px rgba(20, 24, 54, 0.05);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.category .bloghash-article:hover,
.category .bloghash-article:focus-within {
    border-color: color-mix(in srgb, var(--bloghash-primary) 38%, transparent);
    box-shadow: var(--zhq-surface-shadow);
    transform: translateY(-3px);
}

html[data-darkmode=dark] .zhq-page-works,
html[data-darkmode=dark] .zhq-page-contact,
html[data-darkmode=dark] .category {
    --zhq-surface-border: rgba(255, 255, 255, 0.16);
    --zhq-surface-muted: color-mix(in srgb, var(--bloghash-primary) 16%, #141414);
    --zhq-surface-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

html[data-darkmode=dark] .zhq-page-works #primary .bloghash-entry > .wp-block-group:first-child,
html[data-darkmode=dark] .zhq-page-contact #primary .bloghash-entry > .wp-block-group:first-child,
html[data-darkmode=dark] .zhq-page-works .wp-block-column > .wp-block-group,
html[data-darkmode=dark] .zhq-page-works .bloghash-entry > .wp-block-group:not(:first-child),
html[data-darkmode=dark] .zhq-page-contact .wp-block-column > .wp-block-group,
html[data-darkmode=dark] .zhq-category-intro {
    background-color: #141414 !important;
    color: rgba(255, 255, 255, 0.88);
}

html[data-darkmode=dark] .zhq-page-works #primary .bloghash-entry > .wp-block-group:first-child h1,
html[data-darkmode=dark] .zhq-page-contact #primary .bloghash-entry > .wp-block-group:first-child h1,
html[data-darkmode=dark] .zhq-page-works .wp-block-group h3,
html[data-darkmode=dark] .zhq-page-contact #primary .wp-block-group h2,
html[data-darkmode=dark] .zhq-page-contact #primary .wp-block-group h3,
html[data-darkmode=dark] .zhq-category-intro__title {
    color: var(--bloghash-secondary);
}

@media only screen and (max-width: 781px) {
    .zhq-page-works .wp-block-columns,
    .zhq-page-contact .wp-block-columns {
        gap: 1.25rem;
    }

    .zhq-page-works #primary .bloghash-entry > .wp-block-group:first-child,
    .zhq-page-contact #primary .bloghash-entry > .wp-block-group:first-child,
    .zhq-category-intro {
        padding: 1.65rem !important;
    }

    .zhq-page-works #primary .bloghash-entry > .wp-block-group:first-child::after,
    .zhq-page-contact #primary .bloghash-entry > .wp-block-group:first-child::after,
    .zhq-category-intro::after {
        opacity: 0.55;
    }

    .zhq-page-works .wp-block-column > .wp-block-group,
    .zhq-page-contact .wp-block-column > .wp-block-group {
        height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zhq-page-works .wp-block-column > .wp-block-group,
    .zhq-page-works .bloghash-entry > .wp-block-group:not(:first-child),
    .zhq-page-contact .wp-block-column > .wp-block-group,
    .category .bloghash-article {
        transition: none;
    }
}
