/* Tufte-inspired refinements layered on top of styles.scss */

body {
  color: #111;
  background-color: #fffff8;
}

h1, h2, h3, h4, h5, h6, .title {
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}

.title {
  font-size: 2.2rem;
  line-height: 1.1;
}

h1 { font-size: 1.9rem; margin-top: 2rem; }
h2 { font-size: 1.45rem; margin-top: 1.6rem; }
h3 { font-size: 1.2rem; margin-top: 1.2rem; }

p, li {
  font-size: 1.05rem;
  line-height: 1.55;
}

a {
  color: #1f3a6e;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 58, 110, 0.25);
}
a:hover {
  border-bottom-color: rgba(31, 58, 110, 0.8);
}

hr {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 2rem 0;
}

.navbar {
  background-color: #fffff8 !important;
  border-bottom: 1px solid #ddd;
  font-style: italic;
}
.navbar .navbar-brand,
.navbar .nav-link {
  color: #333 !important;
}

blockquote {
  border-left: 2px solid #999;
  padding-left: 1rem;
  color: #333;
  font-style: italic;
}

figure img {
  max-width: 100%;
}

figcaption, .figure-caption {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.3;
}

/* Sidenote-like margin notes: use with <aside> or .aside */
aside, .aside {
  float: right;
  clear: right;
  margin-right: -40%;
  width: 35%;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #444;
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
}

@media (max-width: 1100px) {
  aside, .aside {
    float: none;
    margin: 0.5rem 0;
    width: 100%;
    padding: 0.5rem;
    background: #f5f3e8;
    border-left: 2px solid #bbb;
  }
}

code {
  font-size: 0.95em;
  background: #f0ede0;
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

pre code {
  background: transparent;
  padding: 0;
}
