/* Kevin Keohane — article pages
   Dark system matching brandandtalent.com, adapted for kevinkeohane.com */

:root {
  --ink: #0b1526;
  --ink-2: #f4f7fb;
  --panel: #ffffff;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --paper: #ffffff;
  --white: #ffffff;
  --mute: #4a5568;
  --mute-2: #6b7280;
  --accent: #F22EBE;
  --accent-2: #ff5aa6;
  --accent-ink: #0a0a0a;
  --accent-glow: rgba(242, 46, 190, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --radius: 14px;
  --pad: clamp(1.15rem, 4vw, 2rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:#ffffff;
  color:#0b1526;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 16px; letter-spacing: -0.02em; color:#0b1526;
}
.nav-logo:hover { opacity: 0.82; }
.kk-nav-mark {
  width: 34px; height: 34px; border-radius: 7px;
  background: #02254B; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #F22EBE; letter-spacing: -0.01em; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); list-style: none; }
.nav-links a { font-size: 0.93rem; color: var(--mute); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color:#0b1526; }
.nav-cta {
  padding: 0.5rem 1.1rem; border: 1px solid var(--line);
  border-radius: 999px; color: var(--white) !important;
  transition: border-color 0.2s, color 0.2s;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent-2) !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.5rem; font-weight: 600; font-size: 0.98rem;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.25s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -12px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color:#0b1526; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }

/* ── Article listing cards ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.blog-card {
  background:#ffffff; border:1px solid #e3e9f1; border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.blog-card:hover { transform: translateY(-3px); border-color: rgba(242,46,190,0.35); box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
.blog-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.blog-card-meta { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.blog-card-title { font-size: 1.05rem; font-weight: 700; color:#0b1526; line-height: 1.35; }
.blog-card-desc { font-size: 0.9rem; color: var(--mute); line-height: 1.6; flex: 1; }
.blog-card-more { font-size: 0.82rem; font-weight: 700; color: var(--accent); margin-top: 0.5rem; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 2rem 0;
  color: var(--mute);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
}
.footer-copy a { color: var(--mute); }
.footer-copy a:hover { color:#0b1526; }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { color: var(--mute); }
.footer-links a:hover { color:#0b1526; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
}
