/*
Theme Name: Stock 4 Tips
Theme URI: https://s4tips.com
Description: Premium dark editorial theme for AI stocks finance publication.
Version: 1.0.0
Author: Stock 4 Tips
Author URI: https://s4tips.com
Text Domain: stock4tips
*/

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
  --ink: #0A0D14;
  --ink-2: #0F141F;
  --surface: #161C2A;
  --surface-2: #1C2436;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.14);
  --text: #EDF0F5;
  --muted: #99A2B2;
  --gold: #C9A86A;
  --gold-2: #E2C892;
  --up: #2EBD85;
  --down: #E5484D;
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1180px;
  --content-w: 720px;
  --header-h: 64px;
  --ticker-h: 36px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-2); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--ink);
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

/* =====================================================
   LAYOUT UTILITIES
   ===================================================== */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.section-pad {
  padding-block: clamp(64px, 8vw, 120px);
}

/* =====================================================
   EYEBROW LABELS
   ===================================================== */
.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}

/* =====================================================
   HAIRLINE DIVIDERS
   ===================================================== */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 60px, var(--line) 60px);
  margin-block: 2rem;
}

/* =====================================================
   STICKY HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  background: rgba(10,13,20,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: height .25s ease, background .25s ease;
}
.site-header.condensed {
  height: 52px;
  background: rgba(10,13,20,.95);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo svg { height: 36px; width: auto; }
.site-header.condensed .site-logo svg { height: 28px; }

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.primary-nav a {
  display: block;
  padding: .4rem .75rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 6px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-cat > a {
  color: var(--text);
  background: var(--surface);
}

/* Header right: search */
.header-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: .4rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color .2s, background .2s;
}
.search-toggle:hover { color: var(--gold); background: var(--surface); }

/* Search form overlay */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,13,20,.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.search-overlay.open { display: flex; }
.search-overlay form {
  width: min(560px, 90vw);
  display: flex;
  gap: .5rem;
}
.search-overlay input[type="search"] {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1.1rem;
  padding: .75rem 1rem;
  outline: none;
}
.search-overlay input[type="search"]:focus { border-color: var(--gold); }
.search-overlay button[type="submit"] {
  background: var(--gold);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  padding: .75rem 1.25rem;
  cursor: pointer;
  font-size: .9rem;
  transition: background .2s;
}
.search-overlay button[type="submit"]:hover { background: var(--gold-2); }
.search-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: .4rem;
  border-radius: 6px;
}
.search-close:hover { color: var(--text); }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: .4rem;
  border-radius: 6px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: min(300px, 85vw);
  height: 100%;
  background: var(--surface);
  z-index: 850;
  padding: 5rem 1.5rem 2rem;
  flex-direction: column;
  gap: .25rem;
  transition: right .3s ease;
  border-left: 1px solid var(--line-strong);
  overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  display: block;
  padding: .75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:hover { color: var(--text); background: var(--surface-2); }
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 840;
}
.mobile-overlay.open { display: block; }

/* =====================================================
   TICKER TAPE BAR
   ===================================================== */
.ticker-bar {
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  height: var(--ticker-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  position: sticky;
  top: var(--header-h);
  z-index: 890;
  transition: top .25s ease;
}
.site-header.condensed ~ .ticker-bar { top: 52px; }
.ticker-wrap {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-wrap:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: 0 1.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .04em;
}
.ticker-item .t-name { color: var(--text); font-weight: 600; }
.ticker-item .t-up { color: var(--up); }
.ticker-item .t-down { color: var(--down); }
.ticker-sep {
  color: var(--line-strong);
  padding: 0 .25rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  position: relative;
  background: var(--ink);
  padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 8vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(201,168,106,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero h1 {
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--text) 60%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  border: none;
  font-family: 'Inter', sans-serif;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: var(--ink);
}
.btn-gold:hover {
  color: var(--ink);
  box-shadow: 0 0 20px rgba(201,168,106,.35);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-ghost:hover {
  background: rgba(201,168,106,.1);
  color: var(--gold-2);
  transform: translateY(-1px);
}

/* =====================================================
   GLASS CARDS
   ===================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(201,168,106,.25);
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(201,168,106,.1);
}
.card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-2);
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-thumb img { transform: scale(1.03); }
.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: .6rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--gold); }
.card-excerpt {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  flex-wrap: wrap;
}
.card-meta .author { color: var(--text); font-weight: 500; }
.card-meta .sep { opacity: .4; }
.card-meta .read-time { font-family: 'IBM Plex Mono', monospace; }

/* =====================================================
   CARDS GRID (Latest Analysis)
   ===================================================== */
.latest-section { background: var(--ink); }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-header h2 { margin: 0; }
.view-all {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}
.view-all:hover { color: var(--gold-2); }

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

/* =====================================================
   SILO BLOCKS
   ===================================================== */
.silos-section { background: var(--ink-2); }
.silos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.silo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.silo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201,168,106,.3);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.silo-icon {
  font-size: 1.8rem;
  line-height: 1;
  display: block;
}
.silo-name {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}
.silo-desc {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.silo-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: .5rem;
}
.silo-link:hover { color: var(--gold-2); }
.silo-link svg { transition: transform .2s; }
.silo-card:hover .silo-link svg { transform: translateX(3px); }

/* =====================================================
   NEWSLETTER BAND
   ===================================================== */
.newsletter-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) 0;
  text-align: center;
}
.newsletter-band h2 { margin-bottom: .75rem; }
.newsletter-band p {
  color: var(--muted);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.newsletter-form {
  display: flex;
  gap: .75rem;
  max-width: 400px;
  margin-inline: auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .9rem;
  padding: .7rem 1rem;
  outline: none;
  font-family: 'Inter', sans-serif;
}
.newsletter-form input[type="email"]:focus { border-color: var(--gold); }
.newsletter-form input[type="email"]::placeholder { color: var(--muted); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand .logo-wrap { margin-bottom: 1rem; }
.footer-brand .logo-wrap svg { height: 32px; width: auto; }
.footer-brand p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a {
  font-size: .85rem;
  color: var(--muted);
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--text); }
.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: .78rem;
  color: var(--muted);
}
.ymyl-disclaimer {
  background: rgba(201,168,106,.06);
  border: 1px solid rgba(201,168,106,.2);
  border-radius: var(--radius-sm);
  padding: .75rem 1.25rem;
  margin: 1.25rem 0 0;
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}
.ymyl-disclaimer strong { color: var(--gold); }

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--muted);
  padding: 1rem 0 .5rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: .4; }
.breadcrumb .current { color: var(--text); }

/* =====================================================
   SINGLE / ARTICLE TYPOGRAPHY
   ===================================================== */
.article-header { padding: 2.5rem 0 2rem; }
.article-header .eyebrow { margin-bottom: .75rem; }
.article-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--muted);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.article-byline .author-name { color: var(--text); font-weight: 600; }
.article-byline .dot { opacity: .3; }
.article-byline .read-time { font-family: 'IBM Plex Mono', monospace; color: var(--gold); }

.article-featured {
  margin-bottom: 2.5rem;
  border-radius: 12px;
  overflow: hidden;
}
.article-featured img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article content */
.entry-content {
  max-width: var(--content-w);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
}
.entry-content p { margin-bottom: 1.4rem; }
.entry-content h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  position: relative;
}
.entry-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--gold);
}
.entry-content h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  margin: 2rem 0 .75rem;
  color: var(--text);
}
.entry-content blockquote {
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: rgba(201,168,106,.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.entry-content blockquote p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
}
.entry-content a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(201,168,106,.35);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.entry-content a:hover {
  color: var(--gold-2);
  text-decoration-color: var(--gold-2);
}
.entry-content ul, .entry-content ol {
  margin: 0 0 1.4rem 1.25rem;
}
.entry-content ul li, .entry-content ol li {
  margin-bottom: .4rem;
}
.entry-content ul { list-style: none; margin-left: 0; }
.entry-content ul li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: .6rem;
  vertical-align: middle;
  margin-bottom: 1px;
}
.entry-content strong { color: var(--text); font-weight: 700; }
.entry-content img {
  border-radius: 12px;
  margin: 1.5rem 0;
}

/* Tables in articles */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: .9rem;
}
.entry-content .table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  margin: 2rem 0;
}
.entry-content .table-wrap table { margin: 0; border: none; }
.entry-content thead {
  background: var(--surface);
}
.entry-content thead th {
  padding: .75rem 1rem;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--line-strong);
}
.entry-content tbody tr {
  border-bottom: 1px solid var(--line);
}
.entry-content tbody tr:last-child { border-bottom: none; }
.entry-content tbody td {
  padding: .65rem 1rem;
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .85rem;
}
.entry-content tbody tr:nth-child(even) { background: rgba(255,255,255,.02); }

/* =====================================================
   AUTHOR BOX
   ===================================================== */
.author-box {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 3rem 0 2.5rem;
}
.author-box .avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}
.author-box .avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
}
.author-box-content .eyebrow { margin-bottom: .25rem; }
.author-box-content h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}
.author-box-content p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* =====================================================
   PREV/NEXT NAVIGATION
   ===================================================== */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s;
}
.post-nav-item:hover { border-color: rgba(201,168,106,.3); }
.post-nav-item .nav-dir {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}
.post-nav-item .nav-title {
  font-family: 'Fraunces', serif;
  font-size: .95rem;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-nav-prev { align-items: flex-start; }
.post-nav-next { align-items: flex-end; text-align: right; }

/* =====================================================
   RELATED POSTS
   ===================================================== */
.related-section { margin: 2rem 0; }
.related-section h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* =====================================================
   ARCHIVE PAGE
   ===================================================== */
.archive-header {
  background: var(--ink-2);
  padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.archive-header h1 { margin-bottom: .5rem; }
.archive-header p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: clamp(40px, 5vw, 80px) 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  padding: 2rem 0 3rem;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 500;
  transition: all .2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.pagination .prev, .pagination .next {
  width: auto;
  padding: 0 .75rem;
  font-size: .82rem;
}

/* =====================================================
   SEARCH PAGE
   ===================================================== */
.search-header {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}
.search-header h1 { font-size: 1.8rem; }
.search-header h1 em { font-style: italic; color: var(--gold); }
.search-results-list { padding: 2rem 0; }
.search-result-item {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}
.search-result-item h2 {
  font-size: 1.2rem;
  margin-bottom: .3rem;
}
.search-result-item h2 a { color: var(--text); }
.search-result-item h2 a:hover { color: var(--gold); }
.search-result-item p { font-size: .9rem; color: var(--muted); margin: 0; }

/* =====================================================
   404 PAGE
   ===================================================== */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 1rem;
}
.error-page .error-code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 7rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  opacity: .25;
  margin-bottom: .5rem;
}
.error-page h1 { font-size: 2rem; margin-bottom: .75rem; }
.error-page p { color: var(--muted); max-width: 400px; margin-bottom: 2rem; }

/* =====================================================
   PAGE TEMPLATE
   ===================================================== */
.page-content {
  padding: clamp(48px, 6vw, 80px) 0;
}
.page-body {
  max-width: var(--content-w);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* =====================================================
   UTILITIES
   ===================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.text-up { color: var(--up); }
.text-down { color: var(--down); }

/* =====================================================
   RESPONSIVE — mobile-first breakpoints
   ===================================================== */
@media (max-width: 860px) {
  :root { --header-h: 58px; }

  .primary-nav, .search-toggle { display: none; }
  .hamburger { display: flex; }

  .mobile-nav { display: flex; }

  .cards-grid { grid-template-columns: 1fr; }
  .silos-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .related-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { align-items: flex-start; text-align: left; }
  .archive-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .silos-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}
