/* Tailorly blog — static, standalone styles (no build step, no Tailwind).
   Matches the app's dark theme tokens (theme.css) so the blog feels native
   to tailorly.studio while remaining fully crawlable server-independent HTML. */

:root {
  --bg: #0b0b12;
  --surface: #171a24;
  --surface-2: #1f2330;
  --accent: #7c5cff;
  --accent-hover: #9079ff;
  --text: #ffffff;
  --text-2: #a4a8b5;
  --muted: #6b7080;
  --border: rgba(255, 255, 255, 0.08);
  --maxw: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- top bar --- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.brand-dot { width: 34px; height: 14px; border-radius: 8px; background: var(--accent); display: inline-block; }
.nav-cta {
  background: var(--accent); color: #fff; padding: 9px 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
}
.nav-cta:hover { background: var(--accent-hover); text-decoration: none; }

/* --- article --- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 24px; }
.eyebrow { color: var(--accent-hover); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin: 40px 0 12px; }
h1 { color: var(--text); font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { color: var(--text); font-size: clamp(24px, 3.5vw, 30px); line-height: 1.25; letter-spacing: -0.01em; margin: 48px 0 12px; }
h3 { color: var(--text); font-size: 21px; margin: 32px 0 8px; }
p { margin: 0 0 20px; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
ul, ol { margin: 0 0 20px; padding-left: 24px; }
li { margin: 0 0 10px; }
strong { color: var(--text); }
blockquote {
  border-left: 3px solid var(--accent);
  margin: 24px 0; padding: 4px 0 4px 20px; color: var(--text);
}
hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 28px; margin: 32px 0;
}
.callout h3 { margin-top: 0; }

.example {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px 20px; margin: 20px 0; font-size: 16px;
}
.example .bad { color: #ff8080; }
.example .good { color: #6fe0a0; }

/* --- CTA card --- */
.cta-card {
  background: linear-gradient(135deg, rgba(124,92,255,0.16), rgba(124,92,255,0.04));
  border: 1px solid rgba(124,92,255,0.3);
  border-radius: 18px; padding: 32px; margin: 48px 0; text-align: center;
}
.cta-card h3 { margin-top: 0; }
.cta-btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 13px 28px; border-radius: 999px; font-weight: 600; margin-top: 8px;
}
.cta-btn:hover { background: var(--accent-hover); text-decoration: none; }

/* --- blog index cards --- */
.post-list { list-style: none; padding: 0; margin: 32px 0; }
.post-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; margin-bottom: 20px; color: inherit;
}
.post-card:hover { border-color: rgba(124,92,255,0.4); text-decoration: none; transform: translateY(-2px); transition: all .15s; }
.post-card h2 { margin: 0 0 8px; font-size: 24px; }
.post-card p { margin: 0; color: var(--text-2); }
.post-card .meta { margin: 12px 0 0; }

/* --- footer --- */
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 32px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--text-2); margin: 0 10px; }
