/*
  HARC Jekyll theme (converted from HARC Amalie Lite Child WordPress theme)
  Based on Amalie Lite by Anariel Design

  Typography:
  - Cormorant Garamond: all headers
  - Palatino stack: body text
*/

body,
 .site-description,
 .widget-list,
 .entry-content,
 .entry-summary,
 .page-content,
 p, li, td, th, label, input, select, textarea {
  font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.page-title,
.widget-title,
.entry-title,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6,
.entry-summary h1, .entry-summary h2, .entry-summary h3,
.page-content h1, .page-content h2, .page-content h3, .page-content h4, .page-content h5, .page-content h6 {
  font-family: "Cormorant Garamond", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.site-title {
  font-size: 4rem;
  margin-top: 2rem;
}

.subtitle {
  border: 2px solid gray;
  color: gray;
  padding: 1.5rem;
  text-align: right;
  max-width: 50%;
  float: right;
  display: block;
  margin: 0 0 1rem 1rem;
}

.subtitle-mobile {
  display: none;
}

.subtitle-line {
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 100;
  display: block !important;
}

.training-label {
  background-color: black;
  border: none;
  border-radius: 25px;
  color: yellow;
  padding: 1rem;
  margin-bottom: 1rem;
  display: block !important;
  text-transform: uppercase;
  font-family: sans-serif;
  font-size: 75%;
  text-align: center !important;
}

.training-caveat {
  font-family: sans-serif;
  font-weight: bold;
}

.entry-header {
  margin-bottom: 3rem;
}

.entry-title {
  margin-bottom: 1rem;
  clear: none;
}

.widget-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.widget-list li {
  border-top: 1px solid #ddd9d6;
  padding: 0.7667em 0;
}

.widget-list li:first-child {
  border-top: none;
  padding: 0.7667em 0;
}

.excerpt-permalink {
  text-align: right;
  font-style: italic;
}

img.custom-logo {
  padding: 0 10%;
}

.site-header {
  padding: 0 10%;
}

.pagination {
  margin-top: 2rem;
  padding: 1rem 0;
}

.pagination .nav-links {
  position: relative;
  min-height: 3.2em;
  text-align: center;
}

.pagination .page-number {
  display: inline-block;
  line-height: 48px;
  vertical-align: middle;
}

.widget_search .wp-block-search__inside-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
}

.widget_search .wp-block-search__input {
  flex: 1;
  min-width: 0;
}

.widget_search .wp-block-search__button {
  padding: 0.5rem;
  flex-shrink: 0;
  min-width: 2.5rem;
}

.pagination .prev {
  margin-right: 1rem;
}

.pagination .next {
  margin-left: 1rem;
}

.entry-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd9d6;
}

.entry-footer .cat-links::after {
  content: " | ";
}

/* Limit gap between post content and category list to 2em max */
.post .entry-content {
  padding-bottom: 1em;
}
.post hr {
  margin: 0.5em 0;
}
.post .category-list-wrap {
  margin-top: 0;
}

.category-list-wrap {
  border: 2px solid gray;
  margin: 1.25rem 3rem;
  padding: 1.25rem 3rem;
}

article .category-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0 0.5rem;
}

article .category-links li + li::before {
  content: " · ";
  margin-right: 0.5rem;
}

.post-audio {
  margin-bottom: 2rem;
}

.post-audio audio {
  width: 100%;
  max-width: 600px;
}

/* Footnote refs in text: Kramdown outputs <sup id="fnref:N"><a class="footnote">N</a></sup> */
.entry-content sup[id^="fnref"],
.entry-summary sup[id^="fnref"],
.page-content sup[id^="fnref"] {
  font-size: 0.75em;
  vertical-align: super;
  line-height: 0;
}

/* Desktop: align page title top with logo top in sidebar */
@media only screen and (min-width: 955px) {
  #main {
    padding-top: 5.88vw; /* 20% of sidebar width (29.4118%) ≈ logo offset */
  }
  .page-header {
    padding: 0 7.6923% 7.6923% 7.6923%;
  }
  .hentry {
    padding-top: 0;
  }
}

@media only screen and (max-width: 955px) {
  a.custom-logo-link img {
    display: none;
  }
  .site-content {
    padding-top: 3rem;
  }
  .site-content:has(.search-page-header) {
    padding-top: 0;
  }
  .entry-title {
    clear: both;
  }
  .subtitle-mobile {
    border: 2px solid gray;
    margin: 0;
    color: gray;
    padding: 1rem;
    text-align: right;
    display: block;
  }
  .subtitle {
    display: none;
  }
  .site-title {
    margin-top: 0;
  }
}

.page-title {
  margin-bottom: 1.5rem;
}

.page-description {
  margin-top: 2.5rem;
  padding-top: 1rem;
  font-style: italic;
  line-height: 1.5;
  color: #666;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Search page */
#main:has(> .search-page-header) {
  padding-top: 0;
}

.search-page-header {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 10rem;
  padding: 3rem 7.6923% !important; /* equal vertical padding so title centers in beige box */
  margin-bottom: 3rem;
}

/* Category and archive pages: center page-header text both horizontally and vertically */
.page-header-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 10rem;
  padding: 3rem 7.6923%;
}
.page-header-centered .page-title {
  margin-bottom: 0;
}
.page-header-centered .page-description,
.page-header-centered .taxonomy-description {
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0 2.5rem;
  max-width: 600px;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ddd9d6;
  border-radius: 4px;
}

.search-input:focus {
  outline: 2px solid #6f6b68;
  outline-offset: 2px;
}

.search-button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.search-button:hover {
  background-color: #555;
}

.search-status {
  color: #666;
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* Search results: matches front page post layout */
.search-results-heading {
  margin-top: 0;
}