/* Styling for the static blog pages. Hand-written on purpose: the article
   bodies come from Markdown and carry no utility classes, and a blog page
   should not pull the app's Tailwind build or its hashed asset names. Served
   from a stable path so every generated page can reference it without a
   content hash. */

:root {
  --ink: #18181b;
  --muted: #52525b;
  --faint: #71717a;
  --line: #e4e4e7;
  --panel: #fafafa;
  --brand: #10b981;
  --brand-neon: #34d399;
  --brand-ink: #047857;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: 1.65;
}

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

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.site-header .wrap {
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand svg {
  width: 30px;
  height: 30px;
  color: var(--brand);
}
.brand .dot {
  color: var(--brand);
}
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-neon);
  color: #052e1a;
  font-weight: 800;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
}
.cta-link:hover {
  background: var(--brand);
  text-decoration: none;
}

/* Breadcrumb */
.crumb {
  font-size: 13px;
  color: var(--faint);
  padding-top: 24px;
}
.crumb a {
  color: var(--faint);
}

/* Article */
main {
  padding-bottom: 64px;
}
article h1,
.page-title {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 16px 0 12px;
}
.meta {
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 32px;
}
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 32px;
}

article h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
}
article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 8px;
}
article p {
  margin: 0 0 16px;
  color: #27272a;
}
article ul,
article ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #27272a;
}
article li {
  margin: 6px 0;
}
article strong {
  color: var(--ink);
  font-weight: 700;
}
article a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}
article th,
article td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
article th {
  background: var(--panel);
  font-weight: 700;
}

blockquote {
  border-left: 3px solid var(--brand-neon);
  margin: 0 0 20px;
  padding: 4px 0 4px 18px;
  color: var(--muted);
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* CTA box inside articles */
.tool-cta {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f6fefb, #fff);
  border-radius: var(--radius);
  padding: 28px;
  margin: 40px 0;
  text-align: center;
}
.tool-cta h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.tool-cta p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* FAQ */
.faq {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  float: right;
  color: var(--faint);
  font-weight: 400;
}
.faq details[open] summary::after {
  content: '\2013';
}
.faq details p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* Related */
.related {
  margin-top: 48px;
}
.related h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related li {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.related li:last-child {
  border-bottom: 1px solid var(--line);
}

/* Blog index cards */
.post-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
}
.post-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: inherit;
}
.post-card:hover {
  border-color: var(--brand-neon);
  text-decoration: none;
}
.post-card h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.post-card .date {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--faint);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 40px;
}
.site-footer .wrap {
  max-width: 1100px;
  font-size: 13px;
  color: var(--faint);
}
.site-footer a {
  color: var(--muted);
}
