/* ==========================================================
   custom-overrides.css
   Font + spacing refinements on top of the Crafto/corporate theme.
   Loads AFTER corporate-css — nothing above this file is touched.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500&family=Google+Sans:wght@400;500;600&display=swap');

:root {
    --primary-font: 'Google Sans', 'Inter', sans-serif;
    --alt-font: 'Google Sans', 'Inter', sans-serif;
    --heading-font: 'Fraunces', serif;
}

/* Homepage mobile vertical rhythm — fixed values instead of the theme's
   percentage-of-width utilities (pt-10, mt-5, etc.), which shrink
   unpredictably on narrow screens and were causing uneven spacing
   between sections. .top-space-margin on the hero (theme-native,
   96px desktop / 76px mobile) already handles header clearance. */
@media (max-width: 767.98px) {
    .home-hero {
        padding-top: 20px !important;
        padding-bottom: 16px !important;
    }
    .home-bio {
        padding-top: 4px !important;
        padding-bottom: 28px !important;
    }
    .home-services {
        padding-top: 8px !important;
        padding-bottom: 40px !important;
    }
    .home-writing {
        padding-top: 32px !important;
        padding-bottom: 48px !important;
    }
}

/* Hero heading — the theme's default h1 is a fixed 70px with zero mobile
   scaling, which is fine for a two-word page title but way too big for a
   full sentence on a phone. Scale it fluidly instead. */
.hero-heading {
    font-size: clamp(2.75rem, 10vw, 4.4rem) !important;
    line-height: 1.15 !important;
}

/* Headings get a bit of warmth, everything else stays clean and quiet */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--heading-font);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Tighter, calmer vertical rhythm than the theme default (30px everywhere) */
h1, .h1 { margin-bottom: 20px; }
h2, .h2 { margin-bottom: 18px; }
h3, .h3 { margin-bottom: 16px; }
h4, .h4 { margin-bottom: 14px; }
h5, .h5, h6, .h6 { margin-bottom: 12px; }

/* ==========================================================
   Single post — Medium-style reading flow
   ========================================================== */

.post-back-link {
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4A4842;
    text-decoration: none;
    transition: color 0.15s ease;
}
.post-back-link:hover { color: #2F4B3C; }
.post-back-link i { font-size: 15px; }

.post-title {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    line-height: 1.25;
}

.post-meta { gap: 10px; }
.post-meta-dot { color: rgba(36, 46, 69, 0.25); }

.post-featured-img {
    max-height: 520px;
    object-fit: cover;
    position: relative;
}

/* a thin accent line under the featured image / header area — the one
   "futuristic" flourish, kept quiet rather than decorative */
.post-featured-image {
    position: relative;
    padding-bottom: 8px;
}
.post-featured-image::after {
    content: "";
    display: block;
    height: 2px;
    width: 64px;
    margin: 24px auto 0;
    background: linear-gradient(90deg, #2F4B3C, transparent);
}

/* the reading column itself — Medium-like size, line-height, and rhythm */
.post-reading-flow {
    font-size: 1.15rem;
    line-height: 1.5;
    /* font-weight: 500; */
    color: #3b3b3b;
}
.post-reading-flow p {
    margin-bottom: 1.6em;
}
.post-reading-flow h2 {
    font-size: 1.7rem;
    margin-top: 2em;
    margin-bottom: 0.7em;
}
.post-reading-flow h3 {
    font-size: 1.35rem;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}
.post-reading-flow img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 2em 0;
}
.post-reading-flow a {
    color: #2F4B3C;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.post-reading-flow blockquote {
    margin: 2em 0;
    padding: 1.2em 1.6em;
    border-left: 3px solid #2F4B3C;
    background: #F7F6F2;
    border-radius: 0 6px 6px 0;
    /* font-style: italic; */
    font-size: 1.25rem;
    line-height: 1.6;
    color: #4A4842;
}
.post-reading-flow blockquote p {
    margin-bottom: 0;
}
.post-reading-flow blockquote p + p {
    margin-top: 1em;
}
.post-reading-flow ul,
.post-reading-flow ol {
    margin-bottom: 1.6em;
    padding-left: 1.4em;
}
.post-reading-flow ul li {
    list-style: disc;
}
.post-reading-flow ol li {
    list-style: decimal;
}
.post-reading-flow li {
    margin-bottom: 0.5em;
}
.post-reading-flow code {
    background: #F2F1EB;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}
.post-reading-flow pre {
    background: #201F1B;
    color: #F6F5F0;
    padding: 1.2em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2em 0;
}
.post-reading-flow pre code {
    background: none;
    padding: 0;
    color: inherit;
}

@media (max-width: 767.98px) {
    .post-reading-flow {
        font-size: 1.35rem;
        line-height: 1.5;
    }
}

.post-byline {
    gap: 12px;
    margin-bottom: 0;
}
.post-byline span {
    line-height: 1.4;
}
.entry-content-wrap {
    padding-bottom: 80px;
}

/* post navigation (prev/next) output by the_post_navigation() in single.php */
.post-navigation {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 28px 60px;
}
.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(36, 46, 69, 0.1);
    padding-top: 24px;
}
.post-navigation .nav-subtitle {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8C877A;
    margin-bottom: 4px;
}
.post-navigation .nav-title {
    font-family: var(--heading-font);
    font-weight: 500;
    color: #201F1B;
}
.post-navigation a:hover .nav-title { color: #2F4B3C; }
.post-navigation .nav-next { text-align: right; margin-left: auto; }


   doesn't blend into the page background */
.home-writing .card-body {
    background: #F7F6F2;
    border-top: 1px solid rgba(36, 46, 69, 0.08);
    border-radius: 0 0 5px 5px;
}
.box-shadow-quadruple-large {
    box-shadow: none;
    border: 1px solid rgba(36, 46, 69, 0.08);
}

.box-shadow-quadruple-large-hover:hover {
    box-shadow: 0 4px 24px rgba(36, 46, 69, 0.06);
}

/* Vertically center the hamburger toggler next to the logo — it was
   floated, which lifted it out of alignment on mobile/tablet */
.navbar .menu-order {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.navbar-toggler {
    margin: 0;
}

/* The open mobile menu must take full width and wrap onto its own line
   below the toggler — without this it renders as a squeezed flex
   sibling of the toggler button instead of a proper full-width panel */
.navbar .menu-order .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
}

/* Tablet-landscape zone (992–1199px) — nav and button now appear
   together here again, so keep both a little tighter to avoid crowding */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar .navbar-nav .nav-link {
        padding-left: 8px;
        padding-right: 8px;
        gap: 5px;
    }
    .header-button.ms-20px {
        margin-left: 10px !important;
    }
    .header-button .btn.btn-medium {
        padding-left: 14px;
        padding-right: 14px;
        font-size: 13px;
    }
}

/* Lighter, smaller nav with icons and a clean active state */
.navbar .navbar-nav .nav-link {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 7px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: #4A4842;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.navbar .navbar-nav .nav-link i {
    font-size: 15px;
    line-height: 1;
}

.navbar .navbar-nav .nav-link:hover {
    color: #2F4B3C;
}

.navbar .navbar-nav .nav-item.active .nav-link {
    color: #2F4B3C;
    font-weight: 600;
    border-bottom-color: #2F4B3C;
}

/* In the collapsed mobile menu, use a left bar instead of an underline —
   the items stack vertically there, so a bottom border reads oddly */
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        border-bottom: none;
        border-left: 2px solid transparent;
        padding-left: 12px;
        gap: 14px;
    }
    .navbar .navbar-nav .nav-link i {
        font-size: 17px;
        width: 20px;
    }
    .navbar .navbar-nav .nav-item.active .nav-link {
        border-left-color: #2F4B3C;
        border-bottom: none;
    }
}