:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "New York", "Charter", "Georgia", "Cambria", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --bg-primary: #0a0e14;
  --bg-surface: #111822;
  --bg-surface-elevated: #192433;
  --border-subtle: #202d40;
  --border-strong: #314460;
  --text-primary: #f0f4f8;
  --text-secondary: #a0b2c6;
  --text-muted: #6b809a;
  --accent-gold: #f59e0b;
  --accent-amber: #d97706;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --max-w-content: 54rem;
  --max-w-wide: 76rem;
}

*, *::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.65;
  scroll-behavior: smooth;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-gold);
  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, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-w-wide);
  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: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--accent-gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 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(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

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

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

nav[aria-label="Hlavní navigace"] a.nav-highlight {
  color: var(--accent-gold);
  font-weight: 700;
}

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

article {
  font-size: 1.05rem;
  line-height: 1.75;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: #fff;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

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

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

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

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-surface);
  padding: 0.15em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

pre code {
  background: transparent;
  padding: 0;
  border: none;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.92rem;
}

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

th {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 700;
}

tr:hover td {
  background: var(--bg-surface-elevated);
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.article-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.article-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

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

.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col strong {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.footer-col p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

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

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
}

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

.footer-bottom {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
