/* ALVA – archív a história. Layout: úzky čitateľský stĺpec, časová os ako zvislá „dráha bazéna“, doklady ako karty s číslom zápisu. */
/* Farby podľa ochrannej známky ALVA č. 179544: modrá písmen a zelená veľryby. */
:root {
  --alva-blue: #0b2170;
  --alva-green: #1b6b24;
  --ink: #101a3a;
  --ink-soft: #4a5570;
  --bg: #f5f7fc;
  --surface: #ffffff;
  --line: #d9dfee;
  --water: #0b2170;
  --water-deep: #07164d;
  --leaf: #1b6b24;
  --tint: #e9eef9;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ui: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8ecf8; --ink-soft: #aab3cc; --bg: #0b1230; --surface: #121c42;
    --line: #26315c; --water: #9db0f2; --water-deep: #c3cff7; --leaf: #74c27f; --tint: #16214d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e8ecf8; --ink-soft: #aab3cc; --bg: #0b1230; --surface: #121c42;
  --line: #26315c; --water: #9db0f2; --water-deep: #c3cff7; --leaf: #74c27f; --tint: #16214d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
}
a { color: var(--water); text-underline-offset: 3px; }
a:hover { color: var(--water-deep); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }

/* Hlavička */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--water-deep); }
.brand-logo { display: block; height: 46px; width: auto; }
.logo-plate { display: inline-flex; padding: 4px 8px; border-radius: 8px; background: transparent; }
:root[data-theme="dark"] .logo-plate { background: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-plate { background: #ffffff; } }
.brand-mark { font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: 0.04em; color: var(--water); }
.brand-mark sup { font-size: 0.45em; color: var(--leaf); }
.brand-sub { font-family: var(--ui); font-size: 0.85rem; color: var(--ink-soft); }
.nav { display: flex; gap: 6px 18px; flex-wrap: wrap; font-family: var(--ui); font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--water); }

/* Úvod */
.hero { padding: 64px 0 48px; background: linear-gradient(180deg, var(--tint), var(--bg)); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.eyebrow { font-family: var(--ui); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--leaf); font-weight: 600; margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--ink-soft); margin-top: 18px; max-width: 60ch; }
.quote { border-left: 4px solid var(--leaf); padding: 6px 0 6px 18px; font-size: 1.15rem; font-style: italic; }
.quote cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--ui); font-size: 0.9rem; color: var(--ink-soft); }

section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; }
.section-head p { color: var(--ink-soft); max-width: 65ch; }

/* Časová os */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 2px; background: repeating-linear-gradient(var(--water) 0 10px, transparent 10px 18px); }
.tl-item { display: grid; grid-template-columns: 76px 1fr; gap: 36px; padding: 14px 0; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 86px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--water); }
.tl-year { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--water-deep); text-align: right; font-variant-numeric: tabular-nums; padding-top: 2px; }
.tl-body h3 { margin-bottom: 4px; }
.tl-body p { color: var(--ink-soft); }
.src { display: inline-block; margin-top: 6px; font-family: var(--ui); font-size: 0.82rem; color: var(--ink-soft); }
.pending { display: inline-block; font-family: var(--ui); font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--water-deep); margin-left: 6px; vertical-align: middle; }

/* Doklady */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.card .num { font-family: var(--ui); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--leaf); font-weight: 600; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card a.more { font-family: var(--ui); font-size: 0.92rem; font-weight: 600; }
.card.official { border-top: 4px solid var(--water); }

/* Články */
.articles { display: grid; gap: 0; }
.article-row { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.article-row:first-child { border-top: 1px solid var(--line); }
.article-row:hover h3 { color: var(--water); }
.article-row .date { font-family: var(--ui); font-size: 0.9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; padding-top: 3px; }
.article-row p { color: var(--ink-soft); margin-top: 4px; }

/* Autor */
.author { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.98rem; }
.facts li { padding-left: 18px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.prose p + p { margin-top: 14px; }

/* Článok */
.article-head { padding: 48px 0 24px; background: var(--tint); border-bottom: 1px solid var(--line); }
.article-head .meta { font-family: var(--ui); color: var(--ink-soft); margin-top: 12px; font-size: 0.95rem; }
.article-body { padding: 36px 0 56px; }
.article-body p, .article-body li { max-width: 68ch; }
.article-body p + p { margin-top: 16px; }
.article-body h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.article-body h3 { margin: 24px 0 8px; }
.article-body ul { padding-left: 22px; display: grid; gap: 6px; margin: 14px 0; }
.back { font-family: var(--ui); font-size: 0.95rem; }
.archive-note { margin-top: 36px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-family: var(--ui); font-size: 0.9rem; color: var(--ink-soft); }

/* Pätička */
.site-foot { background: var(--water-deep); color: #e6eef7; padding: 32px 0; font-family: var(--ui); font-size: 0.9rem; }
.site-foot a { color: #ffffff; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
:root[data-theme="dark"] .site-foot, :root:not([data-theme="light"]) .site-foot { background: var(--surface); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .site-foot { background: var(--water-deep); } }
:root[data-theme="light"] .site-foot { background: var(--water-deep); }

@media (max-width: 760px) {
  .hero .wrap, .author { grid-template-columns: 1fr; }
  .timeline::before { left: 8px; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; padding-left: 32px; }
  .tl-item::before { left: 2px; }
  .tl-year { text-align: left; }
  .article-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Osvedčenie a brand manuál */
.card .thumb { width: 100%; max-width: 220px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.hero-logo { display: inline-flex; background: #ffffff; padding: 18px 22px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 18px; }
.hero-logo img { height: 92px; width: auto; display: block; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.swatch { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.swatch .chip { height: 96px; }
.swatch .info { padding: 12px 14px; font-family: var(--ui); font-size: 0.9rem; display: grid; gap: 2px; }
.swatch .info strong { font-size: 1rem; }
.swatch code { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.logo-demo { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.logo-demo figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: grid; place-items: center; gap: 12px; }
.logo-demo figcaption { font-family: var(--ui); font-size: 0.88rem; color: var(--ink-soft); text-align: center; }
.clear-space { outline: 2px dashed var(--leaf); outline-offset: 16px; margin: 20px 0 28px; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rules ul { padding-left: 20px; display: grid; gap: 6px; margin: 8px 0 0; }
.type-sample { display: grid; gap: 12px; }
.type-sample .d { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--water); }
.type-sample .b { font-family: var(--body); font-size: 1.1rem; }
