/* Palezero – web (v0.235). Statická první verze; později klasický web. */
:root {
  --bg: #17120d;
  --bg2: #1f1912;
  --card: #261e15;
  --line: #3b2f22;
  --fg: #efe3cf;
  --muted: #b3a389;
  --sand: #d9a55b;
  --rust: #c0602c;
  --water: #5fb7b0;
  --max: 1120px;
  --r: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--font); }
img, svg { display: block; max-width: 100%; }
a { color: var(--sand); }
a:hover { color: #f0c27e; }
:focus-visible { outline: 2px solid var(--water); outline-offset: 3px; }

/* jazyky: obsah je v obou, CSS ukáže jen zvolený */
html[data-lang="en"] .cs, html[data-lang="cs"] .en { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* horní lišta */
.top { position: sticky; top: 0; z-index: 10; background: rgba(23, 18, 13, .88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; letter-spacing: .18em; font-size: 15px; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--fg); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.lang button { background: none; border: 0; color: var(--muted); font: 600 13px var(--font); padding: 6px 11px; cursor: pointer; min-height: 32px; }
html[data-lang="en"] .lang [data-set="en"], html[data-lang="cs"] .lang [data-set="cs"] { background: var(--sand); color: #1b140c; }
@media (max-width: 860px) { .nav { display: none; } .lang { margin-left: auto; } }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(#2b1d12, #6e3a1b 55%, #b8692e 78%, #d9a55b); }
.hero .scene { position: absolute; inset: auto 0 0 0; width: 100%; height: 62%; }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 240px; }
.kicker { text-transform: uppercase; letter-spacing: .22em; font-size: 13px; color: var(--sand); font-weight: 700; margin: 0 0 14px; }
.hero h1 { font-size: clamp(48px, 11vw, 112px); line-height: .95; margin: 0; letter-spacing: .06em; font-weight: 900; text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.hero .lead { font-size: clamp(19px, 2.6vw, 24px); max-width: 640px; margin: 22px 0 30px; color: #f6ead6; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid transparent; min-height: 48px; }
.btn.primary { background: var(--sand); color: #1b140c; }
.btn.primary:hover { background: #f0c27e; color: #1b140c; }
.btn.ghost { border-color: rgba(239, 227, 207, .45); color: var(--fg); }
.btn.ghost[aria-disabled="true"] { opacity: .7; cursor: default; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(95, 183, 176, .16); color: var(--water); }

/* sekce */
section.s { padding: 88px 0; border-bottom: 1px solid var(--line); }
section.s.alt { background: var(--bg2); }
.s h2 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 0 0 14px; letter-spacing: .01em; }
.s .intro { color: var(--muted); max-width: 720px; margin: 0 0 36px; font-size: 19px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.card .icon { width: 40px; height: 40px; margin-bottom: 14px; color: var(--sand); }
.split { display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list li { padding-left: 30px; position: relative; color: var(--muted); }
.list li b { color: var(--fg); }
.list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 4px rgba(192, 96, 44, .2); }
.figure { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.figure figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* frakce */
.faction { border-top: 4px solid var(--c, var(--sand)); }
.faction .tag { font-size: 13px; color: var(--c); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.faction blockquote { margin: 16px 0 0; padding-left: 14px; border-left: 2px solid var(--line); font-style: italic; color: var(--fg); }

/* Rusty */
.quotes { display: grid; gap: 14px; }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; font-size: 18px; }
.quote small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; font-style: normal; }
.terminal { background: #0e0c09; border: 1px solid #2c3a36; border-radius: var(--r); padding: 22px; font: 15px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #9fd8cf; }
.terminal .hd { color: #5c7c76; font-size: 12px; letter-spacing: .12em; margin-bottom: 10px; }

/* uzly */
.nodes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.node { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.node code { font: 700 14px ui-monospace, Menlo, monospace; color: var(--water); padding-top: 2px; }
.node b { display: block; }
.node span { color: var(--muted); font-size: 15px; }
.node.heart { border-color: var(--water); background: linear-gradient(135deg, rgba(95, 183, 176, .14), var(--card)); }

/* časová osa sezóny */
.timeline { display: grid; gap: 0; grid-template-columns: repeat(4, 1fr); counter-reset: t; }
.timeline .step { padding: 0 16px 0 0; position: relative; }
.timeline .step::before { counter-increment: t; content: counter(t); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sand); color: #1b140c; font-weight: 800; margin-bottom: 12px; }
.timeline .step::after { content: ""; position: absolute; top: 18px; left: 44px; right: 8px; height: 2px; background: var(--line); }
.timeline .step:last-child::after { display: none; }
.timeline h3 { margin: 0 0 6px; font-size: 18px; }
.timeline p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; gap: 22px; } .timeline .step::after { display: none; } }

/* zásady */
.pledges { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pledge { padding: 20px; border-radius: var(--r); border: 1px dashed #5a4632; }
.pledge b { display: block; font-size: 19px; margin-bottom: 6px; color: var(--sand); }
.pledge span { color: var(--muted); }

/* test */
.cta { text-align: center; padding: 96px 0; background: radial-gradient(ellipse at 50% 120%, rgba(95, 183, 176, .25), transparent 60%), var(--bg2); }
.cta h2 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 12px; }
.cta p { color: var(--muted); max-width: 620px; margin: 0 auto 26px; }
.cta .btns { justify-content: center; }

/* patička */
footer { padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
footer a { color: var(--muted); }

/* textové stránky (zásady, smazání účtu) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 16px 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 10px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; }
.doc li { margin: 6px 0; }
.doc p, .doc li { color: #dccfb9; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.doc .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin: 18px 0; }
.doc .steps { counter-reset: s; list-style: none; padding: 0; }
.doc .steps li { counter-increment: s; position: relative; padding-left: 44px; margin: 14px 0; }
.doc .steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: #1b140c; font-weight: 800; }
.tablewrap { overflow-x: auto; }

@media (prefers-reduced-motion: no-preference) {
  .hero .sun { animation: glow 6s ease-in-out infinite alternate; }
  @keyframes glow { from { opacity: .85; } to { opacity: 1; } }
}
@media (max-width: 600px) {
  .hero .scene { height: 300px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 250px; }
}
