/* Foundational site-wide typography and layout: org's default
 * export styling (links, headings, tables, lists, blockquotes, tags,
 * timestamps, ...) plus this site's nav/preamble/postamble chrome and the
 * article-description blurb. Everything a page looks like before any
 * feature-specific styling (callouts, code blocks, footnotes, the
 * homepage) is layered on top. Load after reset.css/fonts.css. */

a {
  color: inherit;
  background-color: inherit;
  font: inherit;
  text-decoration: inherit;
}
a:hover {
  text-decoration: underline;
}
body {
  width: 95%;
  margin: 2% auto;
  font-size: 14px;
  line-height: 1.4em;
  font-family: "Anthropic Serif Text", "Georgia", "LXGW Wenkai", serif;
  color: #333;
}
@media screen and (min-width: 600px) {
  body {
    font-size: 18px;
  }
}
@media screen and (min-width: 910px) {
  body {
    width: 900px;
  }
}
::-moz-selection {
  background: #d6edff;
}
::selection {
  background: #d6edff;
}
p {
  margin: 1em auto;
}
dl,
ol,
ul {
  margin: 0 auto;
}
.title {
  margin: 0.8em auto;
  color: #000;
}
.subtitle,
.title {
  text-align: center;
}
.subtitle {
  font-size: 1.1em;
  line-height: 1.4;
  font-weight: 700;
  margin: 1em auto;
}
.abstract {
  margin: auto;
  width: 80%;
  font-style: italic;
}
.abstract p:last-of-type:before {
  content: "    ";
  white-space: pre;
}
.status {
  font-size: 90%;
  margin: 2em auto;
}
[class^="section-number-"] {
  margin-right: 0.5em;
}
[id^="orgheadline"] {
  clear: both;
}
a {
  color: #527d9a;
  text-decoration: none;
}
a:hover {
  color: #035;
  border-bottom: 1px dotted;
}
figure,
.figure {
  padding: 0;
  margin: 1em auto;
  text-align: center;
}
img {
  max-width: 100%;
  vertical-align: middle;
}
.MathJax_Display {
  margin: 0 !important;
  width: 90% !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #a5573e;
  line-height: 1em;
  font-family: Helvetica, sans-serif;
}
h1,
h2,
h3 {
  line-height: 1.4em;
}
h4,
h5,
h6 {
  font-size: 1em;
}
@media screen and (min-width: 600px) {
  h1 {
    font-size: 2em;
  }
  h2 {
    font-size: 1.5em;
  }
  h3 {
    font-size: 1.3em;
  }
  h1,
  h2,
  h3 {
    line-height: 1.4em;
  }
  h4,
  h5,
  h6 {
    font-size: 1.1em;
  }
}
dt {
  font-weight: 700;
}
table {
  margin: 1em auto;
  border-top: 2px solid;
  border-collapse: collapse;
}
table,
thead {
  border-bottom: 2px solid;
}
table td + td,
table th + th {
  border-left: 1px solid grey;
}
table tr {
  border-top: 1px solid #d3d3d3;
}
td,
th {
  padding: 0.3em 0.6em;
  vertical-align: middle;
}
caption.t-above {
  caption-side: top;
}
caption.t-bottom {
  caption-side: bottom;
}
caption {
  margin-bottom: 0.3em;
}
figcaption,
.figure p:not(:first-child) {
  margin: 0.3em 0 0;
  font-size: 0.85em;
  color: #59636e;
}
.figure p:first-child {
  margin: 0.3em 0;
}
th.org-center,
th.org-left,
th.org-right {
  text-align: center;
}
td.org-right {
  text-align: right;
}
td.org-left {
  text-align: left;
}
td.org-center {
  text-align: center;
}
blockquote {
  margin: 1em 2em;
  padding-left: 1em;
  border-left: 3px solid #ccc;
}
kbd {
  background-color: #f7f7f7;
  font-size: 80%;
  margin: 0 0.1em;
  padding: 0.1em 0.6em;
}
.todo {
  background-color: red;
}
.done,
.todo {
  color: #fff;
  padding: 0.1em 0.3em;
  border-radius: 3px;
  background-clip: padding-box;
  font-size: 80%;
  font-family: "Anthropic Mono Web", "LXGW Wenkai Mono", monospace;
  line-height: 1;
}
.done {
  background-color: green;
}
.priority {
  color: orange;
  font-family: "Anthropic Mono Web", "LXGW Wenkai Mono", monospace;
}
#table-of-contents li {
  clear: both;
}
.tag {
  font-family: "Anthropic Mono Web", "LXGW Wenkai Mono", monospace;
  font-size: 0.7em;
  font-weight: 400;
}
.tag span {
  padding: 0.3em;
  float: right;
  margin-right: 0.5em;
  border: 1px solid #bbb;
  border-radius: 3px;
  background-clip: padding-box;
  color: #333;
  background-color: #eee;
  line-height: 1;
}
.timestamp {
  color: #bebebe;
  font-size: 90%;
}
.timestamp-kwd {
  color: #5f9ea0;
}
.org-right {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}
.org-left {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}
.org-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.underline {
  text-decoration: underline;
}
#postamble p,
#preamble p {
  font-size: 90%;
  margin: 0.2em;
}
p.verse {
  margin-left: 3%;
}
.inlinetask {
  background: #ffc;
  border: 2px solid grey;
  margin: 10px;
  padding: 10px;
}
#org-div-home-and-up {
  font-size: 70%;
  text-align: right;
  white-space: nowrap;
}
.linenr {
  font-size: 90%;
}
.code-highlighted {
  background-color: #ff0;
}
#bibliography {
  font-size: 90%;
}
#bibliography table {
  width: 100%;
}
.creator {
  display: block;
}
@media screen and (min-width: 600px) {
  .creator {
    display: inline;
    float: right;
  }
}
/* === Site-wide look (paper background, serif headings, slim nav) ===
 * Applies to every page — articles, the academic homepage, and this blog's
 * own homepage — using the tokens defined in :root above.
 */

body {
  background: var(--site-paper);
  color: var(--site-ink);
}

#preamble {
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid var(--site-rule);
  background: var(--site-paper);
}

#preamble .site-nav {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  font-family: var(--site-serif);
  font-size: 0.88rem;
  color: var(--site-dim);
}

#preamble .site-nav a {
  color: var(--site-ink);
}

#preamble .site-nav a:hover {
  color: var(--site-accent);
  border-bottom: 1px dotted var(--site-accent);
}

#preamble .site-subnav {
  display: flex;
  gap: 1.5rem;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.5rem 0.75rem;
}

#preamble .site-tab {
  appearance: none;
  margin: 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 0.15rem 0;
  font-family: var(--site-serif);
  font-size: 0.95rem;
  color: var(--site-dim);
  cursor: pointer;
}

#preamble .site-tab:hover {
  color: var(--site-ink);
}

#preamble .site-tab.is-active {
  color: var(--site-accent);
  border-bottom-color: var(--site-accent);
}

#postamble {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

#postamble .date {
  color: var(--site-dim);
  font-family: var(--site-mono);
  font-size: 0.78rem;
}

#content {
  max-width: 52rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
  font-family: var(--site-serif);
}
/* Article description, mirrored from .site-desc on the homepage list —
 * injected under the title by index.js from the page's meta description.
 */
#content > .article-desc {
  max-width: 40rem;
  margin: -0.3em auto 2rem;
  padding: 0 1.5rem;
  color: var(--site-dim);
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
}

#content > .article-desc a {
  color: var(--site-accent);
}

#content > .article-desc a:hover {
  text-decoration: underline;
}
