/* The public pages (backend/routers/seo.py and seo_tools.py: the Journal,
   the calculators, the simulations): the app's light Lumen look (styles.css,
   docs/design/lumen.md), readable without the app's script or stylesheet. */
:root {
  --bg: #f6f6fb;
  --surface: #ffffff;
  --raised: #f0eff6;
  --border: #e4e2ee;
  --text: #16142a;
  --dim: #3d3956;
  --muted: #625e7a;
  --accent: #6a4be0;
  --link: #5a3dd0;
  /* The wordmark's frame corners: the brand purple, whatever the accent. */
  --brand-frame: #6a4be0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--dim);
  font: 17px/1.65 "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }
img { max-width: 100%; height: auto; }
.jp-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(16px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--border); background: var(--surface);
}
.jp-brand { display: flex; align-items: center; color: var(--text); text-decoration: none; }
/* At least 84 px wide on screen (frontend/icons/brand). */
.jp-brand svg { display: block; height: 24px; width: auto; min-width: 84px; }
.jp-logo-frame { fill: var(--brand-frame); }
.jp-cta-small { font-weight: 700; text-decoration: none; }
.jp-main { max-width: 44rem; margin: 0 auto; padding: 28px 16px 64px; }
h1 { color: var(--text); font-size: 1.9rem; line-height: 1.2; margin: 6px 0 12px; text-wrap: balance; }
h2 { color: var(--text); font-size: 1.25rem; margin: 32px 0 8px; text-wrap: balance; }
.jp-lede { font-size: 1.08rem; color: var(--dim); }
.jp-date, .jp-crumbs { font-size: 0.85rem; color: var(--muted); margin: 0; }
.jp-figure { margin: 24px 0; }
.jp-figure img { display: block; width: 100%; border-radius: 12px; background: var(--raised); }
.jp-figure figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.jp-keypoints { background: var(--raised); border-left: 4px solid var(--accent); border-radius: 6px; padding: 12px 18px; margin: 24px 0; }
.jp-keypoints h2 { margin-top: 4px; font-size: 1rem; }
.jp-tip { background: var(--raised); border-radius: 8px; padding: 10px 14px; }
.jp-tip b { color: var(--accent); margin-inline-end: 6px; }
.jp-cta { margin-top: 40px; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.jp-button {
  display: inline-block; margin-top: 4px; padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
}
.jp-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.jp-item a {
  display: flex; gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--dim); text-decoration: none;
}
.jp-item img { flex: none; width: 120px; height: 80px; object-fit: cover; border-radius: 8px; }
.jp-item strong { display: block; color: var(--text); font-size: 1.05rem; line-height: 1.3; margin: 2px 0 4px; }
.jp-item span span:last-child { font-size: 0.92rem; }
@media (max-width: 480px) { .jp-item img { width: 84px; height: 64px; } h1 { font-size: 1.6rem; } }
.jp-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-inline-end: auto; font-weight: 600; font-size: 0.95rem; }
.jp-nav a { color: var(--dim); text-decoration: none; }
.jp-nav a:hover { color: var(--accent); }
h3 { color: var(--text); font-size: 1.05rem; margin: 22px 0 6px; }
.jp-schematic img { background: var(--surface); border: 1px solid var(--border); object-fit: contain; }
.jp-formula, .jp-inputs { margin: 18px 0; padding: 12px 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); overflow-x: auto; }
.jp-formula math { font-size: 1.25rem; margin: 6px 0 12px; color: var(--text); }
.jp-math-label { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.jp-inputs ul { margin: 6px 0 0; padding-inline-start: 20px; }
.jp-result { background: var(--raised); border-radius: 8px; padding: 10px 14px; }
.jp-result b { color: var(--accent); margin-inline-end: 6px; }
.jp-table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.jp-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.jp-table th, .jp-table td { padding: 8px 12px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--border); }
.jp-table thead th { color: var(--text); background: var(--raised); }
.jp-table tbody th { color: var(--text); font-weight: 600; white-space: nowrap; }
.jp-table tr:last-child th, .jp-table tr:last-child td { border-bottom: 0; }
.jp-pins { columns: 2 12rem; column-gap: 24px; padding-inline-start: 20px; font-variant-numeric: tabular-nums; }
.jp-quiz { padding-inline-start: 22px; }
.jp-quiz > li { margin: 18px 0; }
.jp-quiz ul { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.jp-quiz ul li { padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.jp-quiz .jp-right { border-color: var(--accent); color: var(--text); font-weight: 700; }
.jp-cta-small { white-space: nowrap; }
/* A phone: the menu gets its own line; the page's own button invites to the app. */
@media (max-width: 560px) {
  .jp-header { flex-wrap: wrap; }
  .jp-cta-small { display: none; }
  .jp-nav { order: 3; width: 100%; }
}
