:root {
  --text: #222;
  --body: #8a8a8a;
  --muted: #999;
  --green: #c6de60;
  --green-dark: #b3d049;
  --link: #3a2fd8;
  --bg: #fff;
  --border: #e7e7e7;
  --widget-bg: #f2f2f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

figure {
  margin: 1.5rem 0;
}

h1, h2, h3, h4, h5 {
  color: #3a3a3a;
  line-height: 1.25;
}

/* Top bar */
.topbar {
  background: var(--green);
}

.topbar .container {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.topbar-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-size: 0.95rem;
}

.topbar-mail:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.site-logo {
  height: 84px;
  width: auto;
  max-width: 100%;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.site-nav a {
  color: #555;
  font-size: 1.05rem;
}

.site-nav a:hover {
  color: var(--link);
  text-decoration: none;
}

/* Layout */
.layout {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.layout.with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3.5rem;
  align-items: start;
}

.content {
  min-width: 0;
}

.content h1 {
  font-size: 2.1rem;
  margin-top: 0;
}

@media (max-width: 900px) {
  .layout.with-sidebar {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Buttons */
.btn-more {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.65rem 1.3rem;
  background: var(--green);
  color: #fff;
  font-size: 0.95rem;
}

.btn-more:hover {
  background: var(--green-dark);
  color: #fff;
  text-decoration: none;
}

/* Blog listing cards */
.post-card {
  margin-bottom: 3.25rem;
}

.post-card-title {
  margin-bottom: 0.75rem;
}

.post-card-title a {
  color: var(--link);
}

/* Single post meta */
.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

/* Home */
.home .tagline {
  color: var(--muted);
  font-size: 1.1rem;
}

/* Recent-post / taxonomy lists */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list time {
  color: var(--muted);
  font-size: 0.9rem;
  margin-left: 0.75rem;
}

/* Sidebar widgets */
.widget {
  margin-bottom: 2.25rem;
}

.widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
  margin: 0 0 0.9rem;
}

.widget-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem;
  background: var(--widget-bg);
}

.widget-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #e3e3e3;
}

.widget-list li:last-child {
  border-bottom: 0;
}

.widget-list a {
  color: #777;
  font-size: 1.02rem;
  line-height: 1.4;
  display: inline-block;
}

.all-posts {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

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

.search-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #ccc;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.95rem;
  color: #555;
}

.search-input::placeholder {
  color: #aaa;
}

.search-btn {
  border: 0;
  background: var(--green);
  color: #fff;
  padding: 0 0.9rem;
  cursor: pointer;
}

.search-btn:hover {
  background: var(--green-dark);
}

#search-results {
  margin-top: 0.75rem;
}

#search-results .no-results {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Embeds */
figure.video-embed iframe,
figure.map-embed iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

figure.map-embed iframe {
  aspect-ratio: 6 / 5;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.5rem 0 2rem;
}

.footer-nav {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  color: var(--muted);
}
