:root {
    --mh-bg: #f5f5f7;
    --mh-surface: rgba(255, 255, 255, 0.82);
    --mh-surface-solid: #ffffff;
    --mh-text: #1d1d1f;
    --mh-muted: #6e6e73;
    --mh-border: rgba(29, 29, 31, 0.1);
    --mh-accent: #111111;
    --mh-accent-soft: #e8e3dc;
    --mh-radius-lg: 28px;
    --mh-radius-md: 18px;
    --mh-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body.site-shell {
    background:
        radial-gradient(circle at top left, rgba(232, 227, 220, 0.8), transparent 32rem),
        var(--mh-bg);
    color: var(--mh-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(245, 245, 247, 0.86);
    border-bottom: 1px solid var(--mh-border);
    backdrop-filter: blur(22px);
}

.site-navbar .navbar-brand,
.site-navbar .nav-link {
    color: var(--mh-text);
}

.site-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.site-navbar .nav-link {
    border-radius: 999px;
    padding-inline: 0.9rem;
    color: rgba(29, 29, 31, 0.68);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active {
    color: var(--mh-text);
    background: rgba(255, 255, 255, 0.72);
}

.site-navbar .navbar-toggler {
    border: 0;
}

.site-search {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: min(280px, 100%);
    margin: 0 0.8rem;
    padding: 0.28rem 0.32rem 0.28rem 0.78rem;
    border: 1px solid var(--mh-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.site-search .bi {
    color: var(--mh-muted);
}

.site-search__input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--mh-text);
    font-size: 0.88rem;
}

.site-search__input::placeholder {
    color: rgba(110, 110, 115, 0.86);
}

.site-search__button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: #111;
    color: #fff;
}

.site-search__button .bi {
    color: #fff;
    font-size: 0.92rem;
}

.site-footer {
    background: #111;
    color: #f5f5f7;
    border-radius: 34px 34px 0 0;
}

.site-footer p,
.site-footer a {
    color: rgba(245, 245, 247, 0.72);
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 0.85rem;
    color: var(--mh-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.form-control,
.form-select {
    border-color: var(--mh-border);
    border-radius: 14px;
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(29, 29, 31, 0.34);
    box-shadow: 0 0 0 0.22rem rgba(29, 29, 31, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 991.98px) {
    .site-search {
        width: 100%;
        margin: 0.75rem 0;
    }
}
