/* theme-academic.css — unapologetically the dusty scholarly journal. Aged paper,
   oxblood ink, Palatino, small-caps title page, double rules, justified &
   hyphenated prose, illuminated drop-cap. Scoped to <html data-theme="academic">. */

[data-theme="academic"] {
  --bg: #f2ecdd;
  --fg: #211d16;
  --muted: #6f6555;
  --border: #c9b996;
  --accent: #6d1414;          /* oxblood */
  --link: #6d1414;
  --card-bg: #fbf7ec;
  --title-fg: #1a1710;
  --byline-fg: #6f6555;
  --section-fg: #2a2216;
  --note-bg: #f1e7cd;
  --note-border: #9c7327;
  --note-flag-bg: #9c7327;
  --note-flag-fg: #241a06;
  --flash: #f2e0a2;
  --font-body: "Palatino Linotype", "Book Antiqua", Palatino, Baskerville, Georgia, "Times New Roman", serif;
  --font-head: "Palatino Linotype", "Book Antiqua", Palatino, Baskerville, Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* warm, aged paper with a soft vignette */
[data-theme="academic"] body {
  line-height: 1.7; letter-spacing: .1px;
  background:
    radial-gradient(1100px 620px at 50% -8%, #fffaf0, transparent 70%),
    radial-gradient(900px 900px at 110% 10%, #e7dcc2aa, transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* a narrower column, like a printed page */
[data-theme="academic"] .wrap { max-width: 760px; }

/* title page */
[data-theme="academic"] .site-head {
  text-align: center; border-bottom: 4px double var(--accent); padding-bottom: 1.3rem;
}
[data-theme="academic"] .site-head h1 {
  font-weight: 700; font-variant: small-caps; letter-spacing: .07em;
  font-size: 2.3rem; line-height: 1.2;
}
[data-theme="academic"] .site-head h1 .title-tag { font-variant: small-caps; font-style: italic; }
[data-theme="academic"] .site-head .tagline { font-style: italic; font-size: 1.02rem; }
[data-theme="academic"] .controls { justify-content: center; }
[data-theme="academic"] #edition-meta { text-align: center; }

/* section heads: centred small-caps between double rules */
[data-theme="academic"] .cpl-section h2 {
  justify-content: center; text-align: center;
  font-variant: small-caps; letter-spacing: .16em; font-weight: 700;
  border-bottom: 4px double var(--border); padding-bottom: .35rem; margin-top: 2.2rem;
}

[data-theme="academic"] .entry-title { font-variant: small-caps; letter-spacing: .03em; font-weight: 700; }
[data-theme="academic"] .entry-byline { font-style: italic; }
/* contain the drop-cap float within the description so it never bleeds out */
[data-theme="academic"] .entry-desc { display: flow-root; }

/* justified, hyphenated prose like a set journal column */
[data-theme="academic"] .entry-desc,
[data-theme="academic"] .note-body p {
  text-align: justify; hyphens: auto; -webkit-hyphens: auto;
}

/* illuminated initial on Bruce's descriptions — gloriously overwrought */
[data-theme="academic"] .entry-desc::first-letter {
  font-size: 2.6em; line-height: .82; float: left;
  padding: .06em .1em 0 0; color: var(--accent); font-weight: 700;
}

/* classic ink links */
[data-theme="academic"] a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
[data-theme="academic"] .entry-title-link { border-bottom: none; }
