/* Bear-style blog: light, serif, minimal (standalone; do not pair with mywebsite.css) */

:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --muted: #555;
  --link: #1a1a1a;
  --link-hover: #000;
  --accent: #2563eb;
  --max: 42rem;
}

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

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

body.blog-shell {
  margin: 0;
  min-height: 100vh;
  padding: 2.25rem max(1.25rem, 4vw) 4rem;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

.blog-shell a {
  color: var(--link);
  text-decoration: none;
}

.blog-shell a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.blog-header {
  max-width: var(--max);
  margin: 0 auto 2.75rem;
}

.blog-brand {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.blog-brand a {
  color: inherit;
}

.blog-nav {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
}

.blog-nav a {
  color: var(--muted);
}

.blog-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
  pointer-events: none;
}

.blog-nav span.sep {
  color: var(--muted);
  margin: 0 0.35em;
  user-select: none;
}

.blog-main {
  max-width: var(--max);
  margin: 0 auto;
}

.blog-main h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  line-height: 1.25;
}

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

.blog-list li {
  margin: 0 0 0.65rem;
  padding: 0;
  padding-left: 0;
}

.blog-list time,
.blog-list .post-date {
  font-style: italic;
  color: var(--muted);
  font-size: 0.98em;
}

.blog-list .post-title {
  margin-left: 0.35rem;
}

/* Article (single post) */
.blog-article header {
  margin-bottom: 1.75rem;
}

.blog-article .post-meta {
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.35rem 0 0;
}

.blog-article h1 {
  font-size: 1.65rem;
  margin: 0;
}

.blog-article .prose {
  font-size: 1.0625rem;
}

.blog-article .prose h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.blog-article .prose h2:first-child {
  margin-top: 0;
}

.blog-article .prose p {
  margin: 0 0 1rem;
}

.blog-article .prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  .blog-article .prose code {
    background: rgba(255, 255, 255, 0.08);
  }
}

.blog-footer {
  max-width: var(--max);
  margin: 3.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  color: var(--muted);
}

.blog-footer .tag {
  margin-bottom: 0.35rem;
}

.blog-footer .tag a {
  color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --text: #ececec;
    --muted: #9a9a9a;
    --link: #ececec;
    --link-hover: #fff;
    --accent: #60a5fa;
  }

  .blog-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
  }
}
