:root {
  --font-body: p22-stickley-pro-text, neue-kabel, Palatino, Georgia, serif;
  --font-heading: neue-kabel, 'Gill Sans', 'Helvetica Neue', sans-serif;
}

html {
  font-size: clamp(5px, .8rem + 1vw, 36px);
}

body {
  --measure: min(90%, 48ch);
  background-color: #fffff8;
  color: #111;
  counter-reset: sidenote-counter;
  font-family: var(--font-body);
  margin: 0;
  width: 100vw;
  box-sizing: content-box;
  margin-inline: auto;
  max-inline-size: var(--measure);
  margin-bottom: 3em;
  padding: 0 1rem;
}

h2 + *,
* {
  margin-block: 0;
}

* + * {
  margin-block-start: 1rem;
}

p {
  line-height: 1.6em;
}

h1, h2 {
  font-family: var(--font-heading);
  font-weight: 600;
}

h1 {
  font-size: 3em;
  padding-top: 1em;
  letter-spacing: -1.5px;
}

h2 {
  margin-bottom: .25em;
  text-align: center;
  margin-top: 2em;
}

h3 {
  font-style: italic;
  font-size: inherit;
  font-family: var(--font-heading);
  font-weight: 400;
  margin-bottom: 0;
}

h4 {
  font-family: var(--font-body);
  font-style: italic;
  font-size: inherit;
  font-weight: 600;
  margin-bottom: 0;
  margin-top: 3em;
  text-align: center;
  letter-spacing: -.04em;
}


summary {
  font-size: inherit;
  font-weight: 600;
  margin-bottom: 0;
  margin-top: 3em;
  margin-left: -2em;
  text-align: left;
  letter-spacing: -.04em;
}

details {
	font-family: monospace;
	color: #773;
	margin-left: 2em;
	margin-right: 2em;
	font-size: 60%;
	line-height: 1.125;

}

h2 + h4 {
  margin-top: 1em;
}

h4::before, h4::after {
  content: "  \2014  ";
}

blockquote {
  font-style: italic;
  margin-block-start: .25em;
  margin-block-end: 1em;
  margin-inline-start: 1em;
  margin-inline-end: 1em;
  padding-inline-start: 1em;
  border-left: 1px solid #555;
}

img {
  width: 100%;
}

.drop::first-letter {
  font-size: 400%;
  float: left;
  line-height: .63;
  margin-right: 0.02em;
}

.drop {
  margin-top: 3em;
}

.first-line::first-line,
.drop::first-line {
  font-variant: small-caps;
  font-size: 120%;
}

a {
  color: #555;
  text-decoration: none;
}

a:hover {
  color: #222;
}

/* Site Navigation */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  font-size: .85rem;
  font-family: var(--font-heading);
  border-bottom: 1px solid #ddd;
  margin-bottom: 2rem;
}

.site-nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.site-nav a {
  color: #888;
}

.site-nav a:hover {
  color: #222;
}

/* Table of Contents */
.toc {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.toc li {
  margin: .5rem 0;
}

.toc a {
  font-size: 1.1rem;
}

/* Chapter Navigation */
.chapter-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: baseline;
  margin-top: 3em;
  padding-top: 1em;
  border-top: 1px solid #ccc;
  font-size: .9em;
  font-family: var(--font-heading);
}

.chapter-nav-left {
  text-align: left;
}

.chapter-nav-right {
  text-align: right;
}

.chapter-nav a {
  color: #666;
}

.chapter-nav a:hover {
  color: #222;
}
