:root {
  --bg: #0b1020;
  --panel: #121a2f;
  --panel-2: #17213a;
  --text: #e6edf3;
  --muted: #9fb0c6;
  --border: #263653;
  --accent: #8bd5ff;
  --accent-2: #b9fbc0;
  --code: #0f172a;
  --max: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at top left, #17213a 0, var(--bg) 35rem);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header, .site-footer, .container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); }

.container { padding: 3rem 0 4rem; }

.hero {
  padding: 5rem 0 4rem;
}

.eyebrow, .date {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.4rem, 8vw, 5rem); margin: 0.25rem 0 1rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 2rem; }
h3 { font-size: 1.35rem; }

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.2rem;
}

.actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.button {
  display: inline-block;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  background: var(--accent);
  color: #03111f;
  font-weight: 800;
}
.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.section { margin-top: 2rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card, .post-row {
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}
.card h3, .post-row h2 { margin: 0.25rem 0; }
.post-list { display: grid; gap: 1rem; }

.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.intro { color: var(--muted); }

.article {
  max-width: 780px;
  margin: 0 auto;
}
.article-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.article-header h1 { font-size: clamp(2.1rem, 6vw, 4rem); }

.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.tags span {
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
}

.content p, .content li { color: var(--text); }
.content blockquote {
  border-left: 4px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  background: var(--panel);
  color: var(--muted);
}

code {
  background: var(--code);
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  padding: 0.1rem 0.3rem;
}
pre {
  overflow-x: auto;
  background: var(--code);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
}
pre code { border: 0; padding: 0; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
}

/* ================================
   Parker Security Blog Refinement
   Unique theme + better image layout
   Add this at the bottom of your CSS
   ================================ */

:root {
  --bg-main: #070b16;
  --bg-panel: #0d1424;
  --bg-panel-soft: #101a2e;
  --text-main: #e8edf7;
  --text-muted: #9ba8bd;
  --accent: #6ecbff;
  --accent-hot: #ff3d7f;
  --border-soft: rgba(110, 203, 255, 0.18);
  --border-hot: rgba(255, 61, 127, 0.24);
}

/* Page background: subtle security-console feel */
body {
  background:
    radial-gradient(circle at top left, rgba(110, 203, 255, 0.10), transparent 34rem),
    radial-gradient(circle at top right, rgba(255, 61, 127, 0.09), transparent 30rem),
    linear-gradient(180deg, #070b16 0%, #090d18 100%);
  color: var(--text-main);
}

/* Main content should feel like a centered report, not a loose page */
main,
.container,
.content,
.post,
article {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* Better article header spacing */
article header,
.post-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 1.25rem;
}

/* More distinct post titles */
h1 {
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h2 {
  margin-top: 3rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.9rem;
}

h3 {
  color: var(--accent);
}

/* Tag pills */
.tags a,
.post-tags a,
.taxonomy a {
  background: rgba(110, 203, 255, 0.10);
  border: 1px solid rgba(110, 203, 255, 0.18);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  color: var(--text-muted);
  text-decoration: none;
}

.tags a:hover,
.post-tags a:hover,
.taxonomy a:hover {
  color: var(--text-main);
  border-color: var(--accent);
}

/* Blockquotes as security notes */
blockquote {
  background: linear-gradient(90deg, rgba(110, 203, 255, 0.13), rgba(110, 203, 255, 0.04));
  border-left: 4px solid var(--accent);
  border-radius: 0.4rem;
  padding: 1rem 1.2rem;
  color: var(--text-main);
}

/* Code blocks: cleaner terminal style */
pre {
  background: #050811;
  border: 1px solid rgba(110, 203, 255, 0.18);
  border-radius: 0.65rem;
  padding: 1rem;
  overflow-x: auto;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.25);
}

code {
  color: #dce8ff;
}

/* Inline code */
p code,
li code {
  background: rgba(110, 203, 255, 0.10);
  border: 1px solid rgba(110, 203, 255, 0.14);
  border-radius: 0.25rem;
  padding: 0.12rem 0.32rem;
}

/* Normal figures: centered and constrained */
figure {
  margin: 2rem auto;
  max-width: 100%;
  text-align: center;
}

figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(110, 203, 255, 0.16);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

figcaption {
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-style: italic;
}

/* Wide hero/cert images: break out wider but stay centered */
figure.hero-image,
figure.wide-image {
  width: min(1120px, calc(100vw - 3rem));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

figure.hero-image img,
figure.wide-image img {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  object-position: center;
}

/* Optional: make horizontal rules feel intentional */
hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 203, 255, 0.35), transparent);
  margin: 3rem 0;
}

/* Article lists: slightly cleaner spacing */
li {
  margin-bottom: 0.35rem;
}

/* Links */
a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hot);
}

/* Mobile cleanup */
@media (max-width: 768px) {
  main,
  .container,
  .content,
  .post,
  article {
    max-width: calc(100vw - 2rem);
  }

  figure.hero-image,
  figure.wide-image {
    width: calc(100vw - 2rem);
  }

  h1 {
    font-size: 2.4rem;
  }
}
/* ================================
   Text color fix after theme refinements
   Put this at the VERY bottom of your CSS
   ================================ */

/* Global readable text */
body,
main,
article,
.content,
.container,
.post,
.page,
.post-content,
.entry-content {
  color: var(--text-main) !important;
}

/* Article titles and headings */
h1,
h2,
h3,
h4,
h5,
h6,
article h1,
article h2,
article h3,
article h4,
article h5,
article h6,
.post-title,
.post-header h1,
.page-title {
  color: var(--text-main) !important;
}

/* Make section headings keep the accent style but remain readable */
article h2,
.post-content h2,
.entry-content h2 {
  color: var(--text-main) !important;
  border-left: 4px solid var(--accent);
  padding-left: 0.9rem;
}

/* Blog index / preview cards */
.post-card,
.post-entry,
.blog-card,
.list-entry,
article.summary,
.entry {
  color: var(--text-main) !important;
  background: var(--bg-panel);
}

/* Blog preview titles */
.post-card h1,
.post-card h2,
.post-card h3,
.post-entry h1,
.post-entry h2,
.post-entry h3,
.blog-card h1,
.blog-card h2,
.blog-card h3,
.list-entry h1,
.list-entry h2,
.list-entry h3,
.entry h1,
.entry h2,
.entry h3 {
  color: var(--text-main) !important;
}

/* Blog preview title links */
.post-card h1 a,
.post-card h2 a,
.post-card h3 a,
.post-entry h1 a,
.post-entry h2 a,
.post-entry h3 a,
.blog-card h1 a,
.blog-card h2 a,
.blog-card h3 a,
.list-entry h1 a,
.list-entry h2 a,
.list-entry h3 a,
.entry h1 a,
.entry h2 a,
.entry h3 a {
  color: var(--accent) !important;
  text-decoration: none;
}

/* Blog preview summaries/descriptions */
.post-card p,
.post-entry p,
.blog-card p,
.list-entry p,
.entry p,
.summary,
.description,
.post-summary,
.entry-summary {
  color: var(--text-muted) !important;
}

/* Body paragraphs */
p,
li {
  color: var(--text-main);
}

/* Muted metadata */
time,
.date,
.post-date,
.entry-date,
.meta,
.post-meta {
  color: #9dffb0 !important;
}

/* Links inside posts */
article a,
.post-content a,
.entry-content a {
  color: var(--accent) !important;
}

article a:hover,
.post-content a:hover,
.entry-content a:hover {
  color: var(--accent-hot) !important;
}

/* Keep tag text readable */
.tags a,
.post-tags a,
.taxonomy a,
.terms a {
  color: #cfe3ff !important;
}

.tags a:hover,
.post-tags a:hover,
.taxonomy a:hover,
.terms a:hover {
  color: #ffffff !important;
}
