:root {
  --bg: #fffcf7;
  --surface: #ffffff;
  --sand: #f6efe2;
  --ink: #1f2a24;
  --muted: #5b6b62;
  --line: #e8e0d0;
  --brand: #2e6b4f;
  --brand-dark: #23533d;
  --brand-soft: #e3f0e8;
  --accent: #f2b544;
  --accent-soft: #fdf1d6;
  --warn: #c4472f;
  --warn-soft: #fdeee9;
  --health: #c4472f;
  --yard: #2e6b4f;
  --gear: #9a6a12;
  --services: #3d5a99;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 42, 36, .06), 0 6px 20px rgba(31, 42, 36, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; border-radius: 8px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 252, 247, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.25rem/1 var(--display); }
.brand .paw { width: 30px; height: 30px; color: var(--brand); }
.brand-small { font-size: 1.05rem; }
.brand-small .paw { width: 24px; height: 24px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--sand); }
.nav .nav-all { background: var(--brand); color: #fff; }
.nav .nav-all:hover { background: var(--brand-dark); color: #fff; }

/* buttons */
.btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--brand); line-height: 1.2; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* hero */
.hero { background: radial-gradient(1200px 400px at 80% 0%, var(--accent-soft), transparent 60%), linear-gradient(180deg, var(--sand), var(--bg)); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding: 64px 0 56px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero-art { display: grid; place-items: center; }
.hero-art .paw { width: min(260px, 70%); color: var(--brand); opacity: .92; transform: rotate(-12deg); filter: drop-shadow(0 12px 24px rgba(46, 107, 79, .25)); }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -28px; position: relative; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease; }
.tile:hover { transform: translateY(-2px); color: var(--ink); }
.tile p { color: var(--muted); font-size: .95rem; margin: 0; }
.icon { width: 34px; height: 34px; padding: 6px; border-radius: 10px; margin-bottom: 10px; }
.tile-health .icon, .cat-head .icon { color: var(--health); background: var(--warn-soft); }
.tile-yard .icon { color: var(--yard); background: var(--brand-soft); }
.tile-gear .icon { color: var(--gear); background: var(--accent-soft); }
.tile-services .icon { color: var(--services); background: #e8eefb; }
#yard .cat-head .icon { color: var(--yard); background: var(--brand-soft); }
#gear .cat-head .icon { color: var(--gear); background: var(--accent-soft); }
#services .cat-head .icon { color: var(--services); background: #e8eefb; }

/* feature */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px; margin-top: 48px; box-shadow: var(--shadow); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 8px; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.swatches span { display: flex; align-items: flex-end; height: 74px; border-radius: 12px; padding: 8px 10px; font-size: .8rem; font-weight: 700; color: #fff; background: var(--c); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }

/* cards */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 56px 0 16px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.card h3 { margin: 4px 0 0; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.card-meta { font-size: .85rem; color: var(--muted); }
.tag { align-self: flex-start; display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; }
.tag-health { color: var(--health); background: var(--warn-soft); }
.tag-yard { color: var(--yard); background: var(--brand-soft); }
.tag-gear { color: var(--gear); background: var(--accent-soft); }
.tag-services { color: var(--services); background: #e8eefb; }

.promise { margin-top: 56px; margin-bottom: 64px; background: var(--brand); color: #fff; border-radius: 20px; padding: 36px; }
.promise p { max-width: 70ch; opacity: .92; }
.promise a { color: #fff; font-weight: 700; }

/* guides index */
.page-head { padding: 48px 0 8px; }
.cat { margin: 32px 0 48px; }
.cat-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.cat-head h2 { margin-bottom: 2px; }
.cat-head p { margin: 0; }

/* article */
.article { padding-top: 28px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.article-head { max-width: 820px; margin-bottom: 28px; }
.article-head h1 { margin-top: 12px; }
.article-meta { color: var(--muted); font-size: .95rem; }
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) 260px; gap: 56px; align-items: start; }
.side { position: sticky; top: 88px; }
.toc { background: var(--sand); border-radius: var(--radius); padding: 18px 20px; font-size: .92rem; }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }

.prose { font-size: 1.06rem; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 4px solid var(--accent); color: var(--muted); }
.callout { background: var(--brand-soft); border-radius: 12px; padding: 14px 18px; margin: 1.2em 0; font-size: .98rem; }
.callout.warn { background: var(--warn-soft); border-left: 4px solid var(--warn); }
.callout > :last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--surface); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--sand); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.pick { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 20px 22px; margin: 1.4em 0; box-shadow: var(--shadow); }
.pick h3 { margin-top: 0; }
.pick .btn { padding: 10px 18px; font-size: .95rem; }
.related { margin: 56px auto 72px; }

/* footer */
.site-footer { background: var(--ink); color: #dfe6e1; padding: 40px 0 24px; }
.site-footer .brand { color: #fff; }
.site-footer .paw { color: var(--accent); }
.site-footer .muted { color: #a9b7ae; margin-top: 10px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: #fff; }
.fine { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 24px; padding-top: 16px; font-size: .85rem; color: #a9b7ae; }
.fine p { margin: 0 0 4px; }

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; gap: 0; }
  .side { position: static; order: -1; margin-bottom: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 48px; }
  .hero-art { display: none; }
  .tiles, .cards { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; padding: 24px; }
  .promise { padding: 24px; }
  .nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .nav a { white-space: nowrap; }
}
