/*
Theme Name: Grihagnan
Author: Grihagnan team
Author URI: https://grihagnan.com
*/
html {
    font-size: calc(1rem + 1px);
}
body {
    margin: 0 3rem;
    line-height: 1.5;
}
@media (max-width:1024px) {
    body {
        margin: 0;
    }
}
:root :where(.wp-block-heading) strong {
    font-weight: inherit;
}
.wp-block-post-title :where(a) {
    color: inherit;
    line-height: 1.2;
}
body,
.top-bar {
    background: #e4e4e4;
}
.top-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.top-bar > * {
    margin-top: 0;
}
.top-bar .wp-block-search {
    max-width: 200px;
}
.top-bar .wp-block-search__inside-wrapper {
    padding: 4px 0 4px 4px;
    gap: 4px;
    border: none;
    background: #ffffff94;
    border-radius: 6px;
}
.top-bar .wp-block-search__input {
    background-color: transparent;
    font-size: var(--wp--preset--font-size--small);
}
.top-bar .wp-block-search__button {
    margin: 0;
    padding: 0px 4px;
    color: #334062;
    background: transparent;
    border-left: 1px solid #00000024;
}
.top-bar .social-icons {
    margin-right:0!important;
}
.top-bar .wp-block-site-tagline {
    align-self: flex-start;
    font-size: var(--wp--preset--font-size--small);
    font-style: italic;
    opacity: .5;
}
.wp-site-blocks {
    background-color: #fff;
}
.logo-and-nav .wp-block-navigation :where(a) {
    font-size: var(--wp--preset--font-size--small);
}
.logo-and-nav .wp-block-site-title.wp-block-site-title {
    margin-top: -2.5rem;
}
.logo-and-nav .wp-block-site-title:before {
    content: "";
    position: absolute;
    left:0;
    top: 0;
    width: 100%;
    height: 4px;
    background: #ffc1aa;
}
.logo-and-nav .wp-block-site-title:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    height: 4px;
    width: 160px;
    background: #fff;
    clip-path: path("M 0,0 C 5,0 5,5 0,5 L 160,5 C 156,5 156,0 160,0 Z");
}
.logo-and-nav .wp-block-site-title a {
    position: relative;
    z-index: 1;
}
.logo-and-nav .wp-block-navigation-item__content {
    cursor: pointer;
}

@media (max-width:767px) {
    .top-bar {
        display: none;
    }
    .logo-and-nav .wp-block-site-title.wp-block-site-title {
        margin-top: 0;
        font-size: 24px;
    }
    .logo-and-nav .wp-block-site-title:after {
        content: normal;
    }
}
@media (min-width: 600px) {
    .logo-and-nav .wp-block-navigation-item:has(.menu-social-icons),
    .logo-and-nav .menu-search-block{
        display: none;
    }

    .logo-and-nav .wp-block-navigation__submenu-container {
        border-radius: 4px;
        border: 4px solid transparent!important;
        --shadow-color: 0deg 0% 0%;
        box-shadow: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.11),
        0.8px 1.6px 2px -0.8px hsl(var(--shadow-color) / 0.11),
        2.1px 4.1px 5.2px -1.7px hsl(var(--shadow-color) / 0.11),
        5px 10px 12.6px -2.5px hsl(var(--shadow-color) / 0.11);
    }

    .logo-and-nav .wp-block-navigation-item__content:not(.wp-block-navigation__submenu-container a) {
        padding: 4px 8px;
        border-radius: 12px;
        font-weight: 500;
    }

    .logo-and-nav .wp-block-navigation-item__content:hover {
        background: #ffc1aa;
        color: #334062;
    }
}
@media (max-width: 600px) {
    .logo-and-nav {
        flex-direction: row;
        justify-content: space-between;
    }

    .logo-and-nav .wp-block-navigation-link {
        width: 100%;
    }

    /* .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container */
    .logo-and-nav .wp-block-navigation__submenu-container {
        padding: 0!important;
    }

    /* .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content */
    .logo-and-nav .wp-block-navigation-item__content:not(.has-child > a) {
        padding: .5rem!important;
        width: 100%!important;
    }

    .logo-and-nav .has-child > a {
        width: 100%;
        font-size: 16px;
        font-variant-caps: all-petite-caps;
        font-weight: 900;
    }
}
.single-post-date {
    opacity: .5;
}
.single-post-title {
    font-family: var(--wp--preset--font-family--pacifico);
    font-weight: normal;
    line-height: 1.5;
}

@media (max-width: 500px) {
    .footer-content {
        padding-inline: var(--wp--style--block-gap);
    }
}
.footer-content .wp-block-site-title {
    font-size: 24px!important;
}
.footer-content .wp-block-site-tagline {
    text-indent: 3px;
}
.footer-links {
    padding: 0;
    display: flex;
    gap: 1rem;
    list-style: none;
}
.footer-links a {
    text-decoration: none;
    font-weight: 500;
    font-size: var(--wp--preset--font-size--small);
}
.relevant-categories {
    list-style: none;
    text-align: center;
}
.relevant-categories a {
    text-decoration: none;
    color: inherit;
}
.parent-category-link {
    font-size: 2em;
    font-weight: 600;
}
.sub-categories {
    list-style: none;
    padding-inline-start: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5ch;
    margin-block-start: .6em;
}
.sub-category a {
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    font-size: var(--wp--preset--font-size--small);
}
.sub-category a.active {
    background: #ffc1aa;
}
.post-categories {
    font-weight: 500;
    color: var(--wp--preset--color--caption);
}
.post-categories a {
    font-weight: inherit;
    color: inherit;
}
/*
13px 500 .post-category
13px 600 .card datetime
14px 400 .category-list
14px 500 .top-bar
15px 600 nav a
16px 600 .hero button, .card button, .read-more
17px 500 .card .title
22px 500 .card-2 .title
34px 500 .big-card .title
48px 500 .hero p
*/

/*
#f9d99f #2f3b5c nav a
#ffc1aa #333f62 social-links
#2f3b5c :hover(#ffc1aa) .post-card .link, section :heading
#ffffff #798198 datetime
*/