/* Seomonn blog — plain static CSS (no runtime build), brand tokens from index.html */
:root {
  --ink: #1E1440; --muted: #5B5568; --line: #ECE8F5; --brand: #5B3FD9; --brand-deep: #4A2FC4;
  --brand-soft: #8C74FF; --lav: #EEEAFF; --spark: #FF7A1A; --night: #120B26; --night-card: #1D1438;
  --night-line: #2E2452; --moon: #F4F1FF; --haze: #B9B2D1;
  --display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-soft); color: #fff; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.15; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 16px; border-radius: 8px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 5; background: rgb(255 255 255 / .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 700 20px var(--display); letter-spacing: -0.03em; }
.logo img { width: auto; height: 30px; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; color: var(--muted); }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; background: var(--brand); color: #fff !important; box-shadow: 0 8px 22px -10px rgb(91 63 217 / .8); transition: background .2s; }
.btn:hover { background: var(--brand-deep); }
.btn-glow { background: var(--brand-soft); color: var(--night) !important; }
.btn-glow:hover { background: #A08CFF; }
@media (max-width: 640px) { .site-nav .hide-sm { display: none; } }

/* Hero */
.blog-hero { background: radial-gradient(60% 80% at 85% 20%, rgb(91 63 217 / .45), transparent 70%), var(--night); color: var(--moon); padding: 72px 0 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin: 0; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--spark); }
.blog-hero .eyebrow { color: var(--brand-soft); }
.blog-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 16px 0 12px; font-weight: 700; max-width: 18ch; }
.blog-hero p { color: var(--haze); font-size: 18px; max-width: 56ch; margin: 0; }

/* Post list */
.posts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); padding: 56px 0 80px; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: 24px; text-decoration: none; background: #fff; box-shadow: 0 1px 2px rgb(30 20 64 / .04), 0 12px 32px -16px rgb(30 20 64 / .16); transition: transform .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); border-color: var(--brand-soft); }
.post-card h2 { font-size: 21px; margin: 4px 0 0; font-weight: 600; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; }
.post-card .more { margin-top: auto; padding-top: 8px; color: var(--brand); font-weight: 600; font-size: 14px; }
.tag { align-self: flex-start; display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--lav); color: var(--brand); font-size: 12px; font-weight: 600; }
.meta { color: var(--muted); font-size: 14px; }
.blog-hero .meta { color: var(--haze); margin-top: 18px; }

/* Article */
.crumbs { font-size: 14px; color: var(--haze); margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: #fff; }
.article { max-width: 720px; margin: 0 auto; padding: 56px 20px 40px; font-size: 17px; }
.article h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 2.2em 0 .6em; font-weight: 600; }
.article h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; font-weight: 600; }
.article p, .article ul, .article ol { margin: 0 0 1.15em; }
.article li { margin-bottom: .45em; }
.article a { color: var(--brand); text-underline-offset: 3px; }
.article strong { font-weight: 600; }
.article code { font: 14px var(--mono); background: var(--lav); padding: 2px 6px; border-radius: 6px; }
.article pre { font: 13.5px/1.6 var(--mono); background: var(--night); color: var(--moon); padding: 18px 20px; border-radius: 16px; overflow-x: auto; }
.article pre code { background: none; padding: 0; color: inherit; }
.article blockquote, .callout { margin: 1.6em 0; padding: 18px 22px; border-radius: 16px; background: var(--lav); border: 0; }
.callout p:last-child { margin-bottom: 0; }
.toc { border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 0 0 2em; font-size: 15px; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { color: var(--ink); text-decoration: none; } .toc a:hover { color: var(--brand); }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 1.4em; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { font-weight: 600; background: #FAF9FF; }

/* CTA + related + footer */
.cta { max-width: 1080px; margin: 24px auto 64px; padding: 48px 32px; border-radius: 32px; background: radial-gradient(60% 90% at 90% 10%, rgb(91 63 217 / .5), transparent 70%), var(--night); color: var(--moon); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 600; }
.cta p { margin: 0; color: var(--haze); max-width: 48ch; }
@media (max-width: 1120px) { .cta { margin-left: 20px; margin-right: 20px; } }
.related { max-width: 720px; margin: 0 auto; padding: 0 20px 24px; }
.related h2 { font-size: 20px; }
.related ul { padding-left: 20px; }
.related a { color: var(--brand); }
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot a { text-decoration: none; } .site-foot a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .post-card { transition: none; } }
@media (max-width: 640px) {
  .article { overflow-wrap: anywhere; }
  .article table { display: block; overflow-x: auto; }
  .site-nav { gap: 14px; }
}
