/* THE POST STYLE — lifted verbatim from paper.html (2026-09-24) so the blog and the paper are one
   typographic world and neither drifts from the other. paper.html keeps its own inline copy; this file is
   what every new post links. Editing one and not the other is the failure mode to watch. */
:root {
    --ground: #f6f7f9; --paper: #ffffff; --ink: #1c2129; --muted: #5c6673; --faint: #9aa3ae; --line: #d9dee5; --tint: #eef1f5;
    --ember: #c9552e; --ember-soft: #f3ded3; --ok: #2f7d57; --bad: #b2402e;
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif; --display: "Newsreader", "Source Serif 4", Georgia, serif; --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
    --ground: #0f1215; --paper: #14181d; --ink: #e6e9ed; --muted: #a2abb6; --faint: #6b7480; --line: #2a3138; --tint: #1a1f25;
    --ember: #e07a52; --ember-soft: #3a2519; --ok: #6fbf95; --bad: #e0705a;
  } }
  :root[data-theme="dark"] {
    --ground: #0f1215; --paper: #14181d; --ink: #e6e9ed; --muted: #a2abb6; --faint: #6b7480; --line: #2a3138; --tint: #1a1f25;
    --ember: #e07a52; --ember-soft: #3a2519; --ok: #6fbf95; --bad: #e0705a;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.6; font-variant-numeric: tabular-nums; }
  a { color: var(--ember); text-decoration-thickness: 1px; text-underline-offset: 3px; }
  a:focus-visible, button:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
  .sheet { max-width: 1040px; margin: 0 auto; padding: 48px 24px 96px; }
  .paper { background: var(--paper); border: 1px solid var(--line); padding: 64px 72px 80px; }
  @media (max-width: 720px) { .paper { padding: 36px 20px 56px; } .sheet { padding: 16px 8px 48px; } }
  .eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  h1 { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 4.4vw, 50px); line-height: 1.08; margin: 10px 0 8px; letter-spacing: -.01em; text-wrap: balance; max-width: 22ch; }
  .sub { font-family: var(--display); font-size: 21px; color: var(--muted); margin: 0 0 22px; max-width: 40ch; text-wrap: balance; line-height: 1.3; }
  .byline { display: flex; flex-wrap: wrap; gap: 18px 28px; font-family: var(--mono); font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin: 0 0 40px; }
  .byline b { color: var(--ink); font-weight: 600; }
  .abstract { border-left: 3px solid var(--ember); padding: 4px 0 4px 22px; margin: 0 0 40px; max-width: 68ch; }
  .abstract p { margin: 0; font-size: 16.5px; }
  .abstract .eyebrow { display: block; margin-bottom: 8px; color: var(--ember); }
  h2 { font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.15; margin: 56px 0 14px; letter-spacing: -.005em; text-wrap: balance; }
  h2 .n { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--ember); display: block; margin-bottom: 6px; font-weight: 600; }
  h3 { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 30px 0 8px; }
  p, li { max-width: 68ch; }
  p { margin: 0 0 16px; }
  ul, ol { padding-left: 22px; margin: 0 0 16px; }
  li { margin-bottom: 6px; }
  code, .k { font-family: var(--mono); font-size: 0.86em; background: var(--tint); padding: 1px 5px; border-radius: 3px; color: var(--ink); }
  pre { font-family: var(--mono); font-size: 13px; line-height: 1.55; background: var(--tint); border: 1px solid var(--line); padding: 14px 16px; overflow-x: auto; margin: 0 0 18px; max-width: 100%; }
  .formula { font-family: var(--mono); font-size: 14px; background: var(--tint); border: 1px solid var(--line); padding: 14px 18px; margin: 12px 0 18px; overflow-x: auto; white-space: pre; line-height: 1.7; }
  .tbl { overflow-x: auto; margin: 14px 0 22px; }
  table { border-collapse: collapse; width: 100%; font-size: 14px; }
  caption { text-align: left; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 0 8px; caption-side: top; }
  th { text-align: left; font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--ink); padding: 6px 10px 8px 0; white-space: nowrap; }
  td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
  td.num, th.num { text-align: right; padding-right: 14px; }
  td.mono { font-family: var(--mono); font-size: 12.5px; }
  tr.lead td { font-weight: 600; }
  .win { color: var(--ok); font-weight: 600; }
  .lose { color: var(--bad); }
  .note { font-size: 14px; color: var(--muted); margin: -10px 0 18px; max-width: 68ch; }
  .defs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 20px; max-width: 68ch; font-size: 15.5px; }
  .defs dt { font-family: var(--mono); font-size: 12.5px; color: var(--ember); padding-top: 3px; white-space: nowrap; }
  .defs dd { margin: 0; }
  .fig { border: 1px solid var(--line); background: var(--tint); padding: 18px 20px; margin: 14px 0 22px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; overflow-x: auto; white-space: pre; color: var(--ink); }
  .fig b { color: var(--ember); font-weight: 600; }
  .flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0 26px; }
  .flow > div { border: 1px solid var(--line); padding: 14px 16px; background: var(--paper); }
  .flow h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ember); margin: 0 0 6px; }
  .flow p { font-size: 14.5px; margin: 0; }
  @media (max-width: 720px) { .flow { grid-template-columns: 1fr; } }
  .refs { font-size: 14px; }
  .refs li { margin-bottom: 8px; }
  .refs .id { font-family: var(--mono); color: var(--ember); margin-right: 6px; }
  .hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
  .callout { background: var(--ember-soft); border-left: 3px solid var(--ember); padding: 12px 18px; margin: 18px 0 22px; max-width: 68ch; font-size: 15.5px; }
  .callout p { margin: 0; }
  @media (prefers-reduced-motion: no-preference) { .paper { animation: rise .5s ease both; } @keyframes rise { from { transform: translateY(6px); } to { transform: none; } } }
