:root {
    --fx-ink: #192823;
    --fx-muted: #4f6258;
    --fx-accent: #237047;
    --fx-accent-deep: #195636;
    --fx-surface: #fff;
    --fx-wash: #f1f6f1;
    --fx-line: #d9e4dc;
    --fx-radius: 14px;
    --fx-shadow: 0 8px 24px rgb(16 46 34 / 8%);
    --fx-section-space: clamp(48px, 6.4vw, 96px);
    --fx-focus: #237047;
}

html {
    scroll-padding-top: 130px;
}

.fx-skip-link {
    position: fixed;
    z-index: 3000;
    inset: 8px auto auto 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--fx-surface);
    background: var(--fx-accent-deep);
    transform: translateY(calc(-100% - 10px));
}

.fx-skip-link:focus {
    transform: none;
}

:is(a, button, input, textarea, select, summary, [role="button"], [tabindex="0"]):focus-visible {
    outline: 2px solid var(--fx-focus);
    outline-offset: 3px;
}

.footer :is(a, button):focus-visible,
.fx-skip-link:focus-visible {
    outline-color: #c9eed2;
    outline-offset: 2px;
}

.base-head .base-title {
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.14;
    letter-spacing: -.025em;
    text-wrap: balance;
    margin-bottom: clamp(12px, 1.5vw, 22px);
}

.base-head.text-center > :is(.desc, .subtitle) {
    max-width: 65ch;
    margin-inline: auto;
}

.primary-btn,
.header .free-sample-btn {
    border-radius: 8px;
    transition: background-color .2s, border-color .2s, color .2s;
}

.header .free-sample-btn:hover {
    background-color: var(--fx-accent-deep);
}

.header .head-drop .head-dropinfo {
    visibility: hidden;
    border-color: var(--fx-line);
    box-shadow: var(--fx-shadow);
}

.header .head-drop.open .head-dropinfo,
.header .head-drop:has(:focus-visible) .head-dropinfo {
    visibility: visible;
}

.header .head-drop:has(:focus-visible) .head-dropinfo {
    height: auto !important;
    max-height: 65vh;
    overflow-y: auto;
    border-top: 1px solid var(--fx-line);
}

.header .head-drop .head-dropinfo a:focus-visible {
    outline-offset: -2px;
}

.header :is(.search-btn, .nav-toggle) {
    border-radius: 8px;
}

.header .logo img,
.footer .footer-logo img {
    width: 225px;
    height: 40px;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 1024px) {
    html {
        scroll-padding-top: 80px;
    }

    .header .logo img,
    .footer .footer-logo img {
        width: min(165px, 43vw);
        height: 35px;
    }
}

.footer .footer-logo {
    background: #fff;
    width: fit-content;
    max-width: 100%;
    border-radius: 8px;
    padding: 5px 10px;
}

.footer .footer-top {
    padding-block: clamp(36px, 5vw, 72px);
}

.footer .footer-top :is(.desc, .nav-list a),
.footer .footer-bottom {
    color: #c4d2ca;
}

.footer a:hover {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.fx-results a {
    overflow-wrap: anywhere;
}

.fx-results {
    padding-block: 70px;
}

.fx-results h1 {
    color: var(--fx-ink);
    font-size: clamp(26px, 4vw, 42px);
    margin-bottom: 24px;
}

.fx-results ul {
    display: grid;
    gap: 12px;
    padding: 0;
}

.fx-results a:hover,
.search-result-list a:hover {
    color: var(--fx-accent-deep);
}

@media (prefers-reduced-motion: reduce) {
    .wow {
        animation: none !important;
        visibility: visible !important;
    }

    :is(.head-dropinfo, .primary-btn, .free-sample-btn, .scale-img, .story-card, .stat-card) {
        transition: none !important;
    }
}

.fx-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 24px;
}

.fx-result-card {
    background: var(--fx-wash);
    border: 1px solid var(--fx-line);
    overflow: hidden;
    border-radius: var(--fx-radius);
}

.fx-result-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.fx-result-card h2 {
    padding: 18px;
    font-size: 19px;
    line-height: 1.4;
}

.index-about {
    isolation: isolate;
    background: var(--fx-wash);
}

.index-about::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: url("www.mountship.com/website/images/intro_bg.jpg") no-repeat center / auto 100%;
    filter: hue-rotate(105deg);
    opacity: .6;
    content: "";
}

.header-top .left .icon {
    filter: brightness(1.65) saturate(.9);
}

#index-main > :is(.index-about, .index-mission, .cate-preview-sec, .index-stories, .index-projects, .index-news) {
    padding-block: var(--fx-section-space);
}

#index-main .index-about .stat-card,
#index-main .story-card {
    border: 1px solid var(--fx-line);
    border-radius: var(--fx-radius);
    color: var(--fx-ink);
}

#index-main .index-about .stat-card {
    box-shadow: var(--fx-shadow);
}

#index-main .story-card > .inner {
    display: block;
}

#index-main .story-card .title {
    margin-bottom: 8px;
    color: var(--fx-ink);
    font-size: clamp(18px, 1.5vw, 24px);
}

#index-main .story-card .desc {
    color: var(--fx-muted);
}

#index-main .index-mission .img-wrap,
#index-main .cate-preview-sec .inner,
#index-main .project-item {
    border-radius: var(--fx-radius);
    overflow: hidden;
}

#index-main :is(.index-projects, .index-news) {
    background: var(--fx-wash);
}

#index-main .project-item .content {
    background: linear-gradient(transparent, rgb(10 29 21 / 94%));
    padding: clamp(16px, 2vw, 28px);
}

#index-main .index-news .grid-3 {
    align-items: stretch;
}

#index-main .index-news .news-item .inner {
    height: 100%;
    background: var(--fx-surface);
    border: 1px solid var(--fx-line);
    border-radius: var(--fx-radius);
    overflow: hidden;
}

#index-main .index-news .mediabox {
    margin-bottom: 0;
}

#index-main .index-news .info {
    padding: clamp(16px, 2vw, 24px);
}

#index-main .index-news .info .desc {
    color: var(--fx-muted);
}

#index-main :is(.index-news .inner, .project-item, .cate-preview-sec .inner):focus-visible {
    outline-offset: -3px;
}

@media (hover: hover) {
    #index-main .index-news .news-item .inner:hover {
        box-shadow: var(--fx-shadow);
    }
}
