/*
Theme Name: LocalTurfPros Blog
Theme URI: https://localturfpros.com/blog/
Author: LocalTurfPros
Description: Editorial WordPress theme for the LocalTurfPros lawn care guide library.
Version: 1.0.0
*/

:root {
  --ink: #17231d;
  --muted: #5e6c64;
  --green: #2f6f4e;
  --green-dark: #234f39;
  --line: #dce5dd;
  --wash: #f5f8f3;
  --white: #fffefb;
  --gold: #c89b3c;
  --rust: #9d4f32;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--wash);
}

body {
  background:
    linear-gradient(rgba(47, 111, 78, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 111, 78, .045) 1px, transparent 1px),
    var(--white);
  background-size: 34px 34px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

a {
  color: inherit;
}

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

.site-header {
  backdrop-filter: blur(16px);
  background: rgba(255, 254, 251, .92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner,
.blog-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 22px;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  align-items: center;
  color: var(--green);
  display: inline-flex;
  font-size: 18px;
  font-weight: 950;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  background: var(--green);
  border-radius: 8px;
  height: 42px;
  position: relative;
  width: 42px;
}

.brand-mark::before,
.brand-mark::after {
  background: #fff;
  border-radius: 999px;
  content: "";
  height: 5px;
  left: 10px;
  position: absolute;
  width: 24px;
}

.brand-mark::before {
  top: 14px;
  transform: rotate(-20deg);
}

.brand-mark::after {
  top: 23px;
  transform: rotate(20deg);
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav a {
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  padding: 12px 16px;
  text-decoration: none;
}

.nav .primary {
  background: var(--green);
  color: #fff;
}

.blog-hero {
  border-bottom: 1px solid var(--line);
  padding: 74px 0 42px;
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
.post-title {
  font-size: clamp(42px, 7vw, 78px);
  letter-spacing: 0;
  line-height: .94;
  margin: 0;
  max-width: 900px;
}

.hero-copy,
.post-deck {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
  margin: 20px 0 0;
  max-width: 720px;
}

.blog-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 300px;
  padding: 40px 0 70px;
}

.post-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card {
  background: rgba(255, 254, 251, .94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23, 35, 29, .08);
  display: grid;
  overflow: hidden;
}

.post-card-image {
  aspect-ratio: 16 / 10;
  background: #dfe9dc;
  overflow: hidden;
}

.post-card-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.post-card-body {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.post-meta {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.post-card h2 {
  font-size: 25px;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
}

.post-card h2 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.post-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.read-more {
  color: var(--green-dark);
  font-weight: 950;
  margin-top: 4px;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.sidebar {
  align-self: start;
  display: grid;
  gap: 16px;
  position: sticky;
  top: 98px;
}

.side-panel {
  background: rgba(255, 254, 251, .94);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.side-panel h2 {
  font-size: 19px;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.side-panel p,
.side-panel li {
  color: var(--muted);
  line-height: 1.55;
}

.side-panel ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-panel a {
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-shell {
  margin: 0 auto;
  max-width: 920px;
  padding: 58px 22px 76px;
}

.article-hero {
  display: grid;
  gap: 22px;
}

.article-image {
  border-radius: 8px;
  overflow: hidden;
}

.article-content {
  color: #25352c;
  font-size: 19px;
  line-height: 1.74;
}

.article-content h2,
.article-content h3 {
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.1;
  margin: 38px 0 12px;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin: 0 0 22px;
}

.article-content a {
  color: var(--green-dark);
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.pagination {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.pagination a,
.pagination span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  padding: 10px 14px;
  text-decoration: none;
}

.site-footer {
  background: #17231d;
  color: rgba(255, 255, 255, .8);
  padding: 34px 0;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 16px;
    padding-top: 16px;
  }

  .nav {
    justify-content: flex-start;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    padding-top: 44px;
  }

  .nav a {
    padding: 10px 12px;
  }
}
