:root {
  --bg: #f3f7f6;
  --bg-alt: #e6efee;
  --paper: #fcfefd;
  --ink: #1b2a2d;
  --ink-soft: #46585b;
  --muted: #66787b;
  --accent: #1f6f78;
  --accent-dark: #164f56;
  --accent-soft: #dcedee;
  --sage: #3c7a58;
  --line: #d3e1e0;
  --shadow: 0 14px 40px rgba(27, 42, 45, 0.08);
  --radius: 18px;
  --header-h: 4.25rem;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 72rem;
  --prose: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
h1, h2, h3, .wordmark, .logo-text {
  font-family: var(--font-serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 1.8em 0 0.55em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 0.4em; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin: 0 0 0.45em; }
figure { margin: 1.75rem 0; }
figcaption {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.55rem;
  line-height: 1.5;
}
figcaption a { color: var(--muted); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 100;
  border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 247, 246, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.logo img, .logo svg { width: 2.1rem; height: 2.1rem; }
.logo-text {
  font-size: clamp(1.02rem, 2.4vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.logo-text span { display: block; font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.05rem; }

.nav-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  background: var(--paper);
}
.site-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.98rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

/* Hero */
.hero-home {
  position: relative;
  min-height: min(78vh, 42rem);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.hero-home img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero-home .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,32,35,0.12) 0%, rgba(18,32,35,0.55) 55%, rgba(18,32,35,0.8) 100%);
}
.hero-home .hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 7rem 0 3.2rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: #d6efef;
}
.hero-home h1 { color: #fff; max-width: 16ch; }
.hero-home .lede {
  max-width: 38rem;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 1rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-on-light { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; color: var(--accent-dark); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1.4rem;
}
.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(27,42,45,0.12); color: inherit; }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .card-body { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.card-title { font-family: var(--font-serif); font-size: 1.22rem; margin: 0; }
.card-excerpt { color: var(--ink-soft); font-size: 1rem; margin: 0; flex: 1; }
.card-meta { font-size: 0.88rem; color: var(--muted); margin-top: 0.5rem; }

.intro-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.intro-band img {
  width: 100%;
  height: 100%;
  max-height: 26rem;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.5rem; }

/* Article */
.article-hero { position: relative; }
.article-hero img {
  width: 100%;
  height: min(68vh, 34rem);
  object-fit: cover;
  object-position: center 30%;
}
.article-hero .caption-bar {
  width: min(var(--prose), calc(100% - 2rem));
  margin: 0.7rem auto 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.article-header { padding: 2.4rem 0 0.5rem; }
.article-header .meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.8rem; }
.article-body { padding-bottom: 3.5rem; }
.article-body .lede-graf {
  font-size: 1.28rem;
  line-height: 1.6;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 500;
}

.tips {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem 0.4rem;
  margin: 1.5rem 0;
}
.tips h3 { margin-top: 0; }
.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.15rem;
  margin: 1.6rem 0;
}
.callout.urgent { background: #fdeceb; border-left-color: #b3261e; }
.callout h3 { margin-top: 0; }
.disclaimer {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 2.2rem 0 1.6rem;
}
.sources { margin-top: 2.2rem; padding-top: 0.4rem; }
.sources ol { padding-left: 1.3rem; }
.sources li { margin-bottom: 0.65rem; overflow-wrap: anywhere; }
.in-article img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* Pages */
.page-hero {
  padding: 3.2rem 0 1rem;
}
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-height: 32rem; object-fit: cover; }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.contact-card a.email {
  font-size: 1.25rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--accent-dark);
  display: inline-block;
  margin: 0.4rem 0 1rem;
}
.contact-card a.email:hover { color: var(--accent); }

/* Footer */
.site-footer {
  background: #14262a;
  color: #e0eded;
  padding: 3rem 0 1.6rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.site-footer a { color: #d6efef; }
.site-footer h2, .site-footer .logo-text { color: #fff; }
.site-footer .logo { margin-bottom: 0.8rem; }
.site-footer p { color: #b7cccc; font-size: 0.98rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fd0cf;
  margin: 0.2rem 0 0.8rem;
}
.footer-col li { margin: 0 0 0.45rem; }
.footer-bottom {
  width: min(var(--max), calc(100% - 2rem));
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
  color: #9bb4b4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
}
.privacy-note { max-width: 46rem; }

@media (max-width: 860px) {
  .intro-band, .split, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle-label { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.8rem 1rem 1rem;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.7rem; }
  .hero-home { min-height: 32rem; }
  .hero-home .hero-copy { padding: 5.5rem 0 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-card { transition: none; }
}

/* ---- Diabetic Dog Care additions ---- */
.article-hero img { height: min(60vh, 32rem); }
.takeaways { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 14px; padding: 0.4rem 1.3rem 0.6rem; margin: 1.6rem 0; }
.takeaways .tk-title { font-size: 1.15rem; margin: 0.9em 0 0.5em; }
.toc { background: var(--bg-alt); border-radius: 14px; padding: 0.9rem 1.2rem 0.5rem; margin: 1.4rem 0; font-size: 1rem; }
.toc strong { display: block; margin-bottom: 0.3rem; font-family: var(--font-serif); }
.toc ol { margin: 0 0 0.6rem; padding-left: 1.2rem; }
.toc li { margin: 0 0 0.2rem; }
.callout.urgent h3 { color: #8c1d18; }
.video { margin: 1.8rem 0; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.owner-quote { margin: 1.8rem 0; padding: 1.1rem 1.3rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--sage); border-radius: 0 14px 14px 0; }
.owner-quote blockquote { margin: 0 0 0.4rem; font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.55; }
.owner-quote blockquote p { margin: 0; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 0.7rem; padding: 0.15rem 1.1rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 0.7rem 0; }
.faq .faq-a { padding: 0 0 0.6rem; color: var(--ink-soft); }
.data-table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.data-table th, .data-table td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 7rem; }
.data-table th { background: var(--bg-alt); font-weight: 700; }
.table-note { font-size: 0.88rem; color: var(--muted); margin-top: -0.6rem; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 1.7rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1rem; height: 1rem; border: 2px solid var(--accent); border-radius: 4px; }
.comments { margin: 2.6rem 0 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.comments h2 { margin-top: 0; }
.note { font-size: 0.92rem; color: var(--muted); margin: 0 0 1rem; }
.empty { font-size: 0.98rem; color: var(--muted); background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 0.9rem 1rem; margin-bottom: 1.2rem; }
form label { display: block; font-weight: 650; font-size: 0.92rem; margin: 0.8rem 0 0.3rem; }
form input, form textarea, form select { width: 100%; padding: 0.65rem 0.75rem; border: 1px solid #b9cccb; border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
form textarea { min-height: 8rem; }
form input:focus, form textarea:focus, form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hp { position: absolute !important; left: -10000px !important; height: 0; overflow: hidden; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.related { margin: 2.5rem 0 1rem; }
.related .post-grid { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.deal-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; margin: 1rem 0; box-shadow: var(--shadow); }
.deal-card h3 { margin-top: 0; }
.deal-meta { font-size: 0.88rem; color: var(--muted); }
.badge { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.6rem; margin-bottom: 0.4rem; }
.emergency-bar { background: #fdeceb; border-bottom: 1px solid #f1c6c3; color: #6f1612; font-size: 0.92rem; text-align: center; padding: 0.45rem 1rem; }
.emergency-bar a { color: #6f1612; font-weight: 700; }
.prose h2 { scroll-margin-top: 5rem; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
@media print { .site-header, .site-footer, .comments, .video, .skip-link { display: none !important; } body { background: #fff; } }
