:root {
    --vlm-charcoal: #181b18;
    --vlm-charcoal-soft: #252a25;
    --vlm-ivory: #f4f0e7;
    --vlm-olive: #69734b;
    --vlm-ochre: #b47a38;
    --vlm-white: #ffffff;
    --vlm-border: rgba(24, 27, 24, 0.16);
    --vlm-header-height: 5.5rem;
    --vlm-content-width: 1240px;
    --vlm-radius: 1.25rem;
    --vlm-transition: 240ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--vlm-ivory);
    color: var(--vlm-charcoal);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: 0;
    left: 1rem;
    z-index: 10000;
    padding: 0.75rem 1rem;
    background: var(--vlm-white);
    color: var(--vlm-charcoal);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: var(--vlm-header-height);
    padding: 1rem clamp(1rem, 4vw, 3rem);
    color: var(--vlm-white);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.site-header > * {
    pointer-events: auto;
}

.site-brand {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.site-brand__name {
    font-size: 1.05rem;
    font-weight: 750;
}

.site-brand__location {
    font-size: 0.67rem;
    opacity: 0.76;
}

.menu-toggle {
    display: grid;
    gap: 0.34rem;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0.86rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    color: var(--vlm-white);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background var(--vlm-transition), transform var(--vlm-transition);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: rgba(0, 0, 0, 0.48);
    transform: scale(1.04);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    transition: opacity var(--vlm-transition);
}

.menu-backdrop.is-visible {
    opacity: 1;
}

.offcanvas-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    width: min(92vw, 460px);
    height: 100dvh;
    padding: 1.5rem;
    background: var(--vlm-charcoal);
    color: var(--vlm-white);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), visibility 320ms;
}

.offcanvas-menu.is-open {
    transform: translateX(0);
    visibility: visible;
}

.offcanvas-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.menu-close {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: transparent;
    color: var(--vlm-white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.offcanvas-menu__nav {
    overflow-y: auto;
    padding: 2rem 0;
}

.site-menu {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-menu li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.site-menu a {
    display: block;
    padding: 1rem 0;
    font-size: clamp(1.45rem, 5vw, 2.2rem);
    font-weight: 500;
    line-height: 1.12;
    text-decoration: none;
    transition: padding-left var(--vlm-transition), color var(--vlm-transition);
}

.site-menu a:hover,
.site-menu a:focus-visible {
    padding-left: 0.5rem;
    color: #d3dbaf;
}

.offcanvas-menu__footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.78rem;
    opacity: 0.65;
}

.site-main {
    min-height: 70vh;
    padding-top: var(--vlm-header-height);
}

.home .site-main {
    padding-top: 0;
}

/* Homepage hero */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(180, 122, 56, 0.58),
            transparent 33%
        ),
        radial-gradient(
            circle at 18% 74%,
            rgba(105, 115, 75, 0.88),
            transparent 38%
        ),
        linear-gradient(135deg, #303a2d, #151815 72%);
    color: var(--vlm-white);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 940px;
}

.hero__eyebrow,
.section-heading__eyebrow {
    margin: 0 0 1rem;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(4rem, 15vw, 11rem);
    font-weight: 760;
    line-height: 0.84;
    letter-spacing: -0.065em;
}

.hero__intro {
    max-width: 650px;
    margin: 1.5rem 0 0;
    font-size: clamp(1rem, 2.2vw, 1.45rem);
    opacity: 0.86;
}

.content-section {
    padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 6vw, 5rem);
}

.content-section--dark {
    background: var(--vlm-charcoal);
    color: var(--vlm-white);
}

.section-heading {
    max-width: 850px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2.3rem, 6vw, 5.5rem);
    font-weight: 720;
    line-height: 0.97;
    letter-spacing: -0.055em;
}

.section-heading > p:last-child {
    max-width: 670px;
    margin: 1.5rem auto 0;
    font-size: 1.08rem;
    opacity: 0.76;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: var(--vlm-content-width);
    margin: 0 auto;
}

.feature-card {
    min-height: 280px;
    padding: 1.5rem;
    border: 1px solid var(--vlm-border);
    border-radius: var(--vlm-radius);
    background: rgba(255, 255, 255, 0.34);
}

.feature-card__number {
    display: block;
    margin-bottom: 4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    opacity: 0.56;
}

.feature-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    line-height: 1.1;
}

.feature-card p {
    margin: 0;
    opacity: 0.72;
}

.page-shell {
    width: min(calc(100% - 2.5rem), 920px);
    margin: 0 auto;
    padding: 5rem 0;
}

.page-header {
    margin-bottom: 3rem;
}

.page-header h1 {
    margin: 0;
    font-size: clamp(2.8rem, 8vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.page-header__meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.62;
}

.entry-content {
    font-size: 1.08rem;
}

.entry-content > * {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.entry-content > .alignwide {
    max-width: 1120px;
}

.entry-content > .alignfull {
    max-width: none;
}

.post-list {
    display: grid;
    gap: 1rem;
}

.post-card {
    padding: 1.5rem;
    border: 1px solid var(--vlm-border);
    border-radius: var(--vlm-radius);
}

.post-card h2 {
    margin-top: 0;
}

.post-card h2 a {
    text-decoration: none;
}

.site-footer {
    padding: 3rem clamp(1.25rem, 6vw, 5rem);
    background: #101210;
    color: var(--vlm-white);
}

.site-footer__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    max-width: var(--vlm-content-width);
    margin: 0 auto;
}

.site-footer p {
    margin: 0;
    opacity: 0.72;
}

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    :root {
        --vlm-header-height: 4.75rem;
    }

    .site-header {
        padding: 0.75rem 1rem;
    }

    .menu-toggle {
        width: 3rem;
        height: 3rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 220px;
    }

    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Gutenberg-managed homepage blocks */
.home .site-main > .wp-block-cover:first-child {
    margin-top: 0;
}

.wp-block-cover.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding:
        calc(var(--vlm-header-height) + 2rem)
        clamp(1.25rem, 6vw, 5rem)
        8rem;
}

/*
 * The Cover inner container must not become the positioning context.
 * This keeps the actions anchored to the actual bottom of the full-height hero.
 */
.wp-block-cover.hero > .wp-block-cover__inner-container {
    position: static;
    width: 100%;
}

.hero__content.wp-block-group {
    position: relative;
    z-index: 2;
    max-width: 940px;
    margin-right: auto;
    margin-left: 0;
}

/* Hero actions: bottom center, one row */
.hero__actions.wp-block-buttons {
    position: absolute;
    right: auto;
    bottom: max(2rem, env(safe-area-inset-bottom));
    left: 50%;
    z-index: 3;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: max-content;
    max-width: calc(100% - 2rem);
    margin: 0;
    transform: translateX(-50%);
}

.hero__actions .wp-block-button {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

/*
 * Only the actual link is styled as a pill.
 * The Gutenberg wrapper stays unstyled, preventing the previous double border
 * and the separate wrapper hover effect.
 */
.hero__actions .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    padding: 0.8rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.15);
    color: var(--vlm-white);
    font-size: 0.8rem;
    font-weight: 720;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.08em;
    box-shadow: none;
    backdrop-filter: blur(8px);
    transition:
        background var(--vlm-transition),
        border-color var(--vlm-transition),
        color var(--vlm-transition),
        transform var(--vlm-transition);
}

.hero__actions .wp-block-button.hero-button--primary .wp-block-button__link {
    border-color: var(--vlm-white);
    background: var(--vlm-white);
    color: var(--vlm-charcoal);
}

.hero__actions .wp-block-button__link:hover,
.hero__actions .wp-block-button__link:focus-visible,
.hero__actions .wp-block-button.hero-button--primary .wp-block-button__link:hover,
.hero__actions .wp-block-button.hero-button--primary .wp-block-button__link:focus-visible {
    border-color: var(--vlm-olive);
    background: var(--vlm-olive);
    color: var(--vlm-white);
    transform: translateY(-2px);
}

.hero__actions .wp-block-button__link:focus-visible {
    outline: 2px solid var(--vlm-white);
    outline-offset: 3px;
}

.content-section.wp-block-group {
    margin-top: 0;
    margin-bottom: 0;
}

.feature-grid.wp-block-columns {
    align-items: stretch;
}

.feature-grid .feature-card.wp-block-column {
    min-width: 0;
}

.site-menu .sub-menu {
    margin: 0;
    padding: 0 0 0.75rem 1rem;
    list-style: none;
}

.site-menu .sub-menu li {
    border-bottom: 0;
}

.site-menu .sub-menu a {
    padding: 0.55rem 0;
    font-size: 1rem;
    opacity: 0.74;
}

@media (max-width: 600px) {
    .wp-block-cover.hero {
        padding-right: 1.25rem;
        padding-bottom: 6.5rem;
        padding-left: 1.25rem;
    }

    .hero__actions.wp-block-buttons {
        bottom: max(1rem, env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
        width: calc(100% - 1.5rem);
        max-width: none;
    }

    .hero__actions .wp-block-button {
        min-width: 0;
        width: 100%;
    }

    .hero__actions .wp-block-button__link {
        width: 100%;
        min-height: 2.8rem;
        padding: 0.65rem 0.35rem;
        font-size: 0.62rem;
        letter-spacing: 0.035em;
    }
}


/* Full-width Gutenberg pages with their own page heading. */
.events-page .entry-content {
    font-size: inherit;
}

.events-page .entry-content > * {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}


/* Full-width Gutenberg layout for the attractions page. */
.places-page {
    padding: 5rem 0;
}

.places-page__header {
    width: min(calc(100% - 2.5rem), 1120px);
    margin: 0 auto 5rem;
}

.places-page .entry-content {
    font-size: inherit;
}

.places-page .entry-content > * {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

.places-page .content-section {
    padding-top: 0;
}


/* Full-width Gutenberg layout for the hiking routes page. */
.routes-page {
    padding: 5rem 0;
}

.routes-page__header {
    width: min(calc(100% - 2.5rem), 1120px);
    margin: 0 auto 5rem;
}

.routes-page .entry-content {
    font-size: inherit;
}

.routes-page .entry-content > * {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

.routes-page .content-section {
    padding-top: 0;
}
