/* =============================================
   DXHR HUGO THEME
   Deus Ex: Human Revolution Inspired
   ============================================= */

/* --- VARIABLES --- */
:root {
  --gold: #c9a84c;
  --gold-bright: #e8c84a;
  --gold-dim: #8a6d2b;
  --gold-dark: #4a3a15;
  --black: #0a0a0a;
  --black-light: #111111;
  --black-card: #141414;
  --black-surface: #1a1a1a;
  --gray-dark: #222222;
  --gray: #2a2a2a;
  --gray-mid: #555;
  --gray-light: #888;
  --text: #c0b8a0;
  --text-bright: #e0d8c0;
}

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

/* --- BASE --- */
body {
  background: var(--black);
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.5s, color 0.5s;
}

/* Geometric BG */
body::before {
  content: "";
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background:
    linear-gradient(135deg, transparent 48%, rgba(201,168,76,0.02) 49%, rgba(201,168,76,0.02) 51%, transparent 52%),
    linear-gradient(45deg, transparent 48%, rgba(201,168,76,0.015) 49%, rgba(201,168,76,0.015) 51%, transparent 52%);
  background-size: 80px 80px;
  pointer-events: none; z-index: 0;
  transition: background 0.5s;
}

/* Scanlines */
body::after {
  content: "";
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.07) 2px, rgba(0,0,0,0.07) 4px);
  pointer-events: none; z-index: 9999;
}

/* --- TOP GOLD LINE --- */
.top-line {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 10;
  background: linear-gradient(90deg, transparent 5%, var(--gold-dim) 30%, var(--gold) 50%, var(--gold-dim) 70%, transparent 95%);
  transition: background 0.5s;
}

/* --- FLOATING TRIANGLES --- */
.tri { position: fixed; opacity: 0; animation: triFade 8s ease-in-out infinite; color: var(--gold); z-index: 0; }
.tri:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.tri:nth-child(2) { top: 70%; left: 5%; animation-delay: 2.5s; }
.tri:nth-child(3) { top: 20%; right: 10%; animation-delay: 1.2s; }
.tri:nth-child(4) { bottom: 15%; right: 6%; animation-delay: 3.8s; }
.tri:nth-child(5) { top: 45%; left: 15%; animation-delay: 5s; }
.tri:nth-child(6) { bottom: 30%; right: 18%; animation-delay: 6.5s; }
@keyframes triFade {
  0%, 100% { opacity: 0; transform: translateY(10px) scale(0.9); }
  30%, 70% { opacity: 0.08; transform: translateY(0) scale(1); }
}

/* --- GLOW --- */
.glow {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
  transition: background 0.5s;
}

/* --- CORNER ACCENTS --- */
.corner { position: fixed; width: 30px; height: 30px; opacity: 0.15; z-index: 1; color: var(--gold); transition: color 0.5s, opacity 0.5s; }
.corner.tl { top: 20px; left: 20px; }
.corner.tr { top: 20px; right: 20px; transform: scaleX(-1); }
.corner.bl { bottom: 20px; left: 20px; transform: scaleY(-1); }
.corner.br { bottom: 20px; right: 20px; transform: scale(-1); }

/* --- SYSTEM FOOTER --- */
.sys-footer {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.6rem; letter-spacing: 0.15em;
  color: var(--gold-dim); white-space: nowrap; z-index: 1;
  transition: color 0.5s;
}


/* ===========================================
   HOMEPAGE
   =========================================== */

.home-container {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 3rem 2rem 5rem;
}

/* Triangle logo */
.logo-tri {
  width: 40px; height: 40px; margin-bottom: 2rem;
  position: relative;
  animation: pulse 4s ease-in-out infinite;
}
.logo-tri::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 20px solid transparent; border-right: 20px solid transparent;
  border-bottom: 35px solid var(--gold); opacity: 0.7;
}
.logo-tri::after {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-bottom: 24px solid var(--black); transition: border-bottom-color 0.5s;
}
@keyframes pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(201,168,76,0.2)); }
  50% { filter: drop-shadow(0 0 20px rgba(201,168,76,0.4)); }
}

/* Terminal prompt */
.prompt-line {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.75rem; letter-spacing: 0.25em;
  color: var(--gold-dim); margin-bottom: 2.5rem;
  opacity: 0; animation: typeIn 0.6s ease 0.3s forwards;
}
.prompt-line .gt { color: var(--gold); }
.cursor {
  display: inline-block; width: 7px; height: 13px;
  background: var(--gold); vertical-align: middle; margin-left: 3px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes typeIn { to { opacity: 1; } }

/* Name / title */
.home-title {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); line-height: 1.2; margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(201,168,76,0.15);
  opacity: 0; animation: fadeUp 0.8s ease 0.5s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hex divider */
.hex-div {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 1.2rem auto 1.5rem;
  opacity: 0; animation: typeIn 0.5s ease 0.7s forwards;
}
.hex-div .line { width: 50px; height: 1px; }
.hex-div .line.l { background: linear-gradient(90deg, transparent, var(--gold-dim)); }
.hex-div .line.r { background: linear-gradient(90deg, var(--gold-dim), transparent); }
.hex-div .hex {
  width: 8px; height: 8px; background: var(--gold-dim);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Roles */
.role {
  font-family: "Rajdhani", sans-serif;
  font-weight: 400; font-size: 1rem; letter-spacing: 0.08em;
  color: var(--text); line-height: 1.8; margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp 0.8s ease 0.8s forwards;
}
.role .sep {
  display: inline-block; width: 4px; height: 4px;
  background: var(--gold-dark); border-radius: 50%;
  vertical-align: middle; margin: 0 0.6rem;
}

/* Nav links */
.nav-links {
  display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s ease 1s forwards;
}
.nav-links a {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; color: var(--gold);
  padding: 0.7rem 1.8rem;
  border: 1px solid var(--gold-dim); background: transparent;
  transition: all 0.35s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.nav-links a::before {
  content: "//"; font-family: "Share Tech Mono", monospace;
  font-size: 0.65rem; color: var(--gold-dark); margin-right: 5px;
  transition: color 0.3s;
}
.nav-links a:hover {
  background: rgba(201,168,76,0.1); border-color: var(--gold);
  box-shadow: 0 0 25px rgba(201,168,76,0.12), inset 0 0 25px rgba(201,168,76,0.04);
}

/* Social links */
.social-links {
  display: flex; justify-content: center; gap: 1rem;
  margin-top: 2rem;
  opacity: 0; animation: fadeUp 0.8s ease 1.2s forwards;
}
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: var(--gold-dim);
  border: 1px solid var(--gold-dark);
  background: transparent;
  transition: all 0.35s;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.social-links a svg {
  width: 16px; height: 16px;
}
.social-links a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
  box-shadow: 0 0 15px rgba(201,168,76,0.12);
}

/* Homepage posts section */
.home-posts {
  width: 100%; max-width: 1100px;
  margin-top: 4rem; text-align: left;
}


/* ===========================================
   INNER PAGES
   =========================================== */

/* --- SITE HEADER --- */
.site-header {
  position: relative; z-index: 10;
  background: linear-gradient(180deg, var(--black-light) 0%, transparent 100%);
  border-bottom: 1px solid var(--gold-dark);
  padding: 0 2rem;
  transition: background 0.5s, border-color 0.5s;
}
.site-header::after {
  content: ""; position: absolute; bottom: -1px; left: 0; width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo {
  font-family: "Orbitron", sans-serif;
  font-weight: 700; font-size: 1.3rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  position: relative; padding-left: 30px;
}
.logo::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; background: var(--gold);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%); opacity: 0.8;
}
.logo .sub {
  display: block; font-family: "Share Tech Mono", monospace;
  font-size: 0.55rem; letter-spacing: 0.4em;
  color: var(--gold-dim); margin-top: -4px;
}
nav { display: flex; gap: 0; }
nav a {
  font-family: "Rajdhani", sans-serif;
  font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gray-light); text-decoration: none;
  padding: 0.5rem 1.2rem; position: relative;
  transition: color 0.3s;
}
nav a:hover, nav a.active { color: var(--gold); }
nav a::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--gold); transition: width 0.3s;
}
nav a:hover::after, nav a.active::after { width: 60%; }
nav a::before {
  content: "//"; margin-right: 4px; color: var(--gold-dark);
  font-family: "Share Tech Mono", monospace; font-size: 0.7rem;
}

/* --- PAGE MAIN --- */
.page-main {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* --- SECTION HEADER --- */
.section-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2.5rem;
}
.section-header .marker {
  width: 8px; height: 8px; background: var(--gold); flex-shrink: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.section-header h2 {
  font-family: "Orbitron", sans-serif;
  font-weight: 700; font-size: 1rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
}
.section-header .hline {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--gold-dark), transparent);
}
.section-header .code {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.65rem; color: var(--gold-dark); letter-spacing: 0.1em;
}


/* ===========================================
   POST CARDS
   =========================================== */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem; margin-bottom: 3rem;
}
.post-card {
  background: var(--black-card);
  border: 1px solid var(--gray-dark);
  padding: 1.8rem; position: relative;
  transition: all 0.4s;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  animation: fadeUp 0.6s ease backwards;
}
.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:hover {
  border-color: var(--gold-dim);
  background: var(--black-surface);
  box-shadow: 0 0 30px rgba(201,168,76,0.05), inset 0 0 30px rgba(201,168,76,0.02);
}
.post-card .meta {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.7rem; color: var(--gold-dim);
  letter-spacing: 0.15em; margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.post-card .meta .dot {
  width: 4px; height: 4px; background: var(--gold-dark); border-radius: 50%;
}
.post-card h3 {
  font-family: "Orbitron", sans-serif;
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-bright); margin-bottom: 0.8rem;
  line-height: 1.5; transition: color 0.3s;
}
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card:hover h3 { color: var(--gold); }
.post-card p {
  font-size: 0.9rem; color: var(--gray-light);
  line-height: 1.7; margin-bottom: 1.2rem;
}
.post-card .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.post-card .tag {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.6rem; letter-spacing: 0.1em;
  color: var(--gold-dim); border: 1px solid var(--gray-dark);
  padding: 0.15rem 0.5rem; text-transform: uppercase;
}
.post-card .read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold-dim); text-decoration: none;
  margin-top: 1rem; transition: color 0.3s;
}
.post-card .read-more:hover { color: var(--gold); }
.post-card .read-more .arrow { display: inline-block; transition: transform 0.3s; }
.post-card .read-more:hover .arrow { transform: translateX(4px); }


/* ===========================================
   SINGLE ARTICLE
   =========================================== */

.article-content {
  max-width: 760px; margin: 0 auto;
}
.article-header {
  margin-bottom: 2.5rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-dark);
}
.article-header h1 {
  font-family: "Orbitron", sans-serif;
  font-weight: 700; font-size: 1.6rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); line-height: 1.4; margin-bottom: 1rem;
}
.article-meta {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.7rem; color: var(--gold-dim);
  letter-spacing: 0.15em;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}

/* --- PROSE --- */
.prose { font-size: 1rem; line-height: 1.9; color: var(--text); }
.prose p { margin-bottom: 1.5rem; }
.prose h2 {
  font-family: "Orbitron", sans-serif;
  font-weight: 600; font-size: 1rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin: 2.5rem 0 1rem;
}
.prose h3 {
  font-family: "Orbitron", sans-serif;
  font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-dim); margin: 2rem 0 0.8rem;
}
.prose blockquote {
  border-left: 2px solid var(--gold-dim);
  padding: 0.8rem 1.5rem; margin: 1.5rem 0;
  background: rgba(201,168,76,0.03);
  font-style: italic; color: var(--text-bright);
}
.prose code {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.85em; background: var(--gray-dark);
  padding: 0.15em 0.4em; color: var(--gold);
}
.prose pre {
  background: var(--black-light);
  border: 1px solid var(--gray-dark);
  padding: 1.2rem; overflow-x: auto; margin: 1.5rem 0;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.prose pre code {
  background: none; padding: 0; color: var(--text);
}
.prose a {
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid var(--gold-dark);
  transition: border-color 0.3s;
}
.prose a:hover { border-color: var(--gold); }
.prose img {
  max-width: 100%; height: auto;
  border: 1px solid var(--gray-dark); margin: 1.5rem 0;
}
.prose ul, .prose ol { margin: 1rem 0 1.5rem 1.5rem; }
.prose li { margin-bottom: 0.5rem; }

/* Post nav */
.post-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--gray-dark);
}
.post-nav-link {
  text-decoration: none; padding: 1rem;
  border: 1px solid var(--gray-dark);
  flex: 1; transition: all 0.3s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.post-nav-link:hover {
  border-color: var(--gold-dim);
  background: rgba(201,168,76,0.03);
}
.post-nav-link.next { text-align: right; }
.post-nav-label {
  display: block; font-family: "Share Tech Mono", monospace;
  font-size: 0.65rem; letter-spacing: 0.15em;
  color: var(--gold-dim); margin-bottom: 0.3rem;
}
.post-nav-title {
  display: block; font-family: "Orbitron", sans-serif;
  font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-bright);
}


/* ===========================================
   TAXONOMY
   =========================================== */

.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem; margin-bottom: 3rem;
}
.taxonomy-card {
  display: block; text-decoration: none;
  background: var(--black-card);
  border: 1px solid var(--gray-dark);
  padding: 1.4rem 1.6rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all 0.35s;
}
.taxonomy-card:hover {
  border-color: var(--gold-dim);
  background: var(--black-surface);
  box-shadow: 0 0 25px rgba(201,168,76,0.05);
}
.taxonomy-name {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-bright);
  margin-bottom: 0.3rem;
  transition: color 0.3s;
}
.taxonomy-card:hover .taxonomy-name { color: var(--gold); }
.taxonomy-count {
  display: block;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.65rem; letter-spacing: 0.15em;
  color: var(--gold-dim); margin-bottom: 0.8rem;
}
.taxonomy-bar {
  display: block; width: 100%; height: 3px;
  background: var(--gray-dark); position: relative;
}
.taxonomy-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-dim));
  transition: width 0.6s ease;
}
.taxonomy-card:hover .taxonomy-fill {
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
}

/* Term label */
.term-label {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.75rem; letter-spacing: 0.12em;
  margin-bottom: 2rem;
  padding: 0.8rem 1.2rem;
  background: rgba(201,168,76,0.03);
  border-left: 2px solid var(--gold-dim);
}
.term-prefix { color: var(--gray-light); }
.term-value { color: var(--gold); text-transform: uppercase; font-weight: bold; }
.term-count { color: var(--gold-dark); }


/* ===========================================
   THEME TOGGLE
   =========================================== */

.theme-toggle {
  position: fixed; top: 20px; right: 70px; z-index: 100;
  display: flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid var(--gold-dark);
  color: var(--gold-dim);
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.6rem; letter-spacing: 0.15em;
  transition: all 0.4s;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.theme-toggle:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(201,168,76,0.08);
}
.theme-toggle .icon-light { display: none; }
.theme-toggle .icon-dark  { display: block; }


/* ===========================================
   LIGHT MODE — CYBER-RENAISSANCE
   =========================================== */

body.light-mode {
  --gold: #8b6914;
  --gold-bright: #a07818;
  --gold-dim: #6b5210;
  --gold-dark: #c4a86a;
  --black: #f0e8d8;
  --black-light: #e8dfc8;
  --black-card: #ebe3d0;
  --black-surface: #e5dcc8;
  --gray-dark: #d5cbb5;
  --gray: #c8bda5;
  --gray-mid: #9a8e78;
  --gray-light: #6e6450;
  --text: #3d352a;
  --text-bright: #2a231a;
}

body.light-mode .theme-toggle .icon-light { display: block; }
body.light-mode .theme-toggle .icon-dark  { display: none; }

body.light-mode::before {
  background:
    linear-gradient(135deg, transparent 48%, rgba(139,105,20,0.04) 49%, rgba(139,105,20,0.04) 51%, transparent 52%),
    linear-gradient(45deg, transparent 48%, rgba(139,105,20,0.03) 49%, rgba(139,105,20,0.03) 51%, transparent 52%);
  background-size: 80px 80px;
}

body.light-mode::after {
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139,105,20,0.03) 2px, rgba(139,105,20,0.03) 4px);
}

body.light-mode .glow {
  background: radial-gradient(circle, rgba(139,105,20,0.06) 0%, transparent 65%);
}

body.light-mode .corner { color: var(--gold-dark); opacity: 0.3; }

body.light-mode .logo-tri::before { opacity: 0.9; }
body.light-mode .logo-tri::after { border-bottom-color: var(--black); }
body.light-mode .logo-tri { animation: pulse-light 4s ease-in-out infinite; }
@keyframes pulse-light {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(139,105,20,0.15)); }
  50% { filter: drop-shadow(0 0 15px rgba(139,105,20,0.3)); }
}

body.light-mode .post-card { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
body.light-mode .post-card:hover { box-shadow: 0 2px 15px rgba(139,105,20,0.1); }

body.light-mode .prose blockquote { background: rgba(139,105,20,0.04); border-left-color: var(--gold); }
body.light-mode .prose code { background: var(--gray-dark); color: var(--gold); }
body.light-mode .prose pre { background: var(--black-light); border-color: var(--gray-dark); }

body.light-mode .taxonomy-card { box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
body.light-mode .taxonomy-card:hover { box-shadow: 0 2px 12px rgba(139,105,20,0.08); }


/* ===========================================
   SCROLLBAR
   =========================================== */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }


/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column; height: auto;
    padding: 1rem 0; gap: 0.8rem;
  }
  nav { flex-wrap: wrap; justify-content: center; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-nav { flex-direction: column; }
  .post-nav-link.next { text-align: left; }
  .theme-toggle { right: 20px; }
}

@media (max-width: 500px) {
  .nav-links { flex-direction: column; align-items: center; }
  .nav-links a { width: 80%; text-align: center; }
  .role .sep { display: block; visibility: hidden; height: 0; margin: 0; }
  .role { line-height: 2; }
}
