:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #16181d;
  --muted: #6e737d;
  --rule: #e6e8ec;
  --accent: #1f4f8b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --fg: #e4e6ea;
    --muted: #949aa5;
    --rule: #262a31;
    --accent: #8fb6e8;
  }
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  margin: 0 auto;
  padding: 72px 24px 96px;
  max-width: 46rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

a:hover,
a:focus-visible {
  border-bottom-color: var(--accent);
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 4px;
}

p {
  margin: 0 0 1em;
}

/* Header */

header {
  margin-bottom: 56px;
}

.tagline {
  color: var(--muted);
  margin: 6px 0 18px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.links a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  border-bottom: none;
}

.links a:hover,
.links a:focus-visible {
  color: var(--fg);
}

.links svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sections */

section {
  margin-bottom: 56px;
}

ul.plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

.entry {
  margin-bottom: 28px;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry p {
  margin: 0;
}

.entry .venue {
  color: var(--muted);
  font-size: 0.92rem;
}

.entry .actions {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

.entry .actions a {
  border-bottom: none;
}

.entry .actions a:hover,
.entry .actions a:focus-visible {
  border-bottom: 1px solid var(--accent);
}

.entry ul {
  margin: 8px 0 0;
  padding-left: 1.1em;
  color: var(--muted);
  font-size: 0.94rem;
}

.entry li {
  margin-bottom: 3px;
}

.sep {
  color: var(--rule);
  margin: 0 4px;
}

/* Citation block on the paper page */

.cite {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  border-left: 2px solid var(--rule);
  padding: 14px 16px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 2px;
}

dl.facts {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 6px 16px;
  margin: 0 0 28px;
  font-size: 0.94rem;
}

dl.facts dt {
  color: var(--muted);
}

dl.facts dd {
  margin: 0;
}

footer {
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  body {
    padding: 44px 20px 64px;
    font-size: 16px;
  }

  dl.facts {
    grid-template-columns: 1fr;
    gap: 0 0;
  }

  dl.facts dt {
    margin-top: 10px;
  }
}
