/* Blog pages. Builds on the tokens and layout in styles.css. */

.post,
.blog-index {
  max-width: 760px;
  padding: 56px 0 72px;
}

.post h1,
.blog-index h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.eyebrow a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-meta {
  margin: 0 0 32px;
  color: var(--muted);
}

.post-body {
  font-size: 1.075rem;
  line-height: 1.75;
}

.post-body h2 {
  margin: 2.2em 0 0.5em;
  font-size: 1.55rem;
  line-height: 1.25;
}

.post-body h3 {
  margin: 1.8em 0 0.4em;
  font-size: 1.2rem;
}

.post-body a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body ul,
.post-body ol {
  padding-left: 1.3em;
}

.post-body li + li {
  margin-top: 0.35em;
}

.post-body blockquote {
  margin: 1.5em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--green);
  color: var(--muted);
}

.post-body table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

.post-body th,
.post-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.post-body th {
  background: var(--soft-green);
}

.post-body code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--soft-blue);
  font-size: 0.92em;
}

.post-disclaimer {
  margin-top: 48px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-strong);
  color: var(--muted);
  font-size: 0.92rem;
}

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

.post-list li {
  border-top: 1px solid var(--line);
}

.post-list a {
  display: grid;
  gap: 4px;
  padding: 22px 0;
}

.post-list-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.post-list-title {
  font-size: 1.3rem;
  font-weight: 650;
}

.post-list a:hover .post-list-title {
  color: var(--green-dark);
}

.post-list-desc {
  color: var(--muted);
}

.post-list-empty {
  padding: 22px 0;
  color: var(--muted);
}

/* Print: let worksheet tables fit the page instead of scrolling (founder-approved 2026-11-29). */
@media print {
  .post-body table { display: table; overflow: visible; }
  .post-body th,
  .post-body td { white-space: normal; padding: 5px 6px; }
  .post-body thead { display: table-header-group; }
  .post-body tr { break-inside: avoid; }
}
