/* ============================================================
   vlk theme — faithful recreation of vlajkoknezic.com
   Design tokens taken directly from the site's Kadence CSS
   ============================================================ */

:root {
  --p1: #2B6CB0;   /* accent blue */
  --p2: #265E9A;   /* accent hover */
  --p3: #222222;   /* headings */
  --p4: #3B3B3B;   /* body text */
  --p5: #515151;   /* meta / muted / nav */
  --p6: #626262;
  --p7: #E1E1E1;   /* footer bg */
  --p8: #F7F7F7;   /* page bg */
  --p9: #ffffff;   /* content bg */

  --font-body: "Source Sans 3", "Source Sans Pro", sans-serif;
  --font-heading: Montserrat, sans-serif;
  --font-title: Roboto, sans-serif;

  --content-width: 1290px;
  --content-narrow: 842px;
  --edge-padding: 1.5rem;
  --gap: 30px;

  --radius: 0px;
  --shadow-card: 0px 15px 15px -10px rgba(0,0,0,0.05);
  --shadow-card-hover: 0px 15px 25px -7px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--p4);
  background: var(--p8);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.5; margin: 1.5em 0 0.6em; }
h1 { font-size: 32px; color: var(--p3); }
h2 { font-size: 28px; color: var(--p3); }
h3 { font-size: 24px; color: var(--p3); }
h4 { font-size: 22px; color: var(--p4); }
h5 { font-size: 20px; color: var(--p4); }
h6 { font-size: 18px; color: var(--p5); }

p { margin: 0 0 1.4em; }
a { color: var(--p1); text-decoration: none; }
a:hover { color: var(--p2); text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--content-width); margin: 0 auto; padding: 0 var(--edge-padding); }
.container-narrow { max-width: var(--content-narrow); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--p1); color: #fff; padding: 8px 16px; z-index: 1000; }
.skip-link:focus { left: 0; }

/* Header */
.site-header { background: var(--p9); }
.header-top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--p9);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-top { max-width: var(--content-width); margin: 0 auto; padding: 14px var(--edge-padding) 14px; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 0.6em; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 400; text-transform: uppercase; color: var(--p4); }
.main-nav a:hover { color: var(--p1); text-decoration: none; }
.main-nav .active > a { color: var(--p3); }

.social-icons { display: flex; gap: 0.3em; align-items: center; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--p5); border-radius: 100px; color: var(--p5); }
.social-icons a:hover { color: var(--p2); border-color: var(--p2); }
.social-icons svg { width: 14px; height: 14px; fill: currentColor; }

.site-branding { min-height: 100px; display: flex; align-items: center; justify-content: center; background: var(--p9); padding: 10px 0 22px; }
.site-branding a { display: inline-flex; align-items: center; gap: 14px; color: var(--p3); }
.site-branding a:hover { text-decoration: none; }
.brand-logo { width: 48px; height: 48px; border: 2px solid var(--p3); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-title); font-weight: 500; font-size: 0.85rem; }
.brand-name { font-family: var(--font-title); font-weight: 400; font-size: 50px; line-height: 1.2; color: var(--p3); }

/* Hero */
.hero { background: var(--p9); }
.hero-inner { position: relative; max-width: var(--content-width); margin: 0 auto; min-height: 400px; display: flex; align-items: center; background-size: cover; background-position: center; }
.hero-inner::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
.hero-content { position: relative; z-index: 1; color: #fff; padding: 40px 60px; max-width: 620px; }
.hero-content h1 { color: #fff; font-size: 3rem; margin: 0 0 0.35em; text-shadow: 0 1px 4px rgba(0,0,0,0.35); }
.hero-content p { font-size: 1.2rem; margin: 0; text-shadow: 0 1px 4px rgba(0,0,0,0.35); }

/* Content area */
.content-area { background: var(--p9); margin: 0 auto; }
.section-title { text-align: center; font-size: 28px; margin: 5rem 0 3rem; }
.page-title { text-align: center; font-size: 32px; margin: 3rem 0; }

/* Card grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); padding-bottom: 3rem; }
.card { display: flex; flex-direction: column; background: var(--p9); box-shadow: var(--shadow-card); transition: box-shadow 0.2s ease; }
.card:hover { box-shadow: var(--shadow-card-hover); }
.card-thumb { display: block; aspect-ratio: 16 / 9; background: #4b3f8f center/cover no-repeat; }
.card-body { padding: 2rem; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--p1); margin-bottom: 12px; }
.card-cat a { color: var(--p1); }
.card-cat a:hover { color: var(--p2); text-decoration: none; }
.card-title { font-size: 22px; margin: 0 0 14px; line-height: 1.4; }
.card-title a { color: var(--p3); }
.card-title a:hover { color: var(--p1); text-decoration: none; }
.card-meta { font-size: 0.8rem; color: var(--p5); margin-bottom: 16px; }
.card-excerpt { font-size: 0.95rem; color: var(--p4); margin-bottom: 20px; flex: 1; }
.read-more { font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--p3); display: inline-flex; align-items: center; gap: 6px; }
.read-more:hover { color: var(--p1); text-decoration: none; }

/* Single post */
.single-wrap { background: var(--p9); box-shadow: var(--shadow-card); margin: 3rem auto; }
.single-inner { padding: 2rem; }
.post-cat { font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--p1); margin-bottom: 14px; }
.post-cat a { color: var(--p1); }
.post-title { font-size: 32px; margin: 0 0 16px; line-height: 1.3; }
.post-meta { font-size: 0.85rem; color: var(--p5); margin-bottom: 24px; }
.post-content { font-size: 17px; }
.post-content img { margin: 1.4em 0 0.4em; }
.post-content figure { margin: 1.6em 0; text-align: center; }
.post-content figcaption { font-size: 0.8rem; color: var(--p5); margin-top: 8px; }
.post-content ul, .post-content ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.post-content li { margin-bottom: 0.4em; }
.post-content h2 { margin-top: 1.7em; }
.post-content blockquote { border-left: 3px solid var(--p1); margin: 1.5em 0; padding: 0.4em 0 0.4em 1.2em; color: var(--p5); }
.post-content code { background: var(--p8); padding: 0.15em 0.4em; font-size: 0.9em; }
.post-content pre { background: #1e1e28; color: #f8f8f2; padding: 18px; overflow-x: auto; }
.post-content pre code { background: none; padding: 0; }

.toc { border: 1px solid var(--p7); padding: 20px 26px; margin: 30px 0; background: var(--p8); }
.toc-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; color: var(--p3); }
.toc ul { padding-left: 1.2em; margin: 0; }
.toc li { margin: 4px 0; font-size: 0.95rem; }
.toc a { color: var(--p1); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 3rem 0 5rem; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; font-family: var(--font-heading); font-size: 0.9rem; color: var(--p3); }
.pagination a:hover { background: var(--p8); text-decoration: none; }
.pagination .active { background: var(--p1); color: #fff; }

/* Subscribe */
.subscribe { background: var(--p9); display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; max-width: var(--content-width); margin: 0 auto; padding: 3rem var(--edge-padding) 4rem; }
.subscribe img { display: block; }
.subscribe h2 { margin-top: 0; }

/* Footer */
.site-footer { background: var(--p7); padding: 50px var(--edge-padding) 15px; text-align: center; }
.footer-social { display: flex; justify-content: center; gap: 1em; margin-bottom: 20px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--p5); border-radius: 100%; color: var(--p5); }
.footer-social a:hover { color: var(--p1); border-color: var(--p1); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 0; margin: 0 0 14px; }
.footer-nav a { color: var(--p5); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--p1); }
.footer-copy { font-size: 0.9rem; color: var(--p5); margin: 0; }

/* Responsive */
@media (max-width: 1024px) { .content-area { margin-top: 3rem; margin-bottom: 3rem; } }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } .hero-content h1 { font-size: 2.2rem; } .brand-name { font-size: 35px; } }
@media (max-width: 767px) { .header-top { flex-direction: column; align-items: center; gap: 12px; padding-bottom: 10px; } .main-nav ul { justify-content: center; } .subscribe { grid-template-columns: 1fr; gap: 24px; } .hero-content { padding: 28px 24px; } .brand-name { font-size: 26px; } .card-body, .single-inner { padding: 1.5rem; } .section-title { font-size: 24px; margin: 3rem 0 2rem; } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } .post-title, h1 { font-size: 26px; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
:focus-visible { outline: 2px solid var(--p1); outline-offset: 2px; }
