:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #18251d;
  background: #faf9f5;
  line-height: 1.55;
  --forest: #172e23;
  --paper: #faf9f5;
  --muted: #4a594d;
  --gold: #f2cc70;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible, button:focus-visible { outline: 3px solid #ab6d00; outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; transform: translateY(-130%); background: white; padding: .6rem; z-index: 3; }
.skip:focus { transform: none; }
.top { background: var(--paper); }
.header, .foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header { min-height: 82px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 1.18rem; font-weight: 750; line-height: 1.1; white-space: nowrap; }
.brand small { display: block; font-size: .55rem; letter-spacing: .1em; margin-top: 5px; }
.mark { width: 35px; height: 46px; object-fit: contain; }
.header nav, .foot nav { display: flex; gap: clamp(13px, 2.1vw, 30px); flex-wrap: wrap; }
.header nav a, .join { font-size: .89rem; font-weight: 650; text-decoration: none; }
.header nav a:hover, .header nav a[aria-current] { text-decoration: underline; }
.join, .button { display: inline-flex; align-items: center; gap: .65em; border-radius: 999px; white-space: nowrap; }
.join { padding: .62rem 1rem; background: #e8eee5; }
.join:hover { background: #dbe7d9; }
.hero {
  position: relative;
  margin: 0 clamp(12px, 2.2vw, 40px);
  min-height: clamp(510px, 67vw, 690px);
  display: grid;
  align-items: center;
  color: #fffdf5;
  border-radius: clamp(20px, 3vw, 46px);
  background: linear-gradient(90deg, #10231be8 0%, #10231b9c 42%, #10231b12 83%), url("./hero.webp") 58% 58% / cover #1e3c2c;
  overflow: hidden;
}
.herotext { padding-block: clamp(60px, 9vw, 110px); max-width: 680px; }
.kicker, .meta { text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 760; }
.kicker { color: #fce1a3; margin: 0 0 1.3rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -.045em; }
.hero h1 { font-size: clamp(3.7rem, 8.2vw, 7.55rem); margin-bottom: .19em; font-weight: 750; }
.hero h1 em { color: #ffdda0; font-style: normal; }
.hero p:not(.kicker) { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 32ch; color: #f5f2e7; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 20px; margin-top: 1.8rem; }
.button { background: var(--gold); color: #1d291f; padding: .78rem 1.14rem; font-size: .93rem; font-weight: 750; text-decoration: none; }
.button:hover { background: #ffe3a1; }
.quiet { font-weight: 650; font-size: .95rem; text-decoration: none; }
.quiet:hover, .text-link:hover { text-decoration: underline; }
.section { padding-block: clamp(42px, 7vw, 88px); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 25px; }
.section-title h2 { margin: 0; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.7rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.65rem); margin-bottom: .5rem; }
.text-link { color: #24533b; font-weight: 750; text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.card, .empty, .gallery-fallback { border: 1px solid #e6e7de; border-radius: 23px; background: #fffefa; }
.card { position: relative; overflow: hidden; }
.card > div:not(.archive-image), .empty, .gallery-fallback { padding: clamp(17px, 2.3vw, 28px); }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.archive-card h3 a::after { position: absolute; inset: 0; content: ""; }
.archive-card:focus-within { outline: 3px solid #ab6d00; outline-offset: 4px; }
.card img, .album img, .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.meta { color: #52644d; margin-bottom: .7rem; }
.card p:last-child { margin-bottom: 0; }
.archive-image { display: block; aspect-ratio: 1.73; background-color: #283f30; background-position: center; background-size: cover; }
.archive-image.susreti { background-image: url("./susreti.webp"), linear-gradient(145deg, #334e3b, #749071); }
.archive-image.vjestine { background-image: url("./vjestine.webp"), linear-gradient(145deg, #404c38, #9b9267); }
.archive-image.banjaluka { background-image: url("./banjaluka.webp"), linear-gradient(145deg, #253c3b, #667f6d); }
.empty { color: var(--muted); }
.sand { background: #edf0e8; }
.activity-section { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(25px, 8vw, 114px); align-items: start; }
.activity-intro h2 { margin-bottom: .45em; }
.activity-intro p, .tile p { color: var(--muted); }
.activities { border-top: 1px solid #c9d2c5; }
.tile { padding: 19px 0; border-bottom: 1px solid #c9d2c5; }
.tile p { margin-bottom: 0; }
.join-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(24px, 6vw, 64px); background: var(--forest); color: #fffdf5; border-radius: 30px; }
.join-panel h2 { margin-bottom: .35em; }
.join-panel p { margin-bottom: 0; color: #e0e8dc; }
.pagehead { margin-inline: clamp(12px, 2.2vw, 40px); border-radius: 30px; background: var(--forest); color: #fffdf5; padding: clamp(46px, 8vw, 100px) 0; }
.pagehead h1 { font-size: clamp(2.75rem, 7vw, 6rem); margin: 0; }
.pagehead p { color: #e0e8dc; margin: .85rem 0 0; font-size: 1.14rem; }
.prose { max-width: 790px; padding-block: 2.5rem 3.5rem; overflow-wrap: anywhere; }
.prose p { max-width: 68ch; }
.prose h2 { font-size: 1.85rem; }
.album + .album { margin-top: 2rem; }
figure { margin: 0; }
figure img, .post img { border-radius: 12px; }
figcaption { padding: .35rem 0; font-size: .86rem; color: var(--muted); }
footer { background: #14291f; color: #f8f4e8; }
.foot { padding-block: 2rem; }
.foot p { margin: .3rem 0 0; }
.foot nav { font-size: .9rem; }
.retry { border: 0; font: inherit; cursor: pointer; margin-inline-start: .4rem; }
.pagination { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; font-weight: 700; }
.post { padding-top: 0; }
.post img, .post figure { margin-block: 1rem; }
.post .gallery img { margin-block: 0; }
.lead { font-size: clamp(1.2rem, 2.4vw, 1.65rem); max-width: 48ch; letter-spacing: -.02em; line-height: 1.35; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid #c9d2c5; }
.stats dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 760; color: var(--muted); }
.stats dd { margin: .2rem 0 0; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 750; letter-spacing: -.04em; color: var(--forest); }
.timeline { list-style: none; padding: 0; margin: 1.2rem 0; border-left: 3px solid var(--gold); }
.timeline li { padding: .25rem 0 1rem 1.2rem; }
.timeline strong { display: block; color: var(--forest); }
details { border-bottom: 1px solid #d8dccf; padding: .8rem 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: .6rem 0 0; color: var(--muted); }
@media (max-width: 800px) {
  .header { min-height: 0; flex-wrap: wrap; padding-block: 12px; gap: 10px; }
  .header nav { order: 3; width: 100%; border-top: 1px solid #e1e4dc; padding-top: 9px; }
  .hero { background-position: 62% center; }
}
@media (max-width: 570px) {
  .wrap { width: calc(100% - 32px); }
  .hero { min-height: 500px; align-items: end; background-image: linear-gradient(0deg, #10231bf5 0%, #10231bc4 40%, #10231b1c 100%), url("./hero.webp"); }
  .hero h1 { font-size: clamp(2.75rem, 12vw, 4rem); }
  .herotext { padding-block: 76px 35px; }
  .grid, .activity-section { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 14px; }
  .section-title { align-items: flex-start; }
  .section-title .text-link { white-space: nowrap; font-size: .86rem; }
  .join-panel, .foot { align-items: flex-start; flex-direction: column; }
}

.story, .where { max-width: 68ch; margin-top: 2rem; padding: clamp(17px, 2.3vw, 28px); border: 1px solid #e6e7de; border-radius: 23px; background: #fffefa; }
.story h3, .where h3 { margin-bottom: .6rem; }
.story p:last-child, .where p:last-child, .follow { margin-bottom: 0; }
.sub { margin: 2.2rem 0 1rem; }
.gallery-fallback p { margin-bottom: .6rem; }
