/* ═══════════════════════════════════════════════════════════════════════════
   PAYLYTE BLOG — shared stylesheet.
   Design tokens + base typography extracted verbatim from public/landing.html
   so blog pages share the exact design system, plus article-specific rules.
═══════════════════════════════════════════════════════════════════════════ */
:root {
  --bg:        #07080A;
  --hero-bg:   #0A0A0A;
  --surface:   #0F1115;
  --raised:    #14171C;
  --orange:    #F7931A;
  --gold:      #FFB020;
  --hot:       #FFB84D;
  --text:      #FFFFFF;
  --text2:     rgba(255,255,255,0.85);
  --text3:     rgba(255,255,255,0.65);
  --text4:     rgba(255,255,255,0.45);
  --border:    rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --orange-soft:   rgba(247,147,26,0.12);
  --orange-glow:   rgba(247,147,26,0.35);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

/* ── Shared CTA button (from landing) ──────────────────────────────────────── */
.cta {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--mono); font-weight: 600; font-size: 14px;
  letter-spacing: 0.04em;
  color: #0A0A0A; background: var(--orange);
  padding: 14px 26px; border-radius: 10px;
  border: 1px solid var(--orange);
  box-shadow: 0 8px 40px rgba(247,147,26,0.25);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  cursor: pointer;
}
.cta:hover { transform: translateY(-2px); background: var(--hot); box-shadow: 0 12px 48px rgba(247,147,26,0.4); }
.cta .arrow { font-size: 15px; }
.cta.ghost {
  color: var(--orange); background: transparent;
  border: 1px solid var(--orange-glow);
  box-shadow: none;
}
.cta.ghost:hover { background: var(--orange-soft); transform: translateY(-2px); }

/* ── Header nav — same markup as landing, but a static bar (no hero to overlay) ─ */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(1.2rem, 6vw, 3rem);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
  background: rgba(7,8,10,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.wordmark {
  font-family: var(--mono); font-weight: 700; font-size: 16px;
  letter-spacing: 0.16em; color: var(--text);
  display: inline-flex; align-items: center; gap: 9px;
}
.wordmark .wm-mark { display: block; width: 22px; height: 22px; flex: none; filter: drop-shadow(0 0 8px var(--orange-glow)); }
.nav-right { display: flex; align-items: center; gap: clamp(0.9rem, 2.4vw, 1.7rem); }
.nav-link {
  font-family: var(--mono); font-weight: 600; font-size: 13px;
  letter-spacing: 0.08em; color: var(--text3);
  transition: color 140ms ease;
}
.nav-link:hover { color: var(--orange); }
.nav-link.active { color: var(--orange); }
.nav .cta { font-size: 13px; padding: 9px 18px; }

/* ── Kicker / eyebrow (from landing) ───────────────────────────────────────── */
.kicker {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 1rem;
}

/* ── Blog index ────────────────────────────────────────────────────────────── */
.blog-index { max-width: 900px; margin: 0 auto; padding: clamp(2.75rem, 6vw, 4.75rem) clamp(1.2rem, 6vw, 2rem) 4rem; }
.blog-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.blog-desc { margin-top: 1.1rem; color: var(--text3); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.6; max-width: 60ch; }
.post-list { list-style: none; margin-top: 2.8rem; display: flex; flex-direction: column; gap: 18px; }
.post-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px 28px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--raised); }
.post-date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text4); }
.post-title { margin-top: 10px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.post-excerpt { margin-top: 12px; color: var(--text3); font-size: 1rem; line-height: 1.6; max-width: 64ch; }
.post-more { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--orange); }

/* ── Article ───────────────────────────────────────────────────────────────── */
.article { max-width: 760px; margin: 0 auto; padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.2rem, 6vw, 2rem) 4rem; }
.back-link {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text3);
  display: inline-block; margin-bottom: 2rem;
  transition: color 140ms ease;
}
.back-link:hover { color: var(--orange); }
.article h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.12; max-width: 24ch;
}
.byline {
  margin-top: 1.1rem; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text4);
}

/* Article body — readable ~68ch measure for prose. */
.article-body { margin-top: 2.5rem; }
.article-body p { color: var(--text3); font-size: 1.05rem; line-height: 1.75; max-width: 68ch; margin-bottom: 1.4rem; }
.article-body p.lede { color: var(--text2); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.6; margin-bottom: 2rem; }
.article-body h2 {
  margin-top: 2.7rem; margin-bottom: 1rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15;
}
.article-body strong { color: var(--text2); font-weight: 600; }
.article-body em { font-style: italic; }

/* CTA block at the foot of each article. */
.cta-block {
  margin-top: 3.5rem; padding: 2.2rem clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--border);
  border-top: 2px solid var(--orange);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(247,147,26,0.06), rgba(247,147,26,0) 70%), var(--surface);
  text-align: center;
}
.cta-block p { color: var(--text2); font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.3rem; max-width: 52ch; margin-left: auto; margin-right: auto; }

/* "About Paylyte" foot note. */
.about-note {
  margin-top: 2.5rem; padding-top: 1.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem; line-height: 1.7; color: var(--text4); max-width: 68ch;
}
.about-note strong { color: var(--text3); font-weight: 600; }

/* ── Footer (from landing) ─────────────────────────────────────────────────── */
footer.legal {
  text-align: center; padding: 2.4rem 6vw 3rem;
  color: var(--text4); font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  border-top: 1px solid var(--border);
}
footer.legal .dot { color: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
