/* GENERAL ELEMENTS */
* {
  font-family: "DM Sans", serif;
  font-optical-sizing: auto;
}
body {
  margin: 0;
}
footer > * {
  background-color: #28293e;
  margin: 0;
  padding: 10px 0;
}
footer > p > a, footer > * {
  color: #f9f2dc;
}
footer > p > a:hover {
  color: #eef6fc;
  text-decoration: none;
}

/* HEADER */
#header {
  background-color: #14281d;
  color: #eef6fc;
  min-width: 270px;
}
#header h1 {
  margin-top: 0;
  cursor: default;
}
#header img {
  margin: auto;
  display: block;
  max-width: 150px;
}

/* NAVBAR */
#navbar {
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
  place-items: center;
  max-width: 750px;
  margin: auto;
}
.nav-links {
  padding-bottom: 10px;
}
#navbar a {
  color: #eef6fc;
  text-decoration: none;
  padding: 10px;
  border-bottom: 2px solid transparent;
  box-sizing: border-box;
}
.text-align {
  text-align: center;
}
#navbar a:hover {
  background-color: #28293e;
  border-bottom: 2px solid #b8c5d6;
  color: #b8c5d6;
}

/* PAGE CONTENT */
.page-container {
  min-width: 250px;
  display: grid;
  margin: auto;
  place-items: center;
  padding: 10px;
}

/* HOME PAGE SPECIFIC */
#searchBar {
  border: 2px solid #b8c5d6;
  font-size: 1em;
  padding: 5px;
  color: #14281d;
}
#searchBar::placeholder {
  color: #355834;
}
#library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0px;
  justify-items: center;
  align-items: start;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* BOOKS */
.book {
  max-width: 500px;
  padding: 15px;
  margin: 10px;
  border: 2px solid #b8c5d6;
}
.has-button {
  padding-bottom: 25px;
}
.book > img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 54vh;
  object-fit: contain;
}
.title {
  margin: 0;
}
.subtitle {
  margin: 0;
  font-size: 1.1rem;
}
.blurb {
  max-height: 3.8em;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.blurb.expanded {
  max-height: 100vh;
}
.toggle-blurb,
.link {
  color: #355834;
}
.toggle-blurb:hover,
.link:hover {
  color: #14281d;
  text-decoration: none;
}
.buy-link {
  background: #355834;
  color: #eef6fc;
  border: none;
  padding: 10px 15px;
  font-size: 1em;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
}
.buy-link:hover {
  background-color: #28293e;
  border-bottom: 2px solid #b8c5d6;
  color: #b8c5d6;
}

/* NEWS PAGE SPECIFIC */
#mc_embed_shell {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  width: 100%;
  min-width: 270px;
}
#mc_embed_signup {
  max-width: 500px;
  width: 100%;
  border: 2px solid #b8c5d6;
  padding: 20px;
}
#mc_embed_signup h3 {
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #14281d;
  cursor: default;
}
.indicates-required {
  cursor: default;
  text-align: right;
  font-size: 0.9em;
  color: #555;
  margin-bottom: 5px;
}
.mc-field-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}
.mc-field-group label {
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 0.95em;
  color: #28293e;
}
.mc-field-group input {
  padding: 10px;
  font-size: 1em;
  border: 2px solid #b8c5d6;
}
#mc-embedded-subscribe {
  background: #355834;
  color: #eef6fc;
  border: none;
  padding: 10px 15px;
  font-size: 1em;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
}
#mc-embedded-subscribe:hover {
  background-color: #28293e;
  border-bottom: 2px solid #b8c5d6;
  color: #b8c5d6;
}
.helper_text {
  font-size: 0.85em;
  color: #b8c5d6;
  margin-top: 5px;
}
.clear.foot {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
.refferal_badge {
  display: block;
  margin: 0 auto;
  max-width: 220px;
  height: auto;
}

/* ABOUT PAGE */
#about-headshot {
  max-width: 40%;
  min-width: 200px;
  max-height: 74.2vh;
  padding: 10px;
}
#about-text {
  max-width: 40%;
  min-width: 200px;
  padding: 10px;
}
#about-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  box-sizing: border-box;
}
#article-links {
  margin: 0 20px;
  padding: 0;
}