/* ==========================================================================
   Flourish Theme - Based on Decode theme with decode-flourish customizations
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body, button, input, select, textarea {
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #4C4C4C;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-weight: 300;
  font-size: 1.5em;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.site-content {
  font-size: 1.1em;
}

@media (max-width: 767px) {
  body, button, input, select, textarea {
    font-size: 1.1em;
  }
}

textarea {
  font-size: 0.8em;
}

a {
  color: #00B0CC;
  text-decoration: none;
  font-weight: 700;
}

a:hover,
a:focus {
  color: #008094;
  text-decoration: underline;
}

a:visited {
  color: #008094;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  clear: both;
  margin: 0;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.entry-content h1 { font-size: 2em; }
.entry-content h2 { font-size: 1.65em; }
.entry-content h3 { font-size: 1.65em; }
.entry-content h4 { font-size: 1.25em; }
.entry-content h5 { font-size: 1.125em; }

h1 { font-size: 2em; }
h2 { font-size: 1.65em; }
h3 { font-size: 1.376em; }
h4 { font-size: 1.25em; }
h5 { font-size: 1.125em; }

blockquote {
  border-left: 3px solid #00B0CC;
  margin: 1.5em 0;
  padding: 0.5em 1.5em;
  color: #666;
}

pre, code {
  font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 0.85em;
}

pre {
  background: #f5f5f5;
  padding: 1em;
  overflow-x: auto;
  border-radius: 3px;
}

hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 2em 0;
}

/* ---------- Layout ---------- */
.site {
  max-width: 50em;
  margin: 0 auto;
  padding: 0 1.5em;
}

.site-content {
  display: flex;
  gap: 2em;
}

#primary {
  flex: 1;
  min-width: 0;
}

/* ---------- Header ---------- */
.site-header {
  padding: 3.5% 0 2.5%;
  border-bottom: 1px solid #00B0CC;
  margin-bottom: 0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75em;
  font-size: 0.9em;
}

.site-title {
  font-size: 1.5em;
  line-height: 1;
  margin: 0 0 0.5%;
}

.site-title a {
  color: #4C4C4C;
  text-decoration: none;
  transition: color 0.5s;
  -webkit-font-smoothing: subpixel-antialiased;
}

.site-title a:hover {
  color: #00B0CC;
  text-decoration: none;
}

.site-title a:visited {
  color: #4C4C4C;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5em;
}

.site-description {
  font-size: 0.9em;
  color: #8C8C8C;
  margin-top: 0.25em;
}

/* ---------- Navigation ---------- */
.header-menu {
  margin: 0;
}

.header-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5em;
}

.header-menu a,
.header-menu a:visited {
  color: #4C4C4C;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.25s;
}

.header-menu a:hover {
  color: #00B0CC;
  text-decoration: none;
}

/* ---------- Header Search ---------- */
.header-search {
  display: flex;
}

.header-search .search-field {
  width: 8em;
  padding: 0.2em 0.5em;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 0.65em;
  font-weight: 400;
  transition: width 0.2s ease;
  margin-top: 0.1em;
}

.header-search .search-field:focus {
  width: 14em;
  border-color: #00B0CC;
  outline: none;
}

.search-form {
  display: flex;
  gap: 0.5em;
}

.search-field {
  flex: 1;
  padding: 0.4em 0.6em;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 0.9em;
}

.search-submit {
  padding: 0.4em 1em;
  background: #00B0CC;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.search-submit:hover {
  background: #008094;
}

.entry-header {
  text-align: center;
  margin: 5% auto 3.5%;
}


/* ---------- Posts ---------- */
article.post {
  margin-bottom: 2.5%;
  padding-bottom: 2.5%;
  border-bottom: 1px solid silver;
}

article.post:last-child {
  border-bottom: none;
}

.entry-title {
  font-size: 1.5em;
  line-height: 1.25;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

h1.entry-title {
  font-size: 2em;
}

.entry-title a {
  color: #4C4C4C;
  text-decoration: none;
  transition: color 0.25s;
}

.entry-title a:hover {
  color: #00B0CC;
}

.entry-title a:visited {
  color: #4C4C4C;
}

.entry-header img {
  display: none;
}

.entry-content {
  margin-top: 1em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.entry-content img {
  margin: 1em 0;
  height: auto;
}

.entry-content img.nomargin {
  margin: 0;
}

.entry-content img.full {
  margin: 0;
  width: 100%;
  min-width: 100%;
}

.entry-content img.alignleft,
.entry-content img[align=left] {
  float: left;
  margin-right: 1em;
}

.entry-content img.alignright,
.entry-content img[align=right] {
  float: right;
  margin-left: 1em;
}

.entry-content p.scroll {
  margin: 0;
  overflow: visible;
  height: 100%;
}

.entry-content img.scroll {
  margin: 0;
  max-width: none;
  height: 100%;
  cursor: all-scroll;
  margin-right: 5em;
}

.entry-content p.scroll a:hover > img {
  opacity: 1;
}

.entry-meta {
  text-align: center;
  margin-top: 1.5%;
}

.entry-meta .date {
  clear: both;
  color: gray;
  font-size: 0.8em;
  margin: 1.5% 0;
  transition: color 0.25s;
}

.entry-meta .date a:hover {
  color: #00B0CC;
}

.entry-meta p {
  margin: 0.25em 0;
}

.entry-footer {
  margin-top: 1.5em;
}

.read-more {
  font-weight: bold;
}

.blogby {
  color: #888;
  float: right;
  font-size: 0.7em;
  margin-top: 0.3em;
}

.blogby a {
  color: #888;
}

/* ---------- Pagination ---------- */
.posts-navigation {
  margin: 2em 0;
  padding: 1em 0;
  border-top: 1px solid #eee;
}

.nav-links {
  display: flex;
  justify-content: space-between;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid #eee;
  padding: 1.5em 0;
  margin-top: 2em;
  color: #8C8C8C;
  font-size: 0.85em;
}

/* ---------- Comments ---------- */
.comments-area {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid #eee;
}

.comments-title {
  font-size: 1.4em;
  margin-bottom: 1em;
}

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

.comment {
  margin-bottom: 1.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #f0f0f0;
}

.comment-author.vcard img {
  height: auto;
  vertical-align: -7px;
  margin-right: 5px;
  border-radius: 50%;
}

.comment-author .fn {
  font-weight: bold;
}

.comment-metadata {
  font-size: 0.8em;
  color: #8C8C8C;
  margin-top: 0.25em;
}

.comment-content {
  margin-top: 0.75em;
}

.children {
  list-style: none;
  padding-left: 2em;
  margin: 0;
}

@media (max-width: 767px) {
  .comment-list {
    padding-left: 0;
    margin-left: 20px;
  }
}

/* ---------- Pages ---------- */
.page-title {
  font-size: 2em;
  text-align: center;
  margin-top: 0.875em;
  margin-bottom: 0.375em;
}

/* ---------- Archive / Explore Page ---------- */
.explore-page {
  max-width: 100%;
}

.explore-page .page-title {
  font-size: 2em;
}

.explore-page .widget.archives ul,
.explore-page .widget.categories > ul {
  height: auto;
}

.explore-page .post-lists {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  width: 100%;
}

.explore-page .widget {
  flex: 1;
  min-width: 200px;
}

.explore-page .widget h2 {
  font-size: 1.3em;
  margin-bottom: 0.5em;
}

.explore-page .widget ul {
  list-style: none;
  padding: 0;
}

.explore-page .widget li {
  padding: 0.25em 0;
  font-size: 0.9em;
}

.explore-page .widget li a {
  font-weight: 400;
}

.archive-year {
  font-size: 1.3em;
  margin-top: 1.5em;
  margin-bottom: 0.3em;
}

.archive-list {
  list-style: none;
  padding: 0;
}

.archive-list li {
  padding: 0.2em 0;
  font-size: 0.9em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.archive-list li a {
  font-weight: 400;
}

.archive-date {
  color: #8C8C8C;
  font-size: 0.85em;
  margin-left: 1em;
  white-space: nowrap;
}

#search {
  margin-top: 2em;
  margin-bottom: 2em;
}

/* ---------- Front Page ---------- */
#front-page * {
  box-sizing: border-box;
}

#front-page h3 {
  padding-top: 1em;
  margin-bottom: 0.5em;
  clear: both;
}

#front-page .i {
  width: 48%;
  object-fit: contain;
  margin: auto auto;
  position: relative;
  margin-bottom: 1em;
  overflow: hidden;
  border-radius: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#front-page .i:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

@media screen and (max-width: 50em) {
  #front-page .i {
    width: 98%;
  }
}

#front-page .i img {
  margin: 0;
  width: 100%;
}

#front-page .i span {
  position: absolute;
  padding: 0.4em 0.5em;
  width: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.75);
  text-shadow: none;
  font-size: 1rem;
}

#front-page .i span .ext {
  font-style: normal;
  font-size: 1.1em;
  font-weight: bold;
  opacity: 0.85;
}

#front-page .l {
  float: left;
  margin-right: 1em;
}

/* ---------- Accessibility ---------- */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ---------- Clearing ---------- */
.entry-content::after {
  content: "";
  display: table;
  clear: both;
}

/* ---------- WordPress Caption Compat ---------- */
.wp-caption {
  max-width: 100%;
  margin: 1em 0;
}

.wp-caption img {
  display: block;
  margin: 0;
}

.wp-caption-text {
  font-size: 0.85em;
  color: #8C8C8C;
  margin-top: 0.5em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin-right: 1.5em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
}

/* ---------- Marginless helper ---------- */
.marginless img {
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 50em) {
  .header-row {
    flex-direction: column;
    gap: 0.5em;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .header-search .search-field {
    width: 8em;
  }

  .header-search .search-field:focus {
    width: 10em;
  }
}
