html {
  overflow-y: scroll;
}

:root {
  --text: #4a4a46;
  --muted: #6b6b66;
  --line: #e3e3df;
  --bg: #f5f5f2;
  --link: #4a4a46;
/*  --accent: #8C5F57; */
  --accent: #9A5A52;
  --accent-soft: #8F6B6B;
  --max: 720px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Microsoft YaHei", sans-serif;
}

body.site-page {
  font-size: 17px;
  line-height: 1.65;
}

body.essay-page {
  font-size: 18px;
  line-height: 1.8;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 80px;
}

nav {
  margin-bottom: 64px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

nav a {
  margin-right: 22px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: none;
}

nav a:hover {
  color: var(--accent);
}

header {
  margin-bottom: 56px;
}

.about-page header {
  margin-bottom: 56px;
}

.site-title {
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: normal;
  letter-spacing: 0.01em;
  color: #292929;
}

.bibliography-page .site-title {
  font-size: 34px;
}

.intro {
  font-size: 18px;
  max-width: 580px;
  margin: 0;
  color: #7a7a75;
}

.intro2 {
  font-size: 16px;
  max-width: 580px;
  margin: 0;
  color: #8a8a85;
  margin-top: 0px;
  margin-bottom: 40px;
}

.bibliography-page .intro {
  max-width: 560px;
}

.fox-illustration {
  margin: 18px 0 -32px;
}

.fox-image {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  margin-top: 48px;
}

.index-page section {
  margin-top: 36px;
}

.essays-page section {
  margin-top: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.essays-page section:last-of-type {
  border-bottom: none;
}

h1,
h3 {
  color: #292929;
}

h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: normal;
  color: var(--muted);
  margin: 0 0 28px;
}

.index-page h3 {
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 20px;
  font-weight: normal;
}

p {
  margin: 0 0 26px;
}

.site-page p {
  margin: 0 0 18px;
}

.about-text p {
  margin: 0 0 26px;
}

a {
  color: #444;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.25);
}

a:visited {
  color: #6b6b5e;
}

a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

a[href^="#"] {
  border-bottom: none;
}

.essays-title {
  font-size: 42px;
  line-height: 1.15;
  font-weight: normal;
  margin: 0 0 60px;
  color: #292929;
}

.essay-page-title {
  font-size: 32px;
  line-height: 1.15;
  font-weight: normal;
  margin: 0 0 60px;
  color: #292929;
}

.essays-page .essay-title,
.index-page .essay-title {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 6px;
  font-weight: normal;
  color: #292929;
}

.index-page .essay-title {
  font-size: 21px;
  margin-bottom: 4px;
}

.essay-list {
  display: grid;
  gap: 22px;
}

.index-page .essay-list {
  gap: 18px;
}

.essay {
  padding-bottom: 22px;
}

.essay:last-child {
  padding-bottom: 0;
}

.essay-note {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.index-page .essay-note {
  font-size: 15px;
}

.essay-link {
  padding-bottom: 36px;
}

.essay-preview {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.read-more {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 15px;
}

.quiet-link {
  margin-top: 30px;
  margin-bottom: 0px;
  font-size: 15px;
  color: var(--muted);
}

.section-divider {
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}

.category-title {
  font-size: 24px;
  font-weight: normal;
  color: var(--accent);
  margin: 60px 0 42px;
  text-transform: none;
  letter-spacing: normal;
}

.bibliography-page .category-title {
  color: var(--text);
}

.category {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.category:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.biblo-list {
  display: grid;
  gap: 30px;
}

.biblio {
  padding-bottom: 30px;
}

.biblio:last-child {
  border-bottom: none;
}

.biblo-category-title {
  font-size: 24px;
  font-weight: normal;
  color: var(--accent);
  margin: 60px 0 28px;
  text-transform: none;
  letter-spacing: normal;
}

.biblio-title {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 6px;
  font-weight: normal;
  letter-spacing: 0.01em;
  color: #292929;
}

.biblio-subtitle {
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 0px;
  color: #6E6E6E;
  font-weight: 400;
}

.biblio-note {
  font-size: 13px;
  color: #8A8A8A;
  margin: -4px 0 12px;
  letter-spacing: 0.02em;
}

.biblio-listing-url,
.biblio-listing-url:visited {
    color: #4a4a46;
    text-decoration: underline;
    border-bottom: none !important;
}

.biblio-listing-url:hover {
    color: #8F6B6B;
    text-decoration: underline;
    border-bottom: none !important;
}

.unpublished {
  color: #999999;
  font-size: 15px;
  margin-left: 10px;
  margin-right: 10px;
}

.note {
  color: var(--muted);
  font-size: 16px;
  margin-top: 8px;
}

.about-text {
  max-width: 620px;
}

.signature {
  color: var(--muted);
  margin-top: 442px;
}

.about-text p.signature {
  color: var(--muted);
  margin: 42px 0 18px;
}

.essay-nav {
  margin-top: 0px;
  padding-top: 24px;
  text-align: left;
  font-size: 16px;
  margin-bottom: 0px;
}

.return-nav {
    margin-top: 60px;
    text-align: left;
    margin-bottom: -10px;
    font-size: 16px;
    color: var(--accent);
}

.return-nav a {
    color: inherit;
    text-decoration: none;
}


.read-section {
  margin-top: 60px;
  margin-bottom: 10px;
  font-size: 16px;
}

#read-thanks {
  color: var(--accent-soft);
}

/* Entire fable page */
body.fable-page {
  font-size: 18px;
  line-height: 1.8;
}

/* Fable title */
.fable-page-title {
  font-size: 32px;
  line-height: 1.15;
  font-weight: normal;
  margin: 0 0 42px;
  color: #292929;
}

/* fable category title */
.fable-category-title {
  font-size: 24px;
  font-weight: normal;
  color: var(--accent);
  margin: 60px 0 28px;
  text-transform: none;
  letter-spacing: normal;
}

/* Fable text */
.fable-page p {
  margin: 0 0 22px;
}

.fable-image {
  max-width: 100%;
  height: auto;
  display: block;
}

/* additional new image size setting for collab v2 */
.image-small {
  width: 200px;
}

.image-medium {
  width: 240px;
}

.image-large {
  width: 280px;
}

.image-wide {
  width: 320px;
}
/* end new image size setting */

.fable-illustration {
  margin-bottom: 26px;
}

.fable-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 19px;
  line-height: 2.0;
}

.fable-list li {
  margin: 0 0 6px;
  font-size: 17px;
}

.fable-list a {
/*  border-bottom: none;  */
    border-bottom: 1px solid rgba(0,0,0,0.25);
}


/* Intro paragraph under title (optional) */
.fable-intro {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 32px;
}

.fable-nav {
  margin-top: 0px;
  padding-top: 24px;
  text-align: left;
  font-size: 16px;
  margin-bottom: 0px;
}

.feedback {
  margin-top: 70px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
}

.essay-page .footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: #999999;
}

/* biblio category title */
.biblio-category-title {
  font-size: 24px;
  font-weight: normal;
  color: var(--accent);
  margin: 60px 0 28px;
  text-transform: none;
  letter-spacing: normal;
}

.biblio-page-title {
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: normal;
  color: #292929;
}

.biblio-list {
  display: grid;
  gap: 32px;
}



.onlinebook {
  padding-bottom: 36px;
}

.onlinebook:last-child {
  padding-bottom: 0;
}

.biblio-title {
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: normal;
  color: #292929;
  text-transform: none;
  letter-spacing: 0;
}

.biblio-subtitle {
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
  color: var(--muted);
}

.biblio-title a:hover {
  color: var(--accent);
}

/* ----- Books index page ------ */
.books-entry {
    padding-bottom: 36px;
}

.books:last-child {
    padding-bottom: 0;
}

h2.book-title {
  font-size: 24px;
  line-height: 1.3;
  font-weight: normal;
  margin: 0 0 8px;
  color: #292929;
  text-transform: none;
  letter-spacing: normal;
}

.book-title a,
.book-title a:visited {
  color: #292929;
}

.book-title a:hover {
  color: var(--accent);
}

body.books-page {
    font-size: 18px;
    line-height: 1.8;
}

.book-list {
  display: grid;
  gap: 54px;
}

/* ---------- Individual Book pages ---------- */

body.book-page {
  font-size: 18px;
  line-height: 1.8;
}

.book-page-title {
  font-size: 32px;
  line-height: 1.15;
  font-weight: normal;
  margin: 0 0 10px;
  color: #292929;
}

.book-subtitle {
  font-size: 18px;
  color: #444444;
  margin-bottom: 56px;
}

.book-chapter-title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: normal;
  margin: 0 0 46px;
}
.book-chapter-title {
    margin-top: 4px;
}

.book-section-title {
  font-size: 22px;
  font-weight: normal;
/*  color: var(--accent); */
  color: #292929;
  margin: 72px 0 20px;
}

.book-page p {
  margin: 0 0 22px;
}

.book-toc-section {
  margin-top: 40px;
}

.book-toc-title {
  font-size: 26px;
  line-height: 1.3;
  font-weight: normal;
  color: #292929;
  margin: 0 0 28px;
  text-transform: none;
  letter-spacing: normal;
}

.book-toc {
  margin: 0 0 34px;
    list-style: none;
    padding-left: 0;
    margin-left: 0;
  font-size: 19px;
  line-height: 1.9;
}

.book-toc li {
  margin: 0 0 12px;
}

.book-start-reading {
  margin-top: 34px;
  font-size: 18px;
}

.book-start-reading a {
  color: var(--accent);
  border-bottom: 1px solid rgba(154, 90, 82, 0.35);
}

.book-opening {
  margin-top: 78px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.book-opening-title {
  font-size: 24px;
  line-height: 1.3;
  font-weight: normal;
  color: var(--text);
  margin: 0 0 28px;
  text-transform: none;
  letter-spacing: normal;
}

.book-nav {
  margin-top: 70px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  gap: 36px;
}

.book-nav span {
  flex: 1;
}

.book-nav span:nth-child(2) {
  text-align: center;
}

.book-nav span:nth-child(3) {
  text-align: right;
}

.book-nav a {
  border-bottom: none;
}

.browse-books {
  margin: 0 0 42px;
  text-align: center;
}

.browse-books a {
  border-bottom: none;
}

.book-chapter-number {
    font-size: 22px;
    color: #292929;
    margin: 0 0 0px;
    margin-bottom: -24px;
    font-weight: normal;
}

.book-page .book-chapter-number {
  font-size: 26px;
  line-height: 2.0;
  margin: 0;
  color: #292929;
  font-weight: normal;
}

.book-page .book-chapter-number + h1.book-chapter-title {
  margin-top: 2px;
  line-height: 1.15;
}

.spacer-large {
    height: 36px;
}
/* <div class="spacer-large"></div> */

.browse-link,
.browse-link:visited {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.browse-link:hover {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.discover {
    font-size: 15px;
    line-height: 1.6;
    color: #777777;
    margin-bottom: 32px;
}


.book-chapter-title.extra-title-space {
  margin-top: 36px;
}

.book-author {
    margin-top: 66px;
    color: #888888;
    font-size: 16px;
}

.book-page-subtitle {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin: 0.5rem 0 1.25rem 0;
}

.footer p {
  margin: 0 0 12px;
}

.footer {
  font-size: 15px;
}

.footer a,
.footer a:visited {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
}

.footer a:hover {
  color: var(--accent);
}

.category-icon {
    width: 24px;
    height: auto;
    vertical-align: center;
    margin-left: 1px;
}
