/* =========================================================
   Naše Plánicko — stylopis
   Barvy: oranžová #EF7D38 + žlutá #FFD21E + bílá + tmavá
   Písma: Anton (velké verzálky) · Barlow Condensed (mezinadpisy) · Barlow (text)
   ========================================================= */

:root {
  --orange:      #ef7d38;
  --orange-deep: #d8621c;
  --yellow:      #ffd21e;
  --ink:         #211a13;
  --ink-soft:    #5b5147;
  --paper:       #ffffff;
  --paper-2:     #faf6f0;
  --line:        #ece4d9;
  --dark:        #262019;
  --dark-2:      #322a20;

  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --wrap: 70rem;
  --prose: 42rem;
  --radius: 6px;
  --shadow: 0 2px 6px rgba(33, 26, 19, 0.07), 0 14px 34px rgba(33, 26, 19, 0.09);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--orange-deep); text-underline-offset: 2px; }
a:hover { color: var(--orange); }

h1, h2, h3 { line-height: 1.05; }

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

/* ---------- Přístupnost ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--orange); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }

/* ---------- Masthead ---------- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; padding-block: 0.85rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__badge {
  flex: none; width: 2.4rem; height: 2.4rem; border-radius: 7px; background: var(--orange);
  color: #fff; font-family: var(--font-display); font-size: 1.4rem; display: grid; place-items: center;
  line-height: 1; box-shadow: 0 2px 0 var(--orange-deep);
}

.brand__badge__nobadge {
  flex: none; width: 6.4rem; height: 6.4rem; border-radius: 7px; 
  color: #fff; font-family: var(--font-display); font-size: 1.4rem; display: grid; place-items: center;
  line-height: 1; 
}

.brand__badge span { color: var(--yellow); }
.brand__text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.01em; color: var(--ink); text-transform: uppercase; }
.brand__sub { font-family: var(--font-cond); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange-deep); font-weight: 600; margin-top: 0.15rem; }

.nav { display: flex; align-items: center; gap: 0.2rem 1rem; flex-wrap: wrap; font-family: var(--font-cond); }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 0.03em; padding: 0.3rem 0.1rem; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--yellow); }
.nav__cta {
  background: var(--orange); color: #fff !important; border-radius: 999px;
  padding: 0.4rem 1.1rem !important; border-bottom: none !important;
}
.nav__cta:hover { background: var(--orange-deep); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dark); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(38,32,25,0.15) 0%, rgba(38,32,25,0.10) 40%, rgba(38,32,25,0.72) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  min-height: min(74vh, 40rem); display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: 4rem clamp(5rem, 9vw, 8rem);
}
.hero__eyebrow {
  font-family: var(--font-cond); font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--yellow); font-weight: 600; margin: 0 0 0.8rem;
}
.hero__title {
  font-family: var(--font-display); text-transform: uppercase; color: #fff;
  font-size: clamp(2.7rem, 8vw, 5.5rem); letter-spacing: 0.005em; margin: 0 0 1rem; max-width: 20ch;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero__title em { color: var(--yellow); font-style: normal; }
.hero__lead { color: #f3ece3; font-size: 1.2rem; max-width: 36rem; margin: 0 0 2rem; text-shadow: 0 1px 12px rgba(0,0,0,0.4); }
.hero__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }

/* Číslo kandidátky */
.ballot {
  position: absolute; z-index: 3; top: 1.6rem; right: 1.5rem;
  width: 4.6rem; height: 4.6rem; border-radius: 50%; background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.ballot__num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.ballot__label { display: none; }

/* bílý vlnitý předěl přes spodek fotky */
.wave { display: block; width: 100%; height: auto; }
.hero .wave { position: absolute; left: 0; bottom: -1px; z-index: 2; color: var(--paper); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-block; text-decoration: none; font-family: var(--font-cond); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.1rem;
  padding: 0.65rem 1.6rem; border-radius: 999px; transition: transform 0.12s ease, background 0.15s ease;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,0.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.55); }
.btn--ghost:hover { background: rgba(255,255,255,0.2); color: #fff; transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }

/* ---------- Sekce / nadpisy ---------- */
.section__title {
  font-family: var(--font-display); text-transform: uppercase; color: var(--ink);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem); letter-spacing: 0.01em; margin: 0 0 0.4rem;
}
.section__title--light { color: #fff; }
.section__lead { color: var(--ink-soft); font-size: 1.15rem; max-width: 40rem; margin: 0 0 2rem; }

/* ---------- Priority (3 pilíře) ---------- */
.pillars { padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 6vw, 4rem); }
.pillars__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.4rem; margin-top: 1.5rem; }
.pillar { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.7rem; border-top: 4px solid var(--orange); }
.pillar__title { font-family: var(--font-cond); text-transform: uppercase; font-weight: 700; letter-spacing: 0.02em; font-size: 1.5rem; color: var(--ink); margin: 0 0 0.5rem; }
.pillar p { margin: 0; color: var(--ink-soft); }

/* ---------- Souhvězdí obcí ---------- */
.constellation { background: var(--dark); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); }
.constellation__head { max-width: 40rem; }
.constellation__figure { margin: 2rem 0 0; }
.constellation svg { width: 100%; height: auto; display: block; }
.cst-edge { stroke: rgba(255,255,255,0.5); stroke-width: 2; }
.cst-dot { fill: var(--yellow); }
.cst-dot--hub { fill: var(--orange); stroke: var(--yellow); stroke-width: 3; }
.cst-label { font-family: var(--font-cond); font-weight: 600; text-transform: uppercase; fill: #fff; font-size: 15px; letter-spacing: 0.03em; }
.cst-label--hub { fill: var(--yellow); font-size: 19px; }

/* ---------- Foto pruh ---------- */
.band { position: relative; }
.band img { width: 100%; height: clamp(14rem, 30vw, 22rem); object-fit: cover; object-position: 50% 55%; }

/* ---------- Aktuality (vývěska) ---------- */
.home-news { padding-block: clamp(3rem, 7vw, 5rem); }
.home-news__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.link-more { font-family: var(--font-cond); text-transform: uppercase; font-weight: 600; letter-spacing: 0.03em; text-decoration: none; font-size: 1.05rem; }

.notice-list { display: flex; flex-direction: column; margin-top: 0.5rem; }
.notice { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.5rem; text-decoration: none; color: inherit; padding: 1.3rem 0; border-top: 1px solid var(--line); align-items: start; }
.notice:last-child { border-bottom: 1px solid var(--line); }
.notice:hover .notice__title { color: var(--orange-deep); }
.notice__date { font-family: var(--font-cond); font-size: 1rem; font-weight: 600; text-transform: uppercase; color: var(--orange-deep); padding-top: 0.2rem; border-left: 3px solid var(--yellow); padding-left: 0.9rem; }
.notice__title { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; letter-spacing: 0.01em; margin: 0 0 0.3rem; color: var(--ink); transition: color 0.15s ease; }
.notice__perex { margin: 0; color: var(--ink-soft); }

/* ---------- Obsahové stránky ---------- */
.page__head, .post__head { padding-block: clamp(2.5rem, 6vw, 4rem) 1.4rem; }
.eyebrow { font-family: var(--font-cond); font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-deep); font-weight: 600; margin: 0 0 0.7rem; }
.eyebrow a { color: var(--orange-deep); text-decoration: none; }
.page__title, .post__title { font-family: var(--font-display); text-transform: uppercase; color: var(--ink); font-size: clamp(2.2rem, 5.5vw, 3.4rem); letter-spacing: 0.01em; margin: 0; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: var(--prose); margin: 1rem 0 0; }
.post__date { font-family: var(--font-cond); display: inline-block; margin-top: 0.8rem; font-weight: 600; text-transform: uppercase; color: var(--orange-deep); font-size: 1.05rem; }

.prose { max-width: var(--prose); padding-bottom: clamp(3rem, 7vw, 5rem); }
.prose h2 { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; font-size: 1.7rem; color: var(--ink); margin: 2.2rem 0 0.7rem; }
.prose h3 { font-family: var(--font-cond); font-weight: 700; font-size: 1.35rem; color: var(--ink); margin: 1.6rem 0 0.5rem; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--ink); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.2rem 0; }
.prose a { font-weight: 600; }

/* ---------- Lidé ---------- */
.people { list-style: none; margin: 0 0 clamp(3rem, 7vw, 5rem); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: 1.1rem; }
.person { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; border-left: 4px solid var(--orange); }
.person__figure { position: relative; width: 5.5rem; height: 5.5rem; flex: none; }
.person__photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--orange); background: var(--line); }
.person__fallback { width: 100%; height: 100%; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.person__order { position: absolute; bottom: -3px; right: -3px; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; display: grid; place-items: center; border: 2px solid var(--paper-2); }
.person__name { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; font-size: 1.45rem; margin: 0; color: var(--ink); line-height: 1.05; }
.person__role { font-family: var(--font-cond); margin: 0.1rem 0 0.5rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--orange-deep); font-weight: 600; }
.person__bio { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Dokumenty ---------- */
.docs { list-style: none; margin: 0 0 clamp(3rem, 7vw, 5rem); padding: 0; display: grid; gap: 0.8rem; }
.doc__link { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.4rem; text-decoration: none; color: inherit; transition: border-color 0.15s ease, transform 0.12s ease; }
.doc__link:hover { border-color: var(--orange); transform: translateY(-1px); }
.doc__type { font-family: var(--font-cond); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; color: #fff; background: var(--orange); padding: 0.3rem 0.6rem; border-radius: 4px; }
.doc__name { display: block; font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; color: var(--ink); font-size: 1.25rem; }
.doc__desc { display: block; color: var(--ink-soft); font-size: 0.98rem; }
.doc__action { font-family: var(--font-cond); font-weight: 600; text-transform: uppercase; color: var(--orange-deep); white-space: nowrap; }

.empty { color: var(--ink-soft); padding: 2rem 0; }

/* ---------- Patička ---------- */
.footer { background: var(--dark); color: #d7cdbf; }
.footer a { color: #fff; }
.footer a:hover { color: var(--yellow); }
.footer__villages { border-bottom: 1px solid rgba(255,255,255,0.1); padding-block: 1.4rem; }
.footer__villages ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; font-size: 0.95rem; color: #b6a894; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-block: 2.6rem 2rem; }
.footer__name { font-family: var(--font-display); text-transform: uppercase; font-size: 1.6rem; color: #fff; margin: 0 0 0.4rem; }
.footer__label { font-family: var(--font-cond); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--yellow); margin: 0 0 0.4rem; font-weight: 600; }
.footer__muted { color: #a3937e; font-size: 0.92rem; margin: 0.2rem 0; }
.footer__links { display: flex; flex-direction: column; gap: 0.5rem; font-family: var(--font-cond); text-transform: uppercase; font-weight: 600; }
.footer__links a { text-decoration: none; }
.footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.12); padding-block: 1.2rem; font-size: 0.88rem; }
.footer__base p { margin: 0; }

/* ---------- Responzivita ---------- */
@media (max-width: 44rem) {
  .masthead { position: static; }
  .masthead__inner { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .nav { gap: 0.1rem 0.8rem; }
  .notice { grid-template-columns: 1fr; gap: 0.4rem; }
  .notice__date { border-left: none; border-top: 3px solid var(--yellow); padding-left: 0; padding-top: 0.5rem; display: inline-block; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .ballot { width: 3.6rem; height: 3.6rem; top: 1rem; right: 1rem; }
  .ballot__num { font-size: 2rem; }
  .cst-label { font-size: 20px; }
  .cst-label--hub { font-size: 24px; }
}

/* ---------- Ohleduplnost k pohybu ---------- */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
