/* Trace blog — shared styles (matches app's Finly warm-cream theme) */
:root {
  --cream: #fafafa;
  --ink: #18181b;
  --body: #54545b;
  --muted: #8d8d95;
  --lime: #d9f24b;
  --olive: #475a0d;
  --card: #ffffff;
  --border: rgba(31, 31, 25, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Sora', 'Manrope', sans-serif;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
a { color: var(--olive); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 243, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: 760px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.wordmark .dot {
  width: 10px; height: 10px; border-radius: 3px; background: var(--lime);
  box-shadow: 0 0 0 3px rgba(217, 242, 75, 0.35);
}
.header-nav { display: flex; align-items: center; gap: 18px; font-size: 13.5px; }
.header-nav a.plain { color: var(--body); text-decoration: none; font-weight: 600; }
.header-nav a.plain:hover { color: var(--ink); }
.btn-app {
  display: inline-block; padding: 8px 18px; border-radius: 9999px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 13px; transition: transform 0.2s ease;
}
.btn-app:hover { transform: scale(1.04); color: #fff; }

/* Layout */
.wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* Article */
article h1 { font-size: clamp(28px, 5vw, 38px); margin: 8px 0 10px; }
article .byline { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
article h2 { font-size: clamp(20px, 3.5vw, 25px); margin: 44px 0 12px; }
article h3 { font-size: 17px; margin: 28px 0 8px; }
article p, article li { font-size: 16px; color: var(--body); }
article ul, article ol { padding-left: 22px; }
article li { margin-bottom: 8px; }
article strong { color: var(--ink); }
article blockquote {
  margin: 28px 0; padding: 18px 22px; border-left: 3px solid var(--lime);
  background: var(--card); border-radius: 0 14px 14px 0;
  box-shadow: 0 4px 18px rgba(31, 31, 25, 0.05);
}
article blockquote p { margin: 0; font-size: 15.5px; }
article table { border-collapse: collapse; width: 100%; margin: 24px 0; font-size: 14.5px; }
article th, article td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
article th { background: var(--card); color: var(--ink); font-family: 'Sora', sans-serif; font-size: 13px; }

/* CTA box */
.cta-box {
  margin: 44px 0; padding: 28px; border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #f4f6e4);
  border: 1px solid rgba(217, 242, 75, 0.6);
  box-shadow: 0 12px 36px -12px rgba(31, 31, 25, 0.12);
  text-align: center;
}
.cta-box h2, .cta-box h3 { margin: 0 0 8px; font-size: 20px; }
.cta-box p { margin: 0 0 18px; font-size: 14.5px; }
.btn-cta {
  display: inline-block; padding: 12px 28px; border-radius: 9999px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14px; transition: transform 0.2s ease;
  box-shadow: 0 10px 30px -10px rgba(31, 31, 25, 0.45);
}
.btn-cta:hover { transform: scale(1.04); color: #fff; }
.cta-sub { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }

/* Blog index cards */
.post-card {
  display: block; padding: 26px 28px; margin: 18px 0; border-radius: 20px;
  background: var(--card); border: 1px solid var(--border);
  text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 24px -10px rgba(31, 31, 25, 0.08);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -16px rgba(31, 31, 25, 0.16), 0 0 0 1px rgba(217, 242, 75, 0.5);
}
.post-card h2 { margin: 0 0 8px; font-size: 20px; }
.post-card p { margin: 0; font-size: 14.5px; color: var(--body); }
.post-card .meta { display: block; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.page-title { font-size: clamp(30px, 5vw, 40px); margin: 6px 0 8px; }
.page-sub { font-size: 16px; margin: 0 0 34px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 24px; }
.site-footer .inner {
  max-width: 760px; margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}
.site-footer a { color: var(--muted); }

@media (max-width: 480px) {
  .wrap { padding: 32px 18px 48px; }
  .header-nav a.plain { display: none; }
}
