/* Make Mom Over - Hugo Theme
   Exact match to live WordPress/Astra site
*/

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&family=Vollkorn:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Base - 125% = 20px base */
html {
  font-size: 125%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.85714285714286;
  color: #4B4F58;
  background-color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
}

/* Headings - Vollkorn */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Vollkorn', serif;
  font-weight: 400;
  color: #3a3a3a;
  margin-top: 0;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2rem;
  line-height: 1.4em;
}

h2 {
  font-size: 1.6rem;
  line-height: 1.3em;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.3em;
}

h4 {
  font-size: 1.2rem;
  line-height: 1.2em;
}

h5 {
  font-size: 1rem;
  line-height: 1.2em;
}

h6 {
  font-size: 0.8rem;
  line-height: 1.25em;
}

p {
  margin: 0 0 1.6em;
}

/* Links - PINK */
.entry-content a {
  color: #d4917f;
  text-decoration: underline;
  font-weight: 700;
}

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

a:hover, a:focus {
  color: #c27a67;
}

/* Header - PINK background */
.site-header {
  background: #eabfb4;
}

.main-header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.site-branding {
  text-align: center;
}

.site-logo-img {
  display: inline-block;
}

.site-logo-img a {
  display: block;
}

.site-logo-img img {
  max-width: 250px;
  width: 250px;
  height: auto;
  display: block;
}

/* Main Content */
#content {
  padding: 0;
}

.ast-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Article - white box on gray background */
.ast-separate-container {
  background: #f5f5f5;
}

.ast-article-single {
  background: #fff;
  margin: 20px auto;
}

.ast-article-post {
  padding: 1.5em 2.14em;
}

@media (min-width: 769px) {
  .ast-article-post {
    padding: 3em 5em;
  }
}

/* Entry Content */
.entry-header {
  margin-bottom: 1em;
}

.entry-title {
  font-size: 1.3rem;
  font-family: 'Vollkorn', serif;
  font-weight: 400;
  color: #3a3a3a;
}

header.entry-header .entry-title {
  font-family: 'Vollkorn', serif;
  font-weight: 600;
  font-size: 1.9rem;
}

.entry-content {
  line-height: 1.85714285714286;
}

.entry-content h2 {
  margin-top: 1.5em;
}

.entry-content h3 {
  margin-top: 1.3em;
}

.entry-content ul, .entry-content ol {
  margin: 0 0 1.6em 2em;
  padding: 0;
}

.entry-content li {
  margin-bottom: 0.5em;
}

/* Card Grid - Further Reading sections */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -7.5px;
}

.card-grid ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -7.5px;
  padding: 0;
  list-style: none;
  width: 100%;
}

.card-grid li {
  width: calc(50% - 15px);
  margin: 0 7.5px 30px;
}

.card-grid li a {
  display: block;
  padding: 25px;
  background: #f6f6f6;
  box-shadow: 0 4px 1px rgba(197, 197, 197, 0.2);
  font-family: 'Vollkorn', serif;
  font-size: 1.3rem;
  color: #3a3a3a;
  text-decoration: none;
  height: 100%;
}

.card-grid li a:hover {
  color: #3a3a3a;
}

@media (max-width: 768px) {
  .card-grid li {
    width: 100%;
    margin: 0 0 15px;
  }
  .card-grid ul {
    margin: 0;
  }
}

/* Footer - dark gray background with border */
.site-footer {
  border-top: solid 1px #7a7a7a;
  background-color: #3a3a3a;
  padding: 2em;
  text-align: center;
  font-size: 0.85rem;
  color: #fff;
}

.site-footer p {
  margin: 0;
}

/* Search */
#search {
  margin-top: 2em;
}

.pagefind-ui {
  --pagefind-ui-primary: #eabfb4;
  --pagefind-ui-text: #4B4F58;
  --pagefind-ui-background: #fff;
  --pagefind-ui-border: #f5f5f5;
  --pagefind-ui-font: 'Raleway', sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
  .ast-article-post {
    padding: 1.5em 1em;
  }

  h1, .entry-title {
    font-size: 1.2rem;
  }
}

/* Focus states */
a:focus, button:focus, input:focus {
  outline: 2px dotted #eabfb4;
  outline-offset: 2px;
}

/* Print */
@media print {
  .site-header, .site-footer {
    display: none;
  }
  .ast-article-post {
    padding: 0;
  }
}
