@font-face { font-family: "Latin Modern"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/LM-regular.woff2") format("woff2"); }
@font-face { font-family: "Latin Modern"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/LM-italic.woff2") format("woff2"); }
@font-face { font-family: "Latin Modern"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/LM-bold.woff2") format("woff2"); }
@font-face { font-family: "Latin Modern"; font-style: italic; font-weight: 700; font-display: swap; src: url("fonts/LM-bold-italic.woff2") format("woff2"); }

:root {
  --paper: #fdfdfc;
  --ink: #111210;
  --soft: #4a4c46;
  --rule: #111210;
  --hair: #d9d9d3;
  --tex: "Latin Modern", "CMU Serif", "Computer Modern", Georgia, serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; font: 18px/1.5 var(--tex); text-rendering: optimizeLegibility; font-kerning: normal; hyphens: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc { max-width: 900px; margin: 0 auto; padding: 72px 32px 96px; }
.narrow { max-width: 720px; }

/* \maketitle */
.title { text-align: center; margin-bottom: 52px; }
.title h1 { font-size: 30px; font-weight: 400; margin: 0 0 18px; line-height: 1.2; }
.title .author { font-size: 18px; margin: 0 0 6px; }
.title .date { font-size: 18px; margin: 0; }
.title .meta { font-size: 15px; margin: 8px 0 0; }
.title .meta a { margin: 0 10px; }

/* booktabs table */
.caption { font-size: 16px; margin: 0 0 10px; }
table.bt { width: 100%; border-collapse: collapse; font-size: 16px; }
table.bt thead th { font-weight: 400; text-align: left; padding: 6px 10px 6px 0; border-top: 1.6px solid var(--rule); border-bottom: 0.9px solid var(--rule); }
table.bt tbody td { padding: 7px 10px 7px 0; vertical-align: top; }
table.bt tbody tr:last-child td { border-bottom: 1.6px solid var(--rule); }
table.bt tr.mid td { padding: 0; border-top: 0.6px solid var(--rule); }
table.bt td.date { white-space: nowrap; color: var(--soft); width: 92px; }
table.bt td.proj { width: 38%; }
table.bt td.proj small { display: block; font-size: 14.5px; color: var(--soft); line-height: 1.35; margin-top: 1px; }
table.bt td.res { width: 24%; }
table.bt td.lim { font-style: italic; color: var(--soft); }
tbody tr:hover td.proj a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* article */
.abstract { margin: 0 48px 36px; font-size: 16.5px; }
.abstract h2 { text-align: center; font-size: 16.5px; font-weight: 700; margin: 0 0 8px; }
.doc h2.sec { font-size: 22px; font-weight: 700; margin: 40px 0 12px; }
.doc h2.sec .n { margin-right: 18px; }
.doc p { margin: 0; text-align: justify; }
.doc p + p { text-indent: 1.5em; }
.doc .title p, .doc p.caption, .doc p.links, .doc p.back { text-align: center; text-indent: 0; }
.doc p.caption, .doc p.back { text-align: left; }
.eq { display: flex; align-items: center; margin: 18px 0; }
.eq .body { flex: 1; text-align: center; }
.eq .no { width: 40px; text-align: right; }
figure { margin: 28px 0; }
figure img { width: 100%; display: block; }
figcaption { font-size: 16px; margin: 10px 24px 0; text-align: justify; }
.doc p.links { text-align: center; font-size: 16px; margin: -28px 0 40px; }
.katex { font-size: 1.05em; }
.links a { margin: 0 10px; text-decoration: underline; text-decoration-thickness: 0.5px; text-underline-offset: 3px; }
ol.refs { padding-left: 32px; font-size: 16px; }
ol.refs li { margin-bottom: 6px; }
.back { font-size: 15px; margin-bottom: 40px; }

.foot { margin-top: 56px; text-align: center; font-size: 15px; color: var(--soft); }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .doc { padding: 44px 20px 64px; }
  .abstract { margin: 0 0 32px; }
  table.bt thead { display: none; }
  table.bt, table.bt tbody, table.bt tr, table.bt td { display: block; width: auto !important; }
  table.bt tbody tr { padding: 10px 0; border-bottom: 0.6px solid var(--hair); }
  table.bt tbody td { padding: 1px 0; }
  table.bt tr.mid { display: none; }
  table.bt tbody tr:last-child td { border-bottom: 0; }
  .doc p { text-align: left; }
}
