/* PetNotes — warm care notes, not a clinic */
:root {
  --cream: #FBF6F0;
  --cream-deep: #F3E8DC;
  --sage: #5B7C6A;
  --sage-deep: #456354;
  --sage-soft: #D9E6DE;
  --coral: #E8A598;
  --coral-soft: #F6DDD7;
  --ink: #2A2A28;
  --ink-muted: #5C5A55;
  --line: #E6D9CB;
  --white: #FFFCFA;
  --radius: 1.1rem;
  --radius-sm: 0.65rem;
  --shadow: 0 10px 28px rgba(42, 42, 40, 0.06);
  --max: 68rem;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 165, 152, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(91, 124, 106, 0.12), transparent 50%),
    var(--cream);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sage-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--sage);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 2.85rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); margin: 2rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }

p { margin: 0 0 1rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(251, 246, 240, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover { color: var(--sage-deep); }

.brand span {
  color: var(--sage);
  font-weight: 500;
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

/* —— Hero —— */
.hero {
  padding: 3.2rem 0 2.4rem;
}

.hero-inner {
  max-width: 38rem;
}

.hero .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 650;
  color: var(--sage-deep);
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.hero-lead {
  color: var(--ink-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--sage);
  color: #fff;
  box-shadow: 0 8px 20px rgba(91, 124, 106, 0.25);
}

.btn-primary:hover {
  background: var(--sage-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--sage);
  color: var(--sage-deep);
  background: var(--white);
}

/* —— Dual entry —— */
.dual-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 0.5rem 0 3rem;
}

.entry-panel {
  position: relative;
  padding: 1.75rem 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(42, 42, 40, 0.09);
  color: inherit;
}

.entry-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
}

.entry-dogs::before { background: var(--sage); }
.entry-cats::before { background: var(--coral); }

.entry-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.entry-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
}

.entry-panel p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.soft-divider {
  height: 1px;
  border: 0;
  margin: 2.5rem 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin: 0;
}

.section-head a {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

/* —— Notes grid —— */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1.15rem;
  margin-bottom: 3rem;
}

.note-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.note-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}

.note-thumb {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(145deg, var(--sage-soft), var(--cream-deep) 55%, var(--coral-soft));
  position: relative;
  overflow: hidden;
}

.note-thumb.cats {
  background:
    linear-gradient(145deg, var(--coral-soft), var(--cream-deep) 50%, var(--sage-soft));
}

.note-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.note-thumb .thumb-label {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 252, 250, 0.92);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sage-deep);
  z-index: 1;
}

.note-body {
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.note-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.note-body p {
  margin: 0;
  flex: 1;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.note-meta {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-size: 0.75rem;
  font-weight: 700;
}

.pill-coral {
  background: var(--coral-soft);
  color: #8a5248;
}

/* —— Page chrome —— */
.page-hero {
  padding: 2.4rem 0 1.2rem;
}

.page-hero p {
  color: var(--ink-muted);
  max-width: 40rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  text-decoration: none;
  font-weight: 600;
}

/* —— Article —— */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11rem;
  gap: 2rem;
  padding-bottom: 3rem;
}

.article-main {
  min-width: 0;
}

.article-hero-art {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  margin: 1rem 0 1.5rem;
  background:
    radial-gradient(circle at 20% 40%, rgba(232, 165, 152, 0.45), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(91, 124, 106, 0.35), transparent 40%),
    linear-gradient(120deg, var(--cream-deep), var(--white));
  border: 1px solid var(--line);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.prose {
  font-size: 1.06rem;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  padding-top: 0.5rem;
}

.prose ul, .prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1.1rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--coral-soft);
  border-left: 4px solid var(--coral);
  color: var(--ink);
}

.prose blockquote p {
  margin: 0;
}

.prose hr {
  border: 0;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.prose .table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.4rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
}

.prose th {
  background: var(--sage-soft);
}

.gentle-box {
  margin: 2rem 0;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: var(--sage-soft);
  border: 1px solid rgba(91, 124, 106, 0.25);
}

.gentle-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--sage-deep);
}

.gentle-box p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
}

.related h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related li {
  margin-bottom: 0.55rem;
}

.related a {
  font-weight: 700;
  text-decoration: none;
}

.aside-rail {
  padding-top: 0.5rem;
}

.ads-slot {
  min-height: 250px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  background: rgba(255, 252, 250, 0.6);
}

.ads-slot--inline {
  min-height: 90px;
  margin: 1.75rem 0;
}

/* —— List —— */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.filter-row a {
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.filter-row a:hover,
.filter-row a.is-active {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

/* —— Static pages —— */
.page-content {
  max-width: 42rem;
  padding-bottom: 3rem;
}

.contact-card {
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-card a {
  font-weight: 700;
}

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(243, 232, 220, 0.55);
  padding: 2rem 0 2.4rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.footer-copy {
  color: var(--ink-muted);
  font-size: 0.9rem;
  max-width: 28rem;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.footer-nav a:hover {
  color: var(--sage-deep);
}

/* —— 404 —— */
.not-found {
  text-align: center;
  padding: 4rem 0 5rem;
}

.not-found h1 {
  font-size: 2.4rem;
}

/* —— Responsive —— */
@media (max-width: 820px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .aside-rail {
    order: 2;
  }

  .dual-entry {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 2.2rem;
  }
}


/* === Shared responsive & brand enhancements === */
.brand-logo,.footer-logo{display:block;height:auto;max-width:100%}
.brand .brand-logo{width:min(180px,52vw)}
.footer-logo{width:min(160px,45vw);margin-bottom:.75rem;opacity:.95}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html{-webkit-text-size-adjust:100%;overflow-x:hidden}
body{overflow-x:hidden}
img,svg,video{max-width:100%;height:auto}
.nav a,.menu-toggle,.btn,.footer-nav a,.nav-links a{min-height:44px;display:inline-flex;align-items:center}
@media(max-width:680px){.menu-toggle{display:inline-flex}.nav.is-open,.nav-links.is-open{display:flex!important;flex-direction:column;width:100%}}
@media(max-width:480px){body{font-size:1rem}h1{font-size:clamp(1.65rem,6vw,2.35rem)}}

/* Network & cross-links */
.network-footer{padding:2rem 0;border-top:1px solid var(--line,rgba(0,0,0,.08));margin-top:0}
.network-title{font-size:.85rem;text-transform:uppercase;letter-spacing:.06em;margin:0 0 .75rem;opacity:.75;font-weight:600}
.network-links{list-style:none!important;margin:0;padding:0;display:grid;gap:.65rem;grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.network-links li{list-style:none;margin:0;padding:0}
.network-links a{display:flex;flex-direction:column;gap:.15rem;padding:.65rem .75rem;border-radius:6px;text-decoration:none;border:1px solid var(--line,rgba(0,0,0,.08))}
.network-links strong{font-size:.95rem}
.network-links span{font-size:.8rem;opacity:.75}
.cross-links{margin:1.5rem 0;padding:1rem 1.1rem;border-left:3px solid var(--accent,var(--sage-deep,#456354));background:rgba(0,0,0,.03);font-size:.95rem}
.cross-links a{font-weight:600}
.article-hero-img,.note-hero-img{margin:1rem 0 1.25rem;border-radius:8px;overflow:hidden;aspect-ratio:16/9;background:var(--cream-deep,#eee)}
.article-hero-img img,.note-hero-img img{width:100%;height:100%;object-fit:cover}
