/* Trunk blog — self-contained stylesheet. No external fonts, no JS required.
   Light palette by default for long-form reading; dark palette mirrors the app. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5f5f66;
  --border: #e3e3e8;
  --primary: #007aff;
  --green: #1f9d4a;
  --green-bg: #e9f8ee;
  --yellow-bg: #fff8dd;
  --red: #d63b31;
  --radius: 12px;
  --max: 740px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101010;
    --bg-soft: #1c1c1c;
    --card: #1c1c1c;
    --text: #f0f0f0;
    --text-muted: #8a8a8e;
    --border: #333333;
    --primary: #4da3ff;
    --green: #34c759;
    --green-bg: #12261a;
    --yellow-bg: #2a2410;
    --red: #ff3b30;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 58px; }
.wordmark { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--text); }
.wordmark:hover { text-decoration: none; }
.site-header nav { display: flex; gap: 16px; font-size: 0.95rem; }
.site-header nav a { color: var(--text-muted); }
.site-header .btn-cta { margin-left: auto; padding: 8px 14px; font-size: 0.9rem; }

/* Buttons */
.btn-cta {
  display: inline-block; background: var(--green); color: #fff; font-weight: 700;
  padding: 12px 20px; border-radius: 10px; white-space: nowrap;
}
.btn-cta:hover { text-decoration: none; filter: brightness(1.08); }

/* Article */
main { padding: 36px 0 60px; }
article h1 { font-size: 2.1rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
.article-meta { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.article-meta .verified { color: var(--green); font-weight: 600; }
article h2 { font-size: 1.5rem; line-height: 1.25; margin: 44px 0 14px; letter-spacing: -0.01em; }
article h3 { font-size: 1.15rem; margin: 30px 0 10px; }
article p, article ul, article ol { margin: 0 0 18px; }
article li { margin-bottom: 6px; }
article strong { font-weight: 700; }
article blockquote { margin: 20px 0; padding: 4px 18px; border-left: 4px solid var(--border); color: var(--text-muted); }
article code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
article pre { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; font-size: 0.85rem; line-height: 1.5; }
article pre code { background: none; padding: 0; }
article hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }

/* Key takeaways / boxes */
.box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 28px; }
.box h2, .box h3 { margin-top: 0; font-size: 1.05rem; }
.box ul { margin-bottom: 0; padding-left: 20px; }
.box-green { background: var(--green-bg); border-color: transparent; }
.box-yellow { background: var(--yellow-bg); border-color: transparent; }

/* Table of contents */
.toc { font-size: 0.95rem; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 4px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--border); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; min-width: 480px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--red); font-weight: 700; }
.table-note { font-size: 0.85rem; color: var(--text-muted); margin: -14px 0 24px; }

/* CTA */
.cta-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 20px; margin: 34px 0; text-align: center; }
.cta-kicker { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 0 0 6px; font-weight: 700; }
.cta-lead { font-size: 1.05rem; margin: 0 0 16px; }
.cta-fine { font-size: 0.82rem; color: var(--text-muted); margin: 12px 0 0; }

/* Pros / cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 24px; }
.pros-cons > div { background: var(--bg-soft); border-radius: var(--radius); padding: 14px 16px; }
.pros-cons h4 { margin: 0 0 8px; font-size: 0.95rem; }
.pros-cons ul { margin: 0; padding-left: 18px; font-size: 0.95rem; }
@media (max-width: 560px) { .pros-cons { grid-template-columns: 1fr; } }

/* FAQ */
.faq h3 { font-size: 1.05rem; margin-top: 22px; }

/* Blog index */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 18px 0; border-bottom: 1px solid var(--border); }
.post-list a.post-title { font-size: 1.2rem; font-weight: 700; color: var(--text); display: block; margin-bottom: 4px; }
.post-list p { margin: 0 0 6px; color: var(--text-muted); font-size: 0.95rem; }
.post-list .post-meta { font-size: 0.82rem; color: var(--text-muted); }
.section-label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--text-muted); font-weight: 700; margin: 36px 0 4px; }

/* Related */
.related { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); }
.related h2 { font-size: 1.15rem; margin: 0 0 10px; }
.related ul { padding-left: 20px; margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--text-muted); font-size: 0.88rem; }
.site-footer p { margin: 0 0 10px; }

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  article h1 { font-size: 1.7rem; }
  article h2 { font-size: 1.3rem; }
  .site-header nav { display: none; }
}
