:root {
  --brand-primary: #2f6b4f;
  --brand-primary-strong: #1e4936;
  --brand-warm: #e8d8bb;
  --brand-background: #faf8f3;
  --brand-surface: #ffffff;
  --brand-surface-muted: #f1f3ef;
  --brand-text: #24302a;
  --brand-text-secondary: #66736b;
  --brand-border: #dde3de;
  --dogs-accent: #b86e3a;
  --cats-accent: #6b6598;
  --focus: #0c63e4;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content: 72rem;
  --reading: 72ch;
  --header-height: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--brand-background); color: var(--brand-text); font: 1rem/1.6 var(--sans); }
body.drawer-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-primary-strong); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; transform: translateY(-200%); background: #fff; border: 2px solid var(--brand-primary); border-radius: .5rem; padding: .65rem .85rem; }
.skip-link:focus { transform: translateY(0); }
.container { width: min(var(--content), calc(100% - 2rem)); margin-inline: auto; }
.site-header { position: sticky; z-index: 40; top: 0; min-height: var(--header-height); background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--brand-border); backdrop-filter: blur(10px); }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand-link img { width: 10.5rem; height: auto; }
.desktop-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.desktop-nav a, .drawer-nav a { border-radius: .45rem; padding: .7rem .8rem; color: var(--brand-text); font-size: .94rem; font-weight: 650; text-decoration: none; }
.desktop-nav a:hover, .drawer-nav a:hover, .desktop-nav a[aria-current="page"], .drawer-nav a[aria-current="page"] { background: var(--brand-surface-muted); color: var(--brand-primary-strong); text-decoration: underline; text-underline-offset: .22em; }
.menu-button { display: none; }
.js .desktop-nav { display: none; }
.js .menu-button, .drawer-close { min-width: 2.75rem; min-height: 2.75rem; display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--brand-border); border-radius: .55rem; color: var(--brand-text); cursor: pointer; }
.menu-button svg, .drawer-close svg { width: 1.5rem; height: 1.5rem; }
.drawer { position: fixed; z-index: 60; inset: 0 0 0 auto; width: min(23rem, 88vw); padding: 1rem; background: #fff; box-shadow: -1rem 0 2.5rem rgb(36 48 42 / 18%); transform: translateX(105%); transition: transform 180ms ease; overflow-y: auto; }
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--brand-border); }
.drawer-head img { width: 9.5rem; }
.drawer-nav { display: grid; gap: .25rem; padding-block: 1rem; }
.drawer-meta { border-top: 1px solid var(--brand-border); padding-top: 1rem; color: var(--brand-text-secondary); font-size: .9rem; }
.backdrop { position: fixed; z-index: 50; inset: 0; background: rgb(15 26 20 / 52%); }

.button { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--brand-primary); border-radius: .55rem; padding: .72rem 1rem; background: var(--brand-primary); color: #fff; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--brand-primary-strong); border-color: var(--brand-primary-strong); }
.button.secondary { background: transparent; color: var(--brand-primary-strong); }
.button.secondary:hover { background: var(--brand-surface-muted); }
.eyebrow, .meta-label { margin: 0 0 .5rem; color: var(--brand-primary-strong); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; text-wrap: balance; }
h1 { margin: 0 0 1rem; font-size: clamp(2.35rem, 8vw, 4.8rem); }
h2 { margin: 0 0 .85rem; font-size: clamp(1.85rem, 5vw, 3.1rem); }
h3 { margin: 0 0 .6rem; font-size: 1.4rem; }
p, li { overflow-wrap: anywhere; }
.lead { max-width: var(--reading); color: var(--brand-text-secondary); font-size: clamp(1.05rem, 2.5vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.hero { min-height: min(44rem, calc(100svh - var(--header-height))); display: grid; align-items: end; color: #fff; background: var(--brand-primary-strong); }
.hero-media, .hero-media picture, .hero-media img { grid-area: 1 / 1; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; }
.hero-media { position: relative; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(20 57 40 / 90%) 0%, rgb(20 57 40 / 55%) 60%, rgb(20 57 40 / 12%) 100%); }
.hero-content { z-index: 1; grid-area: 1 / 1; padding-block: clamp(4rem, 10vw, 7rem); }
.hero-content > * { max-width: 43rem; }
.hero .eyebrow, .hero .lead { color: #fff; }
.hero .button.secondary { border-color: #fff; color: #fff; }
.hero .button.secondary:hover { background: rgb(255 255 255 / 14%); }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); scroll-margin-top: calc(var(--header-height) + 1rem); }
.section-muted { background: var(--brand-surface-muted); }
.section-warm { background: var(--brand-warm); }
.section-dark { background: var(--brand-primary-strong); color: #fff; }
.section-dark a, .section-dark .lead { color: #fff; }
.reading { max-width: var(--reading); }
.grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
.grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
.media-card, .product-card, .empty-state, .category-card { overflow: hidden; background: #fff; border: 1px solid var(--brand-border); border-radius: .8rem; }
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-card-content, .product-card, .empty-state, .category-card { padding: 1.25rem; }
.species-dog { border-inline-start: 4px solid var(--dogs-accent); }
.species-cat { border-inline-start: 4px solid var(--cats-accent); }
.numbered-step { border-top: 3px solid var(--brand-primary); padding-top: 1rem; }
.numbered-step .step-number { color: var(--brand-primary); font-weight: 800; }
.split { display: grid; gap: 2rem; align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .8rem; }
.page-hero { padding-block: 4rem 2.5rem; }
.page-hero.with-media { display: grid; gap: 2rem; align-items: center; }
.page-hero.with-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .8rem; }

.filters { display: grid; gap: 1.25rem; margin-block: 2rem; }
.filter-group { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0; }
.filter-group legend { width: 100%; margin-bottom: .5rem; font-weight: 750; }
.filter-button { min-height: 2.75rem; border: 1px solid var(--brand-border); border-radius: 999px; padding: .55rem .85rem; background: #fff; color: var(--brand-text); cursor: pointer; }
.filter-button[aria-pressed="true"] { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.filter-status { min-height: 1.6em; color: var(--brand-text-secondary); }
.empty-state { max-width: 46rem; background: var(--brand-surface-muted); }
.product-list { display: grid; gap: 1rem; }
.product-state { color: var(--brand-primary-strong); font-size: .82rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

.legal-layout { max-width: 50rem; padding-block: 4rem; }
.legal-layout h2 { margin-top: 2.75rem; font-size: 1.8rem; }
.legal-layout h3 { margin-top: 2rem; font-size: 1.3rem; }
.legal-meta { padding: 1rem; background: var(--brand-surface-muted); border-inline-start: 4px solid var(--brand-primary); }
.site-footer { padding-block: 3.5rem; background: var(--brand-primary-strong); color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand img { width: 11.5rem; margin-bottom: 1rem; }
.footer-links { display: grid; align-content: start; gap: .45rem; }
.site-footer a { color: #fff; }
.site-footer p { max-width: 52ch; }
.footer-small { color: rgb(255 255 255 / 82%); font-size: .88rem; }

@media (min-width: 44rem) {
  .grid.two, .split, .page-hero.with-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 62rem) {
  .js .desktop-nav { display: flex; }
  .menu-button, .drawer, .backdrop { display: none !important; }
  .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 2fr; }
}

@media (max-width: 43.99rem) {
  .hero-media::after { background: linear-gradient(0deg, rgb(20 57 40 / 92%) 0%, rgb(20 57 40 / 50%) 70%, rgb(20 57 40 / 15%) 100%); }
  .actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
