/* ---------- Basis & variabelen ---------- */
:root {
    --green-900: #0b3e30;
    --green-800: #10664d;
    --green-700: #157a5c;
    --green-600: #1e9471;
    --green-100: #e7f5ef;
    --ink: #1c2624;
    --ink-soft: #55635e;
    --bg: #f6f8f7;
    --card-bg: #ffffff;
    --border: #e3e9e6;
    --radius: 14px;
    --shadow: 0 2px 10px rgba(15, 40, 32, 0.08);
    --shadow-lg: 0 12px 30px rgba(15, 40, 32, 0.16);
    --max-width: 1180px;
    font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
    background: linear-gradient(135deg, var(--green-800), var(--green-600));
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: var(--shadow);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .75rem;
    padding-bottom: .75rem;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #fff;
}

.brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .16);
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: .5px;
    flex-shrink: 0;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.02rem; }
.brand__text small { font-size: .72rem; opacity: .85; font-weight: 400; }

.site-nav {
    display: flex;
    gap: 1.1rem;
    font-size: .9rem;
    font-weight: 600;
}

.site-nav a { opacity: .92; white-space: nowrap; }
.site-nav a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding-top: .85rem;
    padding-bottom: .85rem;
    font-size: .85rem;
    color: var(--ink-soft);
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.breadcrumb a { color: var(--green-700); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { opacity: .5; }
.breadcrumb__current { color: var(--ink); }

/* ---------- Hero (homepage) ---------- */
.hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.08), transparent 40%),
        linear-gradient(135deg, var(--green-900), var(--green-600));
    color: #fff;
    padding: 2.75rem 0 3.25rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.9rem, 5vw, 2.75rem);
    margin-bottom: .4rem;
}

.hero p {
    margin: 0;
    font-size: 1.02rem;
    opacity: .92;
}

/* ---------- Edition grid (homepage) ---------- */
.editions { padding: 2rem 0 3.5rem; }

.editions__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: -2rem;
}

@media (min-width: 640px) {
    .editions__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .editions__grid { grid-template-columns: repeat(3, 1fr); }
}

.edition-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}

.edition-card:hover, .edition-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.edition-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.edition-card__image {
    position: relative;
    aspect-ratio: 3 / 2;
    background: var(--green-100);
    overflow: hidden;
}

.edition-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edition-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--green-700);
    font-size: .85rem;
}

.edition-card__year {
    position: absolute;
    top: .6rem;
    left: .6rem;
    background: rgba(11, 62, 48, .82);
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    padding: .3rem .6rem;
    border-radius: 999px;
    letter-spacing: .02em;
}

.edition-card__video {
    position: absolute;
    top: .6rem;
    right: .6rem;
    background: rgba(255, 255, 255, .92);
    color: var(--green-800);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
}

.edition-card__body {
    padding: 1rem 1.1rem .5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.edition-card__body h2 {
    font-size: 1.02rem;
    margin-bottom: .35rem;
}

.edition-card__body p {
    margin: 0;
    font-size: .87rem;
    color: var(--ink-soft);
    flex-grow: 1;
}

.edition-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .6rem 1.1rem 1.15rem;
}

.edition-card__count {
    font-size: .78rem;
    font-weight: 700;
    color: var(--green-700);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.edition-card__download {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--green-700);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.edition-card__download:hover { color: var(--green-800); text-decoration: underline; }

/* ---------- Edition header (year page) ---------- */
.edition-header {
    padding: 2rem 0 1.25rem;
}

.edition-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    color: var(--green-900);
}

.edition-header__desc {
    color: var(--ink-soft);
    max-width: 60ch;
    margin: 0 0 .9rem;
}

.edition-header__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: .85rem;
    color: var(--ink-soft);
    font-weight: 600;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--green-700);
    color: #fff !important;
    padding: .45rem .9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .82rem;
    transition: background .15s ease;
}

.video-link:hover { background: var(--green-800); }

.video-link--download {
    padding: .45rem .6rem;
    font-size: .95rem;
    line-height: 1;
}

/* ---------- Photo grid (year page) ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
    padding: .5rem 0 3rem;
}

@media (min-width: 480px) {
    .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
    .gallery { grid-template-columns: repeat(4, 1fr); gap: .65rem; }
}
@media (min-width: 980px) {
    .gallery { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1200px) {
    .gallery { grid-template-columns: repeat(6, 1fr); }
}

.gallery__item {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 8px;
    background: var(--green-100);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
    transform: scale(1.06);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--green-900);
    color: rgba(255, 255, 255, .82);
    padding: 2rem 0;
    margin-top: 2rem;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .85rem;
    text-align: center;
}

.footer-home img {
    max-width: 220px;
    filter: brightness(0) invert(1);
    opacity: .9;
}

.site-footer p {
    margin: 0;
    font-size: .8rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(6, 20, 15, .94);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 0;
}

.lightbox.is-open { display: flex; }

.lightbox__figure {
    max-width: 96vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox__img {
    max-width: 96vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
    background: #111;
}

.lightbox__counter {
    color: rgba(255,255,255,.75);
    font-size: .82rem;
    margin-top: .75rem;
    letter-spacing: .02em;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .15s ease;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, .26);
}

.lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
}

.lightbox__prev,
.lightbox__next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
}

.lightbox__prev { left: .6rem; }
.lightbox__next { right: .6rem; }

@media (max-width: 640px) {
    .lightbox__prev, .lightbox__next {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}
