/* ==========================================================================
   Security Unlocked — Theme Stylesheet
   A dark, warm-toned design system for behavioral cybersecurity research.
   ========================================================================== */


/* ==========================================================================
   1. CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* ── Surfaces ── */
  --bg:            #0f0c0a;
  --surface:       #1e1b18;
  --surface-alt:   #141210;
  --surface-cool:  #12131a;

  /* ── Borders ── */
  --border-warm:   #2a2520;
  --border-cool:   #252830;

  /* ── Text ── */
  --text:          #e8e4de;
  --text-muted:    #9a9590;
  --text-subtle:   #6b6560;

  /* ── Accent palette ── */
  --gold:          #b8976a;
  --steel:         #7d8fa9;
  --teal:          #5d8a7d;
  --ember:         #c4783a;
  --rose:          #8a6b6b;

  /* ── Typography ── */
  --font-heading:  Georgia, 'Times New Roman', serif;
  --font-body:     system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:     'SF Mono', Monaco, monospace;

  /* ── Layout ── */
  --container-max: 1160px;
  --reading-width: 720px;
  --header-height: 64px;

  /* ── Spacing scale ── */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  48px;
  --space-2xl: 80px;
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 32px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

code, pre, kbd, samp {
  font-family: var(--font-mono);
}

code {
  font-size: 0.88em;
  padding: 0.15em 0.4em;
  background: rgba(42, 37, 32, 0.6);
  border-radius: 3px;
  color: var(--gold);
}

pre {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.6rem;
  line-height: 1.5;
}

pre code {
  padding: 0;
  background: none;
  color: var(--text);
}


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}


/* ==========================================================================
   5. HEADER / NAVIGATION
   ========================================================================== */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Site branding */
.site-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-name span {
  color: var(--gold);
}

img.site-logo {
  height: 32px;
  width: auto;
}

/* Mobile nav toggle — hidden on desktop */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

/* Primary navigation */
nav {
  display: flex;
  gap: 32px;
}

nav a,
.site-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

nav a:hover,
.site-nav a:hover {
  color: var(--steel);
}

nav a.active,
.site-nav a.active {
  color: var(--text);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

.site-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}


/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */

.hero {
  padding: var(--space-2xl) 0 64px;
  position: relative;
}

.hero-card {
  position: relative;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--border-warm);
  border-radius: 4px;
  padding: 72px 64px;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(184, 151, 106, 0.3), transparent);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-title {
  font-size: 2.8rem;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  max-width: 780px;
}

.hero-excerpt {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 660px;
  margin-bottom: 28px;
}

.hero-source {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-source strong {
  color: var(--steel);
  font-weight: 600;
}

.hero-divider {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 2.5rem auto 0;
  opacity: 0.6;
}


/* ==========================================================================
   7. ARTICLE HERO (Single Article Page)
   ========================================================================== */

.article-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 8rem 2rem 3rem;
  text-align: center;
}

.category-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184, 151, 106, 0.4);
  padding: 0.35rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.75rem;
}

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.article-deck {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
}

.article-meta .author-name {
  color: var(--text);
  font-weight: 500;
}

.article-meta .publication {
  color: var(--text-muted);
}


/* ==========================================================================
   8. ARTICLE LAYOUT (Body + Sidebar Grid)
   ========================================================================== */

.article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem;
}


/* ==========================================================================
   9. ARTICLE BODY — Reading Styles
   ========================================================================== */

.article-body {
  max-width: var(--reading-width);
}

.article-body p {
  font-size: 1.1rem;
  line-height: 1.78;
  color: var(--text);
  margin-bottom: 1.6rem;
}

.article-body a {
  color: var(--steel);
  text-decoration: none;
  transition: all 0.3s;
}

.article-body a:hover {
  text-decoration: underline;
}

/* Drop cap on first paragraph */
.article-body .lead-paragraph::first-letter,
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-heading);
  float: left;
  font-size: 3.8rem;
  line-height: 0.8;
  font-weight: 700;
  color: var(--gold);
  margin: 0.06em 0.12em 0 0;
  padding-top: 0.08em;
}

/* In-article headings */
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 3rem 0 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--steel);
  line-height: 1.35;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 1rem;
}

/* Blockquotes */
.article-body blockquote {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin: 1.5rem 0;
  padding-left: 20px;
  border-left: 2px solid var(--border-warm);
  line-height: 1.6;
}

/* Lists inside articles */
.article-body ul,
.article-body ol {
  margin: 0 0 1.6rem 1.25rem;
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  color: var(--text);
}


/* ==========================================================================
   10. PULL QUOTES
   ========================================================================== */

.pull-quote {
  border-left: 3px solid var(--ember);
  margin: 2.5rem 0 2.5rem -1rem;
  padding: 1.5rem 2rem;
  background: rgba(196, 120, 58, 0.04);
}

.pull-quote p {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.65;
  color: #ede9e3;
  margin-bottom: 0;
}

.pull-quote .attribution {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-style: normal;
  color: var(--text-muted);
  margin-top: 0.75rem;
  letter-spacing: 0.03em;
}


/* ==========================================================================
   11. CALLOUT / INSIGHT BOXES
   ========================================================================== */

.insight-box {
  background: var(--surface-cool);
  border-top: 3px solid var(--teal);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  border-radius: 0 0 4px 4px;
}

.insight-box .insight-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.insight-box .insight-icon {
  display: inline-block;
  color: var(--teal);
  margin-right: 0.4rem;
  vertical-align: middle;
}

.insight-box p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Key Insight (used in article content via HTML) */
.key-insight {
  background: var(--surface-cool);
  border-top: 3px solid var(--teal);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  border-radius: 0 0 4px 4px;
}

.key-insight__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.key-insight p:last-child {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0;
}

/* Key Takeaways section wrapper */
.key-takeaways {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 6px 6px;
  padding: 2rem 2rem 1.5rem;
  margin: 3rem 0;
}

.key-takeaways h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold);
  margin: 0 0 1.25rem 0;
  padding: 0;
  border: none;
}

.key-takeaways ul,
.key-takeaways ol {
  margin: 0 0 0 1.25rem;
}

.key-takeaways li {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1rem;
}

.key-takeaways li strong {
  color: var(--text);
}


/* ==========================================================================
   12. BADGES / CATEGORY COLORS
   ========================================================================== */

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--gold {
  background: rgba(184, 151, 106, 0.12);
  color: var(--gold);
  border: 1px solid rgba(184, 151, 106, 0.22);
}

.badge--steel {
  background: rgba(125, 143, 169, 0.12);
  color: var(--steel);
  border: 1px solid rgba(125, 143, 169, 0.22);
}

.badge--teal {
  background: rgba(93, 138, 125, 0.12);
  color: var(--teal);
  border: 1px solid rgba(93, 138, 125, 0.22);
}

.badge--ember {
  background: rgba(196, 120, 58, 0.12);
  color: var(--ember);
  border: 1px solid rgba(196, 120, 58, 0.2);
}

.badge--rose {
  background: rgba(138, 107, 107, 0.12);
  color: var(--rose);
  border: 1px solid rgba(138, 107, 107, 0.22);
}


/* ==========================================================================
   13. SECTION LABELS & TITLES
   ========================================================================== */

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.section-label--gold  { color: var(--gold); }
.section-label--steel { color: var(--steel); }
.section-label--ember { color: var(--ember); }
.section-label--teal  { color: var(--teal); }

.section-title {
  font-size: 1.8rem;
  margin-bottom: var(--space-xl);
}


/* ==========================================================================
   14. ARTICLE CARDS (Grid)
   ========================================================================== */

.articles-section {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: var(--bg);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-top: 2px solid transparent;
  border-radius: 4px;
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Category-colored top border on hover */
.article-card[data-cat="gold"]:hover  { border-top-color: var(--gold); }
.article-card[data-cat="steel"]:hover { border-top-color: var(--steel); }
.article-card[data-cat="teal"]:hover  { border-top-color: var(--teal); }
.article-card[data-cat="ember"]:hover { border-top-color: var(--ember); }
.article-card[data-cat="rose"]:hover  { border-top-color: var(--rose); }

.article-card .badge {
  margin-bottom: 18px;
  align-self: flex-start;
}

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.article-card .card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-card .card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.card-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-warm);
  font-size: 0.75rem;
  color: var(--text-subtle);
}


/* ==========================================================================
   15. READ LINK (arrow animation)
   ========================================================================== */

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.04em;
  margin-top: 8px;
  transition: gap 0.2s;
}

.read-link:hover { gap: 14px; }
.read-link::after { content: '\2192'; }


/* ==========================================================================
   16. WEEKLY BRIEF SECTION
   ========================================================================== */

.brief-section {
  padding: var(--space-2xl) 0;
  background: var(--surface-cool);
  border-top: 1px solid var(--border-cool);
  border-bottom: 1px solid var(--border-cool);
}

.brief-card {
  background: rgba(30, 27, 24, 0.5);
  border: 1px solid var(--border-cool);
  border-left: 3px solid var(--ember);
  border-radius: 4px;
  padding: 48px 56px;
}

.brief-card .section-label {
  margin-bottom: 4px;
}

.brief-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.brief-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  line-height: 1.4;
}

.brief-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.brief-tag {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 2px;
  background: rgba(196, 120, 58, 0.08);
  color: var(--ember);
  border: 1px solid rgba(196, 120, 58, 0.18);
}

.brief-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ember);
  transition: gap 0.2s;
}

.brief-link:hover { gap: 14px; }
.brief-link::after { content: '\2192'; }


/* ==========================================================================
   17. TOOLS SECTION
   ========================================================================== */

.tools-section {
  padding: var(--space-2xl) 0;
  background: var(--bg);
  border-top: 1px solid var(--border-warm);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: 4px;
  padding: 40px 36px;
  transition: border-color 0.25s;
}

.tool-card:hover {
  border-color: rgba(93, 138, 125, 0.3);
}

.tool-name {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.tool-subtitle {
  font-size: 0.82rem;
  color: var(--teal);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.tool-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}


/* ==========================================================================
   18. BUTTONS
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 10px 28px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--teal {
  border: 1px solid var(--teal);
  color: var(--teal);
  background: transparent;
}

.btn--teal:hover {
  background: var(--teal);
  color: var(--bg);
}

.btn--teal-solid {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: var(--bg);
}

.btn--teal-solid:hover {
  background: #4e7a6d;
  border-color: #4e7a6d;
}

.btn--gold-solid {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--bg);
}

.btn--gold-solid:hover {
  background: #a6865e;
  border-color: #a6865e;
}


/* ==========================================================================
   19. PUBLISHED-IN CREDIBILITY STRIP
   ========================================================================== */

.credibility-section {
  padding: 64px 0;
  background: var(--surface-cool);
  border-top: 1px solid var(--border-cool);
  border-bottom: 1px solid var(--border-cool);
  text-align: center;
}

.credibility-section .section-label {
  margin-bottom: 36px;
}

.pub-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.pub-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.pub-name:hover {
  color: var(--text-muted);
}


/* ==========================================================================
   20. ABOUT / AUTHOR SECTIONS
   ========================================================================== */

.about-section {
  padding: var(--space-2xl) 0;
  background: var(--bg);
  border-top: 1px solid var(--border-warm);
}

.about-inner {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.about-text { flex: 1; }

.about-name {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.about-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 600px;
}

.about-quote {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin: 24px 0;
  padding-left: 20px;
  border-left: 2px solid var(--border-warm);
  line-height: 1.6;
}

.about-links {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.about-links a {
  font-size: 0.82rem;
  color: var(--steel);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.about-links a:hover {
  color: var(--text);
}

.about-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface) 0%, #252018 100%);
  border: 2px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-subtle);
}

/* Author bio card (article page, inline) */
.author-bio-card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: 4px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 2px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.author-bio-content .author-bio-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.author-bio-content .author-bio-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.author-bio-content .author-bio-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ==========================================================================
   21. SIDEBAR
   ========================================================================== */

.article-sidebar {
  padding-top: 0.5rem;
}

.sidebar-section {
  position: sticky;
  top: 5.5rem;
}

.sidebar-block {
  margin-bottom: 2.5rem;
}

.sidebar-heading {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-warm);
}

/* Table of contents */
.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.5;
  display: block;
  padding: 0.25rem 0 0.25rem 0.75rem;
  border-left: 2px solid transparent;
  transition: all 0.3s;
}

.toc-list a:hover {
  color: var(--steel);
}

.toc-list a.active {
  color: var(--text);
  border-left-color: var(--gold);
}

/* Author card (sidebar, compact) */
.author-card-sm {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: 4px;
  border: 1px solid var(--border-warm);
}

.author-card-sm .name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.author-card-sm .role {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.author-card-sm .bio {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Related articles (sidebar) */
.related-link {
  display: block;
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-warm);
}

.related-link:last-child {
  border-bottom: none;
}

.related-link .r-title {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.45;
  transition: color 0.3s;
}

.related-link:hover .r-title {
  color: var(--steel);
}

.related-link .r-source {
  font-size: 0.72rem;
  color: var(--text-subtle);
  margin-top: 0.2rem;
}


/* ==========================================================================
   22. ARTICLE FOOTER (tags, share, source)
   ========================================================================== */

.article-footer {
  max-width: var(--reading-width);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-warm);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: #b09a9a;
  text-decoration: none;
  background: rgba(138, 107, 107, 0.12);
  border: 1px solid rgba(138, 107, 107, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  transition: all 0.3s;
}

.tag:hover {
  border-color: var(--rose);
  color: #c4aeae;
  background: rgba(138, 107, 107, 0.2);
}

.share-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.share-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border-warm);
  color: var(--text-subtle);
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.3s;
}

.share-btn:hover {
  border-color: var(--steel);
  color: var(--steel);
}

.originally-published {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.originally-published a {
  color: var(--steel);
  text-decoration: none;
}

.originally-published a:hover {
  text-decoration: underline;
}


/* ==========================================================================
   23. CONTINUE READING (Related Articles Grid)
   ========================================================================== */

.continue-reading {
  background: var(--bg);
  border-top: 1px solid var(--border-warm);
}

.continue-reading-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.continue-reading h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.related-card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-top: 3px solid transparent;
  border-radius: 4px;
  padding: 1.75rem;
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  transform: translateY(-2px);
}

.related-card[data-category="threat"]:hover   { border-top-color: var(--ember); }
.related-card[data-category="ai"]:hover       { border-top-color: var(--steel); }
.related-card[data-category="strategy"]:hover { border-top-color: var(--teal); }

.related-card .rc-category {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.related-card[data-category="threat"] .rc-category   { color: var(--ember); }
.related-card[data-category="ai"] .rc-category       { color: var(--steel); }
.related-card[data-category="strategy"] .rc-category { color: var(--teal); }

.related-card .rc-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.related-card .rc-source {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
}


/* ==========================================================================
   24. NEWSLETTER
   ========================================================================== */

.newsletter-section {
  padding: var(--space-2xl) 0;
  background: var(--surface-cool);
  border-top: 1px solid var(--border-cool);
  text-align: center;
}

.newsletter-section .section-title {
  margin-bottom: 12px;
}

.newsletter-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 18px;
  font-size: 0.88rem;
  background: rgba(30, 27, 24, 0.6);
  border: 1px solid var(--border-cool);
  border-radius: 3px;
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-subtle);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--gold);
}


/* ==========================================================================
   25. FOOTER
   ========================================================================== */

footer,
.site-footer {
  border-top: 1px solid var(--border-warm);
  padding: 48px 0 40px;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand .site-name {
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-subtle);
  font-style: italic;
  font-family: var(--font-heading);
}

.footer-nav,
.footer-links {
  display: flex;
  gap: 28px;
}

.footer-nav a,
.footer-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-warm);
  font-size: 0.72rem;
  color: #3a3530;
}

/* Centered footer variant (article pages) */
.site-footer {
  text-align: center;
  padding: 3rem 2rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-logo span {
  color: var(--gold);
}

.footer-links {
  justify-content: center;
  margin-bottom: 1.5rem;
}


/* ==========================================================================
   26. UTILITY CLASSES
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-gold   { color: var(--gold); }
.text-steel  { color: var(--steel); }
.text-teal   { color: var(--teal); }
.text-ember  { color: var(--ember); }
.text-rose   { color: var(--rose); }
.text-muted  { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }

.bg-surface  { background: var(--surface); }
.bg-cool     { background: var(--surface-cool); }

.mt-0  { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0  { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }


/* ==========================================================================
   27. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ── Tablet (max-width: 900px) ── */
@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 48px 36px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .brief-card {
    padding: 36px 28px;
  }

  .about-inner {
    flex-direction: column;
    gap: 32px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .article-sidebar {
    order: 2;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-warm);
  }

  .sidebar-section {
    position: static;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .author-bio-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-inner {
    padding: 0 1.25rem;
  }

  .site-nav {
    gap: 1.25rem;
  }

  .site-nav a {
    font-size: 0.75rem;
  }

  .article-hero {
    padding: 6.5rem 1.25rem 2.5rem;
  }

  .article-layout {
    padding: 0 1.25rem 3rem;
  }

  .continue-reading-inner {
    padding: 3rem 1.25rem 4rem;
  }
}

/* ── Mobile (max-width: 600px) ── */
@media (max-width: 600px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  nav {
    gap: 18px;
  }

  nav a {
    font-size: 0.72rem;
  }

  .site-nav {
    gap: 0.8rem;
  }

  .hero-card {
    padding: 36px 24px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-excerpt {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .pub-strip {
    gap: 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .article-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .share-row {
    flex-wrap: wrap;
  }

  .pull-quote {
    margin-left: 0;
    padding: 1.25rem 1.5rem;
  }
}


/* ==========================================================================
   28. PRINT STYLES
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }

  /* Hide non-essential UI */
  header,
  .site-header,
  nav,
  .site-nav,
  footer,
  .site-footer,
  .newsletter-section,
  .share-row,
  .share-btn,
  .article-sidebar,
  .continue-reading,
  .tools-section {
    display: none !important;
  }

  .article-layout {
    display: block;
  }

  .article-body {
    max-width: 100%;
  }

  .hero-card {
    border: none;
    padding: 0;
  }

  .hero-card::before {
    display: none;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  h2, h3 {
    page-break-after: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }
}


/* ==========================================================================
   30. EDITORIAL PAGES (About, Contact/Work With Me)
   ========================================================================== */

.page-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.page-hero .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-hero .section-subtitle,
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.editorial-page {
  padding: 0 0 4rem;
}

/* Reuse article-body typography for editorial pages */
.article-content {
  line-height: 1.78;
  font-size: 1.1rem;
  color: var(--text);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-warm);
  color: var(--text);
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 2rem 0 1rem;
  color: var(--text);
}

.article-content a {
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.article-content a:hover {
  border-bottom-color: var(--steel);
}

.article-content strong {
  color: var(--text);
  font-weight: 600;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.article-content li strong {
  color: var(--gold);
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border-warm);
  margin: 2.5rem 0;
}

.article-content blockquote {
  border-left: 3px solid var(--ember);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: rgba(196, 120, 58, 0.05);
  font-style: italic;
  color: var(--text-muted);
}

.article-content blockquote p {
  margin-bottom: 0;
}


/* ==========================================================================
   31. MENTIONS PAGE
   ========================================================================== */

.mentions-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.mentions-hero .section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.mentions-hero .section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.mentions-listing {
  padding: 0 0 4rem;
}

.mentions-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mention-card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.mention-card:hover {
  border-color: var(--steel);
  transform: translateY(-2px);
}

.mention-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.mention-card__outlet {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--steel);
  border: 1px solid var(--steel);
  background: rgba(125, 143, 169, 0.08);
}

.mention-card__date {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.mention-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.mention-card__title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mention-card__title a:hover {
  color: var(--steel);
}

.external-icon {
  opacity: 0.5;
  flex-shrink: 0;
}

.mention-card__title a:hover .external-icon {
  opacity: 1;
}

.mention-card__summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}


/* ==========================================================================
   32. SINGLE MENTION PAGE
   ========================================================================== */

.mention-single {
  padding: 2rem 0 4rem;
}

.mention-outlet-badge {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--steel);
  border: 1px solid var(--steel);
  background: rgba(125, 143, 169, 0.08);
  margin-bottom: 1rem;
}

.mention-source-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--steel);
  border: 1px solid var(--steel);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.mention-source-link:hover {
  background: rgba(125, 143, 169, 0.12);
  color: var(--text);
}

.back-link {
  display: inline-block;
  color: var(--steel);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

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


/* ==========================================================================
   33. TOOLS LISTING PAGE
   ========================================================================== */

.tools-listing {
  padding: 0 0 4rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.tool-listing-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  padding: 2rem;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.tool-listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.tool-listing-card[data-accent="teal"]:hover { border-color: var(--teal); }
.tool-listing-card[data-accent="steel"]:hover { border-color: var(--steel); }

.tool-listing-card__icon {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.tool-listing-card[data-accent="teal"] .tool-listing-card__icon { color: var(--teal); }
.tool-listing-card[data-accent="steel"] .tool-listing-card__icon { color: var(--steel); }

.tool-listing-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.tool-listing-card__subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.tool-listing-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.tool-listing-card__cta {
  font-size: 0.9rem;
  font-weight: 600;
}

.tool-listing-card[data-accent="teal"] .tool-listing-card__cta { color: var(--teal); }
.tool-listing-card[data-accent="steel"] .tool-listing-card__cta { color: var(--steel); }

.tool-listing-card:hover .tool-listing-card__cta {
  text-decoration: underline;
}


/* ==========================================================================
   34. AEGIS DEMO EMBED
   ========================================================================== */

.aegis-demo {
  padding: 0 0 4rem;
}

.aegis-frame {
  width: 100%;
  min-height: 5000px;
  border: none;
  border-radius: 10px;
  background: transparent;
}
