/* =============================================
   SENTINEL THEME — Federal Cybersecurity Blog
   Aesthetic: Dark industrial / terminal / threat intel
   Fonts: Syne (display) + IBM Plex Mono (code/accent) + Inter (body)
   ============================================= */

:root {
  --bg:          #0a0c0f;
  --bg-card:     #0f1217;
  --bg-card-hover: #141820;
  --border:      #1e2530;
  --border-accent: #2a3545;
  --text:        #c8d0dc;
  --text-muted:  #5a6478;
  --text-dim:    #3a4255;
  --accent:      #00d4aa;
  --accent-dim:  rgba(0, 212, 170, 0.08);
  --accent-2:    #ff6b35;
  --accent-2-dim: rgba(255, 107, 53, 0.08);
  --tag-bg:      #111820;
  --tag-color:   #4a9eff;
  --code-bg:     #080b0e;
  --font-display: 'Syne', sans-serif;
  --font-mono:   'IBM Plex Mono', monospace;
  --font-body:   'Inter', sans-serif;
  --radius:      4px;
  --max-w:       860px;
  --max-w-wide:  1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Subtle grid texture */
  background-image:
    linear-gradient(rgba(0,212,170,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---- CONTAINER ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER ---- */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: rgba(10, 12, 15, 0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w-wide);
}

.site-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-bracket {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.nav-toggle { display: none; }

/* ---- HERO ---- */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: -24px; right: -24px; bottom: 0;
  background: radial-gradient(ellipse 70% 60% at 15% 50%, rgba(0,212,170,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  opacity: 0.8;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: #e8edf5;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  opacity: 0.75;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.8;
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ---- POST GRID ---- */
.post-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 80px;
}

.post-card {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  position: relative;
}

.post-card::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.25s ease;
  transform-origin: bottom;
}

.post-card:hover::before {
  transform: scaleY(1);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.post-card-meta time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--tag-bg);
  color: var(--tag-color);
  border: 1px solid rgba(74, 158, 255, 0.2);
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.post-card-title a {
  color: #e0e8f0;
  text-decoration: none;
  transition: color 0.2s;
}

.post-card-title a:hover {
  color: var(--accent);
}

.post-card-summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  max-width: 600px;
}

.read-more {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.read-more:hover { opacity: 0.7; }

/* ---- SINGLE POST ---- */
.single-post {
  padding: 60px 0 80px;
}

.post-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.post-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.post-header-meta time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: #e8edf5;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.post-deck {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}

/* ---- POST BODY TYPOGRAPHY ---- */
.post-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text);
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #e0e8f0;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #d0d8e4;
  margin: 32px 0 12px;
}

.post-body h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 24px 0 8px;
}

.post-body p { margin-bottom: 20px; }

.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0,212,170,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.post-body a:hover {
  text-decoration-color: var(--accent);
}

.post-body ul, .post-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.post-body li { margin-bottom: 6px; }

.post-body strong {
  color: #e0e8f0;
  font-weight: 500;
}

.post-body em { color: var(--text-muted); }

.post-body blockquote {
  border-left: 3px solid var(--accent-2);
  padding: 12px 20px;
  margin: 28px 0;
  background: var(--accent-2-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ---- CODE BLOCKS ---- */
.post-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 3px;
  color: #ff8c42;
}

.post-body pre {
  background: var(--code-bg) !important;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
  position: relative;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Hugo syntax highlight override */
.highlight {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
  border: 1px solid var(--border-accent);
}

.highlight pre {
  margin: 0;
  border: none;
  border-radius: 0;
}

/* ---- TABLES ---- */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.9rem;
}

.post-body th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-bottom: 2px solid var(--border-accent);
  padding: 10px 14px;
  text-align: left;
}

.post-body td {
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  vertical-align: top;
}

.post-body tr:hover td { background: var(--bg-card); }

/* ---- POST FOOTER ---- */
.post-footer {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.share-prompt {
  display: flex;
  align-items: center;
  gap: 14px;
}

.share-prompt span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-linkedin {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--accent);
  color: #0a0c0f;
  padding: 8px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.btn-linkedin:hover { opacity: 0.85; }

.back-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

/* ---- PAGE HEADER ---- */
.page-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #e8edf5;
}

/* ---- SITE MAIN ---- */
.site-main { flex: 1; }

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 24px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w-wide);
  margin-bottom: 16px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--accent); }

.footer-sep { color: var(--text-dim); }

.footer-bottom {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  display: flex;
  gap: 12px;
  max-width: var(--max-w-wide);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .site-nav { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 12px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: var(--radius);
  }
  .hero { padding: 60px 0 48px; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .post-footer { flex-direction: column; align-items: flex-start; }
}
