/* Rozcestník Peekless: hlavička, úvod, karty nástrojů a zásad, patička, text stránek. Barvy z tokens.css. */

.wrap { width: min(var(--page-max), 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(780px, 100% - 32px); }
.site { min-height: 100dvh; display: flex; flex-direction: column; }
.site > main { flex: 1; }
.center { text-align: center; }
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--sp-6); }

/* ---------- Hlavička ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.site-head-in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); height: 64px; }
.site-head-brand { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.site-nav { display: flex; align-items: center; gap: var(--sp-1); }
.site-nav > a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: var(--r-md); }
.site-nav > a:hover { color: var(--text); background: var(--surface-3); }

/* ---------- Úvod ---------- */
.hub-hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); text-align: center; }
.hub-hero::before { content: ''; position: absolute; inset: -30% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 50% 35%, rgb(59 130 246 / 0.18), transparent 70%), radial-gradient(30% 40% at 85% 10%, rgb(124 58 237 / 0.10), transparent 70%); }
.hub-hero-in { display: grid; justify-items: center; }
.hub-hero-logo { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 16px 40px rgb(37 99 235 / 0.30); margin-bottom: var(--sp-6); }
.hub-hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; letter-spacing: -0.03em; max-width: 14em; margin-bottom: var(--sp-4); }
.lead { font-size: clamp(16px, 1.7vw, 19px); color: var(--text-2); line-height: 1.6; max-width: 38em; margin-inline: auto; }

/* ---------- Nástroje ---------- */
.hub-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--sp-4); }
.hub-tool { display: grid; align-content: start; justify-items: start; gap: var(--sp-2); padding: var(--sp-6); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
.hub-tool h3 { font-size: 21px; margin: var(--sp-2) 0 0; }
.hub-tool p { color: var(--text-2); margin: 0 0 var(--sp-3); }
.hub-tool-ic { width: 48px; height: 48px; border-radius: 14px; font-size: 13px; }
.hub-tool.is-soon { background: var(--surface-2); box-shadow: none; }
.hub-soon { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }

/* ---------- Zásady ---------- */
.hub-principles { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: var(--sp-4); }
.hub-card { padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.hub-card .icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: var(--sp-3); }
.hub-card h3 { font-size: 17px; margin-bottom: var(--sp-2); }
.hub-card p { color: var(--text-2); font-size: 14.5px; margin: 0; }
.hub-more { margin: var(--sp-6) 0 0; font-weight: 600; }

/* ---------- Text stránek ---------- */
.prose h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.prose h2 { font-size: 22px; margin-top: var(--sp-8); }
.prose p, .prose li { color: var(--text-2); }
.prose .lead { margin-inline: 0; }
.big-code { font-family: var(--font-display); font-size: 72px; font-weight: 800; color: var(--accent); margin: 0; }
.todo { background: #fef3c7; color: #92400e; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* ---------- Patička ---------- */
.site-foot { border-top: 1px solid var(--border); padding: var(--sp-8) 0; background: var(--surface-2); font-size: 14px; }
.site-foot-in { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-4) var(--sp-8); align-items: center; }
.foot-brand { display: flex; gap: var(--sp-3); align-items: center; color: var(--text-2); }
.foot-brand .logo-mark { width: 32px; height: 32px; border-radius: 9px; }
.foot-brand b { color: var(--text); }
.foot-nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.foot-nav a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.foot-nav a:hover { color: var(--accent-text); }
.foot-note { grid-column: 1 / -1; color: var(--text-3); font-size: 13px; margin: 0; }

@media (max-width: 640px) {
  .site-nav > a { display: none; }
  .site-foot-in { grid-template-columns: 1fr; }
}

/* odkazy vzhledu tlačítka bez podtržení */
a.btn { text-decoration: none; }
