/* EasyPaste blog — reading pages on top of the landing page's styles.css.
   One column of body text at a comfortable measure; the quick-answer box leads because most
   readers arrive with one question. */

.blog { background: var(--ep-bg); }

.article-wrap {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 104px 0 72px;
}

.crumbs { font-size: 13px; color: var(--ep-muted); }
.crumbs a { color: var(--ep-muted); }
.crumbs a:hover { color: var(--ep-ink); }
.crumbs span { margin: 0 6px; color: var(--ep-muted); }

/* ---------- Header ---------- */

.article-head { margin-top: 18px; }

.article-head h1,
.index-head h1 {
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.article-dek {
  margin: 16px 0 0;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ep-muted);
  max-width: 62ch;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--ep-muted);
}

/* ---------- Quick answer ---------- */

.answer {
  margin-top: 30px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--ep-select);
  border: 1px solid var(--ep-line);
  border-inline-start: 3px solid var(--ep-brand);
}

.answer-label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ep-action);
}

.answer p { margin: 0; font-size: 16px; line-height: 1.6; }
.answer p + p, .answer ol, .answer ul { margin-top: 10px; }
.answer ol, .answer ul { padding-left: 20px; }
.answer li { margin: 4px 0; }

/* ---------- Table of contents ---------- */

.toc {
  margin-top: 26px;
  padding: 18px 22px;
  border: 1px solid var(--ep-line);
  border-radius: 18px;
}

.toc p { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--ep-muted); }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 5px; font-size: 15px; }
.toc a { color: var(--ep-ink); }
.toc a:hover { color: var(--ep-action); }

/* ---------- Body ---------- */

.prose { margin-top: 34px; font-size: 17px; line-height: 1.72; color: var(--ep-ink); }

.prose h2 {
  margin: 52px 0 14px;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
  scroll-margin-top: 80px;
}

.prose h3 {
  margin: 32px 0 8px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin: 7px 0; }
.prose li > p { margin: 0; }
/* Brand blue is 3.8:1 on white, under WCAG AA for body text, so links use a deeper shade. */
.prose a { color: var(--ep-action); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { font-weight: 650; }

.prose kbd { font-size: 0.82em; }

.prose .note {
  margin: 24px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--ep-card);
  font-size: 15.5px;
  line-height: 1.6;
}

.prose .note strong:first-child { display: block; margin-bottom: 4px; }

.prose pre {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #14241B;
  color: #E8F0EA;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

.table-wrap { margin: 0 0 24px; overflow-x: auto; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.prose th, .prose td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ep-line);
}

.prose th { font-size: 13px; font-weight: 700; color: var(--ep-muted); white-space: nowrap; }
.prose td:first-child { font-weight: 600; }

/* ---------- EasyPaste box ---------- */

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  margin: 40px 0;
  padding: 24px 26px;
  border-radius: 22px;
  /* Fixed brand green in both modes: a deliberate block of brand, cream text on it (6.8:1). */
  background: #1E5E3F;
  border-top: 3px solid var(--ep-brass);
  color: #F4F1E8;
}

.cta-box strong { display: block; font-size: 19px; letter-spacing: -0.02em; }
.cta-box p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: rgba(244, 241, 232, 0.92); max-width: 52ch; }

.cta-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: #F4F1E8;
  color: #14241B;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
}

.cta-btn:hover { transform: translateY(-1px); }

/* An inline box inside .prose would otherwise pick up the body-link colour and underline. */
.prose .cta-btn { color: #14241B; text-decoration: none; }

@media (max-width: 640px) {
  .cta-box { flex-direction: column; align-items: flex-start; }
}

/* ---------- Related / index cards ---------- */

.related { margin-top: 20px; padding-top: 34px; border-top: 1px solid var(--ep-line); }
.related h2 { font-size: 24px; letter-spacing: -0.03em; margin-bottom: 16px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.post-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  background: var(--ep-card);
  transition: background 0.15s;
}

.post-card:hover { background: var(--ep-select); }
.post-thumb { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover;
  margin: 0 0 8px; border-radius: 12px; }
.article-cover { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; margin-top: 28px; border-radius: 22px; }
.post-card strong { font-size: 16px; line-height: 1.3; letter-spacing: -0.02em; }
.post-card span { font-size: 14px; line-height: 1.5; color: var(--ep-muted); }
.post-card time { font-size: 12.5px; color: var(--ep-muted); }

.blog-index { width: min(100% - 40px, 1040px); }
.index-head p { margin: 16px 0 0; font-size: 18px; color: var(--ep-muted); max-width: 62ch; }
.post-grid-index { margin-top: 36px; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.post-grid-index .post-card { padding: 22px; }
.post-grid-index strong { font-size: 19px; }

@media (max-width: 820px) {
  .post-grid, .post-grid-index { grid-template-columns: 1fr; }
}
