:root {
  --bg-color: #0b0b0b;
  --text-color: #e8e0d4;
  --muted-color: #9a9186;
  --rule-color: #2a2a2a;
  --max-measure: 40rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.7;
  padding: 2.5rem 1.5rem 5rem 1.5rem;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-measure);
  margin: 0 auto;
}

/* Header */
header.site-header {
  margin-bottom: 3.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule-color);
}

.nav-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 540px) {
  .nav-wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

.site-title {
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-title a {
  color: var(--text-color);
  text-decoration: none;
}

.site-title a:hover {
  color: #ffffff;
}

nav.site-nav {
  font-size: 0.95rem;
  color: var(--muted-color);
}

nav.site-nav a {
  color: var(--muted-color);
  text-decoration: none;
  transition: color 150ms ease;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  color: var(--text-color);
}

nav.site-nav .sep {
  margin: 0 0.4rem;
  color: var(--rule-color);
  user-select: none;
}

/* Focus */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 3px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 400;
  color: var(--text-color);
  line-height: 1.3;
}

h1 {
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.5rem;
}

p.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.sub-tagline {
  color: var(--muted-color);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.epithet {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted-color);
  margin-bottom: 1.75rem;
}

a {
  color: var(--text-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule-color);
  transition: text-decoration-color 150ms ease, color 150ms ease;
}

a:hover {
  text-decoration-color: var(--text-color);
}

/* Images */
img {
  width: 100%;
  height: auto;
  display: block;
}

.image-frame {
  margin: 2rem 0 2.5rem 0;
}

.index-strip-frame {
  margin: 1.5rem 0 2.5rem 0;
}

/* Buttons */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem 0;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-color);
  border: 1px solid var(--text-color);
  background: transparent;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
  cursor: pointer;
  line-height: 1.4;
}

.btn:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
  text-decoration: none;
}

/* Book Sections / Blocks */
.book-block {
  margin: 3.5rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-color);
}

.book-cover {
  margin-bottom: 1.75rem;
}

.book-title {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.book-blurb {
  font-style: italic;
  color: var(--muted-color);
  margin-bottom: 1.25rem;
}

.book-link {
  font-size: 0.95rem;
  color: var(--muted-color);
  margin-top: 0.5rem;
  display: inline-block;
}

/* Excerpt Sections */
.excerpt-block {
  margin: 2.25rem 0;
}

.excerpt-heading {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-color);
  margin-bottom: 0.75rem;
}

blockquote {
  border-left: 1px solid var(--rule-color);
  padding-left: 1.25rem;
  margin: 1rem 0 1.5rem 0;
  color: var(--text-color);
  font-style: normal;
}

blockquote p {
  margin-bottom: 0.75rem;
}

blockquote cite {
  display: block;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted-color);
}

/* Realm Listing */
.realms-list {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.realms-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule-color);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

@media (min-width: 500px) {
  .realms-list li {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}

.realms-list a {
  text-decoration: none;
  font-size: 1.15rem;
}

.realms-list a:hover {
  text-decoration: underline;
}

.realms-list .realm-desc {
  font-size: 0.95rem;
  color: var(--muted-color);
  font-style: italic;
}

/* Realm Navigation */
.realm-nav {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-color);
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--muted-color);
}

.realm-nav a {
  color: var(--muted-color);
  text-decoration: none;
}

.realm-nav a:hover {
  color: var(--text-color);
  text-decoration: underline;
}

.realm-secondary-links {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--muted-color);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.realm-secondary-links a {
  color: var(--muted-color);
}

.realm-secondary-links a:hover {
  color: var(--text-color);
}

/* Footer */
footer.site-footer {
  margin-top: 4.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-color);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-color);
}

footer.site-footer p {
  margin-bottom: 0.75rem;
}

footer.site-footer .rights-copy {
  font-style: italic;
}

footer.site-footer .contact-line a {
  color: var(--muted-color);
}

footer.site-footer .contact-line a:hover {
  color: var(--text-color);
}
