/* ---- SITE NAV ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 56px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-brand {
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-text {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--fg);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--fg);
}

.nav-cta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 0.4rem 1rem;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--accent);
  color: #0a0a0a;
}

/* ---- HUB PAGE BASE ---- */
.hub-page {
  padding-top: 56px;
}

/* ---- HUB HEADER ---- */
.hub-header {
  padding: 5rem 2rem 4rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.hub-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hub-eyebrow {
  margin-bottom: 1.25rem;
}

.mono-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.hub-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hub-subtitle {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.65;
}

/* ---- HUB BODY (sidebar + feed) ---- */
.hub-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}

/* ---- SIDEBAR ---- */
.hub-sidebar {
  position: sticky;
  top: 72px;
}

.cat-nav {
  margin-bottom: 3rem;
}

.cat-nav-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--fg-dim);
  margin-bottom: 1rem;
}

.cat-nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.cat-nav-item:hover,
.cat-nav-item.active {
  color: var(--fg);
}

.cat-nav-item.active .cat-name {
  color: var(--accent);
}

.cat-count {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--fg-dim);
}

.sidebar-cta {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.sidebar-cta-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.sidebar-cta p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sidebar-cta-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.sidebar-cta-link:hover {
  text-decoration: underline;
}

/* ---- ARTICLE FEED ---- */
.article-feed {
  display: flex;
  flex-direction: column;
}

.article-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.article-card:last-child {
  border-bottom: none;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.article-cat {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.2rem 0.6rem;
  border: 1px solid currentColor;
}

.cat-escape-stories { color: #ff6b2b; }
.cat-playbooks       { color: #4ade80; }
.cat-tools           { color: #60a5fa; }

.article-divider {
  color: var(--fg-dim);
  font-size: 0.8rem;
}

.article-read-time,
.article-author {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}

.article-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.article-card-title a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s;
}

.article-card-title a:hover {
  color: var(--accent);
}

.article-card-subtitle {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.article-card-cta {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

.article-card-cta:hover {
  text-decoration: underline;
}

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--fg-muted);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--fg-dim);
}

.empty-state p {
  margin-bottom: 1rem;
}

.empty-link {
  color: var(--accent);
  font-size: 0.9rem;
}

/* ---- ARTICLE DETAIL ---- */
.article-main {
  min-height: 100vh;
}

.article-header {
  padding: 5rem 2rem 4rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.article-header-inner {
  max-width: 760px;
  margin: 0 auto;
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.article-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.article-subtitle {
  font-size: 1.15rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.byline-handle {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.byline-date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
}

.article-rule {
  margin-top: 2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 60%);
  opacity: 0.4;
}

/* ---- ARTICLE BODY ---- */
.article-body-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--fg);
  margin-bottom: 4rem;
}

.article-body p {
  margin-bottom: 1.5rem;
  font-family: 'Instrument Serif', serif;
  font-size: 1.1rem;
}

/* Instrument Serif not always available as fallback; keep serif stack */
.article-body p {
  font-family: 'Instrument Serif', Georgia, serif;
}

.article-body strong {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--fg);
  font-size: 1rem;
  display: block;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.article-emphasis {
  font-family: var(--mono) !important;
  font-size: 0.85rem !important;
  color: var(--fg-muted) !important;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin-left: 0;
  font-style: normal !important;
}

/* ---- ARTICLE FOOTER ---- */
.article-footer {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.back-link {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

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

.article-tag-row {
  margin-bottom: 3rem;
}

/* ---- RELATED ARTICLES ---- */
.related-section {
  margin-bottom: 4rem;
}

.related-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--fg-dim);
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.25rem;
  text-decoration: none;
  transition: border-color 0.2s;
  display: block;
}

.related-card:hover {
  border-color: var(--accent-dim);
}

.related-cat {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.related-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.related-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}

/* ---- ARTICLE CTA BLOCK ---- */
.article-cta-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-left: 3px solid var(--accent);
}

.cta-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.cta-headline {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.cta-sub {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.cta-btn {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 0.6rem 1.25rem;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}

.cta-btn:hover {
  background: var(--accent);
  color: #0a0a0a;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hub-body {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .hub-sidebar {
    position: static;
  }

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

  .cat-nav-label {
    width: 100%;
  }

  .cat-nav-item {
    border: 1px solid var(--border);
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
  }

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

@media (max-width: 640px) {
  .hub-header {
    padding: 3rem 1.5rem 2.5rem;
  }

  .article-header {
    padding: 3rem 1.5rem 2.5rem;
  }

  .article-body-wrap {
    padding: 2rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }
}
