/* Skautský oddíl Lažánky
   Barvy: přírodní zelená „tón v tónu“ podle krajiny z odznaku (doporučení skautského vizuálního stylu),
   modrá a žlutá z odznaku jen jako drobné akcenty. Žádná černá – nejtmavší je tmavě zelená.
   Tvary: oblé, organické („oblázky“). Typy akcí: barvy turistických značek. */

:root {
  --meadow: #f1f5ea;     /* pozadí */
  --paper: #fdfefb;      /* plochy */
  --ink: #1b3123;        /* text – tmavá zelená místo černé */
  --forest: #2e6a3c;     /* odkazy, tlačítka */
  --forest-dark: #1f4e2c;
  --moss: #93b77e;       /* střední zelená z kopců */
  --sage: #dde9cf;       /* světlá zelená */
  --night: #1e3a28;      /* patička */
  --line: #d3dfc8;
  --muted: #56685a;

  /* akcenty z odznaku */
  --badge-blue: #1e4f9f;
  --badge-yellow: #f2c230;

  /* barvy turistických značek KČT */
  --mark-red: #d12a2a;
  --mark-blue: #1f5fbf;
  --mark-green: #2e8b3e;
  --mark-yellow: #f2c230;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.65rem;
  --step-3: 2.1rem;
  --step-4: clamp(2.4rem, 5.5vw + 1rem, 4.1rem);

  /* oblázky – každý trochu jiný */
  --pebble-1: 44% 56% 52% 48% / 52% 44% 56% 48%;
  --pebble-2: 18px 26px 20px 28px / 24px 18px 28px 20px;
  --pebble-3: 14px 20px 16px 22px;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--meadow);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
}

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

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--forest-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--badge-blue); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: var(--step-3); font-weight: 800; }
h2 { font-size: var(--step-2); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; }

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

.skip-link { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip-link:focus { left: 0.5rem; }

.plain-list { list-style: none; margin: 0; padding: 0; }

/* --- Turistická značka (typ akce) ------------------------------------- */

.trail {
  --mark: var(--muted);
  display: inline-block;
  flex: none;
  width: 1.5em;
  height: 1em;
  vertical-align: -0.12em;
  margin-right: 0.45em;
  border: 1px solid rgb(27 49 35 / 0.2);
  border-radius: 2px;
  background: linear-gradient(#fff 0 33%, var(--mark) 33% 67%, #fff 67%);
}
.trail--schuzka { --mark: var(--mark-blue); }
.trail--vyprava { --mark: var(--mark-red); }
.trail--vikendovka { --mark: var(--mark-green); }
.trail--tabor { --mark: var(--mark-yellow); }
.trail--jine { /* místní značka: bílý čtverec s úhlopříčkou */
  width: 1em;
  background: linear-gradient(135deg, #fff 0 38%, var(--mark-green) 38% 62%, #fff 62%);
}

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin: 1rem 0 0; padding: 0; color: var(--muted); font-size: var(--step--1); }
.legend li { display: inline-flex; align-items: center; }

/* --- Hlavička ----------------------------------------------------------- */

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand__logo { width: 56px; height: 56px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); line-height: 1.1; }
.brand__tagline { font-size: var(--step--1); color: var(--muted); }

.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.main-nav a:hover { background: var(--sage); }
.main-nav a[aria-current="page"] { background: var(--forest); color: #fff; }

/* --- Obecné bloky ------------------------------------------------------- */

main { flex: 1; padding-bottom: 3rem; }

.page-head { padding-block: 2.5rem 1.25rem; max-width: 50rem; }
.page-head__meta { color: var(--muted); }
.lead { font-size: var(--step-1); line-height: 1.45; max-width: 40em; }
.lead p:last-child { margin-bottom: 0; }
.back { margin-bottom: 1rem; font-size: var(--step--1); }

.section { padding-block: 2.5rem 0.5rem; }
.section__title { font-size: var(--step-2); }

.prose { max-width: 42rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: 0.3em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1rem; border-left: 4px solid var(--moss); font-size: var(--step-1); }
.body-image { margin: 1.5rem 0; }
.body-image img { border-radius: var(--pebble-2); }

.highlight {
  background: var(--sage);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
  border-radius: var(--pebble-2);
}
.prose .highlight__title, .highlight__title { font-size: var(--step-1); margin-top: 0; }
.highlight ul { columns: 2 14rem; column-gap: 2rem; margin: 0; padding-left: 1.1em; }
.highlight li { break-inside: avoid; }
.highlight li::marker { color: var(--forest); }

.button {
  display: inline-block;
  background: var(--forest);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 2px solid var(--forest);
}
.button:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: #fff; }
.button--ghost { background: transparent; color: var(--forest); }
.button--ghost:hover { background: var(--paper); color: var(--forest-dark); }

.badge {
  display: inline-block;
  font-size: var(--step--1);
  background: var(--badge-yellow);
  color: var(--ink);
  padding: 0 0.5em;
  border-radius: 999px;
}

/* --- Úvod: odznak ------------------------------------------------------- */

.hero { background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__grid {
  display: grid;
  gap: 2rem;
  padding-block: 2.5rem 3rem;
  align-items: center;
}
.hero__title { font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.02em; max-width: 12ch; }
.hero__lead { font-size: var(--step-1); max-width: 32em; }
.hero__meetings {
  display: inline-block;
  font-weight: 600;
  background: var(--sage);
  padding: 0.4rem 0.9rem;
  border-radius: var(--pebble-3);
  text-wrap: balance;
}

.hero__visual { position: relative; justify-self: center; width: min(80%, 17rem); }
/* oblázek za odznakem */
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 6% -7% -5% 3%;
  background: var(--sage);
  border-radius: var(--pebble-1);
}
.hero__badge {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgb(30 58 40 / 0.22));
  animation: badge-in 700ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.hero__photo { position: relative; width: 100%; aspect-ratio: 9 / 7; object-fit: cover; border-radius: var(--pebble-1); }
.hero__badge--small { position: absolute; width: 38%; left: -6%; bottom: -8%; }

@keyframes badge-in {
  from { opacity: 0; transform: rotate(-12deg) scale(0.85); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 52rem) {
  .hero__grid { grid-template-columns: 1.25fr 1fr; padding-block: 3.5rem 4rem; }
  .hero__visual { justify-self: end; width: min(100%, 24rem); }
}

/* --- Akce ---------------------------------------------------------------- */

.event-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.event-row {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.event-row:first-child { border-top: 1px solid var(--line); }
.event-row.is-draft { opacity: 0.6; }
.event-row__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--pebble-2);
  padding-block: 0.45rem;
  align-self: start;
}
.event-row:nth-child(even) .event-row__date { border-radius: var(--pebble-3); }
.event-row__day { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1; }
.event-row__month { font-size: var(--step--1); color: var(--muted); }
.event-row__title { font-size: var(--step-1); margin-bottom: 0.25rem; }
.event-row__title a { color: var(--ink); text-decoration: none; }
.event-row__title a:hover { text-decoration: underline; }
.event-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; margin: 0; color: var(--muted); }
.kind { display: inline-flex; align-items: center; }
.event-list--past .event-row__date { background: transparent; }

.month-title { font-size: var(--step-1); margin-top: 1.75rem; color: var(--muted); }
.month-title:first-child { margin-top: 0; }

.past-events { margin-top: 2rem; }
.past-events summary { cursor: pointer; font-weight: 600; margin-bottom: 1rem; }

.calendar-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60rem) {
  .calendar-layout { grid-template-columns: 1fr 22rem; }
  .subscribe { position: sticky; top: 1.5rem; }
}

.subscribe {
  background: var(--sage);
  border-radius: var(--pebble-2);
  padding: 1.4rem 1.4rem 0.9rem;
}
.subscribe h2 { font-size: var(--step-1); }
.subscribe details { border-top: 1px solid rgb(27 49 35 / 0.14); padding-block: 0.6rem; }
.subscribe summary { cursor: pointer; font-weight: 600; }
.subscribe ol { padding-left: 1.2em; }
.subscribe .note { font-size: var(--step--1); color: var(--muted); }
.copy-field { width: 100%; font: inherit; font-size: var(--step--1); padding: 0.4rem 0.5rem; margin-top: 0.25rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }

.event-detail { padding-top: 2rem; max-width: 46rem; }
.event-detail__kind { display: flex; align-items: center; font-weight: 600; color: var(--muted); margin-bottom: 0.5rem; }
.facts { display: grid; gap: 0.5rem; margin: 1.5rem 0; padding: 1.1rem 1.4rem; background: var(--paper); border-radius: var(--pebble-2); border: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; }
.facts dt { font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.bring { margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--sage); border-radius: var(--pebble-3); }
.bring h2 { font-size: var(--step-1); }
.bring .prose > :last-child { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 2rem; }

/* --- Galerie ------------------------------------------------------------ */

.album-grid {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1.75rem 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.album-tile a { display: block; text-decoration: none; color: var(--ink); }
.album-tile img, .album-tile__empty {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--pebble-2);
  background: var(--sage);
  display: block;
}
.album-tile:nth-child(3n + 2) img { border-radius: var(--pebble-3); }
.album-tile__title { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); margin-top: 0.65rem; line-height: 1.2; }
.album-tile__date { display: block; color: var(--muted); font-size: var(--step--1); }
.album-tile a:hover .album-tile__title { text-decoration: underline; }

.photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
}
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(22 38 28 / 0.97);
  color: #fff;
}
.lightbox::backdrop { background: rgb(22 38 28 / 0.97); }
.lightbox__figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 0.5rem 1rem; }
.lightbox__figure img { max-height: calc(100dvh - 5rem); max-width: 100%; object-fit: contain; }
.lightbox__figure figcaption { margin-top: 0.5rem; font-size: var(--step--1); opacity: 0.8; }
.lightbox__btn {
  position: absolute;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox__btn:hover { background: rgb(255 255 255 / 0.25); }
.lightbox__close { top: 0.75rem; right: 0.75rem; }
.lightbox__prev { left: 0.75rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 0.75rem; top: 50%; translate: 0 -50%; }

/* --- Kontakty ----------------------------------------------------------- */

.contact-list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.contact {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--pebble-2);
  padding: 1.25rem 1.4rem;
}
.contact__photo { width: 80px; height: 80px; border-radius: var(--pebble-1); object-fit: cover; flex: none; }
.contact__name { font-size: var(--step-1); margin-bottom: 0.15rem; }
.contact__nick { font-weight: 500; color: var(--muted); }
.contact__role { color: var(--muted); margin-bottom: 0.5rem; }
.contact__links { list-style: none; margin: 0; padding: 0; font-weight: 600; }
.contact__links li { margin-bottom: 0.2rem; overflow-wrap: anywhere; }
.contact__note { font-size: var(--step--1); color: var(--muted); margin: 0.5rem 0 0; }

.section--contact .contact-list { max-width: 40rem; }

.contacts-layout { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .contacts-layout { grid-template-columns: 1.4fr 1fr; } }
.place { background: var(--sage); border-radius: var(--pebble-2); padding: 1.25rem 1.5rem 0.75rem; margin-bottom: 1.25rem; }
.place:nth-child(even) { border-radius: var(--pebble-3); }
.place h2 { font-size: var(--step-1); }
.place p { margin-bottom: 0.4em; }

/* --- Patička s krajinou ------------------------------------------------- */

.site-footer { color: #e3ece0; font-size: var(--step--1); margin-top: 2rem; }
/* výška roste se šířkou ve stejném poměru jako viewBox (1440×140), takže se nahoře nic neusekne;
   na mobilu min. 90 px a krajina se ořízne zleva (preserveAspectRatio xMaxYMax slice) */
.landscape {
  display: block;
  width: 100%;
  height: max(90px, calc(100vw * 140 / 1440));
  margin-bottom: -1px; /* překryv, ať mezi krajinou a patičkou neprosvítá světlá linka (zlomky pixelů) */
  position: relative;
}
.site-footer__grid,
.site-footer__junak { background: var(--night); }
.site-footer > .wrap { max-width: none; padding-inline: max(1.25rem, calc((100% - var(--wrap)) / 2 + 1.25rem)); }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); padding-block: 1rem 2rem; margin: 0; }
.site-footer__grid p { margin-bottom: 0.4em; }
.site-footer__name { font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); color: #fff; }
.site-footer .plain-list li { margin-bottom: 0.4em; }
.site-footer__junak { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-block: 0.5rem 2rem; }
.site-footer__junak p { margin: 0; opacity: 0.8; }
/* oficiální logo na bílém podkladu, beze změn barev (pravidla vizuálního stylu) */
.junak-logo { display: inline-block; background: #fff; padding: 0.7rem 1rem; border-radius: var(--pebble-3); }
.junak-logo img { width: 140px; height: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
