/* Statické stránky těles (/mars/, /telesa/…) – vzhled Neon v malém: tmavé pozadí, Exo 2 (nadpisy), Inter (text), tyrkysové akcenty.
   Jeden sdílený soubor pro všechny stránky, bez JavaScriptu a bez cizích zdrojů. Stránky vyrábí tools/stranky.mjs;
   odkaz na tenhle soubor má ?v=<otisk obsahu>, doplní ho generátor. */

/* písma uložená u nás (SIL OFL 1.1), stejné soubory jako styles/fonts.css; k titulkům stačí Exo 2 italic, k textu Inter */
@font-face {
  font-family: 'Exo 2';
  font-style: italic;
  font-weight: 600 800;
  font-display: swap;
  src: url(../assets/fonts/exo2-italic-latin-ext-82ff76.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Exo 2';
  font-style: italic;
  font-weight: 600 800;
  font-display: swap;
  src: url(../assets/fonts/exo2-italic-latin-26a4dc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/inter-latin-ext-34b9c5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/inter-latin-3100e7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cyan: #1ee6f6;
  --cyan-hi: #8af7ff;
  --violet: #9b5cff;
  --ink: #031722;
  --bg: #05030f;
  --panel: rgba(10, 8, 36, 0.82);
  --line: rgba(30, 230, 246, 0.26);
  --text: #f1f7ff;
  --dim: #b3bfe3;
  --nadpis: 'Exo 2', 'Raleway', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  --pismo: 'Inter', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  --sirka: 62rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--pismo);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(110% 60% at 100% 0%, rgba(155, 92, 255, 0.14), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(30, 230, 246, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

a { color: var(--cyan-hi); text-underline-offset: 0.18em; }
a:hover { color: #fff; }
a:focus-visible, .tlacitko:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: rgba(30, 230, 246, 0.35); color: #fff; }

.preskocit {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.preskocit:focus { top: 0.75rem; }

/* ---------- hlavička ---------- */

.hlava {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  width: min(100% - 2rem, var(--sirka));
  margin: 0 auto;
  padding: 1rem 0 0.5rem;
}
.znacka {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
  color: var(--text);
}
.znacka strong {
  font-family: var(--nadpis);
  font-style: italic;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.znacka span { font-size: 0.8125rem; color: var(--dim); }
.hlava nav { display: flex; gap: 1.25rem; font-weight: 600; }
.hlava nav a { text-decoration: none; padding: 0.4rem 0; }
.hlava nav a:hover { text-decoration: underline; }

/* ---------- hlavní sloupec ---------- */

main {
  flex: 1 0 auto;
  width: min(100% - 2rem, var(--sirka));
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.drobky { font-size: 0.875rem; margin: 0.5rem 0 1rem; color: var(--dim); }
.drobky ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.drobky li + li::before { content: '›'; margin-right: 0.5rem; color: var(--line); }
.drobky a { color: var(--dim); }
.drobky a:hover { color: #fff; }
.drobky [aria-current] { color: var(--text); }

h1, h2, h3 {
  font-family: var(--nadpis);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0;
}
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; }
h2 {
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
h3 { font-size: 1.0625rem; color: var(--cyan-hi); margin-bottom: 0.35rem; }

p { margin: 0 0 1rem; }
.lead, .fakt p, .pozn-text { max-width: 70ch; }
.lead { font-size: 1.1875rem; }

/* ---------- úvod tělesa: nadpis, obrázek, text ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'nadpis' 'obraz' 'uvod';
  gap: 0.5rem 2rem;
  margin-bottom: 2.5rem;
}
.hero h1 { grid-area: nadpis; }
.podtitul { grid-area: nadpis; align-self: end; margin: 0; }
.hero .obraz { grid-area: obraz; }
.hero .uvod { grid-area: uvod; }
/* podtitul patří pod nadpis i bez další mřížky */
.hero { grid-template-rows: auto auto auto auto; grid-template-areas: 'nadpis' 'podtitul' 'obraz' 'uvod'; }
.podtitul { grid-area: podtitul; color: var(--dim); font-weight: 500; margin: 0.25rem 0 0.75rem; }

.obraz { margin: 0; }
.obraz img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  background: #000;
  border: 1px solid var(--line);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.obraz figcaption { font-size: 0.8125rem; color: var(--dim); margin-top: 0.4rem; }

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: 'obraz nadpis' 'obraz podtitul' 'obraz uvod';
    align-items: start;
  }
}

/* ---------- tlačítka a odkazy do aplikace ---------- */

.akce { margin: 1.25rem 0 0.75rem; }
.tlacitko {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-family: var(--nadpis);
  font-style: italic;
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), var(--cyan-hi));
  text-decoration: none;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  box-shadow: 0 0 24px rgba(30, 230, 246, 0.35);
}
.tlacitko:hover { color: var(--ink); background: linear-gradient(135deg, var(--cyan-hi), #fff); }
.vyzva { font-size: 0.9375rem; color: var(--dim); max-width: 60ch; }
.dalsi-odkazy { font-size: 0.9375rem; }
.dalsi-odkazy span { color: var(--dim); }

/* ---------- bloky ---------- */

.blok {
  margin: 0 0 2.25rem;
  padding: 1.1rem 1.25rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.udaje { width: 100%; border-collapse: collapse; }
.udaje th, .udaje td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid rgba(30, 230, 246, 0.12); }
.udaje tr:last-child th, .udaje tr:last-child td { border-bottom: 0; }
.udaje th { font-weight: 500; color: var(--dim); width: 28%; }
.udaje td { font-weight: 600; }
.udaje td.pozn { font-weight: 400; color: var(--dim); font-size: 0.9375rem; }

.fakt + .fakt { margin-top: 1.1rem; }
.fakt p:last-child { margin-bottom: 0; }

.seznam { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.6rem; }
.seznam a {
  display: block;
  height: 100%;
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(30, 230, 246, 0.04);
}
.seznam a:hover { border-color: var(--cyan); background: rgba(30, 230, 246, 0.1); }
.seznam strong { display: block; font-family: var(--nadpis); font-style: italic; font-size: 1.125rem; }
.seznam span { display: block; font-size: 0.875rem; color: var(--dim); }

.udalosti { margin: 0; display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 0.5rem 1.25rem; }
.udalosti dt { font-weight: 700; color: var(--cyan-hi); }
.udalosti dd { margin: 0; }

.sousedi { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.sousedi a {
  display: block;
  max-width: 48%;
  padding: 0.6rem 1rem;
  text-decoration: none;
  font-family: var(--nadpis);
  font-style: italic;
  font-weight: 700;
  font-size: 1.125rem;
  border: 1px solid var(--line);
  color: var(--text);
}
.sousedi a:hover { border-color: var(--cyan); }
.sousedi small { display: block; font-family: var(--pismo); font-style: normal; font-weight: 400; font-size: 0.8125rem; color: var(--dim); }
.sousedi .dalsi { margin-left: auto; text-align: right; }

/* ---------- přehled ---------- */

.prehled h1 { margin-bottom: 1rem; }
.prehled .blok { margin-top: 1.5rem; }
.kredity { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.kredity li { padding-top: 0.9rem; border-top: 1px solid rgba(30, 230, 246, 0.12); overflow-wrap: anywhere; }
.kredit-meta, .kredit-pozn { font-size: 0.875rem; color: var(--dim); }

/* ---------- patička ---------- */

.paticka {
  width: min(100% - 2rem, var(--sirka));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--dim);
}
.paticka p { max-width: 80ch; margin-bottom: 0.5rem; }

/* ---------- úzké obrazovky ---------- */

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .lead { font-size: 1.0625rem; }
  .udaje th { width: auto; }
  .udaje tr { display: grid; grid-template-columns: 1fr; padding: 0.5rem 0; border-bottom: 1px solid rgba(30, 230, 246, 0.12); }
  .udaje th, .udaje td { padding: 0; border: 0; }
  .udaje td.pozn:empty { display: none; }
  .udalosti { grid-template-columns: 1fr; gap: 0.15rem; }
  .udalosti dd { margin-bottom: 0.75rem; }
  .sousedi { flex-direction: column; }
  .sousedi a { max-width: none; }
  .sousedi .dalsi { margin-left: 0; text-align: left; }
  .blok { padding: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .seznam a, .sousedi a, .tlacitko { transition: border-color 0.15s, background-color 0.15s, color 0.15s; }
}
