﻿/*
 * Dark Theme — theme.css
 * Deep Space Purple design system
 * @package dark-theme
 */

/* ═══════════════════════════════════════════
   1. DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  /* Background layers */
  --color-bg: #0b0d17;
  --color-surface: #12152a;
  --color-surface-2: #1a1f38;
  --color-surface-3: #222748;

  /* Brand accent */
  --color-accent: #7c3aed;
  --color-accent-2: #a855f7;
  --color-accent-glow: rgba(124, 58, 237, 0.28);

  /* Secondary highlight */
  --color-cyan: #06b6d4;
  --color-cyan-glow: rgba(6, 182, 212, 0.2);

  /* Text */
  --color-text: #e2e8f0;
  --color-text-muted: #8892a4;
  --color-text-dim: #545e72;

  /* Borders */
  --color-border: #1b2040;
  --color-border-bright: #2b3464;

  /* Category badge colors */
  --color-cat-1: #7c3aed; /* purple  */
  --color-cat-2: #3b82f6; /* blue    */
  --color-cat-3: #06b6d4; /* cyan    */
  --color-cat-4: #10b981; /* green   */
  --color-cat-5: #f59e0b; /* amber   */

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-normal: 0.25s ease;
  --t-slow: 0.4s ease;

  /* Layout */
  --container-width: 1400px;
  --header-h: 68px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow-accent: 0 0 0 1px var(--color-accent), 0 0 24px var(--color-accent-glow);
  --shadow-glow-cyan: 0 0 0 1px var(--color-cyan), 0 0 24px var(--color-cyan-glow);

  /* Fonts */
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", "JetBrains Mono", monospace;
}

/* ═══════════════════════════════════════════
   2. RESET & BASE
═══════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul,
ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

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

/* ═══════════════════════════════════════════
   3. TYPOGRAPHY
═══════════════════════════════════════════ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

/* Entry content (post body) */
.dk-entry-content h1,
.dk-entry-content h2,
.dk-entry-content h3,
.dk-entry-content h4 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
}

.dk-entry-content p,
.dk-entry-content ul,
.dk-entry-content ol,
.dk-entry-content blockquote {
  margin-bottom: var(--space-6);
}

.dk-entry-content ul {
  list-style: disc;
  padding-left: 1.5rem;
}
.dk-entry-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
}

.dk-entry-content a {
  color: var(--color-accent-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--t-fast);
}
.dk-entry-content a:hover {
  text-decoration-color: var(--color-accent-2);
}

.dk-entry-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-text-muted);
  font-style: italic;
}

.dk-entry-content code,
.dk-entry-content pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.dk-entry-content code {
  background: var(--color-surface-2);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--color-cyan);
}

.dk-entry-content pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  overflow-x: auto;
  margin-bottom: var(--space-6);
}

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

.dk-entry-content img {
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

.dk-entry-content figure {
  margin-bottom: var(--space-6);
}
.dk-entry-content figcaption {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-2);
}

.dk-entry-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-10) 0;
}

/* ═══════════════════════════════════════════
   4. LAYOUT UTILITIES
═══════════════════════════════════════════ */
.dk-container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.dk-main {
  min-height: calc(100vh - var(--header-h));
  padding-bottom: var(--space-20);
}

.dk-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  gap: var(--space-4);
}

.dk-section-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  padding-left: var(--space-6);
}
.dk-section-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-cyan));
  border-radius: 2px;
}

.dk-section-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent-2);
  transition:
    color var(--t-fast),
    gap var(--t-fast);
}
.dk-section-link:hover {
  color: var(--color-cyan);
  gap: var(--space-2);
}

/* ═══════════════════════════════════════════
   5. BUTTONS
═══════════════════════════════════════════ */
.dk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    box-shadow var(--t-fast),
    transform var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
  border: 1.5px solid transparent;
  line-height: 1;
}

.dk-btn--cta {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
  color: #fff;
  border-color: transparent;
}
.dk-btn--cta:hover {
  box-shadow: var(--shadow-glow-accent);
  transform: translateY(-1px);
}
.dk-btn--cta:active {
  transform: translateY(0);
}

.dk-btn--hero {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  padding: 0.75rem 2rem;
  font-size: 0.9375rem;
}
.dk-btn--hero:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.dk-btn--outline {
  background: transparent;
  color: var(--color-accent-2);
  border-color: var(--color-accent);
}
.dk-btn--outline:hover {
  background: var(--color-accent-glow);
  box-shadow: var(--shadow-glow-accent);
}

.dk-btn--block {
  width: 100%;
}

/* ═══════════════════════════════════════════
   6. BADGES
═══════════════════════════════════════════ */
.dk-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.75em;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.dk-badge a {
  color: inherit;
}

.dk-badge--cat-1 {
  background: rgba(124, 58, 237, 0.18);
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.35);
}
.dk-badge--cat-2 {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.dk-badge--cat-3 {
  background: rgba(6, 182, 212, 0.18);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.35);
}
.dk-badge--cat-4 {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.dk-badge--cat-5 {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.dk-badge--xs {
  font-size: 0.62rem;
  padding: 0.2em 0.6em;
  width: auto;
  max-width: max-content;
}

/* ═══════════════════════════════════════════
   7. HEADER
═══════════════════════════════════════════ */
.dk-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(11, 13, 23, 0.6);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition:
    background var(--t-normal),
    border-color var(--t-normal),
    box-shadow var(--t-normal);
}

.dk-header.is-scrolled {
  background: rgba(11, 13, 23, 0.97);
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.dk-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

/* Logo */
.dk-header__logo,
.dk-header__logo a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.dk-header__logo img {
  height: 36px;
  width: auto;
}
.dk-header__site-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

/* Primary nav */
.dk-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.dk-header__nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
  overflow: hidden;
}

.dk-nav-item--hidden {
  display: none !important;
}

.dk-header__nav-list li a {
  display: block;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition:
    color var(--t-fast),
    background var(--t-fast);
}
.dk-header__nav-list li a:hover,
.dk-header__nav-list li.current-menu-item > a {
  color: var(--color-text);
  background: var(--color-surface-2);
}

/* Actions */
.dk-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  min-width: 0;
}

.dk-header__subscribe {
  font-size: 0.8125rem;
  padding: 0.5rem 1.2rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dk-header--compact .dk-header__subscribe {
  display: none;
}

/* ═══════════════════════════════════════════
   8. HAMBURGER
═══════════════════════════════════════════ */
.dk-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  transition: background var(--t-fast);
}
.dk-nav-toggle:hover {
  background: var(--color-surface-3);
}
.dk-nav-toggle__bar {
  display: block;
  height: 2px;
  width: 20px;
  margin-inline: auto;
  background: var(--color-text-muted);
  border-radius: 2px;
  transition:
    transform var(--t-normal),
    opacity var(--t-normal),
    background var(--t-fast);
}

/* ═══════════════════════════════════════════
   9. MOBILE MENU
═══════════════════════════════════════════ */
.dk-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 13, 23, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1090;
  opacity: 0;
  transition: opacity var(--t-normal);
}
.dk-mobile-overlay.is-open {
  display: block;
  opacity: 1;
}

.dk-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 90vw);
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  overflow-y: auto;
}
.dk-mobile-menu.is-open {
  transform: translateX(0);
}

.dk-mobile-menu__inner {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-height: 100%;
}

.dk-mobile-menu__close {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--t-fast),
    color var(--t-fast);
}
.dk-mobile-menu__close:hover {
  background: var(--color-surface-3);
  color: var(--color-text);
}

.dk-mobile-menu__logo img {
  height: 32px;
  width: auto;
}
.dk-mobile-menu__site-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
}

.dk-mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dk-mobile-menu__list li a {
  display: block;
  padding: var(--space-3) 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--t-fast);
}
.dk-mobile-menu__list li a:hover,
.dk-mobile-menu__list li.current-menu-item > a {
  color: var(--color-text);
}

.dk-mobile-menu__cta {
  align-self: flex-start;
}

/* ═══════════════════════════════════════════
   10. HERO
═══════════════════════════════════════════ */
.dk-hero-section {
  padding-top: var(--space-6);
  margin-top: var(--header-h);
}

.dk-hero {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  background: radial-gradient(120% 140% at 0% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 52%), var(--color-bg);
}

.dk-hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 42%;
  background-size: cover;
  background-position: center center;
  z-index: 1;
}
.dk-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11, 13, 23, 1) 0%, rgba(11, 13, 23, 0.92) 14%, rgba(11, 13, 23, 0.55) 30%, rgba(11, 13, 23, 0.12) 48%, rgba(11, 13, 23, 0) 70%);
}
.dk-hero__bg--placeholder {
  background: radial-gradient(ellipse at 70% 30%, rgba(124, 58, 237, 0.2) 0%, transparent 70%), var(--color-surface);
}

.dk-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 13, 23, 0.08) 0%, rgba(11, 13, 23, 0.2) 100%);
  z-index: 2;
}

.dk-hero__content {
  position: relative;
  z-index: 3;
  padding: var(--space-12) var(--space-12);
  width: min(46%, 640px);
  max-width: 640px;
}

.dk-badge--hero {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.dk-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  padding-bottom: 0.08em;
  color: #fff;
  margin: var(--space-6) 0 var(--space-4);
}
.dk-hero__title a {
  color: inherit;
  text-decoration: none;
}

.dk-hero__description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 480px;
}

.dk-btn--outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 10px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--t-fast);
}
.dk-btn--outline-white:hover {
  background: #fff;
  color: var(--color-bg);
  border-color: #fff;
}

.dk-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}
.dk-hero__sep {
  opacity: 0.4;
}

/* ═══════════════════════════════════════════
   11. HOT TOPICS
═══════════════════════════════════════════ */
.dk-cats {
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--color-border);
}

.dk-cats__controls {
  display: flex;
  gap: var(--space-2);
}

.dk-cats__nav-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast);
  flex-shrink: 0;
}
.dk-cats__nav-btn:hover {
  background: var(--color-surface-3);
  color: var(--color-text);
  border-color: var(--color-border-bright);
}

.dk-cats__nav-btn:disabled,
.dk-cats__nav-btn[aria-disabled="true"] {
  cursor: not-allowed;
  pointer-events: none;
}

.dk-cats__track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: var(--space-3);
  padding-top: 3px;
}
.dk-cats__track::-webkit-scrollbar {
  display: none;
}

/* ── Category card (portrait, image + overlay + text + arrow) ── */
.dk-cat-card {
  position: relative;
  flex: 0 0 calc((100% - (var(--space-4) * 5)) / 6);
  width: calc((100% - (var(--space-4) * 5)) / 6);
  height: 260px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: block;
}

@media (max-width: 1280px) {
  .dk-cat-card {
    flex: 0 0 calc((100% - (var(--space-4) * 4)) / 5);
    width: calc((100% - (var(--space-4) * 4)) / 5);
  }
}
.dk-cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  pointer-events: none;
  z-index: 5;
  transition: border-color var(--t-fast);
}
.dk-cat-card:hover::after {
  border-color: var(--dk-cat-color, var(--color-accent));
}

.dk-cat-card__img {
  position: absolute;
  inset: 0;
  background-color: var(--color-surface-2);
  background-size: cover;
  background-position: center;
  transition: transform var(--t-slow);
}
.dk-cat-card:hover .dk-cat-card__img {
  transform: scale(1.07);
}
.dk-cat-card__img--empty {
  background-color: var(--color-surface-2);
}
.dk-cat-card__img--empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
}

.dk-cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 20, 0.97) 0%, rgba(7, 9, 20, 0.55) 40%, transparent 70%);
}

.dk-cat-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  z-index: 2;
}

.dk-cat-card__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.dk-cat-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
}

.dk-cat-card__desc {
  display: block;
  font-size: 0.74rem;
  color: #9ea8bf;
  line-height: 1.35;
  max-width: 15ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dk-cat-card__btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--dk-cat-color, var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dk-cat-color, var(--color-accent));
  transition:
    background var(--t-fast),
    color var(--t-fast);
}
.dk-cat-card:hover .dk-cat-card__btn {
  background: var(--dk-cat-color, var(--color-accent));
  color: #fff;
}

.dk-cat-card--cat-1 {
  --dk-cat-color: var(--color-cat-1);
}
.dk-cat-card--cat-2 {
  --dk-cat-color: var(--color-cat-2);
}
.dk-cat-card--cat-3 {
  --dk-cat-color: var(--color-cat-3);
}
.dk-cat-card--cat-4 {
  --dk-cat-color: var(--color-cat-4);
}
.dk-cat-card--cat-5 {
  --dk-cat-color: var(--color-cat-5);
}

/* ═══════════════════════════════════════════
   12. ARTICLES GRID & POST CARDS
═══════════════════════════════════════════ */
.dk-articles {
  padding: var(--space-12) 0 var(--space-16);
}

.dk-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* Blog index variant — adds padding top */
.dk-articles__grid--index {
  margin-top: var(--space-10);
}

.dk-post-card {
  position: relative;
  min-height: 270px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  transition:
    border-color var(--t-normal),
    box-shadow var(--t-normal),
    transform var(--t-normal);
}
.dk-post-card:hover {
  border-color: var(--dk-cat-color, var(--color-accent));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}
.dk-post-card:focus-within {
  border-color: var(--dk-cat-color, var(--color-accent));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 4px color-mix(in srgb, var(--dk-cat-color, var(--color-accent)) 28%, transparent);
}

.dk-post-card__image {
  position: absolute;
  inset: 0;
  background: var(--color-surface-2);
}
.dk-post-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(7, 9, 20, 0.96) 0%, rgba(7, 9, 20, 0.88) 34%, rgba(7, 9, 20, 0.45) 64%, rgba(7, 9, 20, 0.22) 100%);
}
.dk-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--t-slow);
}
.dk-post-card:hover .dk-post-card__image img {
  transform: scale(1.04);
}

.dk-post-card__image--empty {
  background: radial-gradient(ellipse at 18% 22%, rgba(124, 58, 237, 0.42) 0%, rgba(11, 13, 23, 0.15) 52%, transparent 100%), var(--color-surface-2);
}

.dk-post-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  justify-content: flex-end;
  align-items: flex-start;
  isolation: isolate;
}
.dk-post-card__body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(11, 13, 23, 0.84) 0%, rgba(11, 13, 23, 0.64) 58%, rgba(11, 13, 23, 0) 100%);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dk-post-card .dk-badge {
  align-self: flex-start;
  font-size: 0.62rem;
  padding: 0.28em 0.68em;
  letter-spacing: 0.08em;
  text-align: left;
}

.dk-post-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.2vw, 1.32rem);
  font-weight: 700;
  line-height: 1.28;
  margin: 0;
  max-width: 24ch;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-bottom: 0.1em;
}
.dk-post-card__title a {
  color: #f8fbff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  transition: color var(--t-fast);
}
.dk-post-card__title a:hover {
  color: #ffffff;
}

.dk-post-card__meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(217, 227, 245, 0.82);
  margin-top: var(--space-1);
  text-align: left;
  flex-wrap: wrap;
}

.dk-post-card__excerpt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dk-post-card--cat-1 {
  --dk-cat-color: var(--color-cat-1);
}
.dk-post-card--cat-2 {
  --dk-cat-color: var(--color-cat-2);
}
.dk-post-card--cat-3 {
  --dk-cat-color: var(--color-cat-3);
}
.dk-post-card--cat-4 {
  --dk-cat-color: var(--color-cat-4);
}
.dk-post-card--cat-5 {
  --dk-cat-color: var(--color-cat-5);
}

/* ═══════════════════════════════════════════
   13. NEWSLETTER CTA STRIP
═══════════════════════════════════════════ */
.dk-newsletter-cta {
  padding: var(--space-16) 0;
  background: transparent;
}

/* Contained rounded box — clips bg + gradient */
.dk-newsletter-cta__box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

/* Full-bleed background image (inside the box) */
.dk-newsletter-cta__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  pointer-events: none;
}

/* Gradient layers: dark left → accent mid → transparent right */
.dk-newsletter-cta__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-surface) 0%, var(--color-surface) 35%, rgba(11, 13, 23, 0.88) 52%, rgba(30, 10, 60, 0.45) 70%, transparent 90%), linear-gradient(to bottom, rgba(7, 9, 20, 0.3) 0%, transparent 30%, transparent 70%, rgba(7, 9, 20, 0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

.dk-newsletter-cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-10);
  flex-wrap: wrap;
  padding: var(--space-16) var(--space-12);
}

.dk-newsletter-cta__text {
  flex: 0 0 auto;
  max-width: 360px;
}

.dk-newsletter-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  padding-bottom: 0.06em;
  margin-bottom: var(--space-3);
}

.dk-newsletter-cta__desc {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 300px;
}

.dk-newsletter-cta__form {
  flex: 1;
  min-width: 280px;
  max-width: 480px;
}

.dk-newsletter-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.dk-newsletter-cta__fields {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  align-items: stretch;
  border: 1.5px solid var(--color-border-bright);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: rgba(26, 31, 56, 0.9);
}

.dk-newsletter-cta__field-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

.dk-newsletter-cta__input {
  width: 100%;
  height: 100%;
  padding: 0.74rem 1.05rem;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--color-text);
  font-size: 0.9375rem;
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
  outline: none;
}
.dk-newsletter-cta__input::placeholder {
  color: var(--color-text-dim);
}
.dk-newsletter-cta__input:focus {
  box-shadow: none;
}

.dk-newsletter-cta__btn {
  flex-shrink: 0;
  min-height: 100%;
  border-radius: 0;
  border: none;
  padding: 0.74rem 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.dk-newsletter-cta__fields:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.dk-newsletter-cta__field-error {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: var(--space-3);
  padding-left: var(--space-3);
  font-size: 0.8rem;
  color: #f87171;
}

.dk-newsletter-cta__status {
  margin-top: var(--space-4);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  min-height: 1.5em;
}

/* ═══════════════════════════════════════════
   14. PAGE BAND
═══════════════════════════════════════════ */
.dk-page-band {
  padding: var(--space-16) 0 var(--space-12);
  margin-top: var(--header-h);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.dk-page-band__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  padding-bottom: 0.06em;
}

.dk-page-band__desc {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  max-width: 560px;
}

/* ═══════════════════════════════════════════
   14A. CATEGORY TEMPLATE
═══════════════════════════════════════════ */
.dk-category-template {
  padding-bottom: var(--space-16);
}

.dk-category-hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: 320px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.dk-category-hero .dk-container {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.dk-category-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.dk-category-hero__bg--fallback {
  background: radial-gradient(120% 120% at 15% 10%, rgba(124, 58, 237, 0.28) 0%, transparent 55%), radial-gradient(80% 80% at 82% 24%, rgba(6, 182, 212, 0.16) 0%, transparent 60%), var(--color-surface);
}

.dk-category-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 13, 23, 0.96) 0%, rgba(11, 13, 23, 0.8) 45%, rgba(11, 13, 23, 0.32) 100%), linear-gradient(to right, rgba(11, 13, 23, 0.84) 0%, rgba(11, 13, 23, 0.35) 55%, rgba(11, 13, 23, 0.1) 100%);
}

.dk-category-hero__inner {
  position: relative;
  z-index: 2;
  padding: var(--space-16) 0 var(--space-10);
  width: 100%;
  max-width: 760px;
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.dk-category-hero__kicker {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dfe7ff;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.dk-category-hero__title {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.2;
  padding-bottom: 0.12em;
  color: #fff;
}

.dk-category-hero__desc {
  margin-top: var(--space-4);
  max-width: 64ch;
  color: #b8c4dd;
  font-size: 1rem;
  line-height: 1.65;
}

.dk-category-hero__meta {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: #9fb0cf;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.dk-category-topics {
  padding: var(--space-6) 0 0;
}

.dk-category-topics__track {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dk-category-topics__track::-webkit-scrollbar {
  display: none;
}

.dk-category-pill {
  --dk-pill-color: var(--color-accent);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d3deff;
  background: rgba(20, 26, 48, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition:
    border-color var(--t-fast),
    color var(--t-fast),
    background var(--t-fast);
}

.dk-category-pill:hover,
.dk-category-pill.is-active {
  border-color: color-mix(in srgb, var(--dk-pill-color) 55%, #fff 8%);
  background: color-mix(in srgb, var(--dk-pill-color) 24%, rgba(20, 26, 48, 0.86));
  color: #fff;
}

.dk-category-pill--cat-1 {
  --dk-pill-color: var(--color-cat-1);
}
.dk-category-pill--cat-2 {
  --dk-pill-color: var(--color-cat-2);
}
.dk-category-pill--cat-3 {
  --dk-pill-color: var(--color-cat-3);
}
.dk-category-pill--cat-4 {
  --dk-pill-color: var(--color-cat-4);
}
.dk-category-pill--cat-5 {
  --dk-pill-color: var(--color-cat-5);
}

.dk-category-feed {
  padding-top: var(--space-8);
}

.dk-category-feed__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.dk-category-feed__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  color: var(--color-text);
  line-height: 1.1;
}

.dk-category-feed__count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
}

.dk-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.dk-cat-post {
  --dk-cat-post-color: var(--color-accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--dk-cat-post-color) 8%, var(--color-surface)) 0%, var(--color-surface) 36%);
  border: 1px solid color-mix(in srgb, var(--dk-cat-post-color) 25%, var(--color-border));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--t-normal),
    border-color var(--t-fast),
    box-shadow var(--t-fast);
}

.dk-cat-post:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--dk-cat-post-color) 48%, #fff 10%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--dk-cat-post-color) 40%, transparent),
    0 12px 28px rgba(0, 0, 0, 0.38);
}

.dk-cat-post__thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-surface-2);
  overflow: hidden;
}

.dk-cat-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.dk-cat-post:hover .dk-cat-post__thumb img {
  transform: scale(1.04);
}

.dk-cat-post__thumb-fallback {
  position: absolute;
  inset: 0;
  display: block;
  background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--dk-cat-post-color) 45%, transparent) 0%, transparent 45%), var(--color-surface-2);
}

.dk-cat-post__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

.dk-cat-post .dk-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.35rem 0.85rem;
  width: auto;
  max-width: max-content;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.dk-cat-post .dk-badge a {
  display: block;
  line-height: 1;
}

.dk-cat-post__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-bottom: 0.1em;
}

.dk-cat-post__title a {
  color: #f7faff;
  text-decoration: none;
}

.dk-cat-post__title a:hover {
  color: #fff;
}

.dk-cat-post__excerpt {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dk-cat-post__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: #9fb0cf;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: rgba(9, 13, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 0.22rem 0.6rem;
}

.dk-cat-post__meta [aria-hidden="true"] {
  color: rgba(173, 194, 228, 0.72);
}

.dk-cat-post--cat-1 {
  --dk-cat-post-color: var(--color-cat-1);
}
.dk-cat-post--cat-2 {
  --dk-cat-post-color: var(--color-cat-2);
}
.dk-cat-post--cat-3 {
  --dk-cat-post-color: var(--color-cat-3);
}
.dk-cat-post--cat-4 {
  --dk-cat-post-color: var(--color-cat-4);
}
.dk-cat-post--cat-5 {
  --dk-cat-post-color: var(--color-cat-5);
}

/* ═══════════════════════════════════════════
   15. SINGLE POST
═══════════════════════════════════════════ */
.dk-single {
}

.dk-single__hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  max-height: 680px;
  background: var(--color-surface);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: var(--header-h);
}

.dk-single__hero-image {
  position: absolute;
  inset: 0;
}
.dk-single__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dk-single__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 23, 0.1) 0%, rgba(11, 13, 23, 0.55) 50%, rgba(11, 13, 23, 0.95) 100%);
}

.dk-single__hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: var(--space-12);
}

.dk-single__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  padding-bottom: 0.08em;
  max-width: 840px;
  margin-top: var(--space-4);
  margin-bottom: var(--space-5);
}

.dk-single__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Single layout — content + sidebar */
.dk-single__layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-12);
  margin-top: var(--space-12);
  align-items: start;
}

.dk-single__content {
  min-width: 0; /* allow shrink */
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* Post nav */
.dk-post-nav {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}
.dk-post-nav__prev,
.dk-post-nav__next {
  max-width: 48%;
}
.dk-post-nav__prev a,
.dk-post-nav__next a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent-2);
  transition: color var(--t-fast);
}
.dk-post-nav__prev a:hover,
.dk-post-nav__next a:hover {
  color: var(--color-cyan);
}

/* Tags */
.dk-single__tags {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
}
.dk-tags-label {
  color: var(--color-text-muted);
  font-weight: 600;
  margin-right: var(--space-1);
}
.dk-single__tags a {
  display: inline-block;
  padding: 0.25em 0.75em;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  transition:
    border-color var(--t-fast),
    color var(--t-fast);
}
.dk-single__tags a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-2);
}

/* Sidebar */
.dk-single__sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--space-6));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.dk-sidebar-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.dk-sidebar-widget__title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

/* Related articles */
.dk-related-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.dk-related-item {
  display: flex;
  gap: var(--space-3);
  transition: opacity var(--t-fast);
}
.dk-related-item:hover {
  opacity: 0.8;
}

.dk-related-item__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface-2);
}
.dk-related-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dk-related-item__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  align-items: flex-start;
}

.dk-related-item .dk-badge {
  align-self: flex-start;
  width: auto;
  max-width: max-content;
}

.dk-related-item__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.dk-related-item__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-dim);
}

/* Sidebar newsletter */
.dk-sidebar-newsletter__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.dk-sidebar-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.dk-sidebar-newsletter__input {
  width: 100%;
  height: 42px;
  padding: 0 0.95rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border-bright);
  background: var(--color-surface-2);
  color: var(--color-text);
  outline: none;
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
}

.dk-sidebar-newsletter__input::placeholder {
  color: var(--color-text-dim);
}

.dk-sidebar-newsletter__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.dk-sidebar-newsletter__error {
  display: block;
  min-height: 1.1rem;
  margin-top: calc(var(--space-2) * -1);
  padding-left: var(--space-3);
  font-size: 0.78rem;
  color: #f87171;
}

.dk-sidebar-newsletter__status {
  min-height: 1.2rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════
   16. PAGE CONTENT
═══════════════════════════════════════════ */
.dk-page-content {
  max-width: 760px;
  padding: var(--space-12) 0;
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════
   17. 404 PAGE
═══════════════════════════════════════════ */
.dk-404 {
  margin-top: var(--header-h);
  display: flex;
  align-items: center;
  padding: var(--space-24) 0;
}

.dk-404__inner {
  text-align: center;
  max-width: 520px;
  margin-inline: auto;
}

.dk-404__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-accent), var(--color-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  user-select: none;
  margin-bottom: var(--space-4);
  letter-spacing: -0.04em;
}

.dk-404__title {
  font-size: 1.75rem;
  margin-bottom: var(--space-4);
}

.dk-404__desc {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  font-size: 1rem;
  line-height: 1.6;
}

.dk-404__actions {
  margin-bottom: var(--space-8);
}

.dk-404__search-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

/* ═══════════════════════════════════════════
   18. BLOG INDEX
═══════════════════════════════════════════ */
.dk-blog-index {
  margin-top: 0;
  padding-bottom: var(--space-20);
}

/* ═══════════════════════════════════════════
   19. PAGINATION
═══════════════════════════════════════════ */
.dk-pagination {
  margin-top: var(--space-12);
  display: flex;
  justify-content: center;
}
.dk-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}
.dk-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition:
    border-color var(--t-fast),
    color var(--t-fast),
    background var(--t-fast);
}
.dk-pagination .page-numbers:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
  background: var(--color-surface-2);
}
.dk-pagination .page-numbers.current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ═══════════════════════════════════════════
   20. FOOTER
═══════════════════════════════════════════ */
.dk-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #0b0d17;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.dk-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../images/footer.webp");
  background-size: cover;
  background-position: bottom;
  opacity: 0.6;
  transform: scale(1.03);
}

.dk-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(11, 13, 23, 0.92) 0%, rgba(11, 13, 23, 0.48) 34%, rgba(11, 13, 23, 0.44) 72%, rgba(11, 13, 23, 0.92) 100%), radial-gradient(130% 90% at 14% 100%, rgba(124, 58, 237, 0.16) 0%, transparent 58%), radial-gradient(105% 85% at 85% 100%, rgba(6, 182, 212, 0.12) 0%, transparent 64%);
}

.dk-footer__top {
  position: relative;
  z-index: 2;
  padding: var(--space-16) 0 var(--space-12);
  padding-inline: var(--space-6);
}

.dk-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: var(--space-10);
}

.dk-footer__brand {
  max-width: 420px;
}

.dk-footer__brand img {
  height: 38px;
  width: auto;
  margin-bottom: var(--space-4);
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.4));
}
.dk-footer__site-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.dk-footer__tagline {
  font-size: 0.9375rem;
  color: #aeb9d3;
  line-height: 1.6;
  max-width: 360px;
}

.dk-footer__col-heading {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-5);
}

.dk-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.dk-footer__nav-list li a {
  font-size: 0.9375rem;
  color: #98a7c8;
  transition:
    color var(--t-fast),
    transform var(--t-fast);
}
.dk-footer__nav-list li a:hover {
  color: #eef4ff;
  transform: translateX(2px);
}

.dk-footer__topics-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.dk-footer__topic-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 27, 49, 0.68);
  color: #b6c3df;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    border-color var(--t-fast),
    color var(--t-fast),
    background var(--t-fast);
}

.dk-footer__topic-pill:hover {
  color: #fff;
  border-color: rgba(124, 58, 237, 0.62);
  background: rgba(124, 58, 237, 0.2);
}

.dk-footer__bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-5) 0 var(--space-6);
}
.dk-footer__bottom .dk-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-inline: var(--space-6);
}
.dk-footer__copy {
  font-size: 0.8125rem;
  color: #8090ae;
  text-align: center;
}
.dk-footer__copy a {
  color: #c8d5f2;
  transition: color var(--t-fast);
}
.dk-footer__copy a:hover {
  color: #fff;
}

/* ═══════════════════════════════════════════
   21. REVEAL ANIMATIONS
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   22. WORDPRESS SEARCH FORM
═══════════════════════════════════════════ */
.search-form {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.search-form label {
  flex: 1;
  min-width: 200px;
}
.search-field {
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border-bright);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-size: 0.9375rem;
  outline: none;
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
}
.search-field:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}
.search-submit {
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: box-shadow var(--t-fast);
}
.search-submit:hover {
  box-shadow: var(--shadow-glow-accent);
}

/* ═══════════════════════════════════════════
   23. NO RESULTS
═══════════════════════════════════════════ */
.dk-no-results {
  text-align: center;
  padding: var(--space-16);
  color: var(--color-text-muted);
}
.dk-no-results p {
  margin-bottom: var(--space-6);
}

/* ═══════════════════════════════════════════
   24. WP CORE OVERRIDES
═══════════════════════════════════════════ */
/* Custom logo link */
.custom-logo-link {
  display: flex;
}
.custom-logo-link img {
  height: 36px;
  width: auto;
}

/* WP alignment */
.alignleft {
  float: left;
  margin: 0 var(--space-6) var(--space-4) 0;
}
.alignright {
  float: right;
  margin: 0 0 var(--space-4) var(--space-6);
}
.aligncenter {
  margin-inline: auto;
}
.alignfull {
  margin-inline: calc(-1 * var(--space-6));
  width: calc(100% + var(--space-6) * 2);
}

/* WP page links */
.dk-page-links {
  clear: both;
  margin: var(--space-8) 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.dk-page-links a {
  display: inline-block;
  padding: 0.2em 0.6em;
  margin: 0 0.2em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-accent-2);
}

/* ═══════════════════════════════════════════
   25. RESPONSIVE — TABLET (≤ 1024px)
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .dk-header__inner {
    justify-content: space-between;
    gap: var(--space-3);
  }
  .dk-header__logo {
    min-width: 0;
    max-width: calc(100% - 48px);
  }
  .dk-header__logo img {
    height: 34px;
  }
  .dk-header__actions {
    margin-left: auto;
    width: 40px;
    justify-content: flex-end;
    gap: 0;
  }
  .dk-header__nav {
    display: none;
  }
  .dk-nav-toggle {
    display: flex;
    margin-left: auto;
  }
  .dk-header__subscribe {
    display: none;
  }

  .dk-hero {
    min-height: 480px;
    border-radius: var(--radius-lg);
  }
  .dk-hero__bg {
    left: 36%;
  }
  .dk-hero__content {
    padding: var(--space-10) var(--space-10);
    width: min(52%, 560px);
  }

  .dk-cat-card {
    flex: 0 0 calc((100% - (var(--space-4) * 2)) / 3);
    width: calc((100% - (var(--space-4) * 2)) / 3);
  }

  .dk-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dk-post-card {
    min-height: 250px;
  }

  .dk-category-hero {
    min-height: 280px;
  }
  .dk-category-hero__inner {
    padding: var(--space-12) 0 var(--space-8);
  }
  .dk-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dk-single__layout {
    grid-template-columns: 1fr;
  }
  .dk-single__sidebar {
    position: static;
  }

  .dk-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .dk-footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════
   26. RESPONSIVE — MOBILE (≤ 640px)
═══════════════════════════════════════════ */
@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  .dk-header .dk-container {
    padding-inline: var(--space-4);
  }
  .dk-header__logo img {
    height: 30px;
  }
  .dk-header__site-name {
    font-size: 1.1rem;
  }
  .dk-header__actions {
    width: 36px;
  }
  .dk-nav-toggle {
    width: 34px;
    height: 34px;
  }
  .dk-nav-toggle__bar {
    width: 18px;
  }

  .dk-mobile-menu {
    width: min(320px, 92vw);
  }
  .dk-mobile-menu__inner {
    padding: var(--space-6);
  }

  .dk-hero {
    min-height: 420px;
    border-radius: var(--radius-md);
  }
  .dk-hero__bg {
    left: 0;
  }
  .dk-hero__bg::after {
    background: linear-gradient(to top, rgba(11, 13, 23, 0.95) 0%, rgba(11, 13, 23, 0.82) 44%, rgba(11, 13, 23, 0.35) 76%, rgba(11, 13, 23, 0.1) 100%);
  }
  .dk-hero__content {
    padding: var(--space-8) var(--space-6);
    width: 100%;
    max-width: none;
  }
  .dk-hero__title {
    font-size: 1.6rem;
  }

  .dk-articles__grid {
    grid-template-columns: 1fr;
  }
  .dk-post-card {
    min-height: 225px;
  }
  .dk-post-card__body {
    padding: var(--space-3) var(--space-4) var(--space-4);
  }
  .dk-post-card__title {
    font-size: 1.02rem;
    max-width: 23ch;
  }
  .dk-post-card__meta {
    font-size: 0.68rem;
  }

  .dk-category-hero {
    min-height: 250px;
  }
  .dk-category-hero__inner {
    padding: var(--space-10) 0 var(--space-6);
  }
  .dk-category-hero__title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
    line-height: 1.2;
  }
  .dk-category-hero__desc {
    font-size: 0.92rem;
    line-height: 1.55;
  }
  .dk-category-feed__head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
  }
  .dk-category-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .dk-cat-post__body {
    padding: var(--space-4);
  }
  .dk-cat-post__excerpt {
    -webkit-line-clamp: 2;
  }

  .dk-cat-card {
    flex: 0 0 150px;
    width: 150px;
    height: 220px;
  }

  .dk-newsletter-cta__inner {
    flex-direction: column;
    padding: var(--space-10) var(--space-6);
  }
  .dk-newsletter-cta__text {
    max-width: 100%;
  }
  .dk-newsletter-cta__form {
    width: 100%;
    max-width: 100%;
  }
  .dk-newsletter-cta__fields {
    flex-direction: column;
    gap: var(--space-2);
    border: none;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }
  .dk-newsletter-cta__field-wrap {
    min-width: 100%;
  }
  .dk-newsletter-cta__input {
    background: var(--color-surface-2);
    border: 1.5px solid var(--color-border-bright);
    border-radius: var(--radius-full);
  }
  .dk-newsletter-cta__btn {
    border-radius: var(--radius-full);
    border-left: none;
  }
  .dk-newsletter-cta__field-error {
    position: static;
    margin-top: var(--space-2);
    padding-left: var(--space-3);
  }
  .dk-newsletter-cta__btn {
    width: 100%;
  }

  .dk-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .dk-footer__brand {
    grid-column: auto;
  }
  .dk-footer__top {
    padding: var(--space-12) 0 var(--space-10);
    padding-inline: var(--space-4);
  }
  .dk-footer__bottom .dk-container {
    padding-inline: var(--space-4);
  }
  .dk-footer__topics-pills {
    gap: var(--space-2);
  }
  .dk-footer__copy {
    line-height: 1.55;
  }
  .dk-footer__topic-pill {
    min-height: 28px;
    padding: 0.2rem 0.65rem;
    font-size: 0.64rem;
  }

  .dk-single__hero {
    height: 55vh;
  }
  .dk-single__title {
    font-size: 1.5rem;
  }

  .dk-page-band {
    padding: var(--space-12) 0 var(--space-8);
  }

  .dk-404__code {
    font-size: 6rem;
  }

  .dk-section-header {
    flex-wrap: wrap;
  }
}
