/* Snow AI — shared styles
   Drop this file at /assets/styles.css on the live site.
   Designed mobile-first; uses system fonts (no extra HTTP request, faster LCP).
*/

:root {
  --ink: #0b1220;
  --ink-soft: #354155;
  --paper: #ffffff;
  --paper-soft: #f5f7fb;
  --line: #e3e8f0;
  --accent: #2f6bff;
  --accent-soft: #e8efff;
  --max: 760px;
  --max-wide: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; display: block; }

/* ----- Layout ----- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 20px; }

/* ----- Header ----- */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: var(--paper);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
}
.site-header .container-wide {
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.nav a {
  margin-left: 22px; color: var(--ink-soft); font-size: 15px; font-weight: 500;
}
.nav a:hover { color: var(--accent); text-decoration: none; }

/* ----- Hero / page intros ----- */
.page-intro {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}
.page-intro h1 {
  font-size: 40px; line-height: 1.15; margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.page-intro p { font-size: 19px; color: var(--ink-soft); margin: 0; }

/* ----- Article ----- */
article.post { padding: 40px 0 64px; }
article.post h1 {
  font-size: 38px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px;
}
article.post .meta {
  color: var(--ink-soft); font-size: 14px; margin-bottom: 28px;
}
article.post h2 {
  font-size: 26px; line-height: 1.25; margin: 40px 0 12px; letter-spacing: -0.01em;
}
article.post h3 { font-size: 20px; margin: 28px 0 8px; }
article.post p { margin: 0 0 16px; }
article.post ul, article.post ol { padding-left: 22px; margin: 0 0 18px; }
article.post li { margin-bottom: 6px; }
article.post blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 18px; margin: 22px 0; border-radius: 0 8px 8px 0;
  color: var(--ink);
}
article.post code {
  background: var(--paper-soft);
  padding: 2px 6px; border-radius: 4px; font-size: 0.92em;
}
article.post hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

/* Callout box for stats / takeaways */
.callout {
  background: var(--accent-soft);
  border: 1px solid #c8d8ff;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 24px 0;
  font-size: 16px;
}
.callout strong { color: var(--accent); }

/* ----- Blog index list ----- */
.post-list { list-style: none; padding: 0; margin: 32px 0 64px; }
.post-list li {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.post-list li:last-child { border-bottom: 0; }
.post-list a.title {
  display: block; font-size: 22px; font-weight: 600;
  color: var(--ink); margin-bottom: 4px; letter-spacing: -0.01em;
}
.post-list a.title:hover { color: var(--accent); text-decoration: none; }
.post-list .excerpt { color: var(--ink-soft); margin: 0 0 6px; }
.post-list .post-meta { font-size: 14px; color: var(--ink-soft); }

/* ----- CTA strip ----- */
.cta-strip {
  background: var(--ink); color: #fff;
  padding: 36px 0; margin-top: 40px;
  text-align: center;
}
.cta-strip h2 { margin: 0 0 8px; font-size: 24px; color: #fff; letter-spacing: -0.01em; }
.cta-strip p { margin: 0 0 16px; color: #c5cfe0; }
.cta-strip a.button {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 12px 22px; border-radius: 8px; font-weight: 600;
}
.cta-strip a.button:hover { text-decoration: none; opacity: 0.92; }

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0; font-size: 14px; color: var(--ink-soft);
}
.site-footer a { color: var(--ink-soft); }
.site-footer .container-wide {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ----- FAQ ----- */
.faq details {
  border: 1px solid var(--line);
  border-radius: 8px; padding: 14px 18px; margin-bottom: 10px;
  background: var(--paper);
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq details[open] summary { margin-bottom: 8px; }

/* ----- Responsive ----- */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .page-intro h1 { font-size: 30px; }
  article.post h1 { font-size: 28px; }
  article.post h2 { font-size: 22px; }
  .nav a { margin-left: 12px; font-size: 14px; }
}
