/* paper.css — applied to document pages via <link> tag, no JS needed.
   Uses !important to definitively win over both pandoc_style.css and style.css. */

/* ── Background & base text ──────────────────── */
html, body {
  background: #eee9df !important;
  color: #2e2b38 !important;
}

/* ── Headings ────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: #1c1927 !important;
}

/* ── Links ───────────────────────────────────── */
a, a:link, a:visited {
  color: #4535a8 !important;
}
a:hover {
  color: #6857c8 !important;
}

/* ── Blockquotes / notes ─────────────────────── */
blockquote {
  border-left-color: #9d9890 !important;
  background: rgba(0, 0, 0, 0.04) !important;
  color: #2e2b38 !important;
}
blockquote p {
  color: #2e2b38 !important;
}

/* ── Code ────────────────────────────────────── */
code, pre, kbd {
  background: #e0dbd1 !important;
  color: #2e2b38 !important;
}

/* ── Tables ──────────────────────────────────── */
th {
  background: #d8d3c8 !important;  /* warm mid-cream, not bright white */
  color: #1c1927 !important;
}
td {
  color: #2e2b38 !important;
}

/* ── Muted / caption text ────────────────────── */
.muted, figcaption, caption, .lead {
  color: #6b6575 !important;
}

/* ── Nav stays dark-theme regardless of paper theme ── */
site-nav, nav {
  background: #0c0c1a !important;
  backdrop-filter: none !important;
}
site-nav .nav-links a,
nav .nav-links a,
site-nav .nav-links a:link,
nav .nav-links a:link,
site-nav .nav-links a:visited,
nav .nav-links a:visited {
  color: rgba(210, 208, 236, 0.88) !important;
}
site-nav .nav-links a:hover,
nav .nav-links a:hover,
site-nav .nav-links a.active,
nav .nav-links a.active {
  color: #f0a500 !important;
}
site-nav .nav-brand,
nav .nav-brand {
  color: #f0a500 !important;
}

/* ── Title block (pandoc-generated header) ── */
#title-block-header {
  text-align: center;
  margin: 5rem 0 2.5rem;
}
#title-block-header h1.title {
  font-size: 1.7rem !important;
  color: #1c1927 !important;
  line-height: 1.3;
  margin-bottom: 1.2rem !important;
}
p.author {
  font-size: 1rem !important;
  color: #2e2b38 !important;
  margin: 0.15rem 0 !important;
  line-height: 1.5 !important;
}
p.date {
  font-size: 0.9rem !important;
  color: #6b6575 !important;
  margin-top: 0.6rem !important;
}
.abstract {
  margin-top: 2rem !important;
  border-top: 1px solid #c8c3b8 !important;
  padding-top: 1rem !important;
  text-align: left !important;
}
.abstract-title {
  font-weight: 700 !important;
  font-size: 1rem !important;
  color: #1c1927 !important;
  margin-bottom: 0.5rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}
