:root {
  color-scheme: light;
  --ink: #1a1a1a;
  --muted: #686868;
  --link: #007acc;
  --line: #d1d1d1;
  --header: #1a1a1a;
}

* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Merriweather, Georgia, "Times New Roman", serif;
}
a { color: var(--link); }
img, video { max-width: 100%; height: auto; }
.screen-reader-text, .skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem; z-index: 5; }

.site {
  background: #fff;
  min-width: 0;
}
.site-header { background: var(--header); color: #fff; }
.site-header-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.25rem 1.1rem 1rem;
  min-width: 0;
}
.site-branding { margin-right: auto; max-width: 100%; min-width: 0; }
.custom-logo { display: block; width: 100%; max-width: 240px; height: auto; margin-bottom: 0.75rem; }
.site-title {
  margin: 0;
  max-width: 100%;
  font-family: Montserrat, "Helvetica Neue", sans-serif;
  font-size: clamp(1rem, 4.6vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.site-title a { color: #fff; text-decoration: none; }
.site-description { margin: 0.35rem 0 0; color: #9a9a9a; font-size: 0.95rem; }
.menu-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
}
.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}
.main-navigation a:hover { color: #b3d4fc; }
.header-image img { display: block; width: 100%; }

.site-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.75rem 1.1rem 3rem;
}
.content-area, .sidebar, .post, .entry-content, .entry-header, .entry-title, figure {
  min-width: 0;
  max-width: 100%;
}
.entry-title { overflow-wrap: break-word; }
.page-header h1, .entry-title {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6rem;
}
.entry-title { font-size: 1.75rem; }
.entry-title a { color: var(--ink); text-decoration: none; }
.entry-title a:hover, .post-nav a:hover { color: var(--link); }
.page-header p { color: var(--muted); margin-top: 0; }
.entry-summary { font-size: 1.05rem; color: #333; }
.post { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.post.single { border-bottom: 0; }
.entry-content { font-size: 1.02rem; line-height: 1.75; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content h2, .entry-content h3 { font-family: Montserrat, sans-serif; line-height: 1.3; }
.post-thumbnail { display: block; margin: 0 0 1.25rem; }
.post-thumbnail img { display: block; width: 100%; }
.wp-caption, figure.wp-block-image, .entry-content figure { margin: 1.4rem 0; }
.aligncenter, .wp-caption.aligncenter { text-align: center; }
.aligncenter img, .wp-caption.aligncenter img { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0.3rem 1.2rem 0.8rem 0; }
.alignright { float: right; margin: 0.3rem 0 0.8rem 1.2rem; }
figcaption, .wp-caption-text {
  color: var(--muted);
  font-family: Montserrat, sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
  margin-top: 0.45rem;
}
.wp-video { display: block; width: min(100%, 840px); margin: 1.2rem auto; background: #000; }
.entry-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  color: var(--muted);
  font-family: Montserrat, sans-serif;
  font-size: 0.82rem;
  margin-top: 1.25rem;
}
.entry-footer .updated { position: absolute; left: -999px; }
.pagination, .post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
}
.post-nav { margin-top: 2rem; }
.post-nav a { max-width: 46%; text-decoration: none; }
.post-nav .older { margin-left: auto; text-align: right; }
.search-hit { margin-bottom: 1.6rem; }
.search-hit h2 { font-family: Montserrat, sans-serif; font-size: 1.25rem; margin: 0; }
.search-hit h2 a { color: var(--ink); text-decoration: none; }
.hit-date { color: var(--muted); margin: 0.2rem 0; font-size: 0.85rem; }
.search-form { display: flex; gap: 0.4rem; width: 100%; min-width: 0; max-width: 100%; }
.search-form input { min-width: 0; width: 0; }
.search-form input, .search-page input {
  flex: 1;
  border: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
  font: inherit;
}
.search-form button, .search-page button {
  background: var(--ink);
  color: #fff;
  border: 0;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
}
.search-page { max-width: 36rem; }

.sidebar .widget { margin: 0 0 2rem; min-width: 0; max-width: 100%; }
.widget-title {
  font-family: Montserrat, sans-serif;
  font-size: 0.95rem;
  margin: 0 0 0.7rem;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin: 0 0 0.45rem; line-height: 1.35; }
.sidebar li.child { padding-left: 0.8rem; }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--link); }
.count { color: var(--muted); }
.date-widget { text-align: center; font-family: Montserrat, sans-serif; font-weight: 700; }
.date-widget p { margin: 0.2rem 0; }
.calendar { width: 100%; border-collapse: collapse; text-align: center; font-family: Montserrat, sans-serif; font-size: 0.85rem; }
.calendar caption { font-weight: 700; margin-bottom: 0.4rem; display: flex; justify-content: space-between; align-items: center; }
.calendar th, .calendar td { padding: 0.28rem 0; }
.calendar a { text-decoration: none; font-weight: 700; }
.calendar .today { background: #f3f3f3; }
.site-footer {
  background: var(--header);
  color: #c7c7c7;
  padding: 1.4rem 0;
  font-family: Montserrat, sans-serif;
  font-size: 0.85rem;
}
.site-footer p {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.1rem;
}
.site-footer a { color: #fff; text-decoration: none; }

@media (min-width: 900px) {
  .site-header-main { padding: 1.75rem 4.5% 1.25rem; }
  .site-content {
    grid-template-columns: minmax(0, 1fr) 280px;
    padding: 2.5rem 4.5% 3rem;
  }
  .site-footer p { padding-left: 4.5%; padding-right: 4.5%; }
  .site-title { font-size: 2rem; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .main-navigation { display: none; width: 100%; }
  body.menu-open .main-navigation { display: block; }
  .main-navigation ul { flex-direction: column; gap: 0.7rem; padding-bottom: 0.5rem; }
  .alignleft, .alignright { float: none; margin: 1rem 0; }
}
