:root {
  --paper: #f7f7f7;
  --paper-warm: #fffdf8;
  --ink: #263226;
  --muted: #657064;
  --sage: #8b9467;
  --sage-dark: #566344;
  --blue: #6495ed;
  --blue-dark: #315dab;
  --coral: #f19a79;
  --yellow: #f4d66d;
  --line: #dfe5d9;
  --white: #ffffff;
  --shadow: 0 1.2rem 2.5rem rgba(63, 79, 54, .09);
  --display: 'Fredoka', sans-serif;
  --body: 'Nunito', sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --font-display: var(--display);
  --font-body: var(--body);
  --font-mono: var(--mono);
  --radius-lg: 2rem;
  --radius-md: 1.15rem;
  --shell: min(1180px, calc(100% - 3rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 3%, rgba(100,149,237,.14), transparent 20rem),
    radial-gradient(circle at 4% 58%, rgba(139,148,103,.11), transparent 24rem),
    var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: radial-gradient(rgba(86,99,68,.28) .7px, transparent .7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}
a { color: inherit; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: relative;
  z-index: 5;
  padding: 1.35rem 0 1rem;
}
.header-inner {
  width: var(--shell);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
}
.brand-copy { display: grid; line-height: 1; gap: .26rem; }
.brand-name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: -.035em; }
.brand-tag { color: var(--sage-dark); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.menu-toggle {
  display: none;
  border: 2px solid var(--ink);
  background: var(--white);
  border-radius: 999px;
  padding: .55rem .8rem;
  color: var(--ink);
  font-weight: 800;
}
.primary-nav { display: flex; align-items: center; gap: .3rem; }
.primary-nav a {
  padding: .6rem .9rem;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); background: var(--white); box-shadow: 0 5px 18px rgba(63,79,54,.08); }
.nav-cta { background: var(--blue) !important; color: var(--white) !important; }

.site-shell { width: var(--shell); margin: 0 auto; }
.rail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11.5rem;
  gap: 2rem;
  align-items: start;
}
.rail-layout:has([data-side-links][hidden]) { grid-template-columns: minmax(0, 1fr); }
[data-side-links][hidden] { display: none; }
.side-links {
  position: sticky;
  top: 1.25rem;
  order: 2;
  padding: 1rem 0 1rem 1rem;
  border-left: 2px dashed rgba(139,148,103,.55);
}
.side-links h2 { margin: 0 0 .8rem; font-family: var(--font-display); font-size: 1.1rem; }
.side-links ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.side-links li { color: var(--muted); font-size: .82rem; }
.side-links a { text-decoration: none; }
.side-links a:hover { color: var(--blue-dark); }

main { min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--sage-dark);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow::before { content: '✦'; color: var(--coral); font-family: var(--font-body); font-size: 1rem; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -.04em; }
h1 { font-size: clamp(3.25rem, 8vw, 6.9rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.55rem; }
p { margin: 0; }
.lede { max-width: 42rem; color: var(--muted); font-size: 1.13rem; }

.hero {
  position: relative;
  min-height: 35rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .9fr);
  align-items: center;
  gap: 2.5rem;
  padding: 3.8rem 4.2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(115deg, #e6efcf 0%, #f9f4e3 56%, #d6e5fc 100%);
  box-shadow: var(--shadow);
}
.hero::after {
  content: 'WOOF';
  position: absolute;
  right: -1.2rem;
  bottom: -2.7rem;
  color: rgba(255,255,255,.5);
  font-family: var(--font-display);
  font-size: clamp(7rem, 18vw, 15rem);
  line-height: .8;
  transform: rotate(-8deg);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { max-width: 10ch; margin: .85rem 0 1.25rem; }
.hero h1 em { color: var(--blue-dark); font-style: normal; }
.hero .lede { max-width: 31rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: .7rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 .55rem 1rem rgba(38,50,38,.16); }
.button.secondary { border-color: var(--ink); background: transparent; color: var(--ink); }
.hero-dog {
  position: relative;
  z-index: 1;
  min-height: 24rem;
  display: grid;
  place-items: center;
}
.hero-dog::before {
  content: '';
  position: absolute;
  width: 20rem;
  height: 20rem;
  border-radius: 48% 52% 55% 45%;
  background: var(--blue);
  transform: rotate(12deg);
  opacity: .94;
}
.hero-dog::after {
  content: '🐾';
  position: absolute;
  top: 8%;
  right: 4%;
  color: var(--coral);
  font-size: 4rem;
  transform: rotate(18deg);
}
.dog-badge {
  position: relative;
  width: 15rem;
  height: 15rem;
  display: grid;
  place-items: center;
  border: .8rem solid var(--paper-warm);
  border-radius: 45% 55% 48% 52%;
  background: var(--sage);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  transform: rotate(-8deg);
  box-shadow: .9rem 1rem 0 rgba(86,99,68,.16);
}
.dog-badge span { display: block; font-size: 1rem; letter-spacing: .09em; text-transform: uppercase; transform: rotate(8deg); }

.section { padding: 5.6rem 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.7rem; }
.section-head h2 { max-width: 14ch; }
.text-link { color: var(--blue-dark); font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.callout {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
}
.callout strong { display: block; margin-bottom: .25rem; font-family: var(--font-display); font-size: 1.3rem; }
.callout p { color: var(--muted); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; align-items: start; }
.story-card { min-width: 0; display: flex; flex-direction: column; }
.story-image { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); background: #d9e3d2; }
.story-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.story-card:hover .story-image img { transform: scale(1.05) rotate(1deg); }
.story-card > :not(.story-image) { padding-left: .25rem; padding-right: .25rem; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; margin-top: .9rem; color: var(--sage-dark); font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.category-label { color: var(--blue-dark); }
.story-card h3 { margin-top: .35rem; font-size: 1.45rem; }
.story-card h3 a { text-decoration: none; }
.story-card h3 a:hover { color: var(--blue-dark); }
.story-card p { margin-top: .45rem; color: var(--muted); }
.story-author { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; color: var(--muted); font-size: .82rem; font-weight: 800; }
.story-author-avatar { width: 1.7rem; height: 1.7rem; border-radius: 50%; object-fit: cover; }
.empty-state { color: var(--muted); }

.home-intro { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 2rem; align-items: end; }
.home-intro h2 { max-width: 11ch; }
.news-grid.featured .story-card:first-child { grid-column: span 2; }
.news-grid.featured .story-card:first-child .story-image { aspect-ratio: 16 / 8; }
.news-grid.featured .story-card:first-child h3 { font-size: 2rem; }
.mini-rail { display: grid; gap: .8rem; }
.paw-note { background: var(--yellow); transform: rotate(2deg); }
.paw-note::before { content: '🐾'; display: block; margin-bottom: .5rem; font-size: 1.4rem; }

.band {
  position: relative;
  padding: 4rem;
  border-radius: var(--radius-lg);
  background: var(--sage-dark);
  color: var(--white);
  overflow: hidden;
}
.band::before { content: '✳  ✳  ✳'; position: absolute; right: 3rem; top: 1.5rem; color: var(--yellow); font-size: 2rem; letter-spacing: 1.5rem; transform: rotate(11deg); }
.band h2 { max-width: 13ch; color: var(--white); }
.band p { max-width: 35rem; margin-top: 1rem; color: #e6eedc; }
.band .button { margin-top: 1.4rem; background: var(--yellow); color: var(--ink); }

.page-hero { padding: 3.3rem 0 2.8rem; }
.page-hero h1 { max-width: 10ch; margin: .6rem 0 1rem; font-size: clamp(3rem, 7vw, 5.8rem); }
.page-hero .lede { max-width: 38rem; }
.content-card { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.72); box-shadow: var(--shadow); }
.content-card h2 { margin-bottom: .8rem; font-size: 2rem; }
.content-card p + p { margin-top: .8rem; }

.archive-toolbar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1.25rem; }
.archive-toolbar label { flex: 1 1 17rem; }
.archive-toolbar input { width: 100%; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); }
.archive-toolbar input:focus { border-color: var(--blue); outline: 3px solid rgba(100,149,237,.2); }
.filter-list { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.5rem; }
.filter-list a { padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--muted); font-size: .82rem; font-weight: 800; text-decoration: none; }
.filter-list a:hover { border-color: var(--blue); color: var(--blue-dark); }
.archive-results { display: grid; gap: 1rem; }
.archive-results .story-card { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.2rem; padding: 1rem; border-radius: var(--radius-md); background: var(--white); }
.archive-results .story-image { aspect-ratio: 1.25; }
.archive-results .story-meta { margin-top: .15rem; }
.archive-results .story-card h3 { font-size: 1.7rem; }

.breed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.breed-card { min-height: 13rem; display: flex; flex-direction: column; justify-content: space-between; padding: 1.4rem; border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow); }
.breed-card:nth-child(2) { background: #e4edff; transform: translateY(1.1rem); }
.breed-card:nth-child(3) { background: #f8edbe; }
.breed-card .breed-icon { font-size: 2.5rem; }
.breed-card h3 { margin-top: .8rem; font-size: 1.55rem; }
.breed-card p { color: var(--muted); font-size: .9rem; }
.breed-card a { margin-top: 1rem; color: var(--blue-dark); font-weight: 900; text-decoration: none; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.quote { padding: 1.6rem; border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow); }
.quote:nth-child(2) { background: #e4edff; transform: rotate(1deg); }
.quote:nth-child(3) { background: #f7e6dc; transform: rotate(-1deg); }
.quote p { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.25; }
.quote cite { display: block; margin-top: 1rem; color: var(--muted); font-size: .82rem; font-style: normal; font-weight: 900; }

.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.guide-step { display: grid; grid-template-columns: 3.2rem minmax(0,1fr); gap: 1rem; padding: 1.4rem; border-top: 2px solid var(--sage); }
.step-number { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: var(--white); font-family: var(--font-display); font-size: 1.4rem; }
.guide-step h3 { font-size: 1.35rem; }
.guide-step p { margin-top: .3rem; color: var(--muted); }
.faq { display: grid; gap: .7rem; }
details { padding: 1rem 1.2rem; border-radius: 1rem; background: var(--white); box-shadow: 0 6px 16px rgba(63,79,54,.06); }
summary { cursor: pointer; font-family: var(--font-display); font-size: 1.25rem; }
details p { max-width: 48rem; margin-top: .7rem; color: var(--muted); }

.article-layout { padding-top: 2rem; }
.byline { display: grid; grid-template-columns: 3.5rem minmax(0,1fr); column-gap: .8rem; align-items: center; max-width: 48rem; margin: 1.6rem 0; padding: .8rem 1rem; border-radius: 1rem; background: var(--white); }
.byline img { grid-row: span 2; width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; background: var(--sage); }
.byline strong { font-family: var(--font-display); }
.byline p { color: var(--muted); font-size: .85rem; }
#article-content { max-width: 52rem; }
.article-header h1 { margin: .8rem 0; font-size: clamp(2.8rem, 6vw, 5.2rem); }
.article-deck { color: var(--muted); font-size: 1.25rem; }
.article-cover { margin: 2rem 0; border-radius: var(--radius-md); overflow: hidden; }
.article-cover img { display: block; width: 100%; max-height: 34rem; object-fit: cover; }
.prose { max-width: 48rem; }
.prose p { margin: 1.15rem 0; color: #3c483d; font-size: 1.12rem; line-height: 1.8; }
.prose h2, .prose h3 { margin: 2.4rem 0 .75rem; }
.prose h2 { font-size: 2.2rem; }
.prose h3 { font-size: 1.55rem; }
.prose a { color: var(--blue-dark); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.prose ul, .prose ol { padding-left: 1.3rem; color: #3c483d; font-size: 1.08rem; line-height: 1.8; }
.prose li + li { margin-top: .35rem; }
.article-inline { display: block; width: 100%; border-radius: 1rem; }
#category-title { margin: .6rem 0 .7rem; }
#category-description { max-width: 40rem; color: var(--muted); font-size: 1.15rem; }
#category-results { margin-top: 2rem; }

.not-found { min-height: 55vh; display: grid; place-items: center; padding: 3rem 0 6rem; text-align: center; }
.not-found-inner { max-width: 38rem; }
.not-found-mark { margin-bottom: 1rem; color: var(--coral); font-family: var(--font-display); font-size: 5rem; }
.not-found h1 { font-size: clamp(3.5rem, 9vw, 7rem); }
.not-found p { margin: 1rem auto 1.7rem; color: var(--muted); font-size: 1.15rem; }

.site-footer { margin-top: 6rem; padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.footer-inner p { color: var(--muted); font-size: .85rem; }
.footer-mark { color: var(--sage-dark); font-family: var(--font-display); font-size: 1.1rem; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 2rem, 720px); }
  .menu-toggle { display: inline-flex; }
  .primary-nav { position: absolute; left: 1rem; right: 1rem; top: 5rem; display: none; flex-direction: column; align-items: stretch; padding: .7rem; border: 1px solid var(--line); border-radius: 1.2rem; background: var(--white); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { text-align: center; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 3rem 2rem 1.4rem; }
  .hero h1 { max-width: 12ch; }
  .hero-dog { min-height: 18rem; }
  .hero-dog::before { width: 15rem; height: 15rem; }
  .dog-badge { width: 11rem; height: 11rem; font-size: 3.7rem; }
  .rail-layout { grid-template-columns: minmax(0,1fr); }
  .side-links { position: static; order: -1; padding: .9rem 0; border-left: 0; border-bottom: 2px dashed rgba(139,148,103,.55); }
  .side-links ol { display: flex; flex-wrap: wrap; gap: .4rem .8rem; }
  .side-links h2 { margin-bottom: .3rem; }
  .breed-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .breed-card:nth-child(2) { transform: none; }
  .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --shell: calc(100% - 1.35rem); }
  .site-header { padding-top: .7rem; }
  .brand-name { font-size: 1.3rem; }
  .brand-tag { font-size: .58rem; }
  .brand-mark { width: 2.65rem; height: 2.65rem; flex-basis: 2.65rem; }
  h1 { font-size: 3.25rem; }
  .hero { padding: 2.2rem 1.25rem 1rem; border-radius: 1.5rem; }
  .hero h1 { font-size: 3.8rem; }
  .section { padding-top: 3.8rem; }
  .section-head, .home-intro { display: block; }
  .section-head .text-link { display: inline-block; margin-top: .8rem; }
  .mini-rail { margin-top: 1.2rem; }
  .news-grid.featured .story-card:first-child { grid-column: span 1; }
  .news-grid.featured .story-card:first-child .story-image { aspect-ratio: 4 / 3; }
  .news-grid.featured .story-card:first-child h3 { font-size: 1.65rem; }
  .band { padding: 2.2rem 1.4rem; border-radius: 1.5rem; }
  .archive-results .story-card { grid-template-columns: 1fr; }
  .archive-results .story-image { aspect-ratio: 16 / 9; }
  .footer-inner { display: block; }
  .footer-inner p { margin-top: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
