/* VN Optimizer — vlastní CSS (žádný CDN dependency) */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Geist:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --color-paper: #fafaf7;
    --color-stone-100: #f5f5f4;
    --color-stone-200: #e7e5e4;
    --color-stone-300: #d6d3d1;
    --color-stone-500: #78716c;
    --color-stone-600: #57534e;
    --color-stone-700: #44403c;
    --color-stone-900: #1c1917;

    --color-primary-50:  #fdeceb;
    --color-primary-100: #fbd2cf;
    --color-primary-500: #e00700;   /* pražská červená */
    --color-primary-700: #c00600;
    --color-primary-900: #990500;

    --color-accent-500: #ffd200;    /* pražská žlutá (akcent na červené) */
    --color-accent-600: #a87900;    /* čitelný gold pro text na bílé */

    --color-red-50:  #fef2f2;
    --color-red-500: #ef4444;
    --color-red-900: #7f1d1d;
}

/* ---------------- RESET ---------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; }
body {
    font-family: 'Geist', system-ui, sans-serif;
    background-color: var(--color-paper);
    color: var(--color-stone-900);
    line-height: 1.5;
    min-height: 100vh;
    font-size: 16px;
}
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; line-height: 1.2; font-weight: 500; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
img, svg { display: block; max-width: 100%; }

/* ---------------- LAYOUT ---------------- */
.no-print { /* ovlivněno @media print */ }
.max-w-6xl { max-width: 72rem; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.pt-1\.5 { padding-top: 0.375rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-6 { padding-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.ml-auto { margin-left: auto; }
.flex { display: flex; }
.flex-shrink-0 { flex-shrink: 0; }
.inline-block { display: inline-block; }
.grid { display: grid; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-x-8 { column-gap: 2rem; }
.gap-y-2 { row-gap: 0.5rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }
.items-baseline { align-items: baseline; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.6; }
.text-xl { font-size: 1.25rem; line-height: 1.4; }
.text-2xl { font-size: 1.5rem; line-height: 1.3; }
.text-3xl { font-size: 1.875rem; line-height: 1.15; }
.text-4xl { font-size: 2.25rem; line-height: 1.1; }
.font-medium { font-weight: 500; }
.font-serif { font-family: 'Fraunces', Georgia, serif; }
.font-sans { font-family: 'Geist', system-ui, sans-serif; }
.font-mono, code, kbd, .num { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-tight { line-height: 1.15; }
.leading-relaxed { line-height: 1.65; }
.w-full { width: 100%; }
.w-32 { width: 8rem; }
.w-2\/3 { width: 66.666%; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.min-h-screen { min-height: 100vh; }
.max-w-2xl { max-width: 42rem; }
.bg-white { background-color: white; }
.bg-paper { background-color: var(--color-paper); }
.bg-primary-50 { background-color: var(--color-primary-50); }
.bg-primary-700 { background-color: var(--color-primary-700); }
.bg-primary-900 { background-color: var(--color-primary-900); }
.bg-accent-500\/10 { background-color: rgba(224, 7, 0, 0.08); }
.bg-primary-50\/40 { background-color: rgba(253, 236, 235, 0.5); }
.bg-red-50 { background-color: var(--color-red-50); }
.text-paper { color: var(--color-paper); }
.text-stone-500 { color: var(--color-stone-500); }
.text-stone-600 { color: var(--color-stone-600); }
.text-stone-700 { color: var(--color-stone-700); }
.text-stone-900 { color: var(--color-stone-900); }
.text-primary-700 { color: var(--color-primary-700); }
.text-primary-900 { color: var(--color-primary-900); }
.text-accent-500 { color: var(--color-accent-500); }
.text-accent-600 { color: var(--color-accent-600); }
.text-red-900 { color: var(--color-red-900); }
.border { border: 1px solid var(--color-stone-200); }
.border-2 { border: 2px solid; }
.border-b { border-bottom: 1px solid var(--color-stone-200); }
.border-b-2 { border-bottom: 2px solid; }
.border-b-4 { border-bottom: 4px solid; }
.border-t { border-top: 1px solid var(--color-stone-200); }
.border-t-2 { border-top: 2px solid; }
.border-l-4 { border-left: 4px solid; }
.border-stone-100 { border-color: var(--color-stone-100); }
.border-stone-200 { border-color: var(--color-stone-200); }
.border-stone-300 { border-color: var(--color-stone-300); }
.border-primary-500 { border-color: var(--color-primary-500); }
.border-primary-700 { border-color: var(--color-primary-700); }
.border-primary-900 { border-color: var(--color-primary-900); }
.border-accent-500 { border-color: var(--color-accent-500); }
.border-red-500 { border-color: var(--color-red-500); }
.border-dashed { border-style: dashed; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.outline-none { outline: none; }
.cursor-pointer { cursor: pointer; }
.transition { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.overflow-hidden { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none; }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* ---------------- HOVER / FOCUS ---------------- */
.hover\:bg-paper:hover { background-color: var(--color-paper); }
.hover\:bg-primary-50:hover { background-color: var(--color-primary-50); }
.hover\:bg-primary-700:hover { background-color: var(--color-primary-700); }
.hover\:text-accent-500:hover { color: var(--color-accent-500); }
.hover\:text-accent-600:hover { color: var(--color-accent-600); }
.hover\:border-primary-500:hover { border-color: var(--color-primary-500); }
input:focus, select:focus, textarea:focus { border-color: var(--color-primary-500); box-shadow: 0 0 0 1px var(--color-primary-500); }

/* ---------------- FORM ELEMENTS ---------------- */
input[type="text"], input[type="number"], input[type="email"], select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-stone-300);
    border-radius: 0.375rem;
    background: white;
    transition: border-color 150ms;
}

/* ---------------- BRAND DETAILY ---------------- */
.num-big {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-feature-settings: "ss01";
}
.section-marker {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    color: var(--color-primary-700);
}
.doc-rule { border-top: 1px solid var(--color-primary-900); margin: 1.5rem 0 0.75rem; }

/* ---------------- TLAČÍTKA ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.625rem 1.25rem; border-radius: 0.5rem;
    font-family: 'Geist', system-ui, sans-serif; font-weight: 600; font-size: 0.9375rem;
    line-height: 1; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
    transition: background-color 150ms, border-color 150ms, color 150ms, box-shadow 150ms, transform 80ms;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background-color: var(--color-primary-700); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.10); }
.btn-primary:hover { background-color: var(--color-primary-900); box-shadow: 0 3px 8px rgba(153,5,0,0.28); }
.btn-outline { background-color: #fff; color: var(--color-primary-700); border-color: var(--color-stone-300); }
.btn-outline:hover { border-color: var(--color-primary-700); background-color: var(--color-primary-50); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; border-radius: 0.45rem; }

/* ---------------- RESPONZIVITA ---------------- */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:p-12 { padding: 3rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 1.1; }
}

/* ---------------- TISKOVÁ VERZE ---------------- */
@media print {
    body { background: white; }
    .no-print { display: none !important; }
    .page-break-before { page-break-before: always; }
    article { border: none !important; box-shadow: none !important; }
}
