/* verroes.com/riemann: a paper, set as an arXiv preprint would be on the web, to match /transconception.
   Black on white, Latin Modern (the TeX face), subset and renamed VLM. The fonts are the ones /transconception
   hosts (see /transconception/fonts/NOTICE.txt); this page loads them from there and keeps no copy.
   The figures are inline SVG, drawn by the classes at the foot of this file.
   No script, no inline style; nothing from another origin. */

@font-face { font-family: "VLM Roman"; src: url("/transconception/fonts/vlm-roman-regular.woff2") format("woff2");
             font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "VLM Roman"; src: url("/transconception/fonts/vlm-roman-italic.woff2") format("woff2");
             font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "VLM Roman"; src: url("/transconception/fonts/vlm-roman-bold.woff2") format("woff2");
             font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "VLM Roman"; src: url("/transconception/fonts/vlm-roman-bolditalic.woff2") format("woff2");
             font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "VLM Mono"; src: url("/transconception/fonts/vlm-mono-regular.woff2") format("woff2");
             font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #000;
  --ground: #fff;
  --rule: #000;
  --faint: #555;
  --tone: #e4e4e4;           /* the one grey of the figures */
  --link: #00009c;           /* the dark blue of hyperref's links */
  --serif: "VLM Roman", "Latin Modern Roman", "CMU Serif", "Computer Modern Serif", "Times New Roman", Times, serif;
  --mono: "VLM Mono", "Latin Modern Mono", "CMU Typewriter Text", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}

html { background: var(--ground); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
}

.paper {
  max-width: 41rem;
  margin: 0 auto;
  padding: 3.5rem 16px 5rem;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

p { margin: 0 0 0.85em; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
a { color: var(--link); text-decoration: none; overflow-wrap: anywhere; }
a:hover, a:focus-visible { text-decoration: underline; }
strong { font-weight: 700; }
code { font-family: var(--mono); font-size: 0.94em; overflow-wrap: anywhere; hyphens: none; }

/* The title block, centred as \maketitle sets it. */
.titleblock { text-align: center; margin: 0 0 2.4rem; }
.titleblock p { text-align: center; hyphens: manual; -webkit-hyphens: manual; }
.titleblock h1 { font-size: 1.95em; font-weight: 700; line-height: 1.2; margin: 0 0 0.45em; letter-spacing: 0.005em; }
.subtitle p { font-size: 1.2em; line-height: 1.35; margin: 0 auto 1.4em; max-width: 30em; }
.author p { font-size: 1.12em; margin: 0 0 0.25em; }
.date p { margin: 0; }

/* The abstract, narrower and smaller, its title centred in bold. */
.abstract { font-size: 0.92em; margin: 0 2.2em 2.6rem; }
.abstract-title p { text-align: center; margin: 0 0 0.4em; }

/* Sections. The paper numbers its own headings (I., II.), so no counters are added. */
h2, h3, h4 { font-weight: 700; line-height: 1.3; text-align: left; hyphens: manual; -webkit-hyphens: manual; }
h2 { font-size: 1.3em; margin: 2.2em 0 0.7em; }
h3 { font-size: 1.1em; margin: 1.7em 0 0.55em; }
h4 { font-size: 1em; margin: 1.4em 0 0.5em; }

ol, ul { margin: 0 0 1em; padding-left: 1.6em; }
li { margin: 0 0 0.35em; }
li > p { margin-bottom: 0.35em; }

/* A formula in the notes is kept on one line. */
.nb { white-space: nowrap; }

/* A displayed line, centred, as an unnumbered equation is. */
p.display { text-align: center; margin: 1.1em 0 1.2em; hyphens: manual; -webkit-hyphens: manual; }

/* Tables, as booktabs draws them: a heavy rule over and under, a light one under the head. */
.table-figure { margin: 1.6em 0 1.8em; }
.table-figure .caption p { text-align: left; font-size: 0.96em; line-height: 1.4; margin: 0 0 0.6em; hyphens: manual; -webkit-hyphens: manual; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 0.8em; line-height: 1.35;
        border-top: 1.5px solid var(--rule); border-bottom: 1.5px solid var(--rule); }
thead th { border-bottom: 0.75px solid var(--rule); font-weight: 700; }
th, td { padding: 0.45em 0.6em; vertical-align: top; text-align: left; hyphens: manual; -webkit-hyphens: manual; }
th:first-child, td:first-child { padding-left: 0.15em; }
th:last-child, td:last-child { padding-right: 0.15em; }
tbody tr:first-child td { padding-top: 0.6em; }
tbody tr:last-child td { padding-bottom: 0.6em; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.sub { padding-left: 1.6em; }
td.stage { white-space: nowrap; }

/* The bibliography: no bullets, a hanging indent. */
.references ul { list-style: none; padding: 0; font-size: 0.92em; }
.references li { padding-left: 1.6em; text-indent: -1.6em; margin: 0 0 0.55em; text-align: left; }

/* The notes, gathered at the end. */
sup { line-height: 0; }
a.footnote-ref { text-decoration: none; }
a.footnote-ref sup { font-size: 0.72em; }
section.footnotes { margin-top: 3rem; font-size: 0.88em; }
section.footnotes hr { border: 0; border-top: 0.75px solid var(--rule); width: 12rem; margin: 0 0 1em; }
section.footnotes::before { content: "Notes"; display: block; font-weight: 700; font-size: 1.48em; margin: 0 0 0.6em; order: -1; }
section.footnotes ol { padding-left: 1.4em; }
section.footnotes li { margin-bottom: 0.6em; }
section.footnotes p { text-align: left; }
a.footnote-back { text-decoration: none; font-family: var(--serif); }

:target { scroll-margin-top: 1rem; }
::selection { background: #cfd8ff; }

/* Figures: line drawings in ink and one grey, the caption beneath, as LaTeX sets a figure. */
figure { margin: 1.9em 0 2em; }
figure svg { display: block; width: 100%; max-width: 27.5rem; height: auto; margin: 0 auto; overflow: visible; }
figcaption { font-size: 0.92em; line-height: 1.4; margin: 0.9em 1.4em 0; text-align: left; }
svg text { font-family: var(--serif); font-size: 15px; fill: var(--ink); }
svg .sm { font-size: 13.5px; }
svg .it { font-style: italic; }
svg .t-mid { text-anchor: middle; }
svg .t-end { text-anchor: end; }
svg .inv { fill: var(--ground); }
svg .ln { stroke: var(--ink); stroke-width: 1; fill: none; }
svg .thin { stroke-width: 0.6; }
svg .heavy { stroke-width: 1.7; }
svg .dash { stroke-dasharray: 5 4; }
svg .dots { stroke-dasharray: 1 4; stroke-linecap: round; }
svg .dot { fill: var(--ink); }
svg .open { fill: var(--ground); stroke: var(--ink); stroke-width: 1.3; }
svg .band { fill: var(--tone); }
svg .blk { fill: var(--tone); stroke: var(--ink); stroke-width: 1; }
svg .ink { fill: var(--ink); }
svg .wht { fill: var(--ground); stroke: var(--ink); stroke-width: 1; }

/* A phone: the text ragged right (justified lines open rivers at this width), the abstract full width. */
@media (max-width: 34rem) {
  body { font-size: 17.5px; }
  .paper { padding-top: 2rem; }
  p, th, td { text-align: left; }
  .titleblock h1 { font-size: 1.7em; }
  .subtitle p { font-size: 1.1em; }
  .abstract { margin: 0 0 2.2rem; }
  table { font-size: 0.78em; }
  td.stage { white-space: normal; }
  figcaption { margin: 0.8em 0 0; }
}

@media print {
  body { font-size: 11pt; }
  .paper { max-width: none; padding: 0; }
  a { color: var(--ink); }
  figure, .table-figure { break-inside: avoid; }
}
