/* ============================================================================
   Shared masthead styles for lajharrison.com
   ----------------------------------------------------------------------------
   Single source of truth for the two-band masthead used on every public page.
   See CLAUDE.md "Rules" for the policy on editing this file.
   ============================================================================ */

/* Reserve scrollbar gutter on every page so the masthead doesn't shift
   horizontally when navigating between scrollable and non-scrollable pages.
   scrollbar-gutter: Safari 16+, Chrome 94+, Firefox 97+.
   overflow-y: scroll is the fallback for older browsers. */
html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

:root {
    --masthead-bg: #0f172a;
    --masthead-link-inactive: #d1d7e0;
    --masthead-link-active: #ffffff;
    --page-max-width: 1400px;
}

.page-container {
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.masthead-brand {
    background: #ffffff;
    padding: 20px 0 15px;
    border-bottom: 1px solid #e2e8f0;
}
.masthead-brand .page-container {
    /* Stops the line-box height from depending on body line-height
       inheritance (otherwise the strut's descent makes the brand band
       0.59px taller on Sora-bodied pages than on Inter-bodied pages,
       which shows as the nav band "jumping" when navigating). */
    line-height: 1;
}
.masthead-wordmark {
    font-family: 'Sora', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    font-size: 30px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #0f172a;
    text-decoration: none;
    display: inline-block;
}
.masthead-nav {
    background: var(--masthead-bg);
    padding: 0;
}
.masthead-nav .page-container {
    display: flex;
    gap: 28px;
}
.masthead-link {
    font-family: 'Sora', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--masthead-link-inactive);
    text-decoration: none;
    padding: 14px 0;
    display: inline-block;
}
.masthead-link[aria-current="page"] {
    color: var(--masthead-link-active);
}

@media (max-width: 600px) {
    .masthead-brand { padding: 15px 0 12px; }
    .masthead-wordmark { font-size: 24px; }
    .page-container { padding-left: 16px; padding-right: 16px; }
    .masthead-nav .page-container {
        gap: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .masthead-nav .page-container::-webkit-scrollbar { display: none; }
}
