/* Independent Publisher (minimal port of the WordPress.com theme look) */

:root {
  --bg: #f9f9f9;
  --text: #383838;
  --heading: #306363;
  --link: #287575;
  --link-hover: #3ca2a2;
  --border: #ddd;
  --muted: #6b6b6b;
  --meta: #96968f;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.75 var(--serif);
}

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans);
  font-weight: bold;
  line-height: 1.2;
  color: var(--heading);
  margin: 1.2em 0 .5em;
}

img { max-width: 100%; height: auto; border: 0; }
figure { margin: 1.75em 0; }
figcaption { font-size: 15px; color: var(--muted); text-align: center; }

.screen-reader-text, .skip-link {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* Hero / masthead (header image with site branding over it) */

.hero { position: relative; overflow: hidden; }
.hero-image { display: block; width: 100%; max-height: 380px; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .3);
  pointer-events: none;
}
.hero .site-branding {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.75em; text-align: center;
}
.hero-plain { background: var(--heading); }
.hero-plain .site-branding { position: static; padding: 2.6em 1.75em; }

.site-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 38px;
  line-height: 1.2;
  color: #fff;
}
.site-title a, .site-title a:hover { color: #fff; text-decoration: none; opacity: 1; }
.site-title a:hover { opacity: .85; }
.site-description {
  margin: .44em 0 0;
  font: 17px/1.4 var(--sans);
  color: rgba(255, 255, 255, .84);
}

/* Navigation */

.main-navigation {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: .5em 1.75em;
  text-align: center;
  font: bold 17px/1.3 var(--sans);
}
.main-navigation ul { margin: 0; padding: 0; list-style: none; }
.main-navigation li { display: inline-block; margin: .21em .44em; }
.main-navigation a { display: block; padding: .48em .21em; color: var(--heading); }
.main-navigation a:hover { color: var(--link-hover); text-decoration: none; }

/* Layout */

.wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 3.5em 1.75em 0;
}
.wrap.has-sidebar {
  max-width: 1080px;
  display: flex;
  gap: 3.5em;
  align-items: flex-start;
}
.main { flex: 1 1 auto; min-width: 0; }
.wrap.has-sidebar .main { max-width: 740px; }

.page-header { margin: 0 0 3.5em; }
.page-header h1 { margin: 0; font-size: 32px; }
.taxonomy-description { margin-top: .88em; font-family: var(--serif); }

/* Entries */

.hentry { padding: 1.75em 0; }
.hentry + .hentry { border-top: 1px solid var(--border); }
.single .hentry { padding-top: 0; }

.entry-title { margin: 0 0 .44em; font-size: 26px; line-height: 1.3; }
.single .entry-title { font-size: 32px; }
.entry-title a { color: var(--heading); text-decoration: none; }
.entry-title a:hover { opacity: .8; text-decoration: none; }

.entry-meta {
  margin: .44em 0 1.75em;
  font: 14px/1.4 var(--sans);
  color: var(--meta);
}
.entry-meta > span { margin-right: 1.31em; }

.entry-content { font-family: var(--serif); }
.entry-content > :first-child { margin-top: 0; }
.entry-content::after { content: ""; display: table; clear: both; }

/* Floated images (newspaper style), as in the original theme */
img.alignleft { display: inline; float: left; margin: 5px 20px 10px 0; }
img.alignright { display: inline; float: right; margin: 5px 0 10px 20px; }
img.aligncenter { display: block; clear: both; margin: .44em auto .88em; }

.more-link {
  display: inline-block;
  padding: .44em .88em;
  background: #a5d8d8;
  color: #515151;
  font: 15px/1.4 var(--sans);
  border-radius: 3px;
}
.more-link:hover { background: #82c9c9; color: #515151; text-decoration: none; }

.entry-footer {
  margin-top: 1.75em;
  font: 14px/1.4 var(--sans);
  color: var(--meta);
}
.entry-footer a { margin-right: .44em; }

blockquote {
  margin: 1.75em .88em 1.75em -1.75em;
  padding: 0 0 0 1.75em;
  border-left: 3px solid var(--link-hover);
  font-style: italic;
}

/* Pagination */

.posts-navigation, .post-navigation {
  margin: 1.75em 0 3.5em;
  padding: 1.31em 0;
  border-top: 1px solid var(--border);
  font: 15px/1.4 var(--sans);
}
.post-navigation { display: flex; }
.posts-navigation .nav-links, .post-navigation .nav-links {
  display: flex; justify-content: space-between; width: 100%; gap: 1.75em;
}
.posts-navigation a, .post-navigation a { color: var(--muted); }
.posts-navigation .nav-next, .post-navigation .nav-next { text-align: right; margin-left: auto; }

/* Sidebar widgets */

.widget-area {
  flex: 0 0 22%;
  min-width: 200px;
  margin-top: 1.75em;
  font-size: 16px;
}
.widget { margin-bottom: 2.6em; }
.widget-title {
  margin: 0 0 .88em;
  font: bold 17px/1.2 var(--sans);
  color: var(--heading);
}
.widget ul { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; }
.widget li { padding: .44em 0; border-bottom: 1px solid rgba(221, 221, 221, .7); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--link); }

/* Footer */

.site-footer { clear: both; padding: 2.6em 1.75em 1.75em; }
.site-info {
  font: 14px/1.6 var(--sans);
  text-align: center;
  color: #8d8d8a;
}
.site-info p { margin: .21em 0; }
.site-info a { color: #6b6b6b; }

@media (max-width: 800px) {
  .wrap.has-sidebar { display: block; }
  .widget-area { margin-top: 2.6em; }
  .site-title { font-size: 30px; }
  .single .entry-title { font-size: 26px; }
  .hero-image { min-height: 180px; }
  img.alignleft, img.alignright {
    display: block; float: none; width: auto; max-width: 100%;
    margin: 1.31em auto;
  }
}
