/* Blog pages (/ram/, /pjax/): header, prose, math, code and figures. */

.home {
  display: inline-block;
  padding-top: 32px;
  color: var(--muted);
  font-size: 0.94rem;
}

.home:hover {
  color: var(--text);
}

/* ---------- Header ---------- */

header {
  padding: 56px 0 8px;
}

h1 {
  margin: 0 0 6px;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1.3;
}

.authors {
  margin: 0 0 6px;
  color: var(--text-2);
}

header sup {
  margin-left: 1px;
  color: var(--muted);
  font-size: 0.7em;
}

/* Affiliation logos, each preceded by its affiliation number. */
.affiliations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin: 20px 0 16px;
}

.affiliation {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.affiliation sup {
  align-self: flex-start;
  margin-right: -8px;
  font-size: 0.75rem;
}

.affiliation img {
  display: block;
  width: auto;
}

/* MCML only publishes a black logo; show it in white. */
.affiliation img.invert {
  filter: invert(1);
}

.venue {
  margin: 10px 0 2px;
  color: var(--text-2);
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

header .buttons {
  gap: 8px;
  margin: 24px 0 8px;
}

/* ---------- Prose ---------- */

article h2 {
  margin: 56px 0 14px;
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

article p {
  margin: 0 0 1em;
  color: var(--text-2);
}

article blockquote {
  margin: 28px 0;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.45;
}

article blockquote p {
  margin: 0;
  color: inherit;
}

figure {
  margin: 28px 0 32px;
}

figure img,
figure svg {
  display: block;
  width: 100%;
  height: auto;
}

figure img {
  border-radius: 10px;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- Math and code ---------- */

/* TeX source in .m (inline) and .md (display) is rendered by /assets/js/math.js. */
.md {
  margin: 20px 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.katex {
  font-size: 1.08em;
}

pre {
  margin: 20px 0 28px;
  padding: 16px 20px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  font: 400 0.84rem/1.65 ui-monospace, "SF Mono", Menlo, monospace;
}

pre .comment {
  color: #9c9ca3;
}
