/* Serve the chosen open-source fonts from this project, without external font requests. */
@font-face {
    font-family: "Bungee Inline";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/bungee-inline-latin-400.a5db32b4d397.woff2") format("woff2");
}
@font-face {
    font-family: "Alumni Sans";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/alumni-sans-latin-900.99592ee5b1ca.woff2") format("woff2");
}
@font-face {
    font-family: "Nunito";
    font-style: normal;
    /* The variable font supplies real regular and bold weights, including values between them. */
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/nunito-latin-400-700.166202cc391c.woff2") format("woff2");
}

/* Shared design tokens: change the palette and typography centrally for the entire site. */
:root {
    --color-primary: #1f3f35 ;
    /* --color-primary: #402938; */
    --color-surface: #f2f5ed;
    /* --color-surface: #F8F1EA; */
    --color-accent: #f1c86c;
    /* --color-accent: #E6AA6c; */
    --color-status: #2fa866;
    --color-white: #ffffff;
    /* --color-white: #F8F1EA; */
    --color-text: var(--color-primary);
    --color-page: var(--color-white);
    --color-text-on-primary: var(--color-white);
    --color-text-on-accent: var(--color-primary);
    --font-body: "Nunito", "Arial", sans-serif;
    --font-heading: "Alumni Sans", "Arial Narrow", sans-serif;
    --font-brand: "Bungee Inline", "Arial", sans-serif;
    --content-width: 76rem;
    --page-gutter: clamp(1.25rem, 4vw, 4rem);
    /* Leave room for the sticky header when the wider wordmark wraps onto two lines. */
    --anchor-offset: 7rem;
}

/* Keep sizing predictable and retain readable fallbacks while local fonts load. */
* { box-sizing: border-box; }
html { scroll-padding-top: var(--anchor-offset); }
body {
    margin: 0;
    background: var(--color-page);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
}
h1, h2, p { margin: 0; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.04;
    text-transform: uppercase;
}
h1 { font-size: clamp(2.75rem, 4.5vw, 4.75rem); }
h2 { font-size: clamp(2rem, 3.3vw, 3.25rem); }
a { color: inherit; }
img { display: block; max-width: 100%; }
/* Native controls should use the same body typography as surrounding text. */
button, input, select, textarea { font: inherit; }
.container {
    width: min(100% - (2 * var(--page-gutter)), var(--content-width));
    margin-inline: auto;
}
.eyebrow {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
/* Treat the brand in the hero as a wordmark rather than a regular eyebrow label. */
.eyebrow--brand {
    font-family: var(--font-brand);
    font-weight: 400;
    letter-spacing: normal;
    font-synthesis: none;
}

/* Make keyboard focus clear on both light and dark backgrounds. */
a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 5px;
}
.skip-link {
    position: fixed;
    top: 0.75rem;
    left: var(--page-gutter);
    z-index: 30;
    padding: 0.75rem 1rem;
    background: var(--color-accent);
    color: var(--color-text-on-accent);
    transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

/* Reuse one button style for the header and calls to action. */
.button {
    display: inline-flex;
    min-height: 2.875rem;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.7rem 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}
.button--accent {
    background: var(--color-accent);
    color: var(--color-text-on-accent);
}
.button:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.button__icon { flex: none; width: 1.5rem; height: 1.5rem; }

/* Use one clear wordmark in both places, independently of the heavy page headings. */
.wordmark {
    font-family: var(--font-brand);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    /* Bungee Inline has one genuine weight; avoid browser-generated bold strokes. */
    font-weight: 400;
    font-synthesis: none;
    line-height: 1.25;
    letter-spacing: normal;
    text-decoration: none;
    text-transform: none;
}

/* Keep the shared navigation available while scrolling the homepage. */
.site-header, .site-footer { font-family: var(--font-body); }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-surface);
}
.site-header__inner {
    display: grid;
    /* Equal side tracks center the brand on the page, regardless of the side content widths. */
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "status brand navigation";
    align-items: center;
    gap: 0.75rem 1.5rem;
    padding-block: 1rem;
    padding-inline: clamp(1rem, 2vw, 2rem);
}
.site-header .wordmark {
    grid-area: brand;
    justify-self: center;
    max-width: 100%;
    text-align: center;
}
.site-nav {
    grid-area: navigation;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.site-nav__link {
    display: inline-flex;
    min-height: 2.875rem;
    align-items: center;
    font-weight: 700;
    text-decoration: none;
}
.site-nav__link:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* A small green pulse marks the invitation as open without relying on color alone. */
.adventure-status {
    grid-area: status;
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-self: start;
    gap: 0.75rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--color-primary);
    border-radius: 2rem;
    background: var(--color-surface);
    font-size: 1rem;
    line-height: 1.4;
    text-decoration: none;
}
.adventure-status:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.adventure-status__light {
    position: relative;
    flex: none;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--color-status);
}
.adventure-status__light::after {
    content: "";
    position: absolute;
    inset: -0.25rem;
    border: 1px solid var(--color-status);
    border-radius: inherit;
    animation: adventure-pulse 1.4s ease-out infinite;
}
@keyframes adventure-pulse {
    0% { transform: scale(0.6); opacity: 0.7; }
    75%, 100% { transform: scale(1.5); opacity: 0; }
}

/* Keep the light static when a visitor prefers less movement. */
@media (prefers-reduced-motion: reduce) {
    .adventure-status__light::after { animation: none; opacity: 0.3; }
}

/* Give the photograph two thirds of B2's split hero and the text the remaining third. */
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.hero__visual {
    position: relative;
    min-width: 0;
    min-height: clamp(24rem, 37vw, 33rem);
    overflow: hidden;
    background: var(--color-surface);
}
/* Fill the entire image block and keep the group on the left as the crop changes. */
.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}
.hero__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.75rem;
    padding: clamp(2rem, 5vw, 5rem) var(--page-gutter);
    background: var(--color-primary);
    color: var(--color-text-on-primary);
}
.hero__intro { max-width: 36ch; font-size: 1.125rem; }

/* Give the first signup call to action a larger touch target and more visual emphasis. */
.hero__content .button {
    min-height: 3.5rem;
    padding: 0.9rem 1.75rem;
    font-size: 1.125rem;
}

/* Introduce the known dates and leave room for additional information later. */
.trip-intro { padding-block: clamp(3rem, 6vw, 5rem); }
.trip-intro__inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
    gap: 2rem 4rem;
}
.trip-date {
    justify-self: start;
    padding: 0.65rem 1.25rem;
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.4;
}
.trip-intro__text { display: grid; max-width: 54ch; gap: 1rem; }

/* Give the future signup section a clear, reusable full-width color block. */
.signup-band {
    padding-block: clamp(2.5rem, 5vw, 4rem);
    background: var(--color-primary);
    color: var(--color-text-on-primary);
}
.signup-band__inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    align-items: center;
    gap: 2rem 4rem;
}
.signup-band__text { display: grid; max-width: 48ch; gap: 1rem; }
.signup-note { color: var(--color-accent); font-weight: 700; }

/* Repeat the shared brand and closing line at the bottom of every page. */
.site-footer { padding-block: 2rem; }
.site-footer__inner {
    /* Match the header edges; equal side tracks keep the closing line at the page center. */
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "brand tagline copyright";
    align-items: center;
    gap: 1rem 2rem;
    padding-inline: clamp(1rem, 2vw, 2rem);
}
.site-footer .wordmark {
    grid-area: brand;
    justify-self: start;
    max-width: 100%;
}
/* Share line spacing while allowing each footer text to have its own size. */
.site-footer__tagline, .site-footer__copyright {
    line-height: 1.5;
}
.site-footer__tagline {
    grid-area: tagline;
    justify-self: center;
    font-family: var(--font-heading);
    /* Change this value to resize the tagline independently of the copyright. */
    font-size: 1.5rem;
    font-weight: 900;
    text-align: center;
}
.site-footer__copyright {
    grid-area: copyright;
    justify-self: end;
    font-size: 0.875rem;
    font-weight: 400;
    text-align: right;
}

/* Stack the layout on tablets and phones instead of squeezing desktop columns. */
@media (max-width: 60rem) {
    .hero { grid-template-columns: 1fr; }
    .hero__content { order: -1; }
    /* Let the photograph's own aspect ratio determine its height on smaller screens. */
    .hero__visual { min-height: 0; }
    .hero__image { position: static; height: auto; }
    .trip-intro__inner, .signup-band__inner { grid-template-columns: 1fr; }
}

/* Center the brand on its own row when all three groups no longer fit side by side. */
@media (max-width: 80rem) {
    :root { --anchor-offset: 10rem; }
    .site-header__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "brand brand" "status navigation";
    }
}

/* Keep the invitation at the left, the brand centered, and the navigation across the next row. */
@media (max-width: 48rem) {
    :root { --anchor-offset: 14rem; }
    .site-header__inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "status" "brand" "navigation";
    }
    .site-nav { justify-self: stretch; justify-content: space-between; }
    /* Keep the closing line centered and copyright right-aligned when the footer stacks. */
    .site-footer__inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "brand" "tagline" "copyright";
    }
}

/* Keep the longer labels readable and the signup button usable on small phones. */
@media (max-width: 40rem) {
    .site-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; }
    .site-nav__link { font-size: 0.875rem; line-height: 1.3; }
    .site-nav .button { gap: 0.65rem; padding-inline: 0.8rem; font-size: 0.875rem; }
    .site-nav .button__icon { width: 1.25rem; height: 1.25rem; }
    .hero__content { padding-block: 3rem; }
}
