/* ═══════════════════════════════════════
   THE MERIDIAN — Ghost Theme Stylesheet
   Ink & Authority / Sun Palette
   ═══════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --ink: #1a1008;
  --paper: #fdf8f0;
  --warm-paper: #f7eed4;
  --accent: #d17a00;
  --accent-deep: #a85800;
  --accent-hot: #e04416;
  --glow: #f5a623;
  --ember: #ee5a22;
  --sunrise: #fcc72c;
  --blaze: #ff6b35;
  --muted: #8a7d6b;
  --rule: #ddd5c2;
  --highlight: #fef3cc;
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: white; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ── READING PROGRESS BAR ── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--ember), var(--glow), var(--sunrise));
  z-index: 200;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── NAV ── */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  border-bottom: 1.5px solid var(--ink);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 100;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo svg {
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  flex-direction: row;
  gap: 1.75rem;
  align-items: center;
}

.nav-links ul {
  display: flex;
  flex-direction: row;
  gap: 1.75rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: inline;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-subscribe {
  background: linear-gradient(135deg, var(--ember), var(--accent)) !important;
  color: white !important;
  padding: 0.55rem 1.3rem;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em;
  transition: all 0.2s !important;
  border: none;
}

.nav-subscribe:hover {
  background: linear-gradient(135deg, var(--accent-hot), var(--ember)) !important;
  box-shadow: 0 2px 12px rgba(238,90,34,0.3);
}

/* ── TICKER ── */
.ticker {
  background: var(--ink);
  color: var(--warm-paper);
  padding: 0.55rem 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--ember), var(--glow), var(--sunrise), var(--glow), var(--ember)) 1;
}

.ticker-inner {
  display: inline-block;
  animation: scroll 45s linear infinite;
}

.ticker-inner span { margin-right: 3rem; opacity: 0.7; }
.ticker-inner .dot { color: var(--sunrise); margin-right: 3rem; opacity: 1; }

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTION DIVIDERS ── */
.section-divider {
  display: flex;
  align-items: center;
  padding: 2rem 3rem;
  border-bottom: 1px solid var(--rule);
  gap: 1.5rem;
}

.section-divider h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  white-space: nowrap;
  color: var(--accent-deep);
}

.section-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--glow), var(--sunrise), var(--rule));
  border-radius: 1px;
}

.section-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ── HERO (Homepage) ── */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  min-height: 75vh;
  border-bottom: 1.5px solid var(--ink);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 65%;
  height: 100%;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(252,199,44,0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 70%, rgba(238,90,34,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-main {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1.5px solid var(--ink);
  position: relative;
}

.hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--ember), var(--sunrise));
  border-radius: 2px;
}

.hero-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  max-width: 680px;
}

.hero-title em { font-style: italic; color: var(--accent); }

.hero-excerpt {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-author {
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

.meta-dot {
  width: 5px;
  height: 5px;
  background: var(--ember);
  border-radius: 50%;
  display: inline-block;
}

.hero-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ember);
  transition: gap 0.3s, color 0.2s;
}

.hero-read-link:hover { gap: 1rem; color: var(--accent-hot); }
.hero-read-link::after { content: '→'; font-size: 1.2rem; }

/* ── SIDEBAR ── */
.hero-sidebar { display: flex; flex-direction: column; }

.sidebar-story {
  flex: 1;
  padding: 2.5rem;
  border-bottom: 1px solid var(--rule);
  border-left: 3px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s;
}

.sidebar-story:last-child { border-bottom: none; }

.sidebar-story:hover {
  background: var(--highlight);
  border-left-color: var(--glow);
}

.sidebar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.sidebar-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.sidebar-excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.sidebar-meta {
  margin-top: 0.8rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── ARTICLE GRID (3 col) ── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1.5px solid var(--ink);
}

.article-card {
  padding: 2.5rem 2.5rem 3rem;
  border-right: 1px solid var(--rule);
  border-top: 3px solid transparent;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

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

.article-card:hover {
  background: var(--highlight);
  border-top-color: var(--glow);
}

.card-number {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 3.5rem;
  font-style: italic;
  color: var(--glow);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.3s;
  opacity: 0.5;
}

.article-card:hover .card-number { color: var(--ember); opacity: 1; }

.card-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.card-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.card-meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
}

/* ── AI BRIEFING BANNER ── */
.ai-briefing {
  background: linear-gradient(135deg, #1a1008 0%, #321c08 40%, #462a0c 70%, #3a200a 100%);
  color: var(--warm-paper);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1.5px solid var(--ink);
  position: relative;
  overflow: hidden;
}

.ai-briefing::before {
  content: '';
  position: absolute;
  top: -60px; right: -40px;
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(252,199,44,0.3) 0%, rgba(245,166,35,0.15) 30%, transparent 60%);
  pointer-events: none;
}

.ai-briefing::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(238,90,34,0.15) 0%, rgba(252,199,44,0.05) 40%, transparent 65%);
  pointer-events: none;
}

.ai-briefing-text {
  padding: 4rem 3rem;
  border-right: 1px solid rgba(245,166,35,0.15);
  position: relative;
}

.ai-briefing-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sunrise);
  margin-bottom: 1.2rem;
}

.ai-briefing-text h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  font-style: italic;
  color: #fff;
}

.ai-briefing-text p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 420px;
}

.ai-briefing-items {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
}

.briefing-item {
  padding-bottom: 1.5rem;
  padding-left: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-left: 2px solid rgba(245,166,35,0.3);
  transition: all 0.3s;
  display: block;
  color: var(--warm-paper);
}

.briefing-item:last-child { border-bottom: none; padding-bottom: 0; }

.briefing-item:hover {
  padding-left: 1.25rem;
  border-left-color: var(--sunrise);
}

.briefing-item-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sunrise);
  margin-bottom: 0.4rem;
}

.briefing-item h4 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.3;
  color: rgba(255,255,255,0.9);
}

/* ── TOOLS GRID ── */
.tools-section { border-bottom: 1.5px solid var(--ink); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.tool-card {
  padding: 2rem;
  border-right: 1px solid var(--rule);
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.tool-card:last-child { border-right: none; }

.tool-card:hover {
  background: var(--highlight);
  border-bottom-color: var(--ember);
}

.tool-rating {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--ember);
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}

.tool-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.tool-type {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.tool-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.tool-verdict {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ember);
}

/* ── QUOTE BREAK ── */
.quote-break {
  background: linear-gradient(135deg, #1a1008 0%, #321c08 35%, #462a0c 65%, #3a200a 100%);
  color: var(--warm-paper);
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-break::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background:
    radial-gradient(circle, rgba(252,199,44,0.22) 0%, rgba(245,166,35,0.1) 25%, transparent 55%),
    radial-gradient(circle at 30% 40%, rgba(238,90,34,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.quote-break::after {
  content: '"';
  position: absolute;
  top: 10%; left: 8%;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 18rem;
  line-height: 1;
  color: rgba(245,166,35,0.06);
  pointer-events: none;
}

.quote-break blockquote {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-style: italic;
  line-height: 1.4;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  position: relative;
  color: #fff;
}

.quote-break cite {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-style: normal;
  color: var(--sunrise);
  opacity: 0.8;
  position: relative;
}

/* ── NEWSLETTER ── */
.newsletter-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1.5px solid var(--ink);
  background: var(--highlight);
  position: relative;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, rgba(252,199,44,0.08) 0%, transparent 40%, rgba(238,90,34,0.05) 100%);
  pointer-events: none;
}

.newsletter-text {
  padding: 4rem 3rem;
  border-right: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.newsletter-text h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.newsletter-text h2 em { font-style: italic; color: var(--accent); }

.newsletter-text p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 420px;
}

.newsletter-form {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.newsletter-form input {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  padding: 1rem 1.2rem;
  border: 1.5px solid var(--ink);
  background: transparent;
  outline: none;
  transition: all 0.2s;
  color: var(--ink);
}

.newsletter-form input:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(238,90,34,0.1);
}

.newsletter-form input::placeholder { color: var(--muted); }

.newsletter-form button {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, var(--ember), var(--accent));
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.newsletter-form button:hover {
  background: linear-gradient(135deg, var(--accent-hot), var(--ember));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(238,90,34,0.25);
}

.newsletter-note {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── ARTICLE PAGE ── */
.article-header {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
}

.article-header::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120%; height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(252,199,44,0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.article-category-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ember);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.article-category-tag::before,
.article-category-tag::after {
  content: '';
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--sunrise));
  border-radius: 1px;
}

.article-page-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.article-page-title em { font-style: italic; color: var(--accent); }

.article-subtitle {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--glow), var(--ember));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.author-role {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── ARTICLE BODY (Ghost Content) ── */
.gh-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.82;
  color: #2c2418;
}

.gh-content p { margin-bottom: 1.6rem; }

.gh-content h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.85rem;
  line-height: 1.2;
  margin: 3rem 0 1.2rem;
  color: var(--ink);
}

.gh-content h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
  color: var(--ink);
}

.gh-content a {
  color: var(--ember);
  text-decoration: underline;
  text-decoration-color: rgba(238,90,34,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.gh-content a:hover { text-decoration-color: var(--ember); }

.gh-content strong { font-weight: 600; color: var(--ink); }

.gh-content blockquote {
  margin: 3rem -3rem;
  padding: 2.5rem 3rem;
  position: relative;
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--ember), var(--sunrise)) 1;
}

.gh-content blockquote::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, rgba(252,199,44,0.07), rgba(238,90,34,0.04));
  pointer-events: none;
}

.gh-content blockquote p {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.35;
  font-style: italic;
  color: var(--ink);
  position: relative;
}

.gh-content hr {
  border: none;
  text-align: center;
  margin: 3rem 0;
  font-size: 1.4rem;
  color: var(--glow);
  letter-spacing: 0.5em;
}

.gh-content hr::after { content: '☀ ☀ ☀'; }

.gh-content img {
  border-radius: 4px;
  margin: 2rem 0;
}

.gh-content figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.gh-content ul, .gh-content ol {
  margin-bottom: 1.6rem;
  padding-left: 1.5rem;
}

.gh-content li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

.gh-content ol li { list-style: decimal; }

/* Drop cap for first paragraph of post */
.gh-content > p:first-of-type::first-letter {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 4.2rem;
  float: left;
  line-height: 0.8;
  margin: 0.08em 0.12em 0 0;
  color: var(--accent);
  font-style: italic;
}

/* ── SHARE BUTTONS ── */
.share-section {
  max-width: 680px;
  margin: 3rem auto 0;
  padding: 2rem 2rem 0;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.share-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
}

.share-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--highlight);
}

.share-btn svg {
  flex-shrink: 0;
}

.share-copy:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.share-x:hover { color: #000; border-color: #000; }
.share-linkedin:hover { color: #0A66C2; border-color: #0A66C2; }
.share-facebook:hover { color: #1877F2; border-color: #1877F2; }
.share-email:hover { color: var(--accent); border-color: var(--accent); }

/* ── TAGS ── */
.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.post-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--rule);
  color: var(--muted);
  transition: all 0.2s;
  border-radius: 2px;
}

.post-tag:hover {
  border-color: var(--glow);
  color: var(--accent);
  background: var(--highlight);
}

/* ── AUTHOR BIO ── */
.author-bio-section {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  background: var(--highlight);
  border-radius: 3px;
  border: 1px solid rgba(245,166,35,0.15);
  position: relative;
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.author-bio-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--ember), var(--sunrise));
}

.author-bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--glow), var(--ember));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.author-bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── READ NEXT ── */
.read-next { max-width: 960px; margin: 0 auto; padding: 0 2rem 4rem; }

.read-next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.next-card {
  padding: 2rem;
  border: 1px solid var(--rule);
  border-top: 3px solid transparent;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  border-radius: 2px;
}

.next-card:hover {
  background: var(--highlight);
  border-top-color: var(--glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,16,8,0.08);
}

.next-card-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ember);
  margin-bottom: 0.6rem;
}

.next-card-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  flex: 1;
}

.next-card-meta {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
}

/* ── ARCHIVE PAGE ── */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.archive-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  transition: background 0.3s;
}

.archive-item:nth-child(2n) { border-right: none; }
.archive-item:hover { background: var(--highlight); }

/* ── FOOTER ── */
.site-footer {
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo svg {
  height: 24px;
  width: auto;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.55;
  margin-top: 0.5rem;
}

.footer-links { display: flex; gap: 3rem; }

.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
  color: var(--muted);
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1060px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-main { border-right: none; border-bottom: 1.5px solid var(--ink); }
  .article-grid { grid-template-columns: 1fr; }
  .article-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .article-card:last-child { border-bottom: none; }
  .ai-briefing { grid-template-columns: 1fr; }
  .ai-briefing-text { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .newsletter-section { grid-template-columns: 1fr; }
  .newsletter-text { border-right: none; border-bottom: 1.5px solid var(--ink); }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .tool-card:last-child { border-bottom: none; }
  .read-next-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-item { border-right: none; }
  .site-nav { padding: 1rem 1.5rem; }
  .hero-main { padding: 3rem 1.5rem; }
  .section-divider { padding: 1.5rem; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2.2rem; }
  .article-header { padding: 3rem 1.5rem 2rem; }
  .gh-content { padding: 0 1.5rem 3rem; font-size: 1.05rem; }
  .gh-content blockquote { margin: 2rem -0.5rem; padding: 1.5rem; }
  .archive-item { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 2rem; padding: 2rem 1.5rem; }
}

/* ═══════════════════════════════════════
   GHOST REQUIRED — Content Card Styles
   ═══════════════════════════════════════ */

/* Width classes for Ghost editor cards */
.gh-content .kg-width-wide {
  max-width: 960px;
  margin-left: calc(50% - 480px);
  margin-right: calc(50% - 480px);
}

.gh-content .kg-width-full {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

@media (max-width: 960px) {
  .gh-content .kg-width-wide {
    margin-left: -2rem;
    margin-right: -2rem;
    max-width: calc(100% + 4rem);
  }
}

/* Image card */
.kg-image-card { margin: 2rem 0; }
.kg-image-card img { border-radius: 4px; margin: 0 auto; }
.kg-image-card figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}

/* Gallery card */
.kg-gallery-card { margin: 2rem 0; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 0.75rem; }
.kg-gallery-row { display: flex; gap: 0.75rem; }
.kg-gallery-row img { flex: 1; min-width: 0; border-radius: 4px; }

/* Bookmark card */
.kg-bookmark-card { margin: 2rem 0; }
.kg-bookmark-container {
  display: flex;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s;
}
.kg-bookmark-container:hover { background: var(--highlight); }
.kg-bookmark-content { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.kg-bookmark-title { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.1rem; line-height: 1.3; margin-bottom: 0.4rem; }
.kg-bookmark-description { font-size: 0.85rem; color: var(--muted); line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.72rem; color: var(--muted); }
.kg-bookmark-icon { width: 16px; height: 16px; border-radius: 2px; }
.kg-bookmark-author { white-space: nowrap; }
.kg-bookmark-publisher { white-space: nowrap; }
.kg-bookmark-thumbnail { width: 200px; min-height: 100%; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Button card */
.kg-button-card { margin: 2rem 0; text-align: center; }
.kg-button-card a {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--ember), var(--accent));
  color: white;
  border-radius: 2px;
  transition: all 0.2s;
  text-decoration: none;
}
.kg-button-card a:hover {
  background: linear-gradient(135deg, var(--accent-hot), var(--ember));
  box-shadow: 0 4px 16px rgba(238,90,34,0.25);
}

/* Callout card */
.kg-callout-card {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-radius: 3px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--highlight);
  border: 1px solid rgba(245,166,35,0.2);
}
.kg-callout-emoji { font-size: 1.2rem; }
.kg-callout-text { font-size: 1rem; line-height: 1.65; }

/* Toggle card */
.kg-toggle-card {
  margin: 1.5rem 0;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.kg-toggle-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.1rem;
}
.kg-toggle-content { padding: 0 1.25rem 1rem; font-size: 0.95rem; line-height: 1.65; }

/* Header card */
.kg-header-card {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #1a1008 0%, #321c08 40%, #462a0c 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.kg-header-card h2 { font-family: 'Instrument Serif', Georgia, serif; font-size: 2.4rem; margin-bottom: 0.75rem; }
.kg-header-card p { font-size: 1.1rem; opacity: 0.7; max-width: 560px; margin: 0 auto; }

/* Audio/video cards */
.kg-audio-card, .kg-video-card { margin: 2rem 0; border-radius: 4px; overflow: hidden; }

/* File card */
.kg-file-card { margin: 2rem 0; }
.kg-file-card-container {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  gap: 1rem;
}
.kg-file-card-title { font-weight: 700; font-size: 0.9rem; }
.kg-file-card-caption { font-size: 0.78rem; color: var(--muted); }
.kg-file-card-metadata { font-size: 0.7rem; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* Product card */
.kg-product-card { margin: 2rem 0; padding: 1.5rem; border: 1px solid var(--rule); border-radius: 3px; }
.kg-product-card-title { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.3rem; margin-bottom: 0.5rem; }
.kg-product-card-description { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }

/* Signup card (members) */
.kg-signup-card {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--highlight);
  border-radius: 3px;
  margin: 2rem 0;
}

/* NFT card */
.kg-nft-card { margin: 2rem 0; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }

