/* ==========================================================================
   GodRank Theme — Main Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  --ink:         #0a0a0f;
  --ink-soft:    #14141c;
  --surface:     #16161f;
  --surface-2:   #1c1c28;
  --border:      rgba(255, 255, 255, 0.07);
  --border-gold: rgba(201, 168, 76, 0.25);
  --gold:        #c9a84c;
  --gold-dim:    #8a6d2f;
  --gold-light:  #e8c96a;
  --cream:       #f0ead6;
  --muted:       #6b6b80;
  --text:        #d8d4cc;
  --white:       #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-ui:      'Syne', sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --header-h:    68px;
  --max-w:       1200px;
  --max-w-text:  720px;
  --radius:      3px;

  --ease-out:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

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

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

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); transition: color 0.2s ease; }
a:hover { color: var(--gold-light); }
button { cursor: pointer; font-family: var(--font-body); }

/* ── Skip Link ─────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 20px;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ── Animations ────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.animate-up   { animation: fadeUp  0.6s var(--ease-out) both; }
.animate-in   { animation: fadeIn  0.4s ease both; }
.delay-1 { animation-delay: 0.10s; }
.delay-2 { animation-delay: 0.20s; }
.delay-3 { animation-delay: 0.30s; }
.delay-4 { animation-delay: 0.40s; }
.delay-5 { animation-delay: 0.50s; }

/* ── Utility ────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 40px;
}
@media (max-width: 600px) { .container { padding-inline: 20px; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold-dim);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  background: rgba(10, 10, 15, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#site-header.scrolled {
  background: rgba(10, 10, 15, 0.98);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.site-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: color 0.2s;
}
.site-logo:hover { color: var(--white); }
.site-logo .logo-accent { color: var(--gold); }
.site-logo img { max-height: 36px; width: auto; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 8px; }

.main-nav a {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--cream);
  background: rgba(255,255,255,0.04);
}

.nav-cta {
  margin-left: 8px;
  background: var(--gold) !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--ink) !important; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--muted);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s ease;
}
.nav-toggle:hover span { background: var(--cream); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(10,10,15,0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 4px;
    border-top: 1px solid var(--border);
    backdrop-filter: blur(20px);
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 14px; padding: 12px 0; width: 100%; }
  .nav-cta { margin: 16px 0 0; padding: 14px 24px !important; text-align: center; width: 100%; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
#site-footer {
  border-top: 1px solid var(--border);
  padding-top: 80px;
  padding-bottom: 40px;
  margin-top: 120px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-brand {}
.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-block;
  margin-bottom: 16px;
}
.footer-logo span { color: var(--gold); }
.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 28px;
}

.footer-col-title {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 12px;
  color: var(--muted);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--cream); }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.widget {
  border: 1px solid var(--border);
  padding: 28px;
  background: var(--ink-soft);
}

.widget-title {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.widget ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.widget ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
.widget ul li a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s;
}
.widget ul li a:hover { color: var(--cream); }

/* Tag cloud widget */
.widget.widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.widget.widget_tag_cloud .tag-cloud-link {
  font-family: var(--font-ui);
  font-size: 10px !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 12px;
  text-decoration: none;
  transition: all 0.2s;
  line-height: 1;
}
.widget.widget_tag_cloud .tag-cloud-link:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(201,168,76,0.06);
}

/* Search widget */
.widget.widget_search .search-form {
  display: flex;
}
.widget.widget_search .search-field {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
}
.widget.widget_search .search-field:focus { border-color: var(--gold-dim); }
.widget.widget_search .search-submit {
  background: var(--gold);
  border: none;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.widget.widget_search .search-submit:hover { background: var(--gold-light); }

/* ── Post Card ───────────────────────────────────────────────────────────── */
.gr-card {
  background: var(--ink-soft);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
.gr-card:hover { background: var(--surface); }

.gr-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.gr-card:hover::after { transform: scaleX(1); }

.gr-card-thumb {
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 16/10;
}
.gr-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), opacity 0.3s ease;
  opacity: 0.85;
}
.gr-card:hover .gr-card-thumb img { transform: scale(1.04); opacity: 1; }

.gr-thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, #1a1a26 0%, #0f0f18 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gr-thumb-placeholder svg { opacity: 0.1; width: 40px; height: 40px; color: var(--gold); }

.gr-card-body { padding: 28px; display: flex; flex-direction: column; }

.gr-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.gr-cat-badge {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.gr-cat-badge:hover { color: var(--gold-light); }
.gr-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.4;
  flex-shrink: 0;
}
.gr-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
}
.gr-read-time { font-size: 12px; color: var(--muted); font-weight: 300; }

.gr-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.gr-card:hover .gr-card-title { color: var(--white); }
.gr-card-title a { color: inherit; text-decoration: none; }

.gr-card-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
  flex: 1;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gr-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: gap 0.2s ease;
  width: fit-content;
  margin-top: auto;
}
.gr-card-link:hover { gap: 14px; color: var(--gold-light); }
.gr-card-link svg { transition: transform 0.2s ease; flex-shrink: 0; }
.gr-card:hover .gr-card-link svg { transform: translateX(3px); }

/* ── Archive / Blog Layout ───────────────────────────────────────────────── */
.archive-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 70px 40px 0;
}
@media (max-width: 980px) {
  .archive-layout { grid-template-columns: 1fr; }
  .archive-sidebar { display: none; }
}
@media (max-width: 600px) {
  .archive-layout { padding: 40px 20px 0; }
}

.archive-sidebar > div {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
@media (max-width: 700px) { .posts-grid { grid-template-columns: 1fr; } }

/* Featured card */
.posts-grid .gr-card:first-child { grid-column: 1 / -1; }
.posts-grid .gr-card:first-child .gr-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}
@media (max-width: 700px) {
  .posts-grid .gr-card:first-child .gr-card-inner { grid-template-columns: 1fr; }
}
.posts-grid .gr-card:first-child .gr-card-thumb { aspect-ratio: auto; min-height: 280px; }
.posts-grid .gr-card:first-child .gr-card-body { padding: 44px; justify-content: center; }
.posts-grid .gr-card:first-child .gr-card-title { font-size: clamp(22px, 2.5vw, 28px); }

/* Stagger animations */
.gr-card:nth-child(1) { animation: fadeUp 0.5s var(--ease-out) 0.05s both; }
.gr-card:nth-child(2) { animation: fadeUp 0.5s var(--ease-out) 0.15s both; }
.gr-card:nth-child(3) { animation: fadeUp 0.5s var(--ease-out) 0.20s both; }
.gr-card:nth-child(4) { animation: fadeUp 0.5s var(--ease-out) 0.25s both; }
.gr-card:nth-child(5) { animation: fadeUp 0.5s var(--ease-out) 0.30s both; }
.gr-card:nth-child(6) { animation: fadeUp 0.5s var(--ease-out) 0.35s both; }

/* ── Archive Hero ───────────────────────────────────────────────────────── */
.archive-hero {
  position: relative;
  padding: 90px 40px 70px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 100%, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.archive-hero .eyebrow { margin-bottom: 24px; justify-content: center; }
.archive-hero .eyebrow::before { display: none; }
.archive-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 640px;
  margin: 0 auto 18px;
}
.archive-hero .archive-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Pagination ─────────────────────────────────────────────────────────── */
.gr-pagination {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.gr-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.gr-pagination .page-numbers {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.gr-pagination .page-numbers:hover,
.gr-pagination .page-numbers.current {
  color: var(--cream);
  border-color: var(--gold-dim);
  background: rgba(201, 168, 76, 0.08);
}
.gr-pagination .page-numbers.current { color: var(--gold); }
.gr-pagination .prev, .gr-pagination .next {
  width: auto; padding: 0 20px;
  letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px;
}

/* ── Single Post ─────────────────────────────────────────────────────────── */
.single-hero {
  position: relative;
  padding: 80px 40px 0;
  max-width: var(--max-w);
  margin: 0 auto;
}
@media (max-width: 600px) { .single-hero { padding: 50px 20px 0; } }

.single-hero .single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.single-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 860px;
  margin-bottom: 28px;
}
.single-hero .single-excerpt {
  font-size: 18px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 36px;
  font-style: italic;
}

.single-featured-img {
  width: 100%;
  max-width: var(--max-w);
  margin: 40px auto 0;
  overflow: hidden;
  position: relative;
}
.single-featured-img img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  opacity: 0.9;
}
.single-featured-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--ink));
  pointer-events: none;
}

.single-layout {
  max-width: 760px;
  margin: 60px auto 0;
  padding: 0 40px;
}
@media (max-width: 600px) { .single-layout { padding: 0 20px; } }

/* Post content typography */
.entry-content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
}
.entry-content h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin: 2.5em 0 0.75em;
  line-height: 1.2;
}
.entry-content h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin: 2em 0 0.6em;
}
.entry-content h4 {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.8em 0 0.6em;
}
.entry-content p { margin-bottom: 1.5em; }
.entry-content p:last-child { margin-bottom: 0; }
.entry-content a { color: var(--gold); text-underline-offset: 3px; }
.entry-content a:hover { color: var(--gold-light); }

.entry-content ul, .entry-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
  color: var(--text);
}
.entry-content li { margin-bottom: 0.5em; }
.entry-content li::marker { color: var(--gold); }

.entry-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 20px 28px;
  margin: 2em 0;
  background: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
}
.entry-content blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.entry-content code {
  background: var(--surface);
  color: var(--gold);
  font-size: 0.875em;
  padding: 2px 8px;
  border-radius: 2px;
  font-family: 'Courier New', monospace;
}
.entry-content pre {
  background: var(--ink-soft);
  border: 1px solid var(--border);
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 1.5em;
  border-left: 3px solid var(--gold-dim);
}
.entry-content pre code {
  background: none;
  padding: 0;
  font-size: 14px;
  color: var(--text);
}
.entry-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
}
.entry-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3em 0;
}

/* Post tags */
.post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.post-tags-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.post-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 12px;
  text-decoration: none;
  transition: all 0.2s;
}
.post-tag:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(201,168,76,0.06);
}

/* Author box */
.author-box {
  display: flex;
  gap: 24px;
  margin-top: 60px;
  padding: 36px;
  background: var(--ink-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
}
.author-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gold-dim);
}
.author-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
}
.author-info {}
.author-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.author-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 10px;
  text-decoration: none;
  display: block;
}
.author-bio {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
}
@media (max-width: 500px) { .author-box { flex-direction: column; gap: 16px; } }

/* Related posts */
.related-posts {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 40px;
}
@media (max-width: 600px) { .related-posts { padding-inline: 20px; } }
.related-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 32px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }

/* ── Static Page ─────────────────────────────────────────────────────────── */
.page-hero {
  padding: 80px 40px 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 100% 50%, rgba(201,168,76,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { max-width: var(--max-w-text); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.page-hero .page-subtitle {
  font-size: 18px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  font-style: italic;
}

.page-content-area {
  max-width: var(--max-w-text);
  margin: 60px auto;
  padding: 0 40px;
}
@media (max-width: 600px) { .page-content-area { padding: 0 20px; margin-top: 40px; } }

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.error-404-wrap {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.error-404-wrap::before {
  content: '404';
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(160px, 30vw, 320px);
  font-weight: 700;
  color: rgba(201,168,76,0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  letter-spacing: -0.05em;
  white-space: nowrap;
  line-height: 1;
}
.error-404-content { position: relative; z-index: 1; max-width: 560px; }
.error-404-content .eyebrow { justify-content: center; margin-bottom: 24px; }
.error-404-content .eyebrow::before { display: none; }
.error-404-content h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.15;
}
.error-404-content p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.error-search-form {
  display: flex;
  margin-bottom: 48px;
}
.error-search-form input {
  flex: 1;
  background: var(--ink-soft);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 20px;
  outline: none;
  transition: border-color 0.2s;
}
.error-search-form input:focus { border-color: var(--gold-dim); }
.error-search-form button {
  background: var(--gold);
  border: none;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 24px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.error-search-form button:hover { background: var(--gold-light); }
.error-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  transition: background 0.2s, gap 0.2s;
}
.btn-gold:hover { background: var(--gold-light); gap: 12px; color: var(--ink); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 28px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.btn-ghost:hover { color: var(--cream); border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.03); }

/* ── Homepage ────────────────────────────────────────────────────────────── */

/* Hero */
.home-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 40px;
}
@media (max-width: 600px) { .home-hero { padding: 60px 20px; min-height: 80vh; } }

.home-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 40%, rgba(201,168,76,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 100% 0%, rgba(201,168,76,0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(201,168,76,0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Grid lines decoration */
.home-hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.025;
}
.home-hero-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,1) 1px, transparent 1px);
  background-size: 80px 80px;
}

.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.home-hero-content .eyebrow { margin-bottom: 28px; }
.home-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 82px);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.home-hero-content h1 em {
  font-style: italic;
  color: var(--gold);
}
.home-hero-content .hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 1;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6); }
}

/* Verticals / Services */
.home-verticals {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.verticals-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
  gap: 24px;
  flex-wrap: wrap;
}
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
@media (max-width: 700px) { .verticals-grid { grid-template-columns: 1fr; } }

.vertical-card {
  background: var(--ink-soft);
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  cursor: default;
}
.vertical-card:hover { background: var(--surface); }
.vertical-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.vertical-card:hover::after { transform: scaleX(1); }

.vertical-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  color: var(--gold);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.vertical-card:hover .vertical-icon { opacity: 1; }
.vertical-number {
  position: absolute;
  top: 28px;
  right: 32px;
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  letter-spacing: -0.03em;
}
.vertical-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.vertical-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

/* Stats bar */
.home-stats {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 700px) { .stats-inner { grid-template-columns: 1fr 1fr; } }

.stat-item {
  padding: 48px 40px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.03em;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Featured posts section */
.home-posts {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.home-posts-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}
.home-posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}
@media (max-width: 900px) { .home-posts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .home-posts-grid { grid-template-columns: 1fr; } }

/* CTA Section */
.home-cta {
  padding: 100px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
@media (max-width: 600px) { .home-cta { padding: 60px 20px; } }
.home-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.home-cta-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.home-cta .eyebrow { justify-content: center; margin-bottom: 24px; }
.home-cta .eyebrow::before { display: none; }
.home-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.home-cta p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 40px;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── No Posts ─────────────────────────────────────────────────────────────── */
.no-posts {
  text-align: center;
  padding: 100px 40px;
}
.no-posts h2 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--cream);
  margin-bottom: 14px;
}
.no-posts p { color: var(--muted); font-size: 15px; }

/* ── Responsive helpers ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  #site-footer { margin-top: 60px; }
  .single-hero { padding: 40px 20px 0; }
  .author-box { padding: 24px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   HOMEPAGE — Royal Purple Edition
   ═══════════════════════════════════════════════════════════════════════════ */

body.home {
  background: #1A0F3C !important;
}
body.home #main-content,
body.home #main,
body.home .site-main,
body.home .front-page-main {
  background: #1A0F3C !important;
}
body.home .hp3-hero             { background: #1A0F3C !important; display: flex !important; padding: 100px 60px 80px !important; }
body.home .hp3-trust            { background: #2D1B69 !important; display: flex !important; }
body.home .hp3-services-outer   { background: #1A0F3C !important; }
body.home .hp3-proof-outer      { background: #0D0820 !important; }
body.home .hp3-why-outer        { background: #2D1B69 !important; }
body.home .hp3-blog-outer       { background: #1A0F3C !important; }
body.home .hp3-cta-outer        { background: #0D0820 !important; }
body.home .hp3-service-card     { background: #2D1B69 !important; display: flex !important; flex-direction: column; }
body.home .hp3-service-card:hover { background: #3D2785 !important; }
body.home .hp3-why-card         { background: #3D2785 !important; }
body.home .hp3-blog-card        { background: #2D1B69 !important; display: flex !important; flex-direction: column; }
body.home .hp3-blog-body        { background: #2D1B69 !important; }
body.home .hp3-hero-card        { background: #2D1B69 !important; }
body.home .hp3-services-grid    { background: rgba(201,168,76,0.15) !important; display: grid !important; grid-template-columns: repeat(3,1fr) !important; }
body.home .hp3-blog-img-placeholder { background: linear-gradient(135deg, #0D0820 0%, #2D1B69 100%) !important; }
body.home .hp3-hero h1          { color: #F0EBE0 !important; }
body.home .hp3-hero-checks li   { color: rgba(240,235,224,0.8) !important; }
body.home .hp3-section-title    { color: #F0EBE0 !important; }
body.home .hp3-service-name     { color: #F0EBE0 !important; }
body.home .hp3-service-desc     { color: rgba(240,235,224,0.7) !important; }
body.home .hp3-why-title        { color: #F0EBE0 !important; }
body.home .hp3-why-text         { color: rgba(240,235,224,0.72) !important; }
body.home .hp3-blog-title       { color: #F0EBE0 !important; }
body.home .hp3-blog-excerpt     { color: rgba(240,235,224,0.65) !important; }
body.home .hp3-blog-read        { color: #C9A84C !important; }
body.home .hp3-cta-title        { color: #F0EBE0 !important; }
body.home .hp3-cta-sub          { color: rgba(240,235,224,0.7) !important; }
body.home .hp3-proof-quote-text { color: #F0EBE0 !important; }
body.home .hp3-proof-quote-author { color: rgba(240,235,224,0.4) !important; }
body.home .hp3-hero-stat-label  { color: rgba(240,235,224,0.55) !important; }
body.home .hp3-proof-stat-label { color: rgba(240,235,224,0.45) !important; }
body.home .hp3-trust-label      { color: rgba(240,235,224,0.5) !important; }
body.home .hp3-trust-logo       { color: rgba(240,235,224,0.35) !important; }
body.home .hp3-hero-eyebrow,
body.home .hp3-section-eyebrow,
body.home .hp3-cta-eyebrow,
body.home .hp3-blog-category,
body.home .hp3-service-link,
body.home .hp3-see-all,
body.home .hp3-hero-card-title,
body.home .hp3-hero-stat-num,
body.home .hp3-proof-stat-num,
body.home .hp3-proof-quote-mark { color: #C9A84C !important; }
body.home .hp3-btn-primary      { background: #C9A84C !important; color: #1A0F3C !important; }
body.home .hp3-btn-gold         { background: #C9A84C !important; color: #1A0F3C !important; }
body.home .hp3-btn-text         { background: transparent !important; color: #F0EBE0 !important; }
body.home .hp3-proof-inner      { display: flex !important; flex-wrap: wrap; gap: 80px; align-items: center; }
body.home .hp3-why-grid         { display: grid !important; grid-template-columns: repeat(3,1fr); gap: 40px; }
body.home .hp3-blog-grid        { display: grid !important; grid-template-columns: repeat(3,1fr); gap: 32px; }
body.home .hp3-proof-stats-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 32px; }
body.home .hp3-hero-left        { flex: 1 1 55%; min-width: 0; }
body.home .hp3-hero-right       { flex: 1 1 40%; display: flex !important; }
body.home .hp3-service-icon, body.home .hp3-why-icon { display: block !important; }
body.home .hp3-services-grid > p, body.home .hp3-blog-grid > p,
body.home .hp3-why-grid > p, body.home .hp3-wrap > p,
body.home .hp3-hero-checks > p, body.home .hp3-hero-btns > p { display: none !important; }
@media (max-width: 960px) {
  body.home .hp3-hero           { flex-direction: column !important; padding: 60px 24px !important; }
  body.home .hp3-services-grid  { grid-template-columns: repeat(2,1fr) !important; }
  body.home .hp3-why-grid       { grid-template-columns: repeat(2,1fr) !important; }
  body.home .hp3-blog-grid      { grid-template-columns: repeat(2,1fr) !important; }
  body.home .hp3-proof-inner    { flex-direction: column !important; }
}
@media (max-width: 600px) {
  body.home .hp3-services-grid, body.home .hp3-why-grid,
  body.home .hp3-blog-grid      { grid-template-columns: 1fr !important; }
}
