/*
 * The blog surface's only stylesheet, shared by /blog and every article.
 *
 * These pages are plain static documents under public/, copied to dist/ verbatim and served
 * by their own URL, so they carry no script, no bundle and no React: the crawler and the
 * reader get the same bytes, and nothing can overwrite the title or description after load.
 * That is the whole point of the surface, so keep it script-free.
 *
 * `.css` is one of the extensions vercel.json's SPA rewrite excludes, so this file is served
 * from the filesystem and never rewritten to the app shell.
 *
 * System fonts only: the app's web fonts are bundled assets with hashed names, and a static
 * page outside the bundle cannot name one that survives a rebuild.
 */

:root {
  color-scheme: dark;
  --blog-background: #000000;
  --blog-text: #ededed;
  --blog-text-muted: #a1a1a1;
  --blog-link: #7a9cff;
  --blog-stroke: #262626;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--blog-background);
  color: var(--blog-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.blog-shell {
  margin: 0 auto;
  max-width: 44rem;
  padding: 24px 20px 64px;
}

.blog-masthead {
  border-bottom: 1px solid var(--blog-stroke);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.blog-masthead a {
  color: var(--blog-text);
  font-weight: 600;
  text-decoration: none;
}

.blog-masthead a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 24px;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 36px 0 12px;
}

p {
  margin: 0 0 18px;
}

ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

a {
  color: var(--blog-link);
}

.blog-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-index-list li {
  border-top: 1px solid var(--blog-stroke);
  margin: 0;
  padding: 24px 0;
}

.blog-index-list a {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

.blog-index-list p {
  color: var(--blog-text-muted);
  margin: 8px 0 0;
}

.blog-risk-note {
  border-top: 1px solid var(--blog-stroke);
  color: var(--blog-text-muted);
  margin-top: 40px;
  padding-top: 20px;
}

.blog-more {
  border-top: 1px solid var(--blog-stroke);
  margin-top: 40px;
  padding-top: 20px;
}

.blog-more h2 {
  font-size: 1rem;
  margin: 0 0 12px;
}

.blog-more ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .blog-shell {
    padding: 20px 16px 48px;
  }

  h1 {
    font-size: 1.55rem;
  }

  h2 {
    font-size: 1.15rem;
  }
}
