/* ─── TYPOGRAPHY HELPERS ──────────────────────────────────────── */
.eyebrow,
.section-title,
.meta,
.card-meta {
    color: var(--accent);
    letter-spacing: .3em;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 300;
}

.eyebrow {
    margin: 0 0 24px;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--serif-display);
    font-weight: 300;
}

.muted {
    color: var(--muted);
    font-family: var(--serif-text);
    font-size: 17px;
    line-height: 1.72;
    font-weight: 300;
}

/* ─── BUTTONS & LINKS ─────────────────────────────────────────── */
.button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-height: 46px;
    padding: 0 24px;
    border: 1px solid var(--accent-line);
    color: #e8f4f8;
    background: rgba(143, 182, 200, .045);
    letter-spacing: .18em;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 300;
    cursor: pointer;
}

.button:hover {
    background: var(--accent-soft);
}

.button-row {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.text-link {
    color: rgba(237, 241, 243, .7);
    letter-spacing: .18em;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 300;
}

.text-link::after {
    content: " →";
}

.text-link:hover {
    color: var(--accent);
}

/* ─── SECTIONS ────────────────────────────────────────────────── */
.section {
    border-bottom: 1px solid var(--line-soft);
}

.section-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(42px, 5.3vw, 82px) clamp(22px, 4vw, 64px);
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 26px;
}

/* ─── PHOTO GRID ──────────────────────────────────────────────── */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.grid-item {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    background: var(--panel);
    position: relative;
    cursor: pointer;
    /* transition: opacity .3s ease; */
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transition: transform .4s ease, filter .4s ease;
}

.grid-item:hover img {
    transform: scale(1.035);
    filter: brightness(.78);
}

.grid-item.is-hidden {
    display: none;
}

/* ─── FEATURED EDITORIAL ──────────────────────────────────────── */
.featured-editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line-soft);
    overflow: hidden;
}

.featured-editorial-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--panel);
}

.featured-editorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transition: transform .5s ease;
}

.featured-editorial:hover .featured-editorial-image img {
    transform: scale(1.025);
}

.featured-editorial-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 5vw, 72px);
    border-left: 1px solid var(--line-soft);
}

.featured-editorial-body .label {
    color: var(--accent);
    letter-spacing: .3em;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 20px;
}

.featured-editorial-body h2 {
    font-family: var(--serif-display);
    font-size: clamp(32px, 3.6vw, 56px);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -.045em;
    margin: 0 0 20px;
}

.featured-editorial-body .body-text {
    color: var(--muted);
    font-family: var(--serif-text);
    font-size: 17px;
    line-height: 1.72;
    margin: 0 0 28px;
}

.post-meta {
    color: var(--dim);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 300;
}

/* ─── ARTICLE CARDS ───────────────────────────────────────────── */
.recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.recent-card {
    display: flex;
    flex-direction: column;
}

.recent-card-thumb {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    background: var(--panel);
    display: block;
    margin-bottom: 18px;
}

.recent-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transition: transform .36s ease, filter .36s ease;
}

.recent-card-thumb:hover img {
    transform: scale(1.018);
    filter: brightness(.85);
}

.recent-card h3 {
    font-family: var(--serif-display);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 300;
    line-height: 1.07;
    letter-spacing: -.03em;
    margin: 0 0 10px;
}

.recent-card h3 a {
    color: inherit;
}

.recent-card h3 a:hover {
    color: var(--accent);
}

.recent-card .excerpt {
    color: var(--muted);
    font-family: var(--serif-text);
    font-size: 14px;
    line-height: 1.62;
    margin: 0 0 12px;
    flex: 1;
}

/* ─── LIGHTBOX ────────────────────────────────────────────────── */
.lightbox {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, .88);
    backdrop-filter: blur(16px);
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    width: auto;
    max-width: min(96vw, 1280px);
    height: auto;
    max-height: 84vh;
    border: 1px solid rgba(255, 255, 255, .16);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(0, 0, 0, .32);
    color: var(--text);
    font-size: 26px;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(0, 0, 0, .32);
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
    display: grid;
    place-items: center;
    line-height: 1;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 68px;
}

/* ─── FILTER BAR ──────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 38px;
}

.filter-bar button {
    min-height: 36px;
    border: 1px solid var(--line-soft);
    padding: 0 14px;
    color: var(--muted);
    background: transparent;
    letter-spacing: .13em;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 300;
    cursor: pointer;
}

.filter-bar button:hover,
.filter-bar button.active {
    color: var(--text);
    border-color: var(--accent-line);
    background: rgba(143, 182, 200, .075);
}

/* ─── COOKIE BANNER ───────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    z-index: 50;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 500px;
    background: rgba(18, 22, 27, 0.96);
    border: 1px solid var(--line-soft);
    backdrop-filter: blur(12px);
    padding: 20px 24px;
}

.cookie-banner-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    text-align: center;
}

.cookie-banner-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-accept,
.btn-decline {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 20px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 300;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: var(--sans);
}

.btn-accept {
    background: rgba(74, 124, 89, 0.2);
    color: #86efac;
    border-color: rgba(74, 124, 89, 0.4);
}

.btn-accept:hover {
    background: rgba(74, 124, 89, 0.35);
}

.btn-decline {
    background: rgba(180, 60, 60, 0.15);
    color: #fca5a5;
    border-color: rgba(180, 60, 60, 0.3);
}

.btn-decline:hover {
    background: rgba(180, 60, 60, 0.28);
}

@media (max-width: 520px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-banner-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .featured-editorial {
        grid-template-columns: 1fr;
    }

    .featured-editorial-image {
        aspect-ratio: 16 / 7;
    }

    .featured-editorial-body {
        border-left: 0;
        border-top: 1px solid var(--line-soft);
    }

    .recent-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .button-row {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .button {
        width: 100%;
        justify-content: center;
    }
}