/* The Unfeed: styled like the page of a book. One column, one typeface, nothing competing for attention. */

@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --paper: #f8f4ec;
  --ink: #2a2723;
  --faint: #7d766b;
  --rule: #ddd5c7;
  --serif: "EB Garamond", "Iowan Old Style", Palatino, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1a18;
    --ink: #e6e0d4;
    --faint: #9a9387;
    --rule: #3a3732;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.65;
  font-feature-settings: "liga", "onum", "kern";
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

.page { max-width: 34em; margin: 0 auto; padding: 0 16px; }

/* Running head: like the top of a book page */
.running-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 28px 0; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}
.running-head a { text-decoration: none; }
.running-head a:hover { color: var(--ink); }

/* Title page */
.title-page { text-align: center; padding: 14vh 0 10vh; }
.title-page h1 { font-weight: 400; font-size: clamp(44px, 9vw, 72px); line-height: 1.05; margin: 0; letter-spacing: 0.01em; }
.title-page .subtitle { font-style: italic; font-size: 24px; color: var(--faint); margin: 18px 0 0; }
.ornament { text-align: center; color: var(--faint); letter-spacing: 0.6em; margin: 48px 0; font-size: 16px; }

/* Headings */
.chapter-label { text-align: center; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
h1.chapter { text-align: center; font-weight: 400; font-size: clamp(36px, 6vw, 48px); line-height: 1.15; margin: 0 0 12px; }
.chapter-dek { text-align: center; font-style: italic; color: var(--faint); margin: 0 0 56px; }
h2 { font-weight: 500; font-size: 26px; margin: 48px 0 8px; }

/* Contents */
.contents-title { text-align: center; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin: 0 0 32px; }
.part { margin: 0 0 40px; }
.part-name { font-variant: small-caps; letter-spacing: 0.06em; font-size: 24px; margin: 0; }
.part-name a { text-decoration: none; }
.part-note { font-style: italic; color: var(--faint); font-size: 18px; margin: 0 0 10px; }
.entries { list-style: none; margin: 0; padding: 0; }
.entry { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; }
.entry .t { flex: 0 1 auto; }
.entry .leader { flex: 1 1 auto; border-bottom: 1px dotted var(--rule); transform: translateY(-5px); min-width: 24px; }
.entry .d { flex: 0 0 auto; color: var(--faint); font-size: 17px; }
.entry.soon .t { color: var(--faint); font-style: italic; }
.entry a { text-decoration: none; }
.entry a:hover { text-decoration: underline; text-decoration-color: var(--rule); }
.entry-summary { color: var(--faint); font-size: 18px; margin: -2px 0 10px; }
.empty { font-style: italic; color: var(--faint); text-align: center; }

/* Prose */
.prose p { margin: 0; text-indent: 1.5em; hyphens: auto; -webkit-hyphens: auto; }
.prose p:first-of-type, .prose h2 + p, .prose .no-indent { text-indent: 0; }
.prose .first::first-letter { float: left; font-size: 3.4em; line-height: 0.9; padding: 0.06em 0.08em 0 0; }
.prose blockquote { margin: 24px 1.5em; font-style: italic; color: var(--faint); }
.prose .try-this { margin: 40px 0; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-indent: 0; }
.prose .try-this em { font-variant: small-caps; font-style: normal; letter-spacing: 0.08em; }
.sources { font-size: 17px; color: var(--faint); margin-top: 48px; }
.sources ol { padding-left: 1.2em; }

/* Quiet invitation instead of a button */
.invite { text-align: center; font-style: italic; color: var(--faint); margin: 64px 0 0; }
.invite a { color: var(--ink); }

.colophon { text-align: center; font-size: 15px; color: var(--faint); padding: 72px 0 48px; letter-spacing: 0.04em; }
.colophon a { text-decoration: none; }

@media (max-width: 560px) {
  body { font-size: 19px; }
  .title-page { padding: 10vh 0 6vh; }
  .entry-summary { font-size: 17px; }
}
