/*
Theme Name:  vkafed Child
Theme URI:   https://vkafed.com
Description: Clean enterprise child theme for vkafed.com — AI Infrastructure, Platform Security, Networking & Enterprise Architecture. Built on GeneratePress.
Author:      Val Kafedzhy
Author URI:  https://vkafed.com
Template:    generatepress
Version:     0.1.0
License:     GNU General Public License v2 or later
Text Domain: vkafed-child
*/

/* =========================================================
   Design tokens
   ========================================================= */
:root{
  --vk-bg:#ffffff;
  --vk-surface:#f8fafc;
  --vk-fg:#0f172a;
  --vk-muted:#475569;
  --vk-accent:#2563eb;
  --vk-accent-fg:#ffffff;
  --vk-border:#e2e8f0;
  --vk-code-bg:#0f172a;
  --vk-code-fg:#e2e8f0;
  --vk-radius:12px;
  --vk-font-sans:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --vk-font-mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

/* =========================================================
   Base typography
   ========================================================= */
body{
  font-family:var(--vk-font-sans);
  color:var(--vk-fg);
  background:var(--vk-bg);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,h5,h6{
  font-weight:700;
  letter-spacing:-0.02em;
  line-height:1.2;
  color:var(--vk-fg);
}
h1{font-size:clamp(2rem,4vw,3rem);}
h2{font-size:clamp(1.5rem,2.6vw,2.1rem);margin-top:2.2rem;}
h3{font-size:1.25rem;}
p,li{font-size:1.02rem;}
a{color:var(--vk-accent);text-decoration:none;}
a:hover,a:focus{text-decoration:underline;}
hr{border:0;border-top:1px solid var(--vk-border);margin:2.5rem 0;}

/* Code */
code,kbd,pre,samp{font-family:var(--vk-font-mono);font-size:.92em;}
pre{
  background:var(--vk-code-bg);
  color:var(--vk-code-fg);
  padding:1.1rem 1.25rem;
  border-radius:10px;
  overflow-x:auto;
  line-height:1.55;
}
:not(pre) > code{
  background:#f1f5f9;
  padding:.12em .38em;
  border-radius:5px;
  color:#0f172a;
}
blockquote{
  border-left:3px solid var(--vk-accent);
  margin:1.5rem 0;
  padding:.25rem 0 .25rem 1.1rem;
  color:var(--vk-muted);
}

/* Tables (decision matrices in articles) */
.entry-content table{border-collapse:collapse;width:100%;font-size:.95rem;}
.entry-content th,.entry-content td{
  border:1px solid var(--vk-border);
  padding:.6rem .75rem;
  text-align:left;
}
.entry-content th{background:var(--vk-surface);font-weight:600;}

/* =========================================================
   Header / nav polish
   ========================================================= */
.main-navigation .main-nav ul li a{font-weight:500;}
.site-header{border-bottom:1px solid var(--vk-border);}

/* =========================================================
   Hero
   ========================================================= */
.vk-hero{padding:4.5rem 0 3rem;}
.vk-hero h1{margin:0 0 .5rem;}
.vk-hero .vk-sub{
  font-size:1.2rem;
  color:var(--vk-muted);
  max-width:52ch;
  margin:0;
}
.vk-hero .wp-block-buttons{margin-top:1.6rem;}

/* Button variants (map to core buttons) */
.vk-btn a,.wp-block-button.vk-btn .wp-block-button__link{
  background:var(--vk-accent);
  color:var(--vk-accent-fg);
  border-radius:8px;
  padding:.7rem 1.25rem;
  font-weight:600;
}
.wp-block-button.is-style-outline.vk-ghost .wp-block-button__link,
.vk-ghost a{
  background:transparent;
  color:var(--vk-fg);
  border:1px solid var(--vk-border);
}

/* =========================================================
   Pillar grid
   ========================================================= */
.vk-pillars{
  display:grid;
  gap:1rem;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  margin:1rem 0 2rem;
}
.vk-pillar{
  border:1px solid var(--vk-border);
  border-radius:var(--vk-radius);
  padding:1.4rem;
  background:var(--vk-bg);
  transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease;
}
.vk-pillar:hover{
  border-color:var(--vk-accent);
  transform:translateY(-2px);
  box-shadow:0 8px 24px -12px rgba(37,99,235,.35);
}
.vk-pillar h3{font-size:1.1rem;margin:0 0 .4rem;}
.vk-pillar p{color:var(--vk-muted);font-size:.95rem;margin:0;}
.vk-pillar a.vk-pillar-link{display:inline-block;margin-top:.75rem;font-weight:600;font-size:.9rem;}

/* Section rhythm on the homepage */
.vk-section{padding:2.25rem 0;}
.vk-section > h2{margin-top:0;}

/* =========================================================
   Article meta / readability
   ========================================================= */
.entry-content{max-width:820px;}
.entry-content > *{margin-top:1.15rem;}
.entry-content img{border-radius:10px;}
.vk-bio{display:flex;gap:1.25rem;align-items:center;flex-wrap:wrap;}
.vk-bio img{width:120px;height:120px;border-radius:50%;object-fit:cover;}

/* =========================================================
   Auto dark mode (manual toggle = later enhancement)
   ========================================================= */
@media (prefers-color-scheme:dark){
  :root{
    --vk-bg:#0b1120;
    --vk-surface:#0f172a;
    --vk-fg:#e2e8f0;
    --vk-muted:#94a3b8;
    --vk-accent:#60a5fa;
    --vk-accent-fg:#0b1120;
    --vk-border:#1e293b;
    --vk-code-bg:#020617;
  }
  :not(pre) > code{background:#1e293b;color:#e2e8f0;}
  .entry-content th{background:#0f172a;}
}
