:root {
  --page-bg: #ffffff;
  --paper-bg: #ffffff;
  --ink: #000000;
  --muted: #333333;
  --rule: #999999;
  --accent: #000000;
  --shadow: 0 0 0 rgba(0, 0, 0, 0);
  --paper-width: 800px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Times New Roman", Times, serif;
  line-height: 1.4;
}

.page-shell {
  padding: 24px 16px 48px;
}

article {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: var(--shadow);
}

.paper-header,
section,
.paper-footer {
  margin: 0 0 28px;
}

.paper-header {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  margin: 0;
  max-width: none;
  font-size: 38px;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin: 18px 0 6px;
  font-size: 16px;
  font-style: normal;
}

p,
li {
  margin: 0 0 12px;
  font-size: 16px;
  text-align: justify;
  hyphens: manual;
}

.lead {
  font-size: 16px;
}

section + section {
  padding-top: 4px;
}

.equation-block {
  margin: 14px 0 16px;
  overflow-x: auto;
  text-align: center;
}

.math-inline {
  white-space: nowrap;
}

.table-scroll {
  margin: 14px 0 18px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: 15px;
}

caption {
  margin-bottom: 6px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
  text-align: left;
}

th,
td {
  padding: 6px 8px;
  border: 1px solid #666666;
  vertical-align: top;
  text-align: left;
}

thead th {
  background: #e9e9e9;
  font-weight: 700;
}

tbody th {
  background: #f2f2f2;
  font-weight: 700;
}

.references {
  margin: 0;
  padding-left: 20px;
}

.references li {
  margin-bottom: 8px;
  text-align: left;
  line-height: 1.3;
}

.paper-footer {
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}

a {
  color: #0000ee;
  text-decoration: underline;
}

a:hover {
  color: #0000ee;
}

a:visited {
  color: #551a8b;
}

code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95em;
}

.paper-header + section > p:first-of-type::first-letter {
  float: left;
  margin: 0.14em 0.08em 0 0;
  font-size: 2.95em;
  line-height: 0.68;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px 10px 28px;
  }

  h1 {
    font-size: 30px;
  }

  p,
  li {
    font-size: 16px;
    text-align: left;
  }

  h2 {
    font-size: 17px;
  }

  h3 {
    font-size: 16px;
  }

  .paper-header + section > p:first-of-type::first-letter {
    float: none;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
  }
}
