/* ============================================
   BARCIKOVA.EU — "Solid Ground" design system
   Editorial authority. Warm. Grounded.
   ============================================ */

:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --ink: #1a1714;
  --muted: #72685d;
  --subtle: #a69d93;
  --line: #ddd6cc;
  --line-light: #ece7e0;
  --accent: #9b4f3c;
  --accent-light: #f3ebe7;
  --accent-dark: #7a3d2f;
  --max: 1140px;
  --radius: 6px;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: -9999px; top: 1rem;
  background: var(--surface); border: 2px solid var(--ink);
  padding: .6rem 1rem; font-weight: 600; z-index: 200;
  border-radius: var(--radius);
}
.skip-link:focus { left: 1rem; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  min-height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand { display: grid; gap: 1px; }
.brand-kicker {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--subtle); font-weight: 600;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 400; letter-spacing: -.01em;
  color: #fff;
}

.nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: flex-end; }
.nav a {
  font-size: 13px; color: rgba(255,255,255,.55); font-weight: 500;
  padding: 6px 12px; border-radius: 4px;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a:focus-visible { color: #fff; background: rgba(255,255,255,.08); }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 38px;
  padding: 0 16px; border-radius: 4px;
  background: var(--accent) !important; color: #fff !important; font-weight: 600;
  font-size: 13px;
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.08;
  color: var(--ink);
}

h1 {
  margin-top: 20px;
  font-size: clamp(42px, 6.5vw, 72px);
  max-width: 12ch;
}

h2 { font-size: clamp(28px, 3.5vw, 44px); margin-bottom: 0; }
h3 { font-size: clamp(18px, 2.2vw, 24px); margin-bottom: 8px; }

.eyebrow, .tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--accent);
  border: 1px solid var(--line); border-radius: 3px;
  background: var(--accent-light);
}
.tag { margin-bottom: 10px; }

.meta-label, .section-kicker, .brand-kicker, .signature-kicker,
.contact-label, .footer-kicker {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--subtle); font-weight: 700;
}

/* ============ HERO ============ */
main { padding: 0 0 80px; }

.hero {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero::before { display: none; }
.hero-shell, .hero-shell::before { border: none; border-radius: 0; box-shadow: none; background: none; }

.hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: 0; }
.hero-main { padding: 52px 48px 44px; }

.hero-lead, .article-lead {
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
}
.hero-note { margin-top: 20px; max-width: 60ch; color: var(--muted); }

.hero-actions, .cta-actions, .contact-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 4px;
  transition: all .15s ease; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-secondary { background: var(--surface); color: var(--ink); }
.btn-secondary:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent-dark); }

.hero-meta {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.hero-meta-item { padding: 14px 16px 14px 0; border-right: 1px solid var(--line); }
.hero-meta-item:last-child { border-right: none; }
.meta-value { display: block; margin-top: 6px; font-size: 14px; color: var(--ink); max-width: 22ch; }

.hero-side {
  padding: 0; display: flex; align-items: stretch;
  border-left: 1px solid var(--line);
  background: var(--bg);
}

/* ---- Panels & surfaces ---- */
.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-panel, .copy, .card, .faq-item, .contact-main, .contact-side,
.hub-card, .signature-card, .article-body, .toc-card, .note-card { padding: 28px; }

.hero-panel {
  width: 100%; display: grid; gap: 12px; align-content: start;
  border: none; border-radius: 0; background: none;
}

.hero-panel-list, .facts, .steps, .contact-list, .signature-list,
.article-list, .toc-list { display: grid; gap: 0; border-top: 1px solid var(--line); }

.hero-panel-item, .fact, .step, .contact-list li, .signature-list li,
.article-list li, .toc-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }

.hero-panel-item strong { display: block; margin-bottom: 3px; font-size: 15px; font-weight: 600; }
.hero-panel-item span, .hero-panel-note { font-size: 14px; color: var(--muted); }

/* ============ SECTIONS ============ */
section { padding-top: 80px; }

.section-grid { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.section-side { position: sticky; top: 100px; align-self: start; }
.section-title { margin-top: 10px; font-size: clamp(26px, 3.2vw, 40px); max-width: 10ch; }
.section-main { display: grid; gap: 14px; }
.section-intro { margin: 0; font-size: 17px; color: var(--muted); max-width: 54ch; }

.copy p, .contact-main p, .hub-card p, .signature-copy p, .article-body p {
  margin: 0; font-size: 16px; color: var(--muted); max-width: 64ch; line-height: 1.7;
}
.copy p + p, .contact-main p + p, .hub-card p + p, .signature-copy p + p, .article-body p + p { margin-top: 14px; }

/* ---- Cards ---- */
.cards, .hub-grid, .faq-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }

.card, .hub-card, .faq-item {
  min-height: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  border-left: 3px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: border-color .2s;
}
.card:hover, .hub-card:hover { border-left-color: var(--accent); }

.card h3, .hub-card h3, .faq-item h3 {
  font-size: clamp(18px, 2.2vw, 22px); margin-bottom: 8px; max-width: 20ch;
}
.card p, .faq-item p, .hub-card p { font-size: 15px; color: var(--muted); line-height: 1.6; }

.hub-link, .card-link { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent); }
.hub-link:hover, .card-link:hover { color: var(--accent-dark); }

/* ---- Bands ---- */
.bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bands .card { min-height: 0; background: var(--accent-light); border-left-color: var(--accent); }

/* ---- Facts ---- */
.fact { display: grid; grid-template-columns: 160px 1fr; gap: 16px; }
.fact span { font-size: 15px; color: var(--ink); }

/* ---- Steps ---- */
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--accent); font-family: var(--font-serif);
  font-size: 16px; color: var(--accent); background: var(--accent-light);
}
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p, .fact span, .contact-value, .signature-list span { font-size: 15px; color: var(--ink); }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 16px; }

.signature-card {
  min-height: 0; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--bg); border-color: var(--line);
}
.signature-box {
  flex: 1; min-height: 240px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; text-align: center; padding: 24px;
}
.signature-mark { display: grid; gap: 12px; justify-items: center; }
.signature-monogram {
  width: 88px; height: 88px; border-radius: 50%; border: 2px solid var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 32px; color: var(--accent);
  background: var(--accent-light);
}
.signature-copy strong { display: block; font-family: var(--font-serif); font-size: 20px; font-weight: 400; }
.signature-copy p { max-width: 24ch; margin-top: 4px; font-size: 13px; }
.signature-list li { display: grid; gap: 4px; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }
.contact-main h2, .cta-box h3 { font-size: clamp(26px, 3.8vw, 44px); max-width: 14ch; margin: 8px 0 16px; }
.contact-list li { display: grid; gap: 4px; }

/* ============ ARTICLES ============ */
.article-hero { padding-top: 0; }
.article-hero .hero { padding: 44px 44px 36px; }
.article-hero h1 { max-width: 14ch; font-size: clamp(34px, 5vw, 56px); }
.article-date { margin-top: 16px; font-size: 13px; color: var(--subtle); letter-spacing: .01em; }

.article-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }

.toc-card { position: sticky; top: 100px; align-self: start; background: var(--bg); border-color: var(--line); }
.toc-card h3 { font-size: 20px; margin-bottom: 10px; }
.toc-list a { font-size: 14px; color: var(--muted); }
.toc-list a:hover { color: var(--accent); }

.article-body h2 { margin-top: 32px; font-size: clamp(22px, 2.8vw, 30px); max-width: 20ch; }
.article-body h3 { margin-top: 24px; font-size: 20px; max-width: 24ch; }
.article-body ul { padding-left: 20px; list-style: disc; }
.article-body li { font-size: 15px; color: var(--muted); }
.article-body li + li { margin-top: 6px; }
.article-body strong { color: var(--ink); }
.article-body blockquote {
  margin: 24px 0 0; padding: 20px 24px;
  border-left: 3px solid var(--accent); background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink);
}

/* ---- Centered sections (O mně, Kontakt) ---- */
.section-centered { text-align: center; }
.section-centered .section-kicker { display: block; }
.section-title-centered {
  margin: 10px auto 24px; font-size: clamp(28px, 3.8vw, 48px);
  max-width: 18ch;
}
.section-intro-centered {
  margin: 0 auto 8px; font-size: 17px; color: var(--muted); max-width: 52ch;
}
.section-centered .about-grid { text-align: left; margin-top: 28px; }
.section-centered .contact-grid {
  text-align: left; margin-top: 28px;
  display: grid; grid-template-columns: 1fr; max-width: 540px; margin-left: auto; margin-right: auto;
}
.section-centered .contact-actions { margin-top: 24px; margin-bottom: 8px; }

/* ============ FOOTER ============ */
.footer { padding: 24px 0 40px; }
.footer-box {
  padding-top: 20px; border-top: 2px solid var(--ink);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
}
.footer-copy { display: grid; gap: 3px; }
.footer-copy strong { font-size: 14px; font-weight: 700; }
.footer-copy span { font-size: 13px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-nav a { font-size: 13px; color: var(--muted); }
.footer-nav a:hover { color: var(--accent); }

.footer-credit {
  width: 100%; padding-top: 12px; margin-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--subtle);
}
.footer-credit a { color: var(--subtle); }
.footer-credit a:hover { color: var(--accent); }

.note { font-size: 14px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .hero-grid, .section-grid, .about-grid, .contact-grid, .article-layout { grid-template-columns: 1fr; }
  .hero-side { border-left: none; border-top: 1px solid var(--line); }
  .section-side, .toc-card { position: static; }
  .section-title, h1, .contact-main h2, .article-hero h1 { max-width: none; }
  .bands { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: flex-start; padding: 14px 0; gap: 10px; }
  .nav { width: 100%; justify-content: flex-start; gap: 2px; }
  .hero-main, .hero-panel, .copy, .card, .faq-item, .contact-main,
  .contact-side, .hub-card, .signature-card, .article-body, .toc-card, .note-card { padding: 20px; }
  .article-hero .hero { padding: 20px; }
  .hero-meta, .cards, .bands, .hub-grid, .faq-grid { grid-template-columns: 1fr; }
  .fact, .step { grid-template-columns: 1fr; }
  section { padding-top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav a, .nav-cta, .card, .hub-card { transition: none; }
}


/* ---- Related articles ---- */
.related-articles { padding: 28px; margin-top: 24px; }
.related-title {
  margin-top: 8px;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(22px, 2.8vw, 32px); letter-spacing: -.03em;
  max-width: 14ch;
}
.related-links { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.related-links a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink); transition: color .2s;
}
.related-links a:hover, .related-links a:focus-visible { color: var(--accent); }
