@import "highlight.css";

:root {
  --accent-a1: #95644a;
  --background-1: #fffaf4;
  --text-1: #423127;
  --text-2: hsl(from var(--text-1) h s calc(l + 10));
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-a1: #c49478;
    --background-1: #1a1816;
    --text-1: #e6e2da;
    --text-2: hsl(from var(--text-1) h s calc(l - 10));
  }
}

html {
  color: var(--text-1);
  background-color: var(--background-1);
}

body {
  font-family: Georgia, serif;
  line-height: 1.5;
  margin-bottom: 4em;
}

a {
  color: var(--accent-a1);
}

ul {
  margin-block-start: 0;
  padding-inline-start: 20px;
}

ol {
  padding-inline-start: 30px;
}

hr {
  border-color: var(--text-1);
}

blockquote {
  border-left: 0.3em solid var(--accent-a1);
  padding-left: 1em;
  margin: 0 auto 2em;
  font-style: italic;
  color: var(--text-1);
}

blockquote p {
  margin-top: 0.3em;
}

cite {
  font-weight: bold;
  font-style: normal;
}

pre {
  padding: 1.4em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  display: block;
  text-transform: uppercase;
  margin: 0;
  font-weight: normal;
}

h1::first-letter,
h2::first-letter,
h3::first-letter,
h4::first-letter,
h5::first-letter,
h6::first-letter {
  font-size: 1.3em;
  font-style: italic;
}

article h2 {
  margin-top: 1em;
}

article .subtitle {
  margin-bottom: 2em;
}

img {
  max-width: 100%;
  border-radius: 0.5em;
}

p:has(> img):has(> em) {
  text-align: center;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0.5em;
}

.subtitle {
  font-style: italic;
  display: block;
  font-size: 0.8em;
  opacity: 0.9;
  color: var(--text-2);
}

.list-entry {
  margin-bottom: 0.4em;
}

.star {
  color: var(--accent-a1);
}

.book-list {
  margin-bottom: 0.5em;
}

.highlight {
  border-radius: 0.5em;
}

.active {
  text-decoration: none;
  pointer-events: none;
}

#nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.2em;
}

#last-modified {
  margin-left: auto;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 0.3em;
  text-decoration: none;
}

#sha-indicator {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  background-color: var(--sha-color, var(--accent-a1));
  border-radius: 50%;
}
