:root {
  --bg: #ededed;
  --surface: #ffffff;
  --ink: #0b0f1a;
  --ink-soft: #1f2937;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --line: rgba(11, 15, 26, 0.08);
  --accent: #ef4d23;
  --footer-bg: #0b0f1a;
  --footer-link: #9ca3af;
  --footer-link-strong: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { padding: 12px; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(11,15,26,0.25); }
a:hover { text-decoration-color: var(--accent); color: var(--accent); }

/* Top bar */
.site-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background-color: rgba(237, 237, 237, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-bar a.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.site-bar a.brand img { height: 26px; width: auto; display: block; }
.site-bar .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.site-bar .cta:hover { color: #fff; opacity: 0.92; }

/* Article shell */
main.article {
  max-width: 760px;
  margin: 40px auto 64px;
  padding: 0 20px;
  background: transparent;
}

main.article > .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  margin-bottom: 18px;
}
main.article > .tag .dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
}

main.article h1 {
  font-size: clamp(34px, 5.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

main.article .byline {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

main.article .tldr {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 24px 0 36px;
}
main.article .tldr strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
main.article .tldr p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }

main.article h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 44px 0 14px;
  color: var(--ink);
}
main.article h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--ink);
}
main.article p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
main.article ul, main.article ol {
  padding-left: 22px;
  margin: 8px 0 18px;
  color: var(--ink-soft);
}
main.article li { margin: 4px 0; font-size: 16px; line-height: 1.6; }

main.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px;
  font-size: 14.5px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
main.article table th, main.article table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
main.article table th { background: #f5f5f5; font-weight: 600; color: var(--ink); }
main.article table tr:last-child td { border-bottom: none; }

main.article blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px;
  margin: 18px 0;
  color: var(--muted);
  font-style: italic;
}

main.article .faq h3 { margin-top: 22px; }
main.article .faq h3:first-of-type { margin-top: 6px; }

main.article .cta-card {
  margin-top: 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
}
main.article .cta-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
}
main.article .cta-card p {
  color: var(--muted);
  margin: 0 0 18px;
}
main.article .cta-card a.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}
main.article .cta-card a.cta:hover { color: #fff; }

/* Related / internal-link block */
main.article .related {
  margin-top: 36px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
main.article .related strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
main.article .related ul { margin: 0; padding-left: 18px; }
main.article .related li { font-size: 14.5px; }

/* Site footer */
footer.site-footer {
  margin-top: 32px;
  background: var(--footer-bg);
  color: #d1d5db;
  border-radius: 18px;
  overflow: hidden;
  font-family: Inter, system-ui, sans-serif;
}
footer.site-footer .inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 32px 40px;
}
footer.site-footer .grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 40px 32px;
}
footer.site-footer h4 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.005em;
}
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin: 0 0 10px; }
footer.site-footer a {
  font-size: 13.5px;
  color: var(--footer-link);
  text-decoration: none;
  transition: color 120ms ease;
}
footer.site-footer a.strong { color: var(--footer-link-strong); font-weight: 500; }
footer.site-footer a:hover { color: var(--accent); }
footer.site-footer .baseline {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: center;
}
footer.site-footer .baseline .pill {
  width: 36px; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,0.25);
}

@media (max-width: 960px) {
  footer.site-footer .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  footer.site-footer .grid { grid-template-columns: repeat(2, 1fr); }
  main.article h1 { font-size: 34px; }
  main.article { padding: 0 16px; margin-top: 28px; }
}
