/* Trendorr blog styles. Brand tokens mirror landing/index.html :root. */
:root {
  --bg: #ffffff;
  --surface: #f3f7f6;
  --border: #e2e8e6;
  --text: #162032;
  --muted: #5c6470;
  --accent: #2ec4a1;
  --accent-ink: #0f766e;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.2; color: var(--text); }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Nav */
.nav { border-bottom: 1px solid var(--border); height: 64px; }
.nav-inner { max-width: 1080px; margin: 0 auto; height: 100%; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.logo-mark { height: 24px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nav-links a { color: var(--text); }
.nav-cta { background: var(--text); color: #fff; border: 1.5px solid var(--text); padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.nav-cta:hover { text-decoration: none; opacity: 0.9; }

/* Layout */
.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Article */
article { padding: 56px 0 8px; }
.post-meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 16px; }
.post-title { font-size: 40px; font-weight: 700; margin: 0 0 12px; line-height: 1.12; }
.post-sub { font-size: 19px; color: var(--muted); margin: 0 0 8px; font-family: var(--font-body); font-weight: 400; }
article h2 { font-size: 26px; margin: 46px 0 14px; }
article p { margin: 0 0 20px; }
article strong { font-weight: 700; }
article em { font-style: italic; }
.lede p { font-size: 20px; color: var(--text); }
hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* References */
.refs { font-size: 15px; color: var(--muted); padding-bottom: 48px; }
.refs h2 { font-size: 20px; color: var(--text); }
.refs ul { padding-left: 20px; margin: 0 0 16px; }
.refs li { margin-bottom: 10px; }
.refs em { font-style: italic; }
.refs .note { font-style: italic; font-size: 14px; }

/* Figures / diagrams */
.fig { margin: 34px 0; }
.fig svg { width: 100%; height: auto; display: block; }

/* Byline */
.byline { display: flex; align-items: center; gap: 12px; margin: 4px 0 26px; }
.byline-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline-who { display: flex; flex-direction: column; line-height: 1.35; }
.byline-name { font-weight: 600; font-size: 15px; color: var(--text); }
.byline-role { font-size: 12px; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.03em; }

/* Index */
.blog-head { padding: 64px 0 8px; }
.blog-head h1 { font-size: 40px; margin: 0 0 10px; }
.blog-head p { color: var(--muted); font-size: 18px; margin: 0; }
.post-list { list-style: none; padding: 0; margin: 24px 0 64px; }
.post-card { padding: 28px 0; border-top: 1px solid var(--border); }
.post-card:last-child { border-bottom: 1px solid var(--border); }
.post-card .date { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.post-card h2 { font-size: 24px; margin: 8px 0 8px; }
.post-card h2 a { color: var(--text); }
.post-card p { margin: 0; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--border); margin-top: 24px; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.footer-logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; }
.footer-links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer-links a { color: var(--muted); }
.footer-copy { font-size: 13px; color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .post-title { font-size: 32px; }
  .nav-links { display: none; }
}
