/* Dermanities - Genesis / Magazine Pro style blog layout (blue) */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; }
body {
  margin: 0;
  background: #fff;
  color: #222;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.875;
}
a { color: #1e73be; text-decoration: none; }
a:hover, a:focus { color: #222; text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 {
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 20px;
  color: #222;
}
p { margin: 0 0 26px; }
strong, b { font-weight: 700; }
ul, ol { margin: 0 0 26px; padding-left: 40px; }
li { margin-bottom: 4px; }
blockquote { margin: 0 0 26px; padding: 0 0 0 24px; border-left: 4px solid #1e73be; color: #555; }
table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 1.5rem; line-height: 1.6; }
th, td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: #f5f5f5; font-weight: 400; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 30px; }
.site-container { overflow: hidden; }

/* Primary nav (top bar) */
.nav-primary { background: #222; }
.nav-primary .menu, .nav-secondary .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-primary .menu > li, .nav-secondary .menu > li { position: relative; margin: 0; }
.nav-primary a {
  display: block;
  padding: 16px 20px;
  color: #fff;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}
.nav-primary .menu > li:first-child > a { padding-left: 0; }
.nav-primary a:hover, .nav-primary a:focus { color: #9ccbf2; text-decoration: none; }
.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: -9999px;
  top: 100%;
  z-index: 99;
  width: 200px;
  background: #fff;
  border: 1px solid #eee;
}
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { left: 0; }
.sub-menu li { margin: 0; }
.sub-menu a, .nav-primary .sub-menu a {
  padding: 14px 18px;
  color: #222;
  border-top: 1px solid #eee;
  font-size: 1.3rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}
.sub-menu li:first-child a { border-top: 0; }
.sub-menu a:hover { color: #1e73be; text-decoration: none; }

/* Header */
.site-header { background: #fff; }
.site-header .wrap { padding-top: 40px; padding-bottom: 40px; }
.title-area { text-align: left; }
.site-title {
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.site-title a, .site-title a:hover { color: #222; text-decoration: none; }
.site-description { margin: 0; font-size: 1.6rem; color: #222; line-height: 1.5; }

/* Secondary nav (categories) */
.nav-secondary { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.nav-secondary .wrap { padding: 0 30px; }
.nav-secondary .menu > li > a {
  display: block;
  padding: 18px 18px;
  color: #222;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}
.nav-secondary .menu > li:first-child > a { padding-left: 0; }
.nav-secondary .menu > li > a:hover { color: #1e73be; text-decoration: none; }
.nav-secondary .sub-menu a { display: block; }

/* Layout */
.site-inner { max-width: 1140px; margin: 0 auto; padding: 40px 30px 0; }
.content-sidebar-wrap { display: flex; gap: 40px; align-items: flex-start; }
.content { flex: 1 1 auto; min-width: 0; max-width: 740px; }
.sidebar { flex: 0 0 340px; }

/* Entries */
.entry { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid #eee; }
.entry::after { content: ""; display: table; clear: both; }
.entry-title { font-size: 3rem; line-height: 1.2; margin-bottom: 10px; }
h2.entry-title { font-size: 2.4rem; }
.entry-title a { color: #222; }
.entry-title a:hover { color: #1e73be; text-decoration: none; }
.entry-meta { font-size: 1.4rem; color: #777; margin-bottom: 24px; }
.entry-meta a { color: #1e73be; }
.entry-content h2 { font-size: 2.6rem; margin-top: 10px; }
.entry-content h3 { font-size: 2.2rem; }
.entry-content h4 { font-size: 2rem; }
.entry-content img { display: block; margin: 0 auto 26px; }
.entry-image-link img.alignleft {
  float: left;
  width: 300px;
  height: 225px;
  object-fit: cover;
  margin: 6px 24px 16px 0;
}
.entry-footer .entry-meta { margin: 0; padding-top: 20px; border-top: 1px solid #eee; }
.archive-description { margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.archive-title { font-size: 2.4rem; text-transform: uppercase; letter-spacing: 1px; margin: 0; }

/* Pagination */
.archive-pagination ul { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.archive-pagination li { margin: 0; }
.archive-pagination a {
  display: block;
  padding: 8px 12px;
  background: #222;
  color: #fff;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.4;
}
.archive-pagination a:hover, .archive-pagination .active a { background: #1e73be; color: #fff; text-decoration: none; }
.pagination-omission { padding: 8px 6px; }
.adjacent-entry-pagination { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 40px; font-size: 1.5rem; }
.adjacent-entry-pagination .pagination-next { text-align: right; margin-left: auto; }

/* Sidebar widgets */
.widget { margin-bottom: 40px; font-size: 1.5rem; }
.widget-title {
  background: #222;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 15px;
  margin: 0 0 20px;
}
.featured-post { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #eee; }
.featured-post:last-child { border-bottom: 0; }
.featured-image img { width: 100px; height: 100px; object-fit: cover; display: block; }
.featured-title { font-size: 1.5rem; font-weight: 500; line-height: 1.35; margin: 0; }
.featured-title a { color: #222; }
.featured-title a:hover { color: #1e73be; }
.widget-categories ul { list-style: none; padding: 0; margin: 0; }
.widget-categories li { border-bottom: 1px dotted #ddd; padding: 6px 0; margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid #ddd; margin-top: 20px; text-align: center; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 1px; }
.site-footer .wrap { padding-top: 30px; padding-bottom: 30px; }
.site-footer p { margin: 0; }

.sitemap ul ul { margin-bottom: 4px; }

@media (max-width: 1023px) {
  .content-sidebar-wrap { display: block; }
  .content { max-width: none; }
  .sidebar { margin-top: 20px; }
}
@media (max-width: 640px) {
  .wrap, .site-inner { padding-left: 16px; padding-right: 16px; }
  .nav-secondary .wrap { padding: 0 16px; }
  .site-header .wrap { padding-top: 26px; padding-bottom: 26px; }
  .site-title { font-size: 3rem; }
  .nav-primary a { padding: 12px 12px; font-size: 1.2rem; }
  .nav-secondary .menu > li > a { padding: 12px 10px; font-size: 1.2rem; }
  .entry-title { font-size: 2.4rem; }
  h2.entry-title { font-size: 2rem; }
  .entry-image-link img.alignleft { float: none; width: 100%; height: auto; aspect-ratio: 4 / 3; margin: 0 0 16px; }
  .sub-menu { width: 180px; }
}
