/* =======================================================================
   RunCabin blog - shared article typography
   -----------------------------------------------------------------------
   One stylesheet for /blog and every /blog/<slug> post so the prose look
   never drifts across posts (same centralize-once philosophy as
   js/site-nav.js / js/site-footer.js).

   Load order on every blog page (matters - dark theme wins on purpose):
     /tailwind.css  ->  /css/blog.css  ->  /css/runcabin-dark.css

   Colors are tuned for the dark slate background runcabin-dark.css sets;
   utility classes in the page markup still get remapped by the dark theme.

   2026 "Field Guide" redesign: the shared nav (js/site-nav.js) injects the
   Google Fonts link for Fraunces / Schibsted Grotesk / IBM Plex Mono on
   every page, so this sheet can use the new faces without per-post edits.
   Fallbacks (Georgia / system-ui) cover the no-JS case.
   ======================================================================= */

.post { max-width: 44rem; margin: 0 auto; }

.post p,
.post ul,
.post ol {
    color: #cbd5e1;
    font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.post ul, .post ol { padding-left: 1.5rem; }
.post ul { list-style: disc; }
.post ol { list-style: decimal; }
.post li { margin-bottom: 0.5rem; }
.post li::marker { color: #7dd3fc; }

.post h2 {
    color: #f1f5f9;
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: 1.85rem;
    font-weight: 560;
    letter-spacing: -0.012em;
    line-height: 1.2;
    margin: 2.5rem 0 1rem;
}

.post h3 {
    color: #f1f5f9;
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    font-weight: 560;
    letter-spacing: -0.01em;
    margin: 2rem 0 0.75rem;
}

.post a {
    color: #7dd3fc;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(125, 211, 252, 0.4);
    transition: text-decoration-color 0.15s;
}
.post a:hover { text-decoration-color: currentColor; }

.post strong { color: #f1f5f9; font-weight: 700; }

.post blockquote {
    border-left: 2px solid #c46a1b;
    padding: 0.25rem 0 0.25rem 1.25rem;
    margin: 1.5rem 0;
    color: #e2e8f0;
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 1.1rem;
}
.post blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-family: "Schibsted Grotesk", system-ui, sans-serif;
    font-size: 0.875rem;
    color: #94a3b8;
}

.post table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}
.post th {
    text-align: left;
    color: #94a3b8;
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}
.post td {
    color: #cbd5e1;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid rgba(242, 234, 217, 0.14);
    vertical-align: top;
}

.post hr { border: 0; border-top: 1px solid rgba(242, 234, 217, 0.14); margin: 2.5rem 0; }

/* Mobile: tables scroll instead of crushing columns */
@media (max-width: 640px) {
    .post .table-scroll { overflow-x: auto; }
    .post table { min-width: 36rem; }
}

/* Top-of-post answer line (2026-10-10). AI assistants read a post to answer an
   owner's question; this puts the "who builds it" answer right under the first
   paragraph so the citation can carry a recommendation, not only the advice. */
.post .post-answer {
    border-left: 2px solid #7dd3fc;
    padding: 0.25rem 0 0.25rem 1rem;
    margin: 0 0 2rem;
}
.post .post-answer p { font-size: 0.98rem; margin: 0; color: #e2e8f0; }
