/*
Theme Name: Gnomissimo
Template: blocksy
Version: 1.0.0
Description: Custom Blocksy child theme for Gnomissimo.
Author: Irina
*/

/* Gnomissimo — logo is the visible brand identity */
.site-branding .site-title {
    display: none !important;
}


/* =========================================================
   Gnomissimo — Identity / Layout V1.2
   ========================================================= */


/* ---------- HEADER ---------- */

.site-branding .site-title {
    display: none !important;
}

/* Keep the illustration readable, without letting the
   character force an oversized header. */
.site-logo-container img,
.custom-logo-link img,
.custom-logo {
    width: clamp(190px, 15vw, 235px);
    max-width: 235px;
    height: auto;
    max-height: none;
}

/* Tighten Blocksy's main header row. */
#header [data-row],
.ct-header [data-row] {
    --height: 88px;
}

#header [data-row] > div,
.ct-header [data-row] > div {
    min-height: 88px;
}

/* Navigation: quieter and more editorial. */
#header .menu > li > a,
.ct-header .menu > li > a {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .035em;
}

#header .menu > li > a:hover,
.ct-header .menu > li > a:hover {
    opacity: .62;
}


/* ---------- HOME INTRO ---------- */

.gn-home {
    padding-top: clamp(46px, 5vw, 78px);
}

.gn-home__intro {
    margin-bottom: clamp(48px, 5vw, 76px);
}

.gn-home__eyebrow {
    color: #73777b;
    font-size: 11px;
    letter-spacing: .17em;
}

.gn-home__title {
    max-width: 700px;
}


/* ---------- STORY HOVER POLISH ---------- */

.gn-story__meta {
    padding: clamp(20px, 2vw, 30px);
}

.gn-story__title {
    text-shadow: 0 1px 12px rgba(0, 0, 0, .28);
}

.gn-story__link::after {
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .52) 0%,
            rgba(0, 0, 0, .13) 33%,
            rgba(0, 0, 0, 0) 64%
        );
}


/* ---------- REPLACE DEFAULT BLOCKSY FOOTER ---------- */

footer.ct-footer,
#footer {
    display: none !important;
}

.gn-footer {
    width: 100%;
    border-top: 1px solid rgba(20, 25, 30, .10);
    background: #fff;
    color: #14191f;
}

.gn-footer__inner {
    width: min(1560px, calc(100% - clamp(28px, 6vw, 104px)));
    margin-inline: auto;
    padding: clamp(44px, 5vw, 72px) 0;

    display: grid;
    grid-template-columns: 1.4fr auto auto;
    gap: 42px;
    align-items: end;
}

.gn-footer__brand {
    display: inline-block;
    color: inherit;
    text-decoration: none;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2vw, 31px);
    line-height: 1;
    letter-spacing: -.035em;
}

.gn-footer__tagline {
    margin: 10px 0 0;
    color: #75797d;
    font-size: 12px;
    line-height: 1.4;
}

.gn-footer__nav {
    display: flex;
    gap: 24px;
}

.gn-footer__nav a {
    color: inherit;
    text-decoration: none;

    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.gn-footer__nav a:hover,
.gn-footer__brand:hover {
    opacity: .6;
}

.gn-footer__copyright {
    margin: 0;
    color: #85898d;
    font-size: 11px;
    white-space: nowrap;
}


/* ---------- TABLET ---------- */

@media (max-width: 900px) {

    #header [data-row],
    .ct-header [data-row] {
        --height: 78px;
    }

    #header [data-row] > div,
    .ct-header [data-row] > div {
        min-height: 78px;
    }

    .site-logo-container img,
    .custom-logo-link img,
    .custom-logo {
        width: 190px;
        max-width: 190px;
    }

    .gn-home {
        padding-top: 44px;
    }

    .gn-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
        align-items: start;
    }

    .gn-footer__nav {
        flex-wrap: wrap;
    }
}


/* ---------- MOBILE ---------- */

@media (max-width: 620px) {

    .site-logo-container img,
    .custom-logo-link img,
    .custom-logo {
        width: 165px;
        max-width: 165px;
    }

    .gn-home {
        padding-top: 34px;
    }

    .gn-home__intro {
        margin-bottom: 38px;
    }

    .gn-footer__inner {
        width: calc(100% - 28px);
        padding: 40px 0;
    }

    .gn-footer__nav {
        flex-direction: column;
        gap: 12px;
    }
}
