/* Margin blog — shared styles. Mirrors the landing page's design tokens. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --paper: #faf6ec;
  --coral: #ec5a5a;
  --coral-btn: #ec5a5a;
  --coral-btn-h: #d94a4a;
  --coral-d: #a82a2a;
  --t-coral: #fdecec;
  --gold: #d4a534; --gold-d: #92651a; --t-gold: #fbf1d6;
  --mint: #5dc4a8; --mint-d: #1c7a5c; --t-mint: #e2f5ef;
  --violet: #8b5cf6; --violet-d: #6d28d9; --t-violet: #f0eafe;
  --ink: #1a1612; --muted-d: #4a4239; --muted: #7a7268;
  --line: #e7e4df; --line-soft: #efeeea;
  --warm: #fbf7f4;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #ffffff; color: var(--ink);
  font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'DM Serif Display', serif; }
h1, h2, h3 { font-family: 'DM Serif Display', serif; font-weight: 400; color: var(--ink); letter-spacing: -0.012em; }
h1 em, h2 em { font-style: italic; }
a { color: inherit; }

/* Nav (identical to landing) */
nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; font-family: 'DM Serif Display', serif; font-size: 26px; color: var(--ink); }
.logo-c { width: 32px; height: 32px; border-radius: 8px; background: var(--coral); color: white; display: flex; align-items: center; justify-content: center; font-family: 'DM Serif Display', serif; font-size: 17px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--muted-d); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a.btn { color: #fff; text-decoration: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.12s ease, background 0.15s ease; }
.btn-primary { background: var(--coral-btn); color: #fff !important; box-shadow: 0 4px 12px -5px rgba(236,90,90,0.5); }
.btn-primary:hover { background: var(--coral-btn-h); transform: translateY(-1px); }

/* Article layout */
.post { max-width: 720px; margin: 0 auto; padding: 64px 24px 40px; }
.post-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-d); background: var(--t-coral); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.post h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.15; margin-bottom: 14px; }
.post-meta { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.post h2 { font-size: 27px; line-height: 1.25; margin: 44px 0 14px; }
.post p { margin-bottom: 18px; }
.post ul, .post ol { margin: 0 0 18px 24px; }
.post li { margin-bottom: 8px; }
.post strong { color: var(--ink); }
.post figure { margin: 28px 0; }
.post figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px -18px rgba(60,40,20,0.25); }
.post figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; font-style: italic; }
.post blockquote { border-left: 3px solid var(--coral); background: var(--warm); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 0 0 18px; color: var(--muted-d); }
.post code { background: var(--t-mint); color: var(--mint-d); padding: 1px 6px; border-radius: 4px; font-size: 15px; font-weight: 600; }
.post-cta { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; text-align: center; margin: 44px 0 8px; }
.post-cta p { margin-bottom: 16px; color: var(--muted-d); }
.post-next { max-width: 720px; margin: 0 auto; padding: 0 24px 72px; }
.post-next a { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; text-decoration: none; transition: border-color 0.15s ease, background 0.15s ease; }
.post-next a:hover { border-color: var(--coral); background: var(--warm); }
.post-next .label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.post-next .title { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--ink); margin-top: 4px; }

/* Listing */
.blog-hero { background: var(--paper); border-bottom: 1px solid var(--line-soft); padding: 72px 24px 56px; text-align: center; }
.blog-hero h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 12px; }
.blog-hero p { color: var(--muted-d); max-width: 560px; margin: 0 auto; }
.post-list { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; display: flex; flex-direction: column; gap: 18px; }
.post-card { border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; text-decoration: none; display: block; transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease; }
.post-card:hover { border-color: var(--coral); background: var(--warm); transform: translateY(-1px); }
.post-card .step { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-d); }
.post-card h2 { font-size: 24px; margin: 6px 0 8px; }
.post-card p { color: var(--muted-d); font-size: 16px; }

.post-card.start-here { background: linear-gradient(135deg, var(--t-coral), var(--paper)); border: 2px solid var(--coral); box-shadow: 0 14px 34px -20px rgba(236,90,90,0.55); }
.post-card.start-here:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(236,90,90,0.7); }
.post-card.start-here .step { color: #fff; background: var(--coral); padding: 4px 12px; border-radius: 999px; display: inline-block; }
.post-card.start-here .go { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--coral-d); font-weight: 700; font-size: 15px; }

/* Video card (getting-started hub) */
.video-card { border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; }
.video-card h2 { font-family: 'DM Serif Display', serif; font-size: 24px; margin-bottom: 6px; }
.video-card p { color: var(--muted-d); font-size: 16px; margin-bottom: 0; }
.video-card .video-embed { position: relative; padding-bottom: 56.25%; height: 0; margin-top: 18px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.video-card .video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-soon { background: var(--warm); border-style: dashed; }

/* Footer */
footer { padding: 36px 32px; text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--muted-d); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--ink); }
.footer-dot { color: var(--muted); }
footer .serif { color: var(--coral); font-style: italic; font-size: 16px; }

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .post { padding-top: 44px; }
}
