/*
Theme Name: HT Editorial
Theme URI: https://blogwp.htcloudstation.com/
Author: HT
Description: Premium dark editorial theme for technical blogging.
Version: 1.1.0
Text Domain: ht-editorial
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
  --bg: #07090f;
  --bg-elevated: #0e121a;
  --bg-card: rgba(16, 20, 30, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f4f8;
  --text-muted: #9aa3b5;
  --accent: #d4b06a;
  --accent-bright: #f0d28a;
  --accent-soft: rgba(212, 176, 106, 0.12);
  --accent-2: #7eb0ff;
  --accent-3: #a78bfa;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  --radius: 24px;
  --max: 1160px;
  --font: "Noto Sans SC", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Instrument Serif", "Noto Serif SC", "Songti SC", "Palatino Linotype", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin: 0 auto; }

/* Atmosphere */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(126, 176, 255, 0.18), transparent 55%),
    radial-gradient(900px 560px at 92% 0%, rgba(212, 176, 106, 0.14), transparent 52%),
    radial-gradient(800px 500px at 50% 110%, rgba(167, 139, 250, 0.08), transparent 55%),
    var(--bg);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.orb-a {
  width: 420px; height: 420px;
  top: -80px; left: -60px;
  background: rgba(126, 176, 255, 0.22);
}
.orb-b {
  width: 360px; height: 360px;
  top: 10%; right: -80px;
  background: rgba(212, 176, 106, 0.16);
  animation-delay: -6s;
}
.orb-c {
  width: 300px; height: 300px;
  bottom: 8%; left: 35%;
  background: rgba(167, 139, 250, 0.12);
  animation-delay: -11s;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
  opacity: 0.5;
}
.noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(20px, 24px, 0) scale(1.06); }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(7, 9, 15, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(7, 9, 15, 0.82);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(240,210,138,0.95), rgba(212,176,106,0.4)),
    linear-gradient(315deg, rgba(126,176,255,0.45), transparent);
  box-shadow:
    0 10px 28px rgba(212, 176, 106, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.35);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.22);
}
.brand-mark-inner {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1a1408;
}
.brand-text strong {
  display: block;
  font-size: 1.06rem;
  letter-spacing: 0.03em;
  font-weight: 700;
}
.brand-text span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav a {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: 0.2s ease;
}
.nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.nav .btn-cta {
  color: #17130a;
  background: linear-gradient(135deg, #f0d28a, #c8a45d);
  font-weight: 650;
  box-shadow: 0 8px 24px rgba(200,164,93,0.3);
}
.nav .btn-cta:hover {
  filter: brightness(1.06);
  color: #17130a;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 5.8rem 0 3.2rem;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.32fr 0.95fr;
  gap: 2.6rem;
  align-items: stretch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  border: 1px solid rgba(212,176,106,0.28);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 650;
}
.eyebrow.subtle {
  background: rgba(126,176,255,0.08);
  color: #b7cff8;
  border-color: rgba(126,176,255,0.2);
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(212,176,106,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(212,176,106,0.18); }
  50% { box-shadow: 0 0 0 7px rgba(212,176,106,0.08); }
}
.hero h1 {
  margin: 1.25rem 0 1.05rem;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 5.2vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(120deg, #f6e2ad 0%, #d4b06a 42%, #9ec0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  margin: 0 0 1.85rem;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.8rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: 0.22s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #f0d28a, #c8a45d);
  color: #17130a;
  box-shadow: 0 14px 36px rgba(200,164,93,0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 40px rgba(200,164,93,0.36);
}
.btn-arrow { transition: transform 0.2s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-ghost {
  border-color: var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.trust-icon {
  color: var(--accent);
  font-size: 0.75rem;
}

/* Hero panel */
.hero-panel {
  position: relative;
  border-radius: 28px;
  padding: 1.35rem;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015)),
    rgba(14, 18, 26, 0.85);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(16px);
}
.panel-glow {
  position: absolute;
  inset: -40% auto auto -25%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(126,176,255,0.28), transparent 65%);
  pointer-events: none;
}
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #6ee7b7;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52,211,153,0.2);
  animation: pulse 2s ease-in-out infinite;
}
.panel-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  position: relative;
}
.stat {
  padding: 1.05rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.stat:hover {
  border-color: rgba(212,176,106,0.3);
  background: rgba(212,176,106,0.05);
}
.stat b {
  display: block;
  font-size: 1.55rem;
  font-family: var(--serif);
  color: var(--accent-bright);
  margin-bottom: 0.15rem;
  font-weight: 600;
}
.stat span {
  color: var(--text-muted);
  font-size: 0.86rem;
}
.panel-note {
  margin-top: 0.95rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(126,176,255,0.1), rgba(212,176,106,0.07));
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
}
.note-title {
  color: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  font-weight: 650;
}
.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
  position: relative;
}
.panel-tags span {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

/* Marquee */
.marquee-wrap {
  border-block: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
  overflow: hidden;
  margin: 0.5rem 0 1.5rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding: 0.95rem 0;
  animation: marquee 32s linear infinite;
  color: var(--text-muted);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding: 1.2rem 0 4.2rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.7rem;
}
.section-kicker {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 650;
}
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  letter-spacing: -0.015em;
  font-weight: 600;
}
.section-head p {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.section-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: 0.2s ease;
}
.section-link:hover {
  color: var(--accent-bright);
  border-color: rgba(212,176,106,0.35);
}

/* Featured */
.featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 16px 50px rgba(0,0,0,0.25);
  margin-bottom: 1.35rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.featured:hover {
  border-color: rgba(212,176,106,0.32);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.featured-visual {
  min-height: 280px;
  position: relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(240,210,138,0.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(126,176,255,0.28), transparent 42%),
    linear-gradient(145deg, #1a2234, #0c1018 70%);
  overflow: hidden;
}
.featured-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 40% 40%, #000 20%, transparent 75%);
}
.featured-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240,210,138,0.95), rgba(200,164,93,0.85));
  color: #17130a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(200,164,93,0.3);
}
.featured-meta-float {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.featured-meta-float span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f3e7c8;
  font-size: 0.75rem;
  backdrop-filter: blur(8px);
}
.featured-body {
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-body h3 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.featured-body p {
  margin: 0 0 1.3rem;
  color: var(--text-muted);
  font-size: 1rem;
  flex: 1;
}

/* Cards */
.posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  backdrop-filter: blur(12px);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(212,176,106,0.35);
  box-shadow: 0 22px 55px rgba(0,0,0,0.35);
}
.card-cover {
  height: 168px;
  position: relative;
  overflow: hidden;
}
.cover-1 {
  background:
    linear-gradient(145deg, rgba(212,176,106,0.3), transparent 50%),
    linear-gradient(320deg, rgba(126,176,255,0.25), transparent 45%),
    linear-gradient(180deg, #1a2030, #10141d);
}
.cover-2 {
  background:
    linear-gradient(145deg, rgba(126,176,255,0.3), transparent 50%),
    linear-gradient(320deg, rgba(167,139,250,0.2), transparent 45%),
    linear-gradient(180deg, #171d2c, #0f131b);
}
.cover-3 {
  background:
    linear-gradient(145deg, rgba(167,139,250,0.25), transparent 50%),
    linear-gradient(320deg, rgba(212,176,106,0.18), transparent 45%),
    linear-gradient(180deg, #1b1828, #10131b);
}
.card-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08), transparent 35%),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px;
}
.cover-num {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-family: var(--serif);
  font-size: 2rem;
  color: rgba(255,255,255,0.12);
  letter-spacing: -0.02em;
}
.cover-read {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.38);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f3e7c8;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.card-body {
  padding: 1.3rem 1.3rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}
.chip {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(126,176,255,0.1);
  border: 1px solid rgba(126,176,255,0.18);
  color: #b7cff8;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.card h3 a:hover { color: var(--accent-bright); }
.card p {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  flex: 1;
}
.card-link {
  color: var(--accent);
  font-weight: 650;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.card-link span { transition: transform 0.2s ease; }
.card:hover .card-link span,
.featured:hover .card-link span { transform: translateX(4px); }

/* Topics */
.topics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.topic {
  padding: 1.4rem 1.25rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  transition: 0.25s ease;
  min-height: 100%;
}
.topic:hover {
  border-color: rgba(212,176,106,0.3);
  background: rgba(212,176,106,0.05);
  transform: translateY(-3px);
}
.topic-icon {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
  opacity: 0.9;
}
.topic h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 650;
}
.topic p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature {
  padding: 1.45rem 1.3rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  transition: 0.25s ease;
}
.feature:hover {
  border-color: rgba(126,176,255,0.28);
  transform: translateY(-3px);
}
.feature-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
}
.feature-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid rgba(212,176,106,0.25);
}
.feature strong {
  display: block;
  font-size: 1.05rem;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* CTA band */
.cta-band {
  margin: 1rem 0 0;
  padding: 0 0 1rem;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2.2rem 2rem;
  border-radius: 28px;
  border: 1px solid rgba(212,176,106,0.2);
  background:
    radial-gradient(600px 200px at 10% 0%, rgba(212,176,106,0.14), transparent 55%),
    radial-gradient(500px 200px at 90% 100%, rgba(126,176,255,0.12), transparent 55%),
    rgba(14, 18, 26, 0.75);
  box-shadow: var(--shadow);
}
.cta-inner h2 {
  margin: 0.7rem 0 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
}
.cta-lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 34rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.8rem 0 2rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.25));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand p {
  margin: 1rem 0 0;
  max-width: 28rem;
  line-height: 1.7;
}
.footer-logo { margin-bottom: 0.2rem; }
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col h4 {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}
.footer-tag {
  color: rgba(212,176,106,0.75);
  letter-spacing: 0.06em;
}

/* Single / page */
.entry {
  padding: 3.5rem 0 4.5rem;
}
.entry-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.3rem 2.1rem 2.6rem;
  border-radius: 28px;
  background: rgba(14, 18, 26, 0.88);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.entry-card .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.entry-card h1 {
  margin: 0 0 1.4rem;
  font-family: var(--serif);
  font-size: clamp(1.95rem, 4vw, 2.7rem);
  line-height: 1.2;
  font-weight: 600;
}
.entry-content {
  color: #d7dbe5;
  font-size: 1.06rem;
}
.entry-content p { margin: 0 0 1.1rem; }
.entry-content a {
  color: #d4b46d;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content h2, .entry-content h3 {
  margin: 1.8rem 0 0.8rem;
  color: var(--text);
}
.entry-content pre, .entry-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.entry-content pre {
  padding: 1rem 1.1rem;
  overflow: auto;
  border-radius: 14px;
  background: #0a0c11;
  border: 1px solid var(--border);
}
.entry-content code {
  background: rgba(255,255,255,0.06);
  padding: 0.12em 0.35em;
  border-radius: 6px;
  font-size: 0.92em;
}
.entry-content pre code {
  background: none;
  padding: 0;
}
.back-link {
  display: inline-flex;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.back-link:hover { color: var(--accent); }

.empty {
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

@media (max-width: 980px) {
  .hero-grid,
  .featured,
  .posts,
  .features,
  .topics,
  .footer-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 3.6rem; }
  .header-inner { min-height: 66px; }
  .nav .hide-sm,
  .hide-sm { display: none; }
  .topics { grid-template-columns: 1fr 1fr; }
  .featured-visual { min-height: 200px; }
}

@media (max-width: 560px) {
  .topics { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .entry-card { padding: 1.5rem 1.2rem 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .marquee, .eyebrow-dot, .live-dot { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
