:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --bg-primary: #070d18;
  --bg-surface: #0e1726;
  --bg-surface-elevated: #162238;
  --border-subtle: #1e2f4a;
  --border-strong: #2d456b;
  --text-primary: #e6edf8;
  --text-secondary: #9db2cf;
  --text-muted: #627b9f;
  --accent-cyan: #38bdf8;
  --accent-blue: #2563eb;
  --accent-indigo: #818cf8;
  --accent-emerald: #34d399;
  --max-w-content: 84rem;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-cyan);
  color: #000;
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 1000;
}
.skip-link:focus {
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 13, 24, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.brand-text {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-text small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

nav[aria-label="Hlavní navigace"] {
  display: flex;
  gap: 1.25rem;
}

nav[aria-label="Hlavní navigace"] a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

nav[aria-label="Hlavní navigace"] a:hover {
  color: var(--accent-cyan);
}

main {
  flex: 1;
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  width: 100%;
}

h1 {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
  color: #fff;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

blockquote {
  border-left: 3px solid var(--accent-cyan);
  background: var(--bg-surface);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  border-radius: 0 8px 8px 0;
  color: var(--text-primary);
  font-size: 1.05rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--bg-surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

th, td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: var(--bg-surface-elevated);
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

ul, ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5rem;
}

code {
  font-family: var(--font-mono);
  background: var(--bg-surface-elevated);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent-cyan);
}

pre {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: transparent;
  padding: 0;
  color: var(--text-primary);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 4rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-w-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-col strong {
  display: block;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  max-width: var(--max-w-content);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}
