/* Uettes & Projjibag: fake-arXiv style matching verroes.com/information & verroes.com/riemann.
   Black on white, Latin Modern (VLM Roman / VLM Mono), zero images, zero script. */

@font-face {
  font-family: "VLM Roman";
  src: url("/static/fonts/vlm-roman-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "VLM Roman";
  src: url("/static/fonts/vlm-roman-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "VLM Roman";
  src: url("/static/fonts/vlm-roman-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "VLM Roman";
  src: url("/static/fonts/vlm-roman-bolditalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "VLM Mono";
  src: url("/static/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;
  --link: #00009c;
  --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: 1.1875rem;
  line-height: 1.5;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
}

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

.masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  border-bottom: 0.75px solid var(--rule);
  padding-bottom: 0.65rem;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
}

.masthead-brand {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--ink);
}

.masthead-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.masthead-nav li {
  margin: 0;
}

h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  hyphens: manual;
  -webkit-hyphens: manual;
  text-wrap: balance;
}

.essay-section-heading {
  font-size: 1.3em;
  margin: 2.2em 0 0.7em;
}

.essay-meta {
  font-family: var(--mono);
  font-size: 0.8em;
  color: var(--faint);
  margin-top: 0.45rem;
}

.essay-source {
  margin-top: 1.5rem;
  font-size: 0.86em;
  color: var(--faint);
  text-align: left;
}

p {
  margin: 0 0 0.9em;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
}

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.9em;
  overflow-wrap: anywhere;
  hyphens: none;
}

.titleblock {
  text-align: center;
  margin: 0 0 2.4rem;
}

.titleblock p {
  text-align: center;
  hyphens: manual;
  -webkit-hyphens: manual;
}

.titleblock h1 {
  font-size: 1.9em;
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 0.45em;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.subtitle p {
  font-size: 1.05em;
  line-height: 1.38;
  margin: 0 auto 0.9em;
  max-width: 32em;
  color: var(--faint);
}

.author p {
  font-size: 1.05em;
  margin: 0 0 0.25em;
}

.date p {
  margin: 0;
  color: var(--faint);
  font-size: 0.95em;
}

.abstract {
  font-size: 0.92em;
  margin: 0 2.2em 2.5rem;
}

.abstract-title p {
  text-align: center;
  margin: 0 0 0.4em;
}

.entry {
  padding-top: 2rem;
  margin-top: 2.6rem;
  border-top: 1.5px solid var(--rule);
}

.entry:first-of-type {
  margin-top: 0;
  padding-top: 0.5rem;
  border-top: 0;
}

.entry-header {
  text-align: center;
  margin: 0 0 1.65rem;
}

.entry-title {
  font-size: 1.45em;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.35em;
  text-align: center;
  text-wrap: balance;
}

.entry-title a {
  color: var(--ink);
}

.entry-title a:hover,
.entry-title a:focus-visible {
  color: var(--link);
}

.entry-date {
  margin: 0;
  text-align: center;
  color: var(--faint);
  font-size: 0.92em;
}

.entry-tags {
  margin-top: 1.15rem;
  font-family: var(--mono);
  font-size: 0.78em;
  color: var(--faint);
  text-align: left;
  hyphens: none;
}

.archive-table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92em;
  line-height: 1.4;
  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.5em 0.6em;
  vertical-align: top;
  text-align: left;
}

th:first-child,
td:first-child {
  padding-left: 0.15em;
  white-space: nowrap;
}

th:last-child,
td:last-child {
  padding-right: 0.15em;
}

tbody tr:first-child td {
  padding-top: 0.65em;
}

tbody tr:last-child td {
  padding-bottom: 0.65em;
}

.pager {
  margin-top: 2.8rem;
  padding-top: 1rem;
  border-top: 0.75px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-size: 0.92em;
}

.paper-footer {
  margin-top: 3.5rem;
  padding-top: 0.9rem;
  border-top: 0.75px solid var(--rule);
  font-size: 0.84em;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.paper-footer p {
  margin: 0;
  text-align: left;
}

.empty-state {
  text-align: center;
  color: var(--faint);
  padding: 2.5rem 0;
}

::selection {
  background: #cfd8ff;
}

@media (max-width: 34rem) {
  body {
    font-size: 1.0625rem;
  }
  .paper {
    padding-top: 1.75rem;
  }
  p,
  th,
  td {
    text-align: left;
  }
  .titleblock h1 {
    font-size: 1.55em;
  }
  .abstract {
    margin: 0 0 2rem;
  }
  th:first-child,
  td:first-child {
    white-space: normal;
  }
}

@media print {
  body {
    font-size: 11pt;
  }
  .paper {
    max-width: none;
    padding: 0;
  }
  .masthead,
  .pager {
    display: none;
  }
  a {
    color: var(--ink);
  }
}
