/*
 * Prose styling, shared by the section under the app on / and by the standalone pages in
 * public/. It is served unhashed rather than bundled because the standalone pages are plain
 * HTML with no build step — one file, so the pages and the app footer cannot drift apart.
 */

.about,
.page {
  --ink: #0e0f12;
  --panel: #16171a;
  --line: #26282e;
  --text: #d8dae0;
  --dim: #8a8f9a;
  --accent: #e4572e;

  background: var(--ink);
  color: var(--text);
  font-family: 'Inter Variable', Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* A 720px column, centred by padding rather than by `margin-inline: auto` on the children —
   the block rules below set `margin` outright, which would wipe an auto side margin out. */
.about,
.page {
  --gutter: max(24px, calc(50% - 360px));
}

.about {
  border-top: 1px solid var(--line);
  padding: 56px var(--gutter) 72px;
}

.page {
  min-height: 100%;
  padding: 40px var(--gutter) 72px;
}

.about h2,
.page h2 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  color: #f2f2f2;
  margin: 44px 0 12px;
}

.page h1 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  color: #f2f2f2;
  margin: 8px 0 14px;
}

.page h3,
.about h3 {
  font-size: 16px;
  font-weight: 600;
  color: #f2f2f2;
  margin: 26px 0 8px;
}

.about p,
.page p,
.about li,
.page li,
.about dd,
.page dd {
  margin: 0 0 12px;
}

.about ol,
.page ol,
.about ul,
.page ul {
  padding-left: 22px;
  margin: 0 0 12px;
}

.about li,
.page li {
  margin-bottom: 10px;
}

.about strong,
.page strong {
  color: #f2f2f2;
  font-weight: 600;
}

.about dt,
.page dt {
  color: #f2f2f2;
  font-weight: 600;
  margin-top: 20px;
}

.about dd,
.page dd {
  margin-left: 0;
}

.about a,
.page a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.about code,
.page code {
  font-family: 'JetBrains Mono Variable', ui-monospace, monospace;
  font-size: 0.88em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}

.about table,
.page table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 16px;
  font-variant-numeric: tabular-nums;
}

.about th,
.page th,
.about td,
.page td {
  text-align: left;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--line);
}

.about th,
.page th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}

/* The row of links out of the app footer, and the breadcrumb back into the app from a page. */
.about .more,
.page .back {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
  margin-bottom: 8px;
}

.about .more a,
.page .back a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #3a3e48;
  border-radius: 999px;
  background: var(--panel);
  color: #f2f2f2;
  font-size: 14px;
  text-decoration: none;
}

.about .more a:hover,
.page .back a:hover {
  border-color: #6b7080;
}

.about .colophon,
.page .colophon {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}

.about .colophon a,
.page .colophon a {
  color: var(--dim);
}

.page .lede {
  font-size: 17px;
  color: #eceef2;
  margin-bottom: 24px;
}

.page .updated {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 28px;
}

/* A prominent link back to the tool itself, at the end of a page. */
.page .cta a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
}
