/*
Theme Name: YardDecoded
Theme URI: https://yarddecoded.com/
Author: YardDecoded
Description: A fresh, practical WordPress theme for lawns, gardens, and outdoor living.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: yarddecoded
*/

:root {
  --ink: #183126;
  --muted: #647267;
  --paper: #fbfdf7;
  --panel: #edf4e6;
  --line: #dce7d6;
  --brand: #2f7d4a;
  --brand-dark: #195d34;
  --navy: #173f2b;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(23, 63, 43, .11);
  --content: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
a { color: var(--brand-dark); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--brand); }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 9999; top: 10px; left: 10px; width: auto; height: auto; padding: 10px 14px; margin: 0; clip: auto; background: var(--white); }
.wrap { width: min(calc(100% - 36px), var(--content)); margin-inline: auto; }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(229,222,211,.85); background: rgba(255,253,248,.95); backdrop-filter: blur(14px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; font-weight: 850; letter-spacing: -.035em; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50% 50% 44% 56%; color: var(--white); background: var(--brand); box-shadow: 0 7px 20px rgba(47,125,74,.24); }
.brand-mark svg { width: 23px; height: 23px; }
.site-nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 700; }
.site-nav a:hover { color: var(--brand); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); }

.hero { overflow: hidden; padding: clamp(62px, 8vw, 110px) 0 72px; color: var(--white); background: linear-gradient(135deg,#123b28 0%,#245d3b 60%,#397c4d 100%); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(40px, 7vw, 90px); }
.eyebrow { margin: 0 0 14px; color: #d5a942; font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 800px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1.02; letter-spacing: -.055em; }
.hero-copy { max-width: 680px; margin: 24px 0 32px; color: #dfebdf; font-size: clamp(1.04rem, 2vw, 1.22rem); }
.hero-search { display: flex; max-width: 650px; padding: 7px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.hero-search input { min-width: 0; flex: 1; padding: 13px 15px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.hero-search button { padding: 12px 18px; border: 0; border-radius: 11px; color: var(--white); background: var(--brand); font-weight: 800; cursor: pointer; }
.home-diagram { position: relative; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.2); border-radius: 48% 52% 46% 54%; background: radial-gradient(circle at 52% 35%,rgba(213,169,66,.28),transparent 25%),radial-gradient(circle at 45% 68%,rgba(255,255,255,.12),transparent 55%); }
.home-diagram::before { content: ""; position: absolute; width: 34%; height: 58%; left: 29%; top: 20%; transform: rotate(-28deg); border-radius: 100% 0 100% 0; background: #9bc46d; box-shadow: 72px 48px 0 -10px #d5a942; }
.home-diagram::after { content: ""; position: absolute; left: 49%; top: 29%; width: 4px; height: 58%; transform: rotate(8deg); border-radius: 5px; background: var(--white); }

.section { padding: clamp(64px, 8vw, 100px) 0; }
.section-soft { background: var(--panel); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2, .archive-title { margin: 0; font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; letter-spacing: -.04em; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-tile { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.category-tile:hover { transform: translateY(-4px); border-color: #d7b5a9; box-shadow: var(--shadow); color: var(--ink); }
.category-tile span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-dark); background: #e3f1d8; font-weight: 900; }
.category-tile h3 { margin: 24px 0 0; font-size: 1.1rem; line-height: 1.25; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: #dce3e8; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover img { transform: scale(1.035); }
.post-card-placeholder { height: 100%; display: grid; place-items: center; color: var(--navy); background: linear-gradient(135deg,#dcebd2,#f8e9b8); font-size: 2rem; font-weight: 900; }
.post-card-body { padding: 22px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 9px; color: var(--muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.post-card h2, .post-card h3 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: 1.35rem; line-height: 1.25; letter-spacing: -.025em; }
.post-card h2 a, .post-card h3 a { color: inherit; text-decoration: none; }
.post-card p { margin: 0; color: var(--muted); font-size: .94rem; }

.content-shell { width: min(calc(100% - 36px), 820px); margin-inline: auto; padding: 64px 0 100px; }
.entry-header { margin-bottom: 34px; }
.entry-header h1 { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: clamp(2.35rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -.05em; }
.entry-featured { overflow: hidden; margin: 0 0 40px; border-radius: 24px; box-shadow: var(--shadow); }
.entry-content { font-size: 1.08rem; }
.entry-content h2, .entry-content h3 { margin: 2em 0 .6em; color: var(--navy); line-height: 1.2; letter-spacing: -.025em; }
.entry-content h2 { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.entry-content blockquote { margin: 2em 0; padding: 22px 26px; border-left: 5px solid var(--brand); border-radius: 0 14px 14px 0; background: var(--panel); }
.entry-content img { border-radius: 16px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.archive-head { padding: 64px 0 32px; }
.archive-description { max-width: 720px; color: var(--muted); }
.pagination { margin-top: 42px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-decoration: none; }
.page-numbers.current { color: var(--white); background: var(--navy); border-color: var(--navy); }
.empty-state { padding: 60px 0 100px; text-align: center; }

.site-footer { padding: 58px 0 28px; color: #d2e2d5; background: #113622; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 50px; }
.site-footer .brand { color: var(--white); }
.site-footer p { max-width: 480px; }
.footer-title { margin: 0 0 14px; color: var(--white); font-size: .86rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin: 7px 0; }
.footer-menu a { color: #cbd6df; text-decoration: none; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #92a5b5; font-size: .86rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .home-diagram { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-toggle { display: grid; place-items: center; }
  .site-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: flex-start; flex-direction: column; gap: 12px; width: min(calc(100% - 36px), var(--content)); margin-inline: auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-inner { min-height: 68px; }
  .site-nav { top: 68px; }
  .hero { padding: 54px 0; }
  .hero-search { align-items: stretch; flex-direction: column; }
  .category-grid, .post-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .category-tile { min-height: 150px; }
}
