:root {
    --gh-font-heading: "Barlow Condensed", Impact, sans-serif;
    --gh-font-body: "Inter", system-ui, sans-serif;
    --blue: #1468c7;
    --blue-bright: #1e7de0;
    --navy: #081f36;
    --navy-soft: #103554;
    --green: #5b8f39;
    --green-bright: #8bc34a;
    --gold: #f2b632;
    --ink: #14212d;
    --muted: #607080;
    --line: #dfe6ec;
    --mist: #f2f6f9;
    --white: #fff;
    --shadow: 0 18px 50px rgba(8, 31, 54, .12);
    --radius: 14px;
    --shell: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font: 400 16px/1.65 var(--gh-font-body);
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
    color: var(--navy);
    font-family: var(--gh-font-heading);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.015em;
}

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.shell--article { width: min(calc(100% - 40px), 780px); }
.section { padding: 88px 0; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 999;
    padding: 12px 18px;
    color: #fff;
    background: var(--navy);
    border-radius: 6px;
}
.skip-link:focus { top: 16px; }

.utility-bar { color: #d8e6f2; background: var(--navy); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.utility-bar__inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.utility-links { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.utility-links a { color: #fff; }
.utility-links a:hover { color: var(--gold); }

.site-header {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid rgba(8, 31, 54, .1);
    background: rgba(255, 255, 255, .98);
}
.site-header__inner { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.brand { flex: 0 1 320px; }
.brand img { width: 100%; max-height: 92px; object-fit: contain; object-position: left center; }
.primary-navigation { display: flex; align-items: center; gap: clamp(15px, 1.8vw, 28px); }
.primary-navigation a { position: relative; color: var(--navy); font-size: 13px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.primary-navigation a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -7px;
    height: 2px;
    background: var(--blue);
    transition: right .2s ease;
}
.primary-navigation a:hover::after { right: 0; }
.primary-navigation .nav-cta { padding: 11px 17px; color: #fff; background: var(--blue); border-radius: 5px; }
.primary-navigation .nav-cta:hover { background: var(--navy); }
.menu-toggle { display: none; width: 46px; height: 42px; padding: 9px; border: 0; background: var(--navy); border-radius: 5px; }
.menu-toggle > span:not(.visually-hidden) { display: block; height: 2px; margin: 5px 0; background: #fff; }

.hero {
    position: relative;
    min-height: clamp(460px, 56vh, 520px);
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(4, 20, 34, .94) 0%, rgba(4, 20, 34, .72) 46%, rgba(4, 20, 34, .08) 100%),
        url("../images/trail-hero.jpg") center 58% / cover no-repeat;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(8, 31, 54, .5));
}
.hero__content { position: relative; z-index: 2; padding: 58px 0 88px; }
.hero__kicker, .section-kicker {
    margin-bottom: 14px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.hero__kicker { color: var(--gold); }
.hero h1 { max-width: 760px; margin-bottom: 16px; color: #fff; font-size: clamp(62px, 7vw, 96px); text-transform: uppercase; }
.hero__lede { max-width: 650px; margin-bottom: 24px; color: #e7eef5; font-size: clamp(17px, 1.65vw, 20px); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__rail {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: clamp(28px, 7vw, 90px);
    padding: 15px;
    color: #fff;
    background: rgba(8, 31, 54, .88);
    border-top: 1px solid rgba(255,255,255,.2);
    font: 700 14px/1 "Barlow Condensed", sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hero__rail span::before { content: "◆"; margin-right: 12px; color: var(--green-bright); font-size: 9px; }

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { color: #fff; background: var(--blue); }
.button--primary:hover { background: var(--blue-bright); }
.button--ghost { color: #fff; border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.06); }
.button--ghost:hover { border-color: #fff; background: rgba(255,255,255,.14); }
.button--dark { color: #fff; background: var(--navy); }
.button--dark:hover { background: var(--navy-soft); }

.trail-status { background: var(--gold); }
.trail-status__inner { min-height: 180px; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 32px; }
.status-marker { color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.status-marker span { display: inline-block; width: 10px; height: 10px; margin-right: 9px; background: #2e7d32; border: 3px solid rgba(255,255,255,.75); border-radius: 50%; box-shadow: 0 0 0 3px rgba(46,125,50,.2); }
.trail-status__copy > p:first-child { margin-bottom: 2px; color: rgba(8,31,54,.72); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.trail-status__copy h2 { margin-bottom: 7px; font-size: clamp(28px, 3vw, 42px); }
.trail-status__copy h2 a:hover { text-decoration: underline; }
.trail-status__copy > p:last-child { max-width: 720px; margin-bottom: 0; line-height: 1.55; }

.section-heading { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 50px; margin-bottom: 42px; }
.section-heading--compact { grid-template-columns: 1fr auto; align-items: center; }
.section-heading h2 { max-width: 690px; margin-bottom: 0; font-size: clamp(42px, 5vw, 64px); }
.section-heading > p { margin-bottom: 4px; color: var(--muted); font-size: 17px; }

.quick-links { background: var(--mist); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-card { min-height: 315px; display: flex; flex-direction: column; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
.quick-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.quick-card__number { margin-bottom: auto; color: var(--blue); font: 800 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; }
.quick-card h3 { margin: 28px 0 12px; font-size: 34px; }
.quick-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.quick-card__arrow { margin-top: auto; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.quick-card--blue { color: #fff; background: var(--blue); border-color: var(--blue); }
.quick-card--blue h3, .quick-card--blue .quick-card__number, .quick-card--blue p { color: #fff; }
.quick-card--green { color: #fff; background: var(--green); border-color: var(--green); }
.quick-card--green h3, .quick-card--green .quick-card__number, .quick-card--green p { color: #fff; }

.news-section { background: #fff; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16/9; display: block; overflow: hidden; background: #dce7f0; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__media img { transform: scale(1.035); }
.post-card__media--empty { display: grid; place-items: center; color: rgba(255,255,255,.25); background: linear-gradient(135deg, var(--navy), var(--blue)); font: 800 72px/1 "Barlow Condensed", sans-serif; }
.post-card__body { padding: 25px; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-bottom: 13px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow a { color: var(--blue); }
.post-card h2 { margin-bottom: 12px; font-size: 30px; line-height: 1.05; }
.post-card h2 a:hover { color: var(--blue); }
.post-card p { color: var(--muted); font-size: 14px; }
.text-link { color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.text-link:hover { color: var(--navy); }
.text-link--large { font-size: 14px; }

.community-section { padding: 96px 0; color: #fff; background: var(--navy); }
.community-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 80px; }
.community-copy h2 { max-width: 700px; margin-bottom: 25px; color: #fff; font-size: clamp(52px, 6vw, 78px); }
.community-copy > p:not(.section-kicker) { max-width: 680px; color: #c5d4e0; font-size: 18px; }
.section-kicker--light { color: var(--gold); }
.community-actions { display: flex; align-items: center; gap: 26px; margin-top: 32px; }
.text-link--light { color: #fff; }
.text-link--light:hover { color: var(--gold); }
.weather-card { padding: 34px; color: var(--navy); background: #fff; border-radius: var(--radius); box-shadow: 0 25px 70px rgba(0,0,0,.22); }
.weather-card__top { display: flex; justify-content: space-between; gap: 20px; }
.weather-label { margin-bottom: 2px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.weather-card h3 { margin-bottom: 0; font-size: 34px; }
.weather-icon { color: var(--gold); font-size: 45px; line-height: 1; }
.weather-card__reading { display: flex; align-items: flex-end; gap: 15px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.weather-card__reading strong { font: 800 70px/.78 "Barlow Condensed", sans-serif; }
.weather-card__reading span { color: var(--muted); }
.weather-card__details { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 22px; color: var(--muted); font-size: 13px; }
.weather-card__details strong { display: block; color: var(--navy); font-size: 16px; }
.weather-credit { margin: 20px 0 0; color: #8996a2; font-size: 10px; }
.weather-credit a { text-decoration: underline; }

.page-hero { padding: 90px 0; color: #fff; background: linear-gradient(120deg, var(--navy), #123f67); }
.page-hero--listing { background: linear-gradient(120deg, rgba(8,31,54,.98), rgba(8,31,54,.7)), url("../images/trail-hero.jpg") center 55%/cover; }
.page-hero h1 { max-width: 900px; margin-bottom: 14px; color: #fff; font-size: clamp(58px, 8vw, 96px); }
.page-hero p:not(.section-kicker) { max-width: 740px; margin-bottom: 0; color: #d6e1eb; font-size: 18px; }
.page-hero--content { padding: 80px 0; }

.trail-map { padding-top: 48px; padding-bottom: 78px; }
.trail-map__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.trail-map__figure { margin: 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.trail-map__figure a { display: block; }
.trail-map__figure img { width: 100%; border-radius: 8px; }
.trail-map__figure figcaption { padding: 14px 8px 3px; color: var(--muted); font-size: 14px; text-align: center; }

.event-calendar { max-width: 1020px; padding-top: 48px; padding-bottom: 78px; }
.event-calendar__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.event-calendar__figure { margin: 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.event-calendar__figure a { display: block; }
.event-calendar__figure img { width: 100%; border-radius: 8px; }
.event-calendar__figure figcaption { padding: 14px 8px 3px; color: var(--muted); font-size: 14px; text-align: center; }

.article-header { padding: 85px 0 62px; background: var(--mist); }
.eyebrow--article { margin-bottom: 18px; }
.article-header h1 { margin-bottom: 22px; font-size: clamp(55px, 8vw, 88px); }
.article-deck { color: var(--muted); font-size: 20px; }
.article-byline { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.article-image { margin-top: 52px; }
.article-image img { width: 100%; max-height: 720px; object-fit: cover; border-radius: var(--radius); }
.article-image figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; text-align: center; }
.gh-content { padding-top: 62px; padding-bottom: 78px; font-size: 18px; line-height: 1.78; }
.gh-content > * { margin-bottom: 1.45em; }
.gh-content h2 { margin-top: 1.4em; font-size: 44px; }
.gh-content h3 { margin-top: 1.35em; font-size: 34px; }
.gh-content a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gh-content img { border-radius: 8px; }
.gh-content blockquote { margin: 2em 0; padding: 10px 0 10px 26px; color: var(--navy); border-left: 5px solid var(--gold); font-size: 22px; font-weight: 600; }
.gh-content table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.gh-content th, .gh-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.gh-content iframe { max-width: 100%; }
.kg-width-wide { width: min(1100px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.kg-bookmark-card a { display: flex; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.kg-bookmark-content { flex: 1; padding: 20px; }
.kg-bookmark-thumbnail { flex: 0 0 32%; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.article-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 28px; padding-bottom: 78px; border-top: 1px solid var(--line); }
.article-footer__label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.tag-list a { display: inline-block; margin: 0 5px 5px 0; padding: 5px 10px; color: var(--blue); background: #e8f2fb; border-radius: 4px; font-size: 12px; }

.pagination { display: flex; justify-content: center; gap: 12px; margin-top: 54px; }
.pagination a { color: var(--blue); font-weight: 700; }
.pagination .page-number { color: var(--muted); }

.site-footer { padding: 72px 0 24px; color: #b8c8d5; background: #051524; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 65px; }
.footer-brand img { width: 260px; margin-bottom: 22px; filter: invert(1); }
.footer-brand p { max-width: 360px; font-size: 14px; }
.site-footer h2 { margin-bottom: 18px; color: #fff; font-size: 22px; }
.site-footer div > a { display: block; margin-bottom: 9px; font-size: 13px; }
.site-footer div > a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.error-page { min-height: 60vh; display: grid; place-items: center; padding: 100px 0; text-align: center; }
.error-code { margin-bottom: 0; color: var(--blue); font: 800 90px/1 "Barlow Condensed", sans-serif; }
.error-page h1 { font-size: 58px; }

@media (max-width: 1040px) {
    .site-header__inner { min-height: 96px; }
    .brand { max-width: 265px; }
    .menu-toggle { display: block; }
    .primary-navigation {
        position: fixed;
        inset: 132px 0 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 28px 28px 60px;
        overflow-y: auto;
        background: var(--navy);
    }
    .primary-navigation.is-open { display: flex; }
    .primary-navigation a { padding: 16px 4px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 17px; }
    .primary-navigation a::after { display: none; }
    .primary-navigation .nav-cta { margin-top: 16px; padding: 16px; text-align: center; border: 0; }
    .trail-status__inner { grid-template-columns: 140px 1fr; padding: 32px 0; }
    .trail-status__inner .button { grid-column: 2; justify-self: start; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .community-grid { gap: 45px; }
    .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
}

@media (max-width: 720px) {
    .shell, .shell--article { width: min(calc(100% - 28px), var(--shell)); }
    .section { padding: 64px 0; }
    .utility-bar__inner { justify-content: center; text-align: center; }
    .utility-bar__inner > span { display: none; }
    .utility-bar { min-height: 40px; }
    .utility-links { width: 100%; justify-content: center; gap: 6px 14px; flex-wrap: wrap; padding: 9px 0; font-size: clamp(9px, 2.55vw, 10px); }
    .utility-links::-webkit-scrollbar { display: none; }
    .site-header__inner { min-height: 88px; }
    .brand { max-width: 225px; }
    .primary-navigation { inset: 124px 0 0; }
    .hero { min-height: 510px; background-position: 58% center; }
    .hero__content { padding: 48px 0 82px; }
    .hero h1 { font-size: clamp(54px, 16vw, 72px); }
    .hero__lede { font-size: 16px; }
    .hero__actions { align-items: stretch; flex-direction: column; }
    .hero__actions .button { width: 100%; }
    .hero__rail { gap: 16px; padding: 13px 8px; font-size: 10px; }
    .hero__rail span::before { margin-right: 6px; }
    .trail-status__inner { grid-template-columns: 1fr; gap: 14px; padding: 35px 0; }
    .trail-status__inner .button { grid-column: auto; }
    .section-heading, .section-heading--compact { grid-template-columns: 1fr; gap: 18px; }
    .section-heading h2 { font-size: 46px; }
    .quick-grid, .post-grid, .community-grid, .footer-grid { grid-template-columns: 1fr; }
    .quick-card { min-height: 270px; }
    .community-grid { gap: 50px; }
    .community-copy h2 { font-size: 55px; }
    .community-actions { align-items: flex-start; flex-direction: column; }
    .page-hero { padding: 68px 0; }
    .page-hero h1 { font-size: 58px; }
    .article-header { padding: 62px 0 45px; }
    .article-header h1 { font-size: 58px; }
    .gh-content { padding-top: 45px; padding-bottom: 58px; font-size: 17px; }
    .article-footer { align-items: flex-start; flex-direction: column; }
    .footer-grid { gap: 36px; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
