:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bg-primary: #0a0b10;
  --bg-surface: #12141c;
  --bg-surface-elevated: #1a1d29;
  --border-subtle: #242838;
  --border-strong: #363c54;
  --text-primary: #f0f2f8;
  --text-secondary: #a2a8c0;
  --text-muted: #656c88;
  --accent-purple: #c084fc;
  --accent-indigo: #818cf8;
  --accent-violet: #a855f7;
  --accent-rose: #f43f5e;
  --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-purple);
  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(10, 11, 16, 0.85);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 1.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.35rem;
  height: 1.35rem;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.45);
}

.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-purple);
  letter-spacing: 0.04em;
}

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-purple);
}

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

h1 {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-purple) 90%);
  -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-purple);
  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-purple);
}

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-purple);
}

.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);
}
