:root {
    --bg: #f7f3ec;
    --paper: #fffaf7;
    --text: #263238;
    --muted: #6b7477;
    --accent: #2f7d8c;
    --border: #e5ded2;
    --shadow: 0 18px 45px rgba(38, 50, 56, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 250, 247, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    width: min(1400px, calc(100% - 2rem));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .site-nav a {
        color: var(--muted);
        font-size: 0.95rem;
        font-weight: 700;
        text-decoration: none;
    }

        .site-nav a:hover {
            color: var(--accent);
        }

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    background: rgba(255, 250, 247, 0.72);
}

.site-footer__inner {
    width: min(1400px, calc(100% - 2rem));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.site-footer a {
    color: var(--muted);
}

    .site-footer a:hover {
        color: var(--accent);
    }

/* Hero */

.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    padding: 4rem clamp(1.25rem, 5vw, 5rem);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12) );
}

.hero__content {
    position: relative;
    max-width: 760px;
    color: white;
}

.eyebrow {
    margin: 0 0 .5rem;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: .95;
}

.hero__intro {
    max-width: 36rem;
    margin: 1rem 0 0;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.6;
}

/* Home page */

.page {
    width: min(1400px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3rem 0 5rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

    .section-header h2 {
        margin: 0;
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .section-header p {
        margin: .35rem 0 0;
        color: var(--muted);
        font-size: 1.05rem;
    }

.trip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.trip-card {
    display: block;
    overflow: hidden;
    text-decoration: none;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .trip-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 55px rgba(38, 50, 56, 0.18);
    }

    .trip-card img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        transition: transform .35s ease;
    }

    .trip-card:hover img {
        transform: scale(1.04);
    }

.trip-card__body {
    padding: 1.25rem;
}

.trip-card__year {
    margin: 0 0 .25rem;
    color: var(--accent);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.trip-card h3 {
    margin: 0;
    font-size: 1.45rem;
}

.trip-card__body p:last-child {
    margin: .5rem 0 0;
    color: var(--muted);
    line-height: 1.55;
}

/* Trip page */

.trip-page {
    max-width: 980px;
}

.back-link {
    margin: 0 0 2rem;
}

    .back-link a {
        color: var(--accent);
        font-weight: 700;
        text-decoration: none;
    }

.journal-entry {
    margin: 0 0 3rem;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.journal-entry__header {
    margin-bottom: 1.5rem;
}

.entry-date {
    margin: 0 0 .35rem;
    color: var(--accent);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.journal-entry h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.1;
}

.entry-author {
    margin: .5rem 0 0;
    color: var(--muted);
}

.photo-carousel {
    position: relative;
    margin: 1.5rem 0 2rem;
}

.photo-carousel__viewport {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

    .photo-carousel__viewport::-webkit-scrollbar {
        display: none;
    }

.photo-carousel__slide {
    flex: 0 0 100%;
    margin: 0;
    scroll-snap-align: start;
}

    .photo-carousel__slide img {
        display: block;
        width: 100%;
        max-height: 760px;
        object-fit: contain;
        border-radius: 18px;
        background: #eee7dc;
    }

    .photo-carousel__slide figcaption {
        padding: .75rem 1rem;
        color: var(--muted);
    }

.photo-carousel__button {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    color: rgba(38, 50, 56, 0.75);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: all .2s ease;
}

    .photo-carousel__button:hover {
        background: rgba(255, 255, 255, 0.65);
        color: rgba(38, 50, 56, 1);
    }

.photo-carousel__button--prev {
    left: 0.75rem;
}

.photo-carousel__button--next {
    right: 0.75rem;
}

.entry-body {
    font-size: 1.08rem;
    line-height: 1.8;
}

    .entry-body p {
        margin: 0 0 1.15rem;
    }

.entry-location {
    margin: 1.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

    .entry-location a {
        color: var(--accent);
        font-weight: 700;
    }

/* Mobile */

@media (max-width: 640px) {
    .site-header__inner {
        height: 56px;
    }

    .hero {
        min-height: 360px;
    }

    .page {
        padding-top: 2rem;
    }

    .site-footer__inner {
        flex-wrap: wrap;
        padding: 1rem 0;
    }
}
