/*
Theme Name: Kerry Ashbrook
Theme URI: https://kerryashbrook.com
Author: Kerry Ashbrook
Description: Custom technology publication theme for KerryAshbrook.com, designed for WordPress and LaunchPointAI publishing.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kerryashbrook
*/

:root {
  --ka-navy: #07182b;
  --ka-navy-2: #0b223d;
  --ka-blue: #1f73f1;
  --ka-blue-2: #3a86ff;
  --ka-sky: #eaf3ff;
  --ka-text: #162238;
  --ka-muted: #64748b;
  --ka-line: #dbe4ef;
  --ka-white: #ffffff;
  --ka-bg: #f7faff;
  --ka-radius: 18px;
  --ka-shadow: 0 18px 50px rgba(5, 30, 60, .10);
  --ka-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ka-text);
  background: var(--ka-white);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(var(--ka-max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 24, 43, .97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; color: white; min-width: 250px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 22px; letter-spacing: -1px;
  background: linear-gradient(135deg, var(--ka-blue), #18b3ff);
  box-shadow: 0 8px 25px rgba(31,115,241,.35);
}
.brand-copy strong { display:block; font-size: 18px; letter-spacing:.04em; line-height:1.1; }
.brand-copy small { display:block; margin-top:3px; opacity:.72; font-size:10px; letter-spacing:.18em; }

.primary-nav { display:flex; align-items:center; gap:22px; color:rgba(255,255,255,.88); font-size:14px; font-weight:650; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color:white; }
.nav-toggle { display:none; border:0; background:transparent; color:white; font-size:26px; cursor:pointer; }

.hero {
  color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(58,134,255,.22), transparent 35%),
    linear-gradient(135deg, var(--ka-navy), #0b2443 55%, #102d52);
  overflow:hidden;
}
.hero-inner {
  min-height: 560px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  align-items:center;
  gap:64px;
  padding:80px 0;
}
.eyebrow {
  color:#8cc0ff;
  text-transform:uppercase;
  letter-spacing:.18em;
  font-size:12px;
  font-weight:800;
}
.hero h1 {
  margin:14px 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 74px);
  line-height:1.02;
  letter-spacing:-.045em;
}
.hero p {
  max-width:700px;
  margin:0 0 28px;
  font-size:20px;
  color:rgba(255,255,255,.78);
}
.button-row { display:flex; flex-wrap:wrap; gap:14px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:48px; padding:0 22px;
  border-radius:10px; font-weight:800; font-size:14px;
  transition:.2s ease;
}
.btn-primary { background:var(--ka-blue); color:white; box-shadow:0 12px 28px rgba(31,115,241,.25); }
.btn-primary:hover { transform:translateY(-1px); background:var(--ka-blue-2); }
.btn-secondary { border:1px solid rgba(255,255,255,.34); color:white; background:rgba(255,255,255,.05); }
.hero-visual {
  min-height:350px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    radial-gradient(circle at 30% 30%, rgba(31,115,241,.50), transparent 26%),
    linear-gradient(145deg, #112b49, #07182b);
  box-shadow:0 30px 70px rgba(0,0,0,.35);
  position:relative; overflow:hidden;
}
.hero-visual:before, .hero-visual:after {
  content:"";
  position:absolute; inset:auto;
  border:1px solid rgba(91,170,255,.35);
  border-radius:50%;
}
.hero-visual:before { width:260px;height:260px; right:-55px;top:-40px; }
.hero-visual:after { width:180px;height:180px; left:-35px;bottom:-40px; }
.visual-grid {
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size:32px 32px;
}
.visual-card {
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:72%; padding:26px; border-radius:18px;
  background:rgba(5,21,40,.75); border:1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(9px);
}
.visual-card strong { font-size:22px; display:block; margin-bottom:8px; }
.visual-card span { color:#9fc9ff; font-size:14px; }

.section { padding:78px 0; }
.section.alt { background:var(--ka-bg); }
.section-title {
  display:flex; align-items:end; justify-content:space-between; gap:24px;
  margin-bottom:28px;
}
.section-title h2 { margin:0; font-size:34px; letter-spacing:-.035em; line-height:1.1; }
.section-title p { margin:8px 0 0; color:var(--ka-muted); }
.section-title a { color:var(--ka-blue); font-weight:800; }

.featured {
  display:grid; grid-template-columns:1.05fr .95fr;
  background:white; border:1px solid var(--ka-line);
  border-radius:var(--ka-radius); overflow:hidden; box-shadow:var(--ka-shadow);
}
.featured-media {
  min-height:360px;
  background:linear-gradient(135deg,#102844,#1d4f7c);
}
.featured-media img { width:100%; height:100%; object-fit:cover; }
.featured-body { padding:42px; display:flex; flex-direction:column; justify-content:center; }
.meta { color:var(--ka-blue); font-size:12px; font-weight:850; text-transform:uppercase; letter-spacing:.12em; }
.featured h3 { font-size:36px; line-height:1.12; margin:12px 0 14px; letter-spacing:-.035em; }
.featured p { color:var(--ka-muted); margin:0 0 18px; }

.card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.post-card {
  border:1px solid var(--ka-line);
  border-radius:16px;
  overflow:hidden;
  background:white;
  transition:.2s ease;
}
.post-card:hover { transform:translateY(-3px); box-shadow:var(--ka-shadow); }
.post-thumb { aspect-ratio:16/9; background:linear-gradient(135deg,#0b223d,#1f73f1); overflow:hidden; }
.post-thumb img { width:100%; height:100%; object-fit:cover; }
.post-body { padding:22px; }
.post-body h3 { margin:7px 0 10px; font-size:21px; line-height:1.25; letter-spacing:-.02em; }
.post-body p { margin:0; color:var(--ka-muted); font-size:14px; }

.category-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
.category-card {
  min-height:150px; padding:24px 18px;
  border:1px solid var(--ka-line); border-radius:16px; background:white;
  display:flex; flex-direction:column; justify-content:space-between;
}
.category-icon {
  width:42px;height:42px;border-radius:12px;background:var(--ka-sky);
  color:var(--ka-blue);display:grid;place-items:center;font-size:20px;font-weight:900;
}
.category-card strong { font-size:16px; }
.category-card span { color:var(--ka-muted); font-size:13px; }

.about-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:54px; align-items:center; }
.about-photo {
  aspect-ratio:4/3; border-radius:20px;
  background:
    radial-gradient(circle at 30% 30%, rgba(31,115,241,.28), transparent 28%),
    linear-gradient(135deg,#102844,#07182b);
  overflow:hidden; position:relative;
}
.about h2 { font-size:40px; margin:0 0 14px; letter-spacing:-.04em; }
.about p { color:var(--ka-muted); }
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:26px; }
.stat { border-left:3px solid var(--ka-blue); padding-left:14px; }
.stat strong { display:block; color:var(--ka-blue); font-size:28px; line-height:1.1; }
.stat span { color:var(--ka-muted); font-size:12px; text-transform:uppercase; letter-spacing:.08em; }

.cta {
  background:linear-gradient(135deg,var(--ka-blue),#1555c7);
  color:white; border-radius:22px; padding:46px;
  display:flex; justify-content:space-between; gap:30px; align-items:center;
}
.cta h2 { margin:0 0 8px; font-size:34px; }
.cta p { margin:0; color:rgba(255,255,255,.82); }
.cta .btn { background:white; color:var(--ka-blue); white-space:nowrap; }

.site-footer { background:var(--ka-navy); color:white; padding:48px 0 28px; }
.footer-grid { display:grid; grid-template-columns:1.3fr .7fr .7fr; gap:40px; }
.footer-copy { color:rgba(255,255,255,.62); max-width:430px; font-size:14px; }
.footer-title { font-size:12px; text-transform:uppercase; letter-spacing:.14em; opacity:.7; margin-bottom:12px; }
.footer-links a { display:block; color:rgba(255,255,255,.78); margin:8px 0; font-size:14px; }
.footer-bottom {
  margin-top:36px; padding-top:20px;
  border-top:1px solid rgba(255,255,255,.09);
  color:rgba(255,255,255,.45); font-size:12px;
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
}

.content-wrap { width:min(900px,calc(100% - 40px)); margin:0 auto; padding:64px 0; }
.entry-header h1 { font-size:clamp(38px,6vw,64px); line-height:1.05; letter-spacing:-.045em; margin:12px 0 18px; }
.entry-meta { color:var(--ka-muted); margin-bottom:28px; }
.entry-content { font-size:18px; }
.entry-content h2 { margin-top:42px; font-size:32px; }
.entry-content h3 { margin-top:32px; font-size:25px; }
.entry-content a { color:var(--ka-blue); text-decoration:underline; }
.entry-content img { border-radius:16px; margin:30px auto; }
.entry-content blockquote { margin:32px 0; padding:10px 0 10px 24px; border-left:4px solid var(--ka-blue); color:#3f4f65; font-size:22px; }
.archive-header { padding:64px 0 20px; }
.archive-header h1 { font-size:46px; margin:0; }
.pagination { margin-top:34px; }
.pagination .nav-links { display:flex; gap:8px; flex-wrap:wrap; }
.pagination a, .pagination span { padding:9px 13px; border:1px solid var(--ka-line); border-radius:9px; }

@media (max-width: 980px) {
  .nav-toggle { display:block; }
  .primary-nav {
    display:none; position:absolute; left:0; right:0; top:76px;
    background:var(--ka-navy); padding:18px 20px 24px;
    flex-direction:column; align-items:flex-start;
  }
  .primary-nav.open { display:flex; }
  .hero-inner, .featured, .about-grid { grid-template-columns:1fr; }
  .hero-visual { min-height:300px; }
  .card-grid { grid-template-columns:repeat(2,1fr); }
  .category-grid { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width:min(100% - 28px,var(--ka-max)); }
  .hero-inner { min-height:auto; padding:58px 0; gap:34px; }
  .hero h1 { font-size:44px; }
  .hero p { font-size:17px; }
  .section { padding:56px 0; }
  .section-title { align-items:flex-start; flex-direction:column; }
  .featured-body { padding:28px; }
  .featured h3 { font-size:28px; }
  .card-grid, .category-grid, .stats, .footer-grid { grid-template-columns:1fr; }
  .cta { padding:30px; flex-direction:column; align-items:flex-start; }
  .brand { min-width:0; }
}


/* ===== VERSION 2 HOMEPAGE REFINEMENTS ===== */
.brand-copy strong em { color: var(--ka-blue-2); font-style: normal; }
.header-inner { min-height: 68px; }
.primary-nav { gap: 17px; font-size: 13px; white-space: nowrap; }
.brand { min-width: 230px; }
.brand-mark { width: 42px; height: 42px; font-size: 20px; }

.hero-inner {
  min-height: 470px;
  grid-template-columns: 1.08fr .92fr;
  gap: 52px;
  padding: 56px 0 60px;
}
.hero h1 {
  font-size: clamp(42px, 5.2vw, 64px);
  max-width: 700px;
  margin: 12px 0 16px;
  line-height: 1.03;
}
.hero p {
  max-width: 720px;
  font-size: 18px;
  margin-bottom: 24px;
}
.hero-proof {
  display: flex;
  gap: 28px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.hero-proof div { display: flex; flex-direction: column; }
.hero-proof strong { font-size: 14px; color: #fff; }
.hero-proof span { font-size: 11px; color: rgba(255,255,255,.58); }
.hero-visual { min-height: 315px; }
.screen-glow {
  position: absolute;
  inset: 28px 34px 28px 34px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(31,115,241,.24), rgba(4,20,38,.1));
  border: 1px solid rgba(100,177,255,.16);
}
.visual-card {
  width: 58%;
  left: 58%;
  top: 52%;
  padding: 28px;
}
.visual-kicker {
  color: #9ac8ff !important;
  font-weight: 800;
  font-size: 11px !important;
  letter-spacing: .16em;
}
.visual-card strong { font-size: 28px; line-height: 1.2; text-transform: uppercase; font-style: italic; }
.visual-line { display:block; width:48px; height:3px; background:var(--ka-blue-2); margin-top:18px; }

.home-story-grid {
  display: grid;
  grid-template-columns: 1.55fr .95fr;
  gap: 28px;
  align-items: start;
}
.section-title.compact { margin-bottom: 16px; }
.section-title.compact h2 { font-size: 28px; }
.section-title.compact a { font-size: 12px; }

.featured-v2 {
  display: block;
  position: relative;
  border: 0;
  min-height: 430px;
  color: white;
  background: #0b223d;
}
.featured-v2 .featured-media {
  position: absolute;
  inset: 0;
  min-height: 100%;
  z-index: 1;
}
.featured-v2 .featured-media:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,17,31,.96) 0%, rgba(5,17,31,.82) 50%, rgba(5,17,31,.20) 100%);
}
.featured-v2 .featured-media img { width:100%; height:100%; object-fit:cover; }
.featured-v2 .featured-body {
  position: relative;
  z-index: 2;
  width: 64%;
  min-height: 430px;
  padding: 34px;
  justify-content: flex-end;
}
.featured-v2 .meta { display:inline-block; width:max-content; color:white; background:var(--ka-blue); padding:5px 9px; border-radius:6px; }
.featured-v2 h3 { font-size: 31px; color:white; margin:14px 0 10px; }
.featured-v2 p { color: rgba(255,255,255,.78); max-width: 600px; }
.text-link { color:#43a2ff; font-weight:800; }
.story-time { margin-top:10px; color:var(--ka-muted); font-size:12px; }
.featured-v2 .story-time { color:rgba(255,255,255,.58); }

.fallback-art {
  width:100%; height:100%;
  min-height:430px;
  display:grid; place-items:center;
  position:relative; overflow:hidden;
  background:
    radial-gradient(circle at 76% 28%, rgba(50,149,255,.52), transparent 20%),
    radial-gradient(circle at 86% 65%, rgba(18,86,154,.62), transparent 28%),
    linear-gradient(135deg,#07182b,#10345c);
}
.fallback-art:before {
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:28px 28px;
}
.fallback-art span {
  position:absolute; right:28px; top:24px;
  color:rgba(255,255,255,.55); font-size:12px; letter-spacing:.12em; text-transform:uppercase;
}
.fallback-art strong {
  position:absolute; right:46px; bottom:34px;
  color:rgba(80,170,255,.30); font-size:130px; letter-spacing:-.08em;
}

.latest-column { min-width:0; }
.latest-list { display:flex; flex-direction:column; gap:10px; }
.latest-item {
  display:grid;
  grid-template-columns:1fr 120px;
  border:1px solid var(--ka-line);
  border-radius:13px;
  overflow:hidden;
  min-height:120px;
  background:white;
}
.latest-text { padding:15px 14px; min-width:0; }
.latest-text .meta { font-size:9px; display:inline-block; background:#eef5ff; padding:3px 7px; border-radius:5px; }
.latest-item h3 { font-size:16px; line-height:1.2; margin:8px 0 6px; }
.latest-thumb { min-height:120px; background:#0b223d; overflow:hidden; }
.latest-thumb img { width:100%; height:100%; object-fit:cover; }
.mini-fallback {
  width:100%; height:100%; min-height:120px;
  display:grid; place-items:center;
  background:linear-gradient(145deg,#163f67,#07182b);
}
.mini-fallback span { font-size:50px; font-weight:900; color:rgba(83,168,255,.48); }

.category-grid { grid-template-columns: repeat(5,1fr); }
.category-card {
  min-height: 128px;
  color:white;
  border:0;
  position:relative;
  overflow:hidden;
  box-shadow:0 14px 30px rgba(6,27,50,.10);
}
.category-card:after {
  content:"";
  position:absolute; width:110px; height:110px; border-radius:50%;
  right:-45px; top:-45px; background:rgba(255,255,255,.08);
}
.category-card .category-icon {
  background:rgba(255,255,255,.10);
  color:white;
  border:1px solid rgba(255,255,255,.10);
}
.category-copy { position:relative; z-index:1; }
.category-copy strong { display:block; font-size:15px; }
.category-copy span { color:rgba(255,255,255,.68); font-size:12px; }
.cat-ai-automation { background:linear-gradient(135deg,#0d4987,#082c56); }
.cat-microsoft-cloud { background:linear-gradient(135deg,#07518a,#0d335e); }
.cat-networking { background:linear-gradient(135deg,#0b6c4e,#073e35); }
.cat-how-to { background:linear-gradient(135deg,#8a531f,#4b2b19); }
.cat-tech-news { background:linear-gradient(135deg,#47328e,#271a5b); }

.about-v2 {
  background:linear-gradient(135deg,#06182a,#08223e);
  color:white;
}
.about-v2 .eyebrow { color:#79b7ff; }
.about-v2 .about p { color:rgba(255,255,255,.72); }
.about-v2 p { color:rgba(255,255,255,.72); }
.about-v2 .stat span { color:rgba(255,255,255,.58); }
.about-v2 .stat strong { color:#55a7ff; }
.about-photo {
  min-height: 330px;
  display:grid;
  place-items:center;
}
.about-placeholder {
  position:relative;
  z-index:2;
  color:rgba(255,255,255,.34);
  font-size:12px;
  font-weight:800;
  letter-spacing:.18em;
}

.empty-state {
  border:1px dashed var(--ka-line);
  border-radius:14px;
  padding:28px;
  color:var(--ka-muted);
  background:#fff;
}

@media (max-width: 1100px) {
  .primary-nav { gap: 12px; font-size: 12px; }
  .brand { min-width: 210px; }
}
@media (max-width: 980px) {
  .home-story-grid { grid-template-columns:1fr; }
  .featured-v2 .featured-body { width:75%; }
}
@media (max-width: 760px) {
  .hero-proof { flex-wrap:wrap; gap:18px; }
  .featured-v2 .featured-body { width:100%; }
  .featured-v2 .featured-media:after {
    background:linear-gradient(0deg,rgba(5,17,31,.95),rgba(5,17,31,.30));
  }
  .category-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 520px) {
  .latest-item { grid-template-columns:1fr 94px; }
  .category-grid { grid-template-columns:1fr; }
}
/* Archive article cards */
.archive .card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.archive .post-card {
  background: #fff;
  border: 1px solid var(--ka-line);
  border-radius: var(--ka-radius);
  overflow: hidden;
}

.archive .post-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.archive .post-body {
  padding: 22px;
}

.archive .post-body h3 {
  margin: 8px 0 10px;
}

.archive .post-body p {
  margin: 0;
}

@media (max-width: 760px) {
  .archive .card-grid {
    grid-template-columns: 1fr;
  }

  .archive .post-thumb img {
    height: 200px;
  }
}
/* Reduce extra space above archive heading */
.archive .section.alt {
  padding-top: 70px;
}

@media (max-width: 760px) {
  .archive .section.alt {
    padding-top: 48px;
  }
}
/* Homepage About Kerry photo */
.about-photo {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 4 / 5;
    min-height: 0;
}
.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Remove old KA placeholder overlay */
.about-photo::before,
.about-photo::after {
    display: none !important;
    content: none !important;
}

.about-placeholder {
    display: none !important;
}