/* Christina Diehl — flexbox layout, site style */
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,300;0,400;0,600;0,700;0,800;1,400&display=swap');

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  background: #c9d6c2;
}

a { color: #000; }
a:hover { opacity: 0.85; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #fff;
  z-index: 9999;
}

/* Header */
.site-header {
  position: relative;
  color: #fff;
}

.header-media {
  position: relative;
  min-height: 120px;
  background: #5a6b52 center/cover no-repeat;
}
.header-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.33) 75%, rgba(0,0,0,0.33) 100%);
}
.header-media img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.site-branding {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 4.5rem;
  z-index: 1;
}
.site-branding .wrap {
  max-width: 62.5em;
  margin: 0 auto;
}
.site-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}
.site-title a { color: #fff; text-decoration: none; }
.site-description {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
}

/* Navigation */
.navigation-top {
  background: rgba(90, 107, 82, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navigation-top .wrap {
  max-width: 62.5em;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font: inherit;
  margin: 0.5rem 0;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.main-navigation a {
  display: block;
  padding: 0.85rem 1rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a {
  background: rgba(255,255,255,0.15);
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-navigation ul {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-bottom: 0.5rem;
  }
  .main-navigation.is-open ul { display: flex; }
  .main-navigation a { padding: 0.65rem 0.5rem; }
}

/* Main content */
.site-content {
  padding: 2.5rem 0 4rem;
}
.site-content .wrap {
  max-width: 62.5em;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-header {
  margin-bottom: 1.5rem;
}
.page-header h1,
.page-header h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #222;
}

.page-content {
  background: #fff;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.page-content p { margin: 0 0 1em; }
.page-content ul, .page-content ol { margin: 0 0 1em 1.5em; }
.page-content li { margin-bottom: 0.35em; }
.page-content hr { margin: 1.5em 0; border: none; border-top: 1px solid #ddd; }
.page-content figure { margin: 1em 0; }
.page-content .alignleft { float: left; margin: 0 1.5em 1em 0; }
.page-content .aligncenter { text-align: center; }
.page-content .alignnone { margin: 1em 0; }
.page-content .wp-caption-text { font-size: 0.875rem; color: #666; font-style: italic; }

.page-content blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #5a6b52;
  background: #f8f9f7;
}
.page-content blockquote footer {
  margin-top: 0.75em;
  font-size: 0.9rem;
  color: #555;
}

.home-panel .page-content { background: transparent; box-shadow: none; padding: 0; }

.btn-primary {
  display: inline-block;
  background: #61a229;
  color: #fff !important;
  padding: 0.6rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 3px;
}
.btn-primary:hover { background: #4e8221; opacity: 1; }

/* Blog grid (r-template_blog.php) */
.blog-container { padding: 0; }
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.blog-card {
  background: #f8f9f7;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #5a6b52;
}
.blog-title { margin: 0 0 0.5rem; font-size: 1.15rem; }
.blog-title a { color: #222; text-decoration: none; font-weight: 700; }
.blog-preview p { margin: 0; color: #555; font-size: 0.95rem; }

/* Footer */
.site-footer {
  background: #5a6b52;
  color: #fff;
  padding: 2rem 0;
}
.site-footer .wrap {
  max-width: 62.5em;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
}
.social-links a:hover { background: rgba(255,255,255,0.3); }

.site-info { font-size: 0.85rem; opacity: 0.9; }

@media (max-width: 600px) {
  .site-footer .wrap { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
