/* Vibe Coding Index, vzhled v2 (září 2026)
   Základ: bílá, černá, šedá. Barvy nesou jen třídy z aktuálního vydání
   (Okabe-Ito: modrá, rumělka, modrozelená; rozlišitelné i při poruchách barvocitu). */
:root {
  --ink: #000000;
  --ink-2: #5C5C5C;
  --ink-3: #9A9A9A;
  --line: #E4E4E4;
  --paper: #FFFFFF;
  --tint: #F6F6F4;

  --c-a: #0072B2; --c-a-dark: #005486; --c-a-tint: #EAF3F9;
  --c-b: #D55E00; --c-b-dark: #A34700; --c-b-tint: #FBEFE6;
  --c-c: #009E73; --c-c-dark: #006E50; --c-c-tint: #E6F5EF;

  --display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --text: 'Instrument Sans', system-ui, sans-serif;
  --measure: 80ch;
  --pad: clamp(1.25rem, 4vw, 4rem);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--text); color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; text-decoration-color: var(--ink-3); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { width: 100%; padding: 0 var(--pad); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; }
h2 { font-size: 1.6rem; margin-bottom: 0.9rem; }
p { max-width: var(--measure); }

/* hlavička */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; height: 3.8rem; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: 1.5rem; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }

/* otázka a mapa */
.ask { padding: 4.5rem 0 3.5rem; }
.ask .edition-tag { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 1.2rem; }
.ask h1 { font-size: clamp(2.6rem, 7vw, 6rem); margin-bottom: 1.4rem; }
.ask .what { font-size: 1.25rem; color: var(--ink-2); max-width: none; margin-bottom: 2.6rem; }
.map { list-style: none; border-top: 1px solid var(--ink); }
.map li { border-bottom: 1px solid var(--line); padding: 1.4rem 0; font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 2.2rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.map li a { text-decoration: none; padding-bottom: 0.05em; border-bottom: 3px solid currentColor; }
.map li a:hover { background: var(--tint); }
.map .src { font-family: var(--text); font-size: 0.85rem; font-weight: 400; color: var(--ink-3); margin-left: 0.5rem; letter-spacing: 0; white-space: nowrap; }
.map .src a { border: none; text-decoration: underline; }
.map-foot { margin-top: 1.2rem; font-size: 0.95rem; color: var(--ink-2); max-width: none; }

/* třídy */
.classes { padding: 3.5rem 0 4rem; border-top: 1px solid var(--line); }
.classes-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.classes-head p { color: var(--ink-2); }
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); }
.class { border-top: 6px solid var(--k); padding-top: 1rem; }
.class h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--k-dark); }
.class .desc { font-size: 0.95rem; color: var(--ink-2); margin-bottom: 1.4rem; }
.people { list-style: none; display: flex; flex-direction: column; }
.people li { padding: 0.85rem 0; border-top: 1px solid var(--line); }
.people a { font-family: var(--display); font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.people a:hover { color: var(--k-dark); }
.people .role { display: block; font-size: 0.9rem; color: var(--ink-2); margin-top: 0.1rem; }
.people .found { display: block; font-size: 0.92rem; margin-top: 0.5rem; color: var(--ink); }
.people .found a { font: inherit; text-decoration: underline; }

/* jak vzniká */
.how { background: var(--tint); padding: 3.5rem 0; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); margin-top: 1.4rem; }
.how-grid h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.how-grid p { font-size: 0.95rem; color: var(--ink-2); }

/* vydání */
.editions { padding: 3.5rem 0; }
.edition-list { list-style: none; border-top: 1px solid var(--ink); }
.edition-list li { display: grid; grid-template-columns: 9rem 1fr auto; gap: 1.5rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.edition-list time { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 0.95rem; }
.edition-list .t { font-family: var(--display); font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.edition-list .n { font-size: 0.9rem; color: var(--ink-3); white-space: nowrap; }

/* historie, patička */
.origin { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.origin h2 { font-size: 1.15rem; }
.origin p { font-size: 0.95rem; color: var(--ink-2); max-width: none; }
.origin .wrap { display: grid; grid-template-columns: 1fr 3fr; gap: 2rem; }
.foot { border-top: 1px solid var(--ink); padding: 1.6rem 0 2.5rem; font-size: 0.85rem; color: var(--ink-2); }
.foot .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.foot p { max-width: none; }

@media (max-width: 860px) {
  .class-grid, .how-grid, .origin .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .edition-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (max-width: 560px) {
  .foot .wrap { grid-template-columns: 1fr; gap: 0.6rem; }
  .top .wrap { height: auto; flex-direction: column; align-items: flex-start; gap: 0.4rem; padding: 0.8rem 1.5rem; }
  .ask { padding: 2.5rem 0 2rem; }
  .map li { max-width: none; }
  .map .src { white-space: normal; display: block; margin: 0.3rem 0 0; }
}
@media (prefers-reduced-motion: no-preference) { a { transition: color 120ms; } }

/* ── podstránky ── */
.page-head { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 1rem; max-width: none; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: var(--measure); }
.links { margin-top: 0.8rem; font-size: 0.95rem; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem 2rem; margin: 1.8rem 0 1.2rem; border-top: 1px solid var(--ink); padding-top: 1rem; }
.facts dt { font-size: 0.8rem; color: var(--ink-3); }
.facts dd { font-size: 0.95rem; }
.note { font-size: 0.92rem; color: var(--ink-2); max-width: var(--measure); border-left: 3px solid var(--ink); padding-left: 1rem; }
.block { padding: 3rem 0; border-bottom: 1px solid var(--line); }
.block.tinted { background: var(--tint); }
.wrap.two { display: grid; grid-template-columns: minmax(14rem, 1fr) 3fr; gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.wrap.two > h2 { margin: 0; }
.body { font-size: 1.02rem; max-width: var(--measure); }
.body + .body, .body + .refs { margin-top: 0.9rem; }
.side { font-size: 0.95rem; color: var(--ink-2); max-width: var(--measure); }
.side-inline { color: var(--ink-2); }
.refs { font-size: 0.85rem; color: var(--ink-3); max-width: none; }
.refs a, a.ref { font-size: 0.85em; color: var(--ink-2); text-decoration: none; }
.refs a:hover, a.ref:hover { color: var(--ink); text-decoration: underline; }
.plain { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; max-width: var(--measure); }
.plain li { padding-left: 1.1rem; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.4rem; height: 1px; background: var(--ink); }
.roles { display: flex; flex-direction: column; gap: 1.2rem; max-width: var(--measure); }
.roles dt { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.roles dd { color: var(--ink-2); font-size: 0.98rem; }
.april h3 { font-size: 1.05rem; margin: 1.6rem 0 0.2rem; }
.april h3:first-child { margin-top: 0; }
.april .plain { margin-top: 0.6rem; }
.quote { max-width: var(--measure); border-left: 3px solid var(--ink); padding-left: 1rem; color: var(--ink-2); }
.quote footer { font-size: 0.85rem; color: var(--ink-3); margin-top: 0.5rem; }
code { font-size: 0.9em; background: var(--tint); padding: 0.05em 0.3em; }

/* třídy ve vydání a na profilu */
.class-full { margin-top: 2.5rem; border-top: 6px solid var(--k); padding-top: 1.2rem; }
.class-full-head { display: grid; grid-template-columns: minmax(14rem, 1fr) 3fr; gap: 1rem clamp(2rem, 5vw, 5rem); margin-bottom: 1.5rem; }
.class-full-head h3 { font-size: 1.35rem; color: var(--k-dark); }
.class-full-head p { color: var(--ink-2); font-size: 0.98rem; }
.entries { list-style: none; }
.entry { display: grid; grid-template-columns: minmax(14rem, 1fr) 3fr; gap: 1rem clamp(2rem, 5vw, 5rem); padding: 1.6rem 0; border-top: 1px solid var(--line); }
.entry-who { display: flex; flex-direction: column; gap: 0.2rem; }
.entry-name { font-family: var(--display); font-weight: 600; font-size: 1.35rem; text-decoration: none; line-height: 1.15; }
.entry-name:hover { color: var(--k-dark); }
.entry-role { font-size: 0.92rem; color: var(--ink-2); }
.entry-class { margin-top: 0.6rem; font-size: 0.85rem; color: var(--k-dark); border-left: 3px solid var(--k); padding-left: 0.6rem; }
.entry-body h4 { font-family: var(--text); font-weight: 500; font-size: 0.85rem; color: var(--ink-3); margin-bottom: 0.25rem; }
.entry-body p { max-width: var(--measure); }
.entry-body p + h4 { margin-top: 1rem; }
.entry-body .refs { margin-top: 0.9rem; }
.filters { list-style: none; counter-reset: f; display: flex; flex-direction: column; gap: 1.6rem; margin: 1.4rem 0 1.8rem; }
.filters li { position: relative; }
.filters h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.filters .body + .body { margin-top: 0.5rem; }
.ignored { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; max-width: var(--measure); margin: 0.6rem 0 1.4rem; }
.sources { padding-left: 1.6rem; font-size: 0.9rem; display: flex; flex-direction: column; gap: 0.35rem; word-break: break-all; font-variant-numeric: tabular-nums; }
.ed-nav { display: flex; justify-content: space-between; gap: 1rem; border-bottom: none; font-size: 0.95rem; }
.classes-head p { max-width: none; }

@media (max-width: 860px) {
  .wrap.two, .entry, .class-full-head { grid-template-columns: 1fr; gap: 0.8rem; }
  .ed-nav { flex-direction: column; }
}

/* ── písma, lokálně ── */
@font-face { font-family: 'Bricolage Grotesque'; src: url('/assets/fonts/BricolageGrotesque-var.woff2') format('woff2'); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/assets/fonts/InstrumentSans-var.woff2') format('woff2'); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

/* ── SEO doplňky, články, souhlas ── */
.kicker { font-size: 1.05rem; color: var(--ink); margin: -0.6rem 0 1.2rem; max-width: none; font-weight: 500; }
.intro { margin-top: 0.6rem; }
.faq { display: flex; flex-direction: column; gap: 1.1rem; max-width: var(--measure); }
.faq dt { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.25rem; }
.faq dd { color: var(--ink-2); font-size: 0.98rem; }
.prose { max-width: var(--measure); font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 0.7rem; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; max-width: none; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prose strong { font-weight: 600; }
.prose code { font-size: 0.9em; }
.toc { position: sticky; top: 1.5rem; }
.toc .plain { gap: 0.4rem; font-size: 0.92rem; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--ink); }
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 40rem; margin: 0 auto; background: var(--ink); color: var(--paper); padding: 1rem 1.25rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: 0.9rem; z-index: 10; }
.consent p { max-width: none; flex: 1 1 22rem; }
.consent a { color: var(--paper); }
.consent button { font: inherit; background: var(--paper); color: var(--ink); border: 1px solid var(--paper); padding: 0.45rem 0.9rem; cursor: pointer; margin-right: 0.5rem; }
.consent button.ghost { background: transparent; color: var(--paper); }
@media (max-width: 860px) { .toc { position: static; } }
