/* ============================================================= *
 *  Content pages (About, Privacy, Contact, Blog) — server-rendered.
 *  Reuses the theme variables defined in styles.css.
 * ============================================================= */

/* ---- Header --------------------------------------------------------- */
/* Content pages reuse the tracker's .topbar / .brand / .icon-btn / settings
 * panel from styles.css (see _chrome_header + chrome.js). The brand title is a
 * <span> here (not an <h1>) so the page's own heading stays the sole h1; this
 * rule gives that span the tracker's h1 look. The brand links back to the
 * tracker, so make it read as plain text. */
.topbar .brand { text-decoration: none; color: var(--text); }
.brand-text .brand-title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 2.5px;
  font-size: clamp(22px, 3vw, 30px); line-height: 1; display: block;
}

/* ---- Layout --------------------------------------------------------- */
.content-wrap { max-width: 760px; margin: 0 auto; padding: 8px 20px 72px; }

/* ---- Prose (articles + pages) -------------------------------------- */
.prose { color: var(--text); line-height: 1.7; font-size: 1.05rem; }
.prose h1 { font-family: var(--font-display); font-size: 2rem; line-height: 1.15; margin: 8px 0 10px; letter-spacing: .01em; }
.prose h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 34px 0 10px; }
.prose h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px 1.2em; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose blockquote {
  margin: 18px 0; padding: 12px 18px; border-left: 3px solid var(--accent);
  background: var(--glass); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted);
}
.prose hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; background: var(--glass); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--muted); font-weight: 600; }

/* ---- Post meta + chrome -------------------------------------------- */
.post-meta, .post-card-meta {
  color: var(--muted-2); font-size: .82rem; text-transform: uppercase;
  letter-spacing: .06em; font-weight: 600;
}
.post-meta { margin-bottom: 6px; }
.prose a.back-link { display: inline-block; color: var(--muted); text-decoration: none; border-bottom: none; font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.prose a.back-link:hover { color: var(--accent); }

/* The signature "data callout" line each daily post carries. */
.data-callout {
  margin: 22px 0; padding: 14px 18px; background: var(--glass);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); font-size: .98rem; color: var(--text);
}
.data-callout b { color: var(--accent); }

/* `.prose` qualifier needed so this beats `.prose p`'s margin (specificity). */
.prose .post-footnote {
  margin: 30px 0 0; font-size: .78rem; line-height: 1.5; color: var(--muted-2);
}
/* Posts end with the small footnote, so they need less breathing room before
   the site footer than the longer content pages do. */
.content-wrap:has(.post) { padding-bottom: 36px; }
.prose .post-footnote a { color: var(--muted); border-bottom: 1px solid var(--line); }
.prose .post-footnote a:hover { color: var(--accent); }

.post-cta { margin: 30px 0 0; }
.prose a.cta-btn {
  display: inline-block; background: var(--accent); color: #04140c; font-weight: 700;
  text-decoration: none; border-bottom: none; padding: 11px 18px; border-radius: 999px;
}
:root[data-theme="light"] .prose a.cta-btn { color: #fff; }
.prose a.cta-btn:hover { filter: brightness(1.06); }

/* ---- Blog index ----------------------------------------------------- */
.blog-tagline { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }
.post-card {
  border: 1px solid var(--line); background: var(--glass); border-radius: var(--radius);
  margin: 0 0 16px; transition: border-color .15s, transform .15s;
}
.post-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.post-card-link { display: block; padding: 18px 20px; text-decoration: none; color: var(--text); }
.post-card-title { font-family: var(--font-display); font-size: 1.3rem; margin: 6px 0; }
.post-card-summary { color: var(--muted); margin: 0 0 8px; line-height: 1.6; }
.read-more { color: var(--accent); font-weight: 600; font-size: .9rem; }
.muted { color: var(--muted); }

/* ---- Footer --------------------------------------------------------- */
.site-footer {
  max-width: 760px; margin: 0 auto; padding: 28px 20px 60px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .disclaimer { color: var(--muted-2); font-size: .82rem; margin-top: 6px; line-height: 1.5; }

@media (max-width: 560px) {
  .prose h1 { font-size: 1.6rem; }
  .site-brand .hide-sm { display: none; }
  .content-wrap { padding-top: 4px; }
}
