@font-face { font-family: 'Figtree'; src: url('/fonts/Figtree-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/Figtree-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/Figtree-Bold.ttf') format('truetype'); font-weight: 700 800; font-display: swap; }

:root {
  --accent: #1A72F4;
  --bg: #fefefe;
  --fill: #f2f2f7;
  --text: #1d1d1f;
  --body: #3a3a3c;
  --muted: #6e6e73;
  --line: rgba(0,0,0,0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #3D8BFF;
    --bg: #0b0b0d;
    --fill: #1f1f24;
    --text: #f5f5f7;
    --body: #c7c7cc;
    --muted: #a1a1a6;
    --line: rgba(255,255,255,0.08);
  }
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.pill-btn { background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; padding: 8px 16px; border-radius: 980px; }

article {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  line-height: 1.7;
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}
h1 { color: var(--text); font-size: clamp(1.8rem, 4.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 36px; }
h2 { color: var(--text); font-size: 1.25rem; font-weight: 700; margin: 44px 0 10px; }
h3 { color: var(--text); font-size: 1.05rem; font-weight: 700; margin: 28px 0 6px; }
strong { color: var(--text); font-weight: 600; }
ul { padding-left: 22px; }
li { margin: 6px 0; }
code { font-size: 0.88em; background: var(--fill); padding: 1px 6px; border-radius: 6px; }
.caps { text-transform: uppercase; font-size: 0.88rem; color: var(--muted); }

.footer { text-align: center; padding: 32px 20px 48px; font-size: 0.88rem; color: var(--muted); line-height: 1.9; border-top: 1px solid var(--line); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Guides */
.topnav { display: flex; align-items: center; gap: 18px; }
.topnav a:not(.pill-btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.topnav a:not(.pill-btn):hover { color: var(--text); }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--text); }
ol { padding-left: 22px; }
blockquote { margin: 14px 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--fill); border-radius: 0 12px 12px 0; font-style: italic; }
.muted { color: var(--muted); font-size: 0.95rem; }
.guide-list { list-style: none; padding: 0; }
.guide-list li { padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
.guide-list a { text-decoration: none; font-size: 1.08rem; }
.cta { display: flex; align-items: center; gap: 16px; margin: 48px 0 8px; padding: 20px; border-radius: 20px; background: var(--fill); flex-wrap: wrap; }
.cta img { border-radius: 13px; flex: 0 0 auto; }
.cta div { flex: 1 1 260px; line-height: 1.5; }
.cta .pill-btn { white-space: nowrap; }
