/* Renoox blog — reading typography, tables, cards and the gold CTA.
   Loaded only by pages scripts/build-blog.js generates, on top of style.css
   (tokens, topbar, dock) and profile.css (scrollable page shell). */

.blog-page { --reading: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans SC', sans-serif; }
/* body is a column flex container: min-width: 0 lets a wide table scroll inside
   .table-wrap instead of stretching the page past the viewport on phones */
.blog-main { width: 100%; min-width: 0; max-width: 1080px; margin: 0 auto; padding: 28px 20px 64px; }

/* ── shared bits ─────────────────────────────────────────────────────── */
.kicker { font-size: 10px; letter-spacing: .3em; color: #8d7a5f; margin-bottom: 12px; }
.crumbs { font-size: 11px; letter-spacing: .1em; color: #8d7a5f; margin-bottom: 22px; }
.crumbs a { color: #d9c6a6; text-decoration: none; border-bottom: 1px dotted #8d7a5f; }
.crumbs a:hover { color: var(--amber); }
.crumbs .sep { margin: 0 6px; }
.empty { font-family: var(--reading); color: #d9c6a6; font-size: 16px; padding: 30px 0; }
.section-h { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--amber); margin: 44px 0 16px; padding-top: 18px; border-top: 1px solid var(--line); }

.blog-cta {
  display: inline-block;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1a1206 !important;
  background: var(--amber);
  border: 1px solid #7a5a0e;
  padding: 12px 18px;
  text-decoration: none !important;
  transition: background .15s, transform .15s;
}
.blog-cta:hover { background: #f3d843; transform: translateY(-1px); }
.cta-row { margin: 28px 0; }

/* ── listing pages ───────────────────────────────────────────────────── */
.blog-head { max-width: 760px; margin-bottom: 34px; }
.blog-head h1 { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.2; letter-spacing: .02em; color: #fff; margin-bottom: 14px; }
.blog-head .lede, .topic-intro p { font-family: var(--reading); font-size: 17px; line-height: 1.65; color: var(--cream); margin-bottom: 14px; }
.topic-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; }
.topic-filter a { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #d9c6a6; text-decoration: none; border: 1px solid var(--line); background: var(--panel); padding: 7px 10px; }
.topic-filter a:hover { color: var(--amber); border-color: var(--amber); }
.lang-switch { font-size: 11px; letter-spacing: .1em; color: #8d7a5f; margin-top: 12px; }
.lang-switch a { color: #ffd27a; text-decoration: none; border-bottom: 1px dotted #ffd27a; }
.lang-switch a:hover { color: #fff; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; font-size: 12px; letter-spacing: .1em; color: #8d7a5f; }
.pagination a { color: #ffd27a; text-decoration: none; border-bottom: 1px dotted #ffd27a; }

/* cards — also used by partials/latest-posts.html on the front page (see style.css) */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* ── article ─────────────────────────────────────────────────────────── */
.post { max-width: 68ch; margin: 0 auto; }
.post-head h1 { font-size: clamp(26px, 3.8vw, 40px); line-height: 1.18; letter-spacing: .01em; color: #fff; margin-bottom: 18px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12px; letter-spacing: .04em; color: #d9c6a6; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.post-meta a { color: #ffd27a; text-decoration: none; }
.post-meta .meta-sep { color: #5a4a35; }
.post-meta .lang-switch { flex-basis: 100%; margin-top: 4px; }
.meta-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.author-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--panel-2); color: var(--amber); font-weight: 700; font-size: 16px; }

.post-body, .author-bio { font-family: var(--reading); font-size: 18px; line-height: 1.65; color: var(--cream); }
.post-body p, .post-body ul, .post-body ol, .post-body blockquote, .author-bio p { margin: 0 0 20px; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: 6px; }
.post-body a, .author-bio a { color: #ffd27a; text-decoration: underline; text-decoration-color: rgba(255, 210, 122, .45); text-underline-offset: 3px; }
.post-body a:hover { color: #fff; }
.post-body h2 { font-family: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace; font-size: 20px; letter-spacing: .04em; line-height: 1.3; color: #fff; margin: 44px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.post-body h3 { font-family: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace; font-size: 15px; letter-spacing: .06em; color: #ffd27a; margin: 30px 0 10px; }
.post-body h2 a, .post-body h3 a { color: inherit; text-decoration: none; }
.post-body strong { color: #fff; }
.post-body em { color: #f3e6d0; }
.post-body img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); margin: 24px 0; }
.post-body blockquote { border-left: 3px solid var(--amber); padding: 4px 0 4px 18px; color: #d9c6a6; }
.post-body code { font-size: .9em; background: var(--panel-2); padding: 1px 5px; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* tables: full width, sticky first column on small screens */
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; min-width: 520px; }
.post-body th, .post-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-body th { font-family: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #ffd27a; background: var(--panel); }
.post-body tr:last-child td { border-bottom: 0; }
.post-body tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
@media (max-width: 700px) {
  .post-body th:first-child, .post-body td:first-child { position: sticky; left: 0; background: var(--panel); z-index: 1; box-shadow: 6px 0 8px -6px rgba(0, 0, 0, .8); }
}

/* local --preview mode only: drafts render with their WYMUN markers highlighted */
.draft-banner { font-family: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace; font-size: 11px; letter-spacing: .12em; color: #ffb4a0; background: #3a1a12; border: 1px solid #7a2e12; padding: 8px 12px; margin: 0 0 24px; }
mark.marker { background: #7a2e12; color: #fff; padding: 1px 6px; font-family: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace; font-size: .8em; letter-spacing: .04em; }

/* money-page card + FAQ */
.money-card { background: var(--panel); border: 1px solid var(--amber); padding: 22px 24px; margin: 30px 0; }
.money-card h3 { font-family: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 8px; }
.money-card p { font-size: 16px; color: #e6d8bf; margin: 0 0 16px; }
.faq { margin-top: 44px; }
.faq h2 { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.faq details { border: 1px solid var(--line); background: var(--panel); margin-bottom: 8px; font-family: var(--reading); }
.faq summary { cursor: pointer; padding: 12px 14px; font-size: 16px; color: #fff; }
.faq details p { padding: 0 14px 14px; margin: 0; font-size: 16px; line-height: 1.6; color: var(--cream); }

/* author box + author page */
.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 44px; padding: 20px; background: var(--panel); border: 1px solid var(--line); font-family: var(--reading); }
.author-box .kicker { margin-bottom: 4px; }
.author-box h3 { font-size: 18px; margin: 0 0 2px; }
.author-box h3 a { color: #fff; text-decoration: none; }
.author-box p { font-size: 15px; line-height: 1.55; color: var(--cream); margin: 0; }
.author-box .author-title { color: #ffd27a; font-size: 13px; margin-bottom: 8px; }
.author-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); flex: 0 0 auto; font-size: 34px; }
.author-photo.large { width: 160px; height: 160px; font-size: 56px; }
.author-page { max-width: 68ch; margin: 0 auto; }
.author-head { display: flex; gap: 24px; align-items: center; margin-bottom: 26px; }
.author-head h1 { font-size: clamp(26px, 3.6vw, 38px); color: #fff; margin-bottom: 6px; }
.author-head .author-title { font-family: var(--reading); color: #ffd27a; font-size: 15px; margin-bottom: 8px; }
.author-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; letter-spacing: .06em; }
.author-links a { color: #d9c6a6; text-decoration: none; border-bottom: 1px dotted #8d7a5f; }
.author-links a:hover { color: var(--amber); }
.related { margin-top: 44px; }
.related h2 { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.post .post-grid { grid-template-columns: 1fr; }

@media (max-width: 700px) {
  .blog-main { padding: 20px 14px 48px; }
  .post-body, .author-bio { font-size: 17px; }
  .author-head { flex-direction: column; align-items: flex-start; }
}
