:root {
    --forest: #2f6b45;
    --forest-dark: #1f4a30;
    --bark: #5c3a21;
    --bark-dark: #3a2414;
    --parchment: #faf6ea;
    --ink: #2b2620;
    --muted: #6b6357;
    --bg: #f2eee1;
    --border: #e3dbc4;
    --shadow: 0 1px 2px rgba(43,38,32,.05), 0 6px 20px rgba(43,38,32,.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--bark-dark);
    margin: 0 0 .5em;
}

a { color: var(--forest-dark); }

p { margin: 0 0 1em; }

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

/* --- Hlavička a menu --- */
.site-header {
    background: linear-gradient(180deg, #ffffff 0%, #dff0da 70%, var(--forest) 100%);
    text-align: center;
    padding: 0;
}

.site-header-img {
    max-width: 1012px;
    width: 100%;
    margin: 0 auto;
}

.site-nav {
    background: var(--forest);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

.site-nav-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.site-nav a {
    color: #eaf3e6;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 14px 16px;
    transition: background .15s, color .15s;
}

.site-nav a:hover { background: var(--forest-dark); }
.site-nav a.active { background: var(--forest-dark); color: #fff; font-weight: 600; }

/* --- Hlavní obsah --- */
.site-main {
    max-width: 880px;
    margin: 0 auto;
    padding: 36px 20px 60px;
}

.content-card {
    background: var(--parchment);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 28px 32px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .content-card { padding: 20px; }
}

.page-lead {
    font-size: 17px;
    color: var(--muted);
    margin-bottom: 28px;
}

/* --- Novinky / feed --- */
.feed-item {
    background: var(--parchment);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 22px 26px;
    margin-bottom: 18px;
}

.feed-item .feed-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.feed-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .02em;
}
.feed-badge.post { background: #e8e2d3; color: var(--bark-dark); }
.feed-badge.photo { background: #dcefdd; color: var(--forest-dark); }
.feed-badge.kronika { background: #f3e6cf; color: #8a5a1f; }

.feed-item h3 { font-size: 19px; margin-bottom: 6px; }
.feed-item .feed-content { color: var(--ink); white-space: pre-line; }
.feed-photo-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 12px;
}
.feed-photo-strip img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg);
}
@media (max-width: 500px) { .feed-photo-strip { grid-template-columns: repeat(2, 1fr); } }
.feed-item .feed-author { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* --- Osadníci --- */
.osadnici-list { display: flex; flex-direction: column; gap: 18px; }
.osadnik-card {
    display: flex;
    gap: 18px;
    background: var(--parchment);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 18px;
    align-items: flex-start;
}
.osadnik-card img {
    width: 110px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--bg);
}
.osadnik-card .osadnik-body h3 { font-size: 17px; margin-bottom: 6px; }
.osadnik-card .osadnik-body p { font-size: 14px; color: var(--ink); font-style: italic; margin: 0; }

@media (max-width: 500px) {
    .osadnik-card { flex-direction: column; align-items: center; text-align: center; }
    .osadnik-card img { width: 140px; }
}

/* --- Galerie: seznam alb --- */
.album-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.album-item {
    display: flex;
    flex-direction: column;
    background: var(--parchment);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: border-color .15s, transform .15s;
}
.album-item:hover { border-color: var(--forest); transform: translateY(-2px); }
.album-item img, .album-item-noimg {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg);
}
.album-item-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}
.album-item-body { display: block; padding: 12px 16px; }

/* --- Galerie --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.gallery-grid a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.gallery-grid img {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
    transition: transform .2s;
}
.gallery-grid a:hover img { transform: scale(1.04); }
.photo-link-disabled {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: default;
    opacity: .55;
}

/* --- Kronika --- */
.book-list { display: flex; flex-direction: column; gap: 14px; }
.book-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--parchment);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px 26px;
    text-decoration: none;
    color: var(--ink);
}
.book-list a:hover { border-color: var(--forest); }
.book-list .book-title { font-family: 'Fraunces', serif; font-weight: 700; font-size: 18px; color: var(--bark-dark); }
.book-list .book-count { color: var(--muted); font-size: 13px; }

/* --- Kronika: příspěvky (blog) --- */
.kronika-post {
    background: var(--parchment);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 22px;
}

.kronika-post-image {
    display: block;
    background: #eee6d0;
    text-align: center;
}
.kronika-post-image img {
    width: auto;
    max-width: 100%;
    max-height: 70vh;
    margin: 0 auto;
}

.year-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 22px;
}
.year-filter a {
    background: var(--parchment);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
}
.year-filter a.active { background: var(--forest); border-color: var(--forest); color: #fff; }
.year-filter a:hover:not(.active) { border-color: var(--forest); }

.kronika-post-date {
    padding: 14px 28px 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
}

.kronika-post-text {
    padding: 24px 28px;
    font-family: 'Fraunces', serif;
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink);
}

@media (max-width: 600px) {
    .kronika-post-text { padding: 18px 20px; font-size: 16px; }
}

.kronika-post-album {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-top: 1px solid var(--border);
    text-decoration: none;
    color: var(--forest-dark);
    font-weight: 600;
    font-size: 14px;
    background: #f5f1e4;
}
.kronika-post-album:hover { background: #efe9d6; }
.kronika-post-album-thumbs { display: flex; }
.kronika-post-album-thumbs img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--parchment);
    margin-left: -10px;
}
.kronika-post-album-thumbs img:first-child { margin-left: 0; }

/* Lightbox pro kroniku i galerii */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20,16,10,.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 6px; }
.lightbox-nav {
    position: absolute;
    top: 0; bottom: 0;
    display: flex;
    align-items: center;
    width: 15%;
    cursor: pointer;
    color: rgba(255,255,255,.6);
    font-size: 40px;
    background: none;
    border: none;
}
.lightbox-nav.prev { left: 0; justify-content: flex-start; padding-left: 10px; }
.lightbox-nav.next { right: 0; justify-content: flex-end; padding-right: 10px; }
.lightbox-nav:hover { color: #fff; }
.lightbox-close {
    position: absolute;
    top: 16px; right: 20px;
    color: #fff;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}
.lightbox-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.75);
    font-size: 13px;
}
.lightbox-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80vw;
    color: #fff;
    font-size: 14px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.lightbox-caption[hidden] { display: none; }

/* --- Kapela --- */
.kapela-members { columns: 2; gap: 24px; padding: 0; margin: 0 0 20px; list-style: none; }
.kapela-members li { font-style: italic; margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 500px) { .kapela-members { columns: 1; } }

.kapela-media { display: flex; gap: 24px; flex-wrap: wrap; margin: 20px 0; }
.kapela-media img { max-height: 70px; width: auto; }

/* --- Kontakty --- */
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--parchment);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--ink);
}
.contact-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }

/* --- Patička --- */
.site-footer {
    background: var(--bark-dark);
    color: #d8cdb8;
    text-align: center;
    font-size: 13px;
    padding: 18px;
}
.site-footer a { color: #efe4c8; }
.site-footer .sep { margin: 0 8px; opacity: .5; }
