/* klucon.cz – hlavní stránka (návrh 2: světlý redakční styl, bento mřížka). Autor: Ondřej Klučka */
:root {
  --bg: #f6f3ee; --paper: #ffffff; --ink: #16130f; --muted: #6b6359; --line: #e4ddd2;
  --accent: #e2531f; --accent-ink: #ffffff; --dark: #14161c; --dark-ink: #f1ede6;
  --radius: 22px; --shadow: 0 1px 2px rgba(22, 19, 15, 0.06), 0 12px 32px rgba(22, 19, 15, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121212; --paper: #1c1b19; --ink: #f1ede6; --muted: #a59d92; --line: #2e2b27; --accent: #ff6a33; --dark: #0a0a0b; --shadow: 0 12px 32px rgba(0, 0, 0, 0.4); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
main, .bar, .foot { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.bar { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { font-weight: 800; font-size: 21px; text-decoration: none; letter-spacing: -0.02em; }
.logo b { color: var(--accent); }
.bar nav { display: flex; gap: 4px; }
.bar nav:first-of-type { margin-left: auto; }
.bar nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 999px; }
.bar nav a:hover, .bar nav a:focus-visible, .lang a[aria-current] { color: var(--ink); background: var(--paper); outline: none; }
.lang { border-left: 1px solid var(--line); padding-left: 12px; }

.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 48px 0 80px; }
.eyebrow { margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
h1 { margin: 0 0 22px; font-size: clamp(40px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.04em; font-weight: 800; text-wrap: balance; }
.lead { margin: 0; font-size: 19px; color: var(--muted); max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(226, 83, 31, 0.3); outline: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover, .btn.ghost:focus-visible { border-color: var(--ink); box-shadow: none; }
.intro-shot { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(22, 19, 15, 0.25); transform: rotate(-1.2deg); background: var(--dark); }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.tile { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--dark); color: var(--dark-ink); box-shadow: var(--shadow); }
.tile-text { padding: 28px 28px 20px; }
.tile picture { margin-top: auto; padding: 0 20px; }
.tile picture img { border-radius: 12px 12px 0 0; }
.tile.wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: end; }
.tile.wide .tile-text { align-self: center; padding-bottom: 28px; }
.tile.wide picture { padding: 28px 0 0; }
.tile.wide picture img { border-radius: 12px 0 0 0; }
.tile.tv picture { padding: 20px; }
.tile.wide.tv { align-items: center; }
.tile.tv picture img { border-radius: 10px; border: 6px solid #000; box-shadow: 0 0 0 1px #2c2c30; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.tile h2 { margin: 8px 0 10px; font-size: 25px; line-height: 1.15; letter-spacing: -0.02em; }
.tile p { margin: 0; color: #b4ada3; font-size: 16px; }
.soon { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; padding: 3px 11px; border-radius: 999px; border: 1px solid #4a4640; color: #d9d2c7; }
.tile.facts { background: var(--accent); color: var(--accent-ink); padding: 28px; justify-content: center; }
.tile.facts .tag { color: rgba(255, 255, 255, 0.8); }
.tile.facts ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; font-size: 17px; line-height: 1.35; }
.tile.facts strong { display: block; font-size: 20px; }

.more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin: 0 0 20px; }
.proj { display: flex; gap: 22px; align-items: center; padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.proj:hover, .proj:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); outline: none; }
.proj picture { flex: 0 0 42%; }
.proj picture img { border-radius: 12px; border: 1px solid var(--line); }
.proj-icon { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--dark); }
.proj-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.proj h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em; }
.proj p { margin: 0 0 10px; color: var(--muted); font-size: 15.5px; }
.go { font-weight: 700; font-size: 15px; color: var(--accent); }

/* Banner na podporu vývoje – povinný na každé stránce nad patičkou */
.support { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 40px; padding: 28px 32px; border-radius: var(--radius); background: var(--paper); border: 1.5px dashed var(--accent); }
.support strong { display: block; font-size: 20px; margin-bottom: 4px; }
.support span { color: var(--muted); }
.support div { flex: 1; min-width: 240px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px 24px 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot a { color: var(--muted); }

@media (max-width: 900px) {
  .bar nav:first-of-type { display: none; }
  .lang { margin-left: auto; border: 0; }
  .intro { grid-template-columns: 1fr; gap: 36px; padding: 24px 0 56px; }
  .intro-shot { transform: none; }
  .bento, .more { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; grid-template-columns: 1fr; }
  .tile.wide picture { padding: 0 0 0 20px; }
  .proj { flex-direction: column; align-items: stretch; }
  .proj-icon { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .proj { transition: none; } }

/* Stránka Lumaframe Server – řádky funkcí se skutečnými snímky */
.eyebrow a { color: inherit; }
.soon.dark { margin: 0; align-self: center; border-color: var(--line); color: var(--muted); }
.lf-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 40px; margin-bottom: 20px; border-radius: var(--radius); background: var(--dark); color: var(--dark-ink); box-shadow: var(--shadow); }
.lf-row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.lf-row.flip .lf-text { order: 2; }
.lf-text h2 { margin: 8px 0 12px; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.lf-row .lf-text p, .lf-devices .lf-text p { margin: 0 0 18px; color: #b4ada3; }
.lf-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15.5px; }
.lf-list li { position: relative; padding-left: 22px; }
.lf-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.lf-shots { display: grid; gap: 14px; }
.lf-shots.n2 { display: block; position: relative; padding-bottom: 4%; }
.lf-shots.n2 .lf-shot:first-child { width: 86%; }
.lf-shots.n2 .lf-shot:last-child { width: 58%; margin: -24% 0 0 auto; position: relative; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.7); }
.lf-shot { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.45); }
.lf-devices { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 5fr); gap: 36px; align-items: center; padding: 40px; margin-bottom: 20px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); }
.lf-devices .tag { color: rgba(255, 255, 255, 0.8); }
.lf-devices .lf-text p { color: rgba(255, 255, 255, 0.88); }
.lf-phone { margin: 0; border-radius: 26px; overflow: hidden; border: 6px solid #0a0a0b; box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35); max-width: 230px; justify-self: center; }
.lf-tv { border: 7px solid #0a0a0b; border-radius: 12px; }
.lf-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 12px; }
.lf-facts div { padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.lf-facts strong { display: block; font-size: 18px; margin-bottom: 4px; }
.lf-facts span { color: var(--muted); font-size: 15px; }
.lf-note { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .lf-row, .lf-row.flip, .lf-devices { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px; }
  .lf-row.flip .lf-text { order: 0; }
  .lf-shots.n2 .lf-shot:first-child { width: 92%; }
  .lf-shots.n2 .lf-shot:last-child { width: 70%; margin-top: -18%; }
  .lf-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .lf-facts { grid-template-columns: 1fr; } }

/* repo.klucon.cz – úložiště doplňků (stránku sestavuje tools/build-repo.py z katalogu) */
.rp-intro { max-width: 760px; padding: 40px 0 56px; }
.rp-streamlet { border-radius: var(--radius); background: var(--dark); color: var(--dark-ink); padding: 32px; box-shadow: var(--shadow); }
.rp-streamlet ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 12px; }
.rp-url { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.rp-url code, .rp-small code { font: 14px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); overflow-wrap: anywhere; min-width: 0; }
.rp-small code { padding: 1px 6px; font-size: 13px; }
.rp-copy { font: 600 13px/1 inherit; font-family: inherit; padding: 8px 12px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.rp-copy:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rp-small { margin: 18px 0 0; font-size: 14px; color: #b4ada3; }
.rp-group { margin-bottom: 56px; }
.rp-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 18px; }
.rp-group-head h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; }
.rp-group-head p { margin: 0; color: var(--muted); }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.rp-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.rp-head { display: flex; align-items: center; gap: 14px; }
.rp-head .proj-icon { width: 48px; height: 48px; border-radius: 14px; }
.rp-head .proj-icon svg { width: 24px; height: 24px; }
.rp-card h3 { margin: 0; font-size: 20px; line-height: 1.2; }
.rp-ver { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.rp-card > p { margin: 0; color: var(--muted); font-size: 15.5px; }
.rp-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-card .tags span { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.rp-news { font-size: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.rp-news summary { cursor: pointer; font-weight: 600; }
.rp-news ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); display: grid; gap: 4px; }
.rp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; }
.rp-dl { display: inline-flex; padding: 9px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.rp-dl:hover, .rp-dl:focus-visible { box-shadow: 0 8px 20px rgba(226, 83, 31, 0.3); outline: none; }
.rp-sha { font: 12px ui-monospace, Menlo, monospace; color: var(--muted); }
.rp-builtin { font-size: 14px; font-weight: 600; color: var(--muted); }
.rp-streamlet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-bottom: 20px; background: var(--accent); color: var(--accent-ink); }
.rp-streamlet .tag { color: rgba(255, 255, 255, 0.85); }
.rp-streamlet h2 { margin: 8px 0 12px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; }
.rp-streamlet p { margin: 0 0 12px; }
.rp-streamlet .rp-small { color: rgba(255, 255, 255, 0.85); }
.rp-streamlet .rp-url code { background: rgba(0, 0, 0, 0.2); }
.rp-streamlet .rp-copy { background: #fff; color: #16130f; }
@media (max-width: 900px) {
  .rp-streamlet { grid-template-columns: 1fr; gap: 28px; }
  .rp-intro { padding-top: 16px; }
  .rp-streamlet { padding: 24px 20px; }
  .rp-grid { grid-template-columns: 1fr; }
}
