/* =========================
   TIME'S FLOW STEMMED
   Consolidated CSS
   ========================= */


/* =========================
   Base typography
   ========================= */

html { font-size: 16.5px; }

body {
  font-family: "Lora", serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #333333;
  background-color: #FAFAFA;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Merriweather", serif;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111111;
}

.entry-title,
h1.entry-title {
  font-size: 1.15rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.entry-content {
  font-size: 0.95rem;
  line-height: 1.65;
}

.entry-content h2 { font-size: 1.15rem; }
.entry-content h3 { font-size: 1.05rem; }
.entry-content h4,
.entry-content h5,
.entry-content h6 { font-size: 1rem; }

.entry-content p { margin-bottom: 1.4rem; }

a { color: #4A6FA5; text-decoration: none; }
a:hover { text-decoration: underline; }


/* =========================
   Masthead
   ========================= */

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

.site-title {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.site-description {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777777;
  margin: 0;
}

.main-navigation a {
  text-transform: none;
  font-size: 0.78rem;
  letter-spacing: 0.015em;
}


/* =========================
   Sidebar
   ========================= */

#secondary,
.widget-area,
.sidebar,
#secondary .widget,
.widget-area .widget {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #666666;
}

#secondary .widget-title,
.widget-area .widget-title,
.widget-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 400;
  color: #777777;
  margin-bottom: 0.6rem;
}

#secondary a,
.widget-area a,
.sidebar a {
  color: #6f8fb8;
}

#secondary a:hover,
.widget-area a:hover,
.sidebar a:hover {
  text-decoration: underline;
}

/* Follow button */
#secondary input[type="submit"],
#secondary button,
.widget-area input[type="submit"],
.widget-area button {
  background: rgba(0,0,0,0.55);
  border-color: rgba(0,0,0,0.28);
  color: #ffffff;
}

#secondary input[type="submit"]:hover,
#secondary button:hover,
.widget-area input[type="submit"]:hover,
.widget-area button:hover {
  background: rgba(0,0,0,0.65);
}

/* Search widget */
.widget_search input[type="search"],
.widget_search input[type="text"],
.widget_search input[type="submit"],
.widget_search button {
  font-size: 0.8rem;
}

.widget_search input[type="search"],
.widget_search input[type="text"] {
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 6px;
  padding: 10px 12px;
}

.widget_search input[type="submit"],
.widget_search button {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
  padding: 9px 12px;
}

/* Archives dropdown */
.widget_archive select {
  font-size: 0.8rem;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 6px;
  padding: 10px 12px;
}


/* =========================
   Entry meta and footer
   ========================= */

/* Remove all meta icons */
.entry-meta *:before,
.entry-meta *:after,
.entry-footer *:before,
.entry-footer *:after {
  content: none !important;
  display: none !important;
}

.entry-meta *,
.entry-footer * {
  background-image: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Hide everything in entry-meta by default */
.entry-meta > * {
  display: none;
}

/* Show only categories, date, comments, edit */
.entry-meta .cat-links,
.entry-meta .posted-on,
.entry-meta .comments-link,
.entry-meta .edit-link {
  display: inline;
  margin-right: 0.75rem;
}


/* =========================
   Single post cleanup
   ========================= */

/* Hide entry footer contents except edit link */
.single .entry-footer > * {
  display: none !important;
}

.single .entry-footer .edit-link {
  display: inline !important;
}

/* Hide standalone "Published" block */
.single .site-posted-on {
  display: none !important;
}

/* Keep prev/next navigation */
.single .post-navigation,
.single .navigation.post-navigation,
.single .post-navigation .nav-links {
  display: block !important;
}

.single .post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
}

.single .post-navigation .nav-previous,
.single .post-navigation .nav-next {
  max-width: 48%;
}


/* =========================
   Relevanssi Related Posts
   ========================= */

#relevanssi_related_grid {
  display: block !important;
}

.relevanssi_related_post {
  display: list-item !important;
  list-style-type: square;
  margin-left: 1.5em;
  margin-bottom: 0.8em;
  width: 100% !important;
  float: none !important;
}

.relevanssi_related_post h4 {
  display: inline;
  font-size: inherit;
  font-weight: normal;
  margin: 0;
}

.relevanssi_related_post h4::after {
  content: ": ";
}

.relevanssi_related_post p {
  display: inline;
  margin: 0;
}


/* =========================
   Search results
   ========================= */

.search-results article {
  display: list-item !important;
  list-style-type: square;
  margin-left: 1.5em;
  margin-bottom: 0.8em;
  border: none !important;
  padding: 0 !important;
}

.search-results article .entry-title {
  display: inline;
  font-size: inherit;
  font-weight: normal;
  margin: 0;
  text-transform: none;
}

.search-results article .entry-title::after {
  content: ": ";
}

.search-results article .entry-summary,
.search-results article .entry-content {
  display: inline;
}

.search-results article .entry-summary p,
.search-results article .entry-content p {
  display: inline;
  margin: 0;
}

/* Small caps for highlighted search terms */
.search-results article strong {
  font-weight: normal;
  font-variant: small-caps;
}

/* Hide extras on search results */
.search-results article .entry-meta,
.search-results article .entry-footer,
.search-results article .sharedaddy,
.search-results article .post-thumbnail,
.search-results article .cat-links,
.search-results article .tags-links,
.search-results article .comments-link,
.search-results article .edit-link,
.search-results article .posted-on {
  display: none !important;
}


/* =========================
   Layout: Desktop
   ========================= */

@media (min-width: 980px) {
  #primary,
  #secondary,
  .content-area,
  .widget-area,
  #content,
  .site-content {
    box-sizing: border-box;
  }

  #content:after,
  .site-content:after,
  #main:after {
    content: "";
    display: table;
    clear: both;
  }

  #primary,
  .content-area {
    float: left;
    width: calc(100% - 340px);
  }

  #secondary,
  .widget-area {
    float: right;
    width: 320px;
    margin-top: 0 !important;
    clear: none !important;
    padding: 22px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    background: rgba(0,0,0,0.02);
  }

  article,
  .hentry {
    clear: none !important;
  }
}


/* =========================
   Layout: Mobile
   ========================= */

@media (max-width: 700px) {
  html { font-size: 16px; }

  #primary,
  .content-area,
  #secondary,
  .widget-area {
    float: none;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
}
.search-results article::marker,
.relevanssi_related_post::marker {
  color: #4A6FA5;
}
.search-results .page-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}