/* PetOdorFix — calm field-guide directory */
:root {
  --bg: #f4efe6;
  --bg-deep: #ece4d6;
  --paper: #fffdf8;
  --ink: #1b2a22;
  --ink-soft: #3e4f46;
  --muted: #5e6e65;
  --line: #d9d0c1;
  --line-strong: #cbbfaa;
  --accent: #2b6a58;
  --accent-dark: #1f4f42;
  --accent-soft: #dceae4;
  --clay: #b45a32;
  --clay-soft: #f3e2d7;
  --shadow: 0 10px 30px rgba(27, 42, 34, 0.07);
  --radius: 18px;
  --header: 72px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(1200px 500px at 10% -10%, #fff8ee 0%, transparent 50%),
              radial-gradient(900px 400px at 100% 0%, #e7efe9 0%, transparent 46%),
              var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; }
a { color: var(--accent-dark); }
a:hover { color: var(--clay); }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(244, 239, 230, 0.88);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 16px;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wordmark:hover { color: var(--accent-dark); }
.mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--accent);
  color: #f7f3ea;
  display: inline-grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.nav {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  align-items: center;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }
.nav .cta {
  background: var(--ink);
  color: #f7f3ea !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.nav .cta:hover { background: var(--accent-dark); }

.hero {
  padding: 64px 0 36px;
}
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}
h1, h2, h3, .serif { font-family: var(--serif); letter-spacing: -0.03em; font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }
h1 {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1.08;
  font-weight: 650;
  margin: 0 0 18px;
  max-width: 16ch;
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-dark); color: #fff !important; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink) !important; }
.btn-ghost:hover { background: var(--paper); }
.btn-aff {
  background: var(--clay);
  color: #fff !important;
  width: 100%;
  margin-top: auto;
}
.btn-aff:hover { filter: brightness(0.95); color: #fff !important; }

.notice {
  margin: 8px 0 48px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section { padding: 16px 0 56px; }
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 8px;
}
.section-intro { color: var(--muted); margin: 0 0 24px; max-width: 42rem; }

.problem-grid, .card-grid, .split, .product-grid {
  display: grid;
  gap: 16px;
}
.problem-grid {
  grid-template-columns: repeat(3, 1fr);
}
.problem-card, .card, .product-card, .step, .callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.problem-card {
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.problem-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: inherit;
}
.icon-blob {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.icon-blob.clay { background: var(--clay-soft); color: var(--clay); }
.problem-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.problem-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.problem-card .go { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--accent-dark); font-size: 0.9rem; }

.split { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
.card, .callout, .step { padding: 24px; }
.card h3, .callout h3 { margin-top: 0; }
.muted, .fine { color: var(--muted); font-size: 0.92rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 6px;
  top: 16px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 8px 0 24px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  align-items: end;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.filter-group label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
select, input[type="search"] {
  font: inherit;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  min-width: 160px;
}

.product-grid { grid-template-columns: repeat(2, 1fr); }
.product-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-card h3 { margin: 0; font-size: 1.25rem; }
.brand { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 0.75rem;
  background: var(--bg-deep);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--ink-soft);
}
.product-card p { margin: 0; color: var(--ink-soft); }
.source { font-size: 0.8rem; color: var(--muted); }
.source a { color: inherit; }

.prose { max-width: 46rem; }
.prose h1 { max-width: none; font-size: clamp(2rem, 4vw, 3rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ol, .prose ul { padding-left: 1.2rem; }
.related { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.related a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.legal { margin-top: 28px; font-size: 0.82rem; }

.empty {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 860px) {
  .problem-grid, .product-grid, .split, .footer-grid {
    grid-template-columns: 1fr;
  }
  h1 { max-width: none; }
  .header-inner { flex-wrap: wrap; padding: 8px 0; }
}
@media (max-width: 560px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .hero { padding-top: 36px; }
  .nav { width: 100%; }
}
