/* Epistemic Tools — blog */
@import "brand.css";

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  color: var(--text);
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--muted); }
.nav-logo-img {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  object-fit: contain;
}

.nav-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.nav-title:hover { color: var(--muted); }

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text);
}

/* Main */
.main {
  flex: 1;
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  width: 100%;
}

/* Landing */
.hero {
  margin-bottom: 3rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 1rem;
}

.hero .tagline {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 32ch;
}

.cta {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.cta:hover {
  text-decoration: underline;
}

.cta::after {
  content: " →";
}

/* Footer */
.site-footer {
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

/* Blog index */
.blog-intro {
  margin-bottom: 2rem;
}

.blog-intro h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.blog-intro p {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

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

.post-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.post-item:last-child {
  border-bottom: none;
}

.post-item a {
  color: var(--text);
  text-decoration: none;
}

.post-item a:hover {
  color: var(--muted);
}

.post-item .post-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.post-item .post-meta {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.post-item .post-excerpt {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0.5rem 0 0;
  line-height: 1.6;
}

/* Post (article) */
.article-header {
  margin-bottom: 2rem;
}

.article-header .back {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1rem;
  display: inline-block;
}

.article-header .back:hover {
  color: var(--text);
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.article-header .date {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.article-body {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.article-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.article-body p {
  margin: 0 0 1rem;
  line-height: 1.6;
}

.article-body ul, .article-body ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.article-body a {
  color: var(--text);
  text-decoration: underline;
}

.article-body a:hover {
  text-decoration: none;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  color: var(--muted);
  font-style: italic;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.2em 0.4em;
  border-radius: 0.2em;
}

.article-body pre {
  overflow-x: auto;
  margin: 1rem 0;
}

.article-body pre code {
  padding: 1rem;
  display: block;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 0.2em;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 500;
}

.pagination a {
  color: var(--text);
  text-decoration: underline;
}

.pagination a:hover {
  text-decoration: none;
}

.pagination .disabled {
  color: var(--border);
  cursor: default;
}
