/* ==========================================================================
   RollinPaws — Warm earth theme
   Cream, bark brown, sunset rust, sage + matte olive drab
   ========================================================================== */

:root {
  --cream: #f7f1e6;
  --cream-dark: #efe4d2;
  --parchment: #faf6ef;
  --bark: #3d2b1f;
  --bark-soft: #5c4033;
  --saddle: #8b5a2b;
  --rust: #b85c38;
  --rust-deep: #8f3f24;
  --sage: #6b7f5a;
  --sage-light: #8fa67a;
  --sage-pale: #e4ebe0;
  /* Matte olive drab accents */
  --olive: #5c6640;
  --olive-drab: #6b7040;
  --olive-deep: #454c32;
  --olive-soft: #8a9170;
  --olive-pale: #e6e8dc;
  --denim: #4a6fa5;
  --gold: #c9a227;
  --gold-soft: #e8d5a3;
  --muted: #7a6a5a;
  --border: #d9cbb8;
  --shadow: 0 10px 30px rgba(61, 43, 31, 0.08);
  --shadow-lg: 0 18px 50px rgba(61, 43, 31, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 78px;
}

*,
*::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(--bark);
  background:
    radial-gradient(ellipse at top, rgba(201, 162, 39, 0.08), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--parchment) 40%, var(--cream-dark) 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rust-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--rust);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--bark);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 2.5vw, 1.85rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--bark);
  color: var(--cream);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ── Top bar ──────────────────────────────────────────────── */

.top-bar {
  background: var(--olive-deep);
  color: var(--olive-pale);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}

.top-bar a {
  color: var(--olive-pale);
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 500;
}

.top-bar a:hover {
  color: #fff;
}

/* ── Header / Nav ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(61, 43, 31, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--bark);
}

.brand-mark {
  color: var(--olive-drab);
  display: flex;
  flex-shrink: 0;
}

.brand-mark .brand-paw {
  display: block;
  width: 44px;
  height: 44px;
}

.brand:hover .brand-mark {
  color: var(--rust);
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-owner {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav > ul > li {
  position: relative;
}

.site-nav a,
.site-nav .nav-dropdown-btn {
  display: block;
  padding: 0.55rem 0.75rem;
  color: var(--bark-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  font-family: var(--font-body);
  background: transparent;
  border: 0;
  cursor: pointer;
  line-height: inherit;
}

.site-nav .nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  text-align: left;
}

.site-nav a:hover,
.site-nav a.is-active,
.site-nav .nav-dropdown-btn:hover,
.site-nav .nav-dropdown-btn.is-active {
  color: var(--rust-deep);
  background: rgba(184, 92, 56, 0.1);
}

.nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.has-dropdown.is-open .nav-caret {
  transform: rotate(180deg);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.4rem;
  z-index: 50;
}

/* Desktop: hover opens; click also keeps open via .is-open */
@media (hover: hover) and (pointer: fine) {
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    display: block;
  }
}

.has-dropdown.is-open .dropdown {
  display: block;
}

.dropdown a {
  border-radius: 6px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bark);
}

/* ── Hero (full-page photo; copy at top above the cat) ───── */

.hero {
  position: relative;
  /* Fill the viewport under top bar + sticky header (~7rem) */
  min-height: calc(100dvh - 7rem);
  min-height: calc(100vh - 7rem);
  padding: 2.25rem 0 3rem;
  overflow: hidden;
  display: flex;
  align-items: flex-start; /* copy sits above the cat */
  background-color: var(--olive-deep);
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  /* Cat on post sits mid/lower-right of the frame */
  background-position: 68% 52%;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Stronger top veil for type; clear lower area so the cat reads cleanly */
  background:
    linear-gradient(
      180deg,
      rgba(28, 24, 16, 0.72) 0%,
      rgba(28, 24, 16, 0.42) 18%,
      rgba(28, 24, 16, 0.12) 42%,
      transparent 58%
    ),
    linear-gradient(
      90deg,
      rgba(28, 24, 16, 0.35) 0%,
      rgba(28, 24, 16, 0.12) 40%,
      transparent 65%
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 36rem;
  width: 100%;
  margin-top: 0.25rem;
}

.hero-copy {
  max-width: 32rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-drab);
  margin-bottom: 0.55rem;
}

.hero .eyebrow {
  color: rgba(232, 232, 210, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  font-weight: 700;
  color: #fffaf3;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
  max-width: 22ch;
}

.hero .lead {
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 248, 238, 0.88);
  max-width: 32rem;
  margin-bottom: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero .lead strong {
  color: #fff;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.hero .btn {
  padding: 0.55rem 1.05rem;
  font-size: 0.88rem;
}

/* Ghost / secondary buttons on photo hero */
.hero .btn-ghost {
  background: rgba(255, 250, 243, 0.1);
  color: #fffaf3;
  border-color: rgba(255, 250, 243, 0.45);
  backdrop-filter: blur(4px);
}

.hero .btn-ghost:hover {
  background: rgba(255, 250, 243, 0.2);
  color: #fff;
  border-color: #fff;
}

.hero .btn-secondary {
  background: rgba(247, 241, 230, 0.92);
  color: var(--bark);
  border-color: rgba(247, 241, 230, 0.92);
}

.hero .btn-secondary:hover {
  background: #fff;
  color: var(--bark);
}

.hero-card {
  background: rgba(250, 246, 239, 0.88);
  border: 1px solid rgba(255, 250, 243, 0.28);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 12px 32px rgba(20, 12, 6, 0.22);
  position: relative;
  backdrop-filter: blur(6px);
  font-size: 0.92rem;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--olive-drab), var(--sage), var(--rust));
}

.hero-card h2 {
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--bark-soft);
}

.hero-card li {
  margin-bottom: 0.28rem;
  font-size: 0.9rem;
}

.hero-card .eyebrow {
  color: var(--olive-drab);
  text-shadow: none;
  font-size: 0.68rem;
  margin-bottom: 0.35rem;
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--rust);
  color: #fff;
  border-color: var(--rust);
}

.btn-primary:hover {
  background: var(--rust-deep);
  border-color: var(--rust-deep);
  color: #fff;
}

.btn-secondary {
  background: var(--olive-drab);
  color: #fff;
  border-color: var(--olive-drab);
}

.btn-secondary:hover {
  background: var(--olive-deep);
  border-color: var(--olive-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--bark);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--saddle);
  color: var(--saddle);
  background: rgba(139, 90, 43, 0.06);
}

.btn-danger {
  background: #9b2c2c;
  color: #fff;
  border-color: #9b2c2c;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ── Sections ─────────────────────────────────────────────── */

.section {
  padding: 3rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.section-alt {
  background: linear-gradient(180deg, rgba(107, 112, 64, 0.1), rgba(107, 127, 90, 0.04));
  border-block: 1px solid rgba(92, 102, 64, 0.18);
}

.section-olive {
  background:
    linear-gradient(180deg, rgba(92, 102, 64, 0.14) 0%, rgba(107, 112, 64, 0.06) 100%);
  border-block: 1px solid rgba(69, 76, 50, 0.16);
}

.section-olive .eyebrow {
  color: var(--olive);
}

.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(184, 92, 56, 0.06), transparent 50%),
    var(--cream);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
}

.page-hero .lead {
  max-width: 40rem;
  color: var(--bark-soft);
  margin: 0;
}

/* ── Cards / grids ────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.card-hover {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  padding: 0;
}

.post-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card h3 {
  margin: 0.4rem 0 0.6rem;
  font-size: 1.15rem;
}

.post-card h3 a,
.post-card-body h3 {
  color: var(--bark);
  text-decoration: none;
}

.post-card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
}

.feature-card {
  text-align: left;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.feature-card > .feature-body {
  padding: 1.25rem 1.35rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-card > .feature-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.feature-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  background: var(--cream-dark);
}

.feature-card.dogs .feature-media { object-position: center 55%; }
.feature-card.cats .feature-media { object-position: center 45%; }
.feature-card.health .feature-media { object-position: center 40%; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
  background: var(--sage-pale);
}

.feature-card.dogs .feature-icon { background: #f0e0d4; }
.feature-card.cats .feature-icon { background: #e0e8f0; }
.feature-card.health .feature-icon { background: var(--sage-pale); }

/* Photo figure used on tip / about pages */
.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--cream-dark);
  margin: 0 0 1rem;
}

.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.photo-frame.portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  max-height: 480px;
  width: 100%;
}

.photo-frame.landscape img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  max-height: 360px;
  width: 100%;
}

.photo-frame figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--parchment);
  border-top: 1px solid var(--border);
}

.photo-band {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 0 0 2rem;
}

.photo-band img {
  width: 100%;
  display: block;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 40%;
  max-height: 380px;
}

.photo-band figcaption {
  padding: 0.75rem 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--parchment);
  border-top: 1px solid var(--border);
}

/* Shop / lifestyle teaser cards with top image */
.media-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.media-card .media-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.media-card .media-card-body {
  padding: 1.25rem 1.35rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.media-card .media-card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tip-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.75rem;
  border-bottom: 1px dashed var(--border);
}

.tip-list li:last-child {
  border-bottom: 0;
}

.tip-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--rust);
  font-size: 0.85rem;
  top: 0.95rem;
}

/* ── Pinterest-style cat tip pins ─────────────────────────── */

.pin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.pin-card {
  display: flex;
  flex-direction: column;
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 100%;
}

.pin-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.pin-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--olive-pale);
}

.pin-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pin-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(45, 48, 32, 0.45) 100%);
  pointer-events: none;
}

.pin-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  background: rgba(69, 76, 50, 0.88);
  color: var(--olive-pale);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.pin-card-body {
  padding: 0.95rem 1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--olive-drab);
}

.pin-card-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--bark);
}

.pin-card-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
}

.pin-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--olive);
  letter-spacing: 0.02em;
}

.pin-card-footer .pin-icon {
  opacity: 0.75;
}

@media (max-width: 960px) {
  .pin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .pin-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Badges ───────────────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--cream-dark);
  color: var(--bark-soft);
}

.badge-dogs { background: #f0d9c8; color: #7a3e1d; }
.badge-cats { background: #d5e3f2; color: #2f4d6f; }
.badge-health { background: #dce8d4; color: #3d5530; }
.badge-ranch { background: #e8dcc0; color: #6b4e1f; }
.badge-life { background: #e8d8e4; color: #5c3d55; }
.badge-default { background: var(--cream-dark); }

/* ── Blog layout ──────────────────────────────────────────── */

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  padding: 2.5rem 0 3.5rem;
  align-items: start;
}

.sidebar .card {
  margin-bottom: 1.25rem;
}

.sidebar h3 {
  margin-top: 0;
  font-size: 1rem;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li {
  margin-bottom: 0.45rem;
}

.sidebar a {
  text-decoration: none;
  font-weight: 500;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-bar a,
.filter-chip {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--bark-soft);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--parchment);
}

.filter-bar a.is-active,
.filter-chip.is-active {
  background: var(--bark);
  border-color: var(--bark);
  color: var(--cream);
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input {
  flex: 1;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  min-width: 2.4rem;
  height: 2.4rem;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--bark);
  font-weight: 600;
  background: var(--parchment);
}

.pagination a:hover {
  border-color: var(--rust);
  color: var(--rust);
}

.pagination .is-current {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
}

/* ── Single post ──────────────────────────────────────────── */

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
}

.article-header {
  margin-bottom: 1.75rem;
}

.article-body {
  font-size: 1.08rem;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 1.75rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.25rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--rust);
  background: rgba(184, 92, 56, 0.06);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--bark-soft);
}

/* ── Shop / affiliate ─────────────────────────────────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-card .price {
  font-weight: 700;
  color: var(--saddle);
  margin: 0.5rem 0;
}

.product-card .tag {
  font-size: 0.78rem;
  color: var(--sage);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.disclaimer {
  font-size: 0.88rem;
  color: var(--muted);
  background: rgba(139, 90, 43, 0.06);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin: 1.5rem 0;
}

/* ── CTA band ─────────────────────────────────────────────── */

.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--bark) 0%, #2a1c14 100%);
  color: var(--cream);
  padding: 2.75rem 0;
  margin-top: 1rem;
  overflow: hidden;
}

/* Sunset cat photo behind CTA (home + shared) */
.cta-band.has-photo {
  background-color: #1a120c;
  background-image: url("../images/cats-sunset.jpg");
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
}

.cta-band.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(26, 18, 12, 0.88) 0%, rgba(26, 18, 12, 0.72) 48%, rgba(26, 18, 12, 0.45) 100%),
    linear-gradient(180deg, rgba(20, 12, 8, 0.25) 0%, rgba(20, 12, 8, 0.55) 100%);
  pointer-events: none;
}

.cta-band.has-photo .cta-inner {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: var(--cream);
  margin: 0 0 0.5rem;
}

.cta-band p {
  color: var(--gold-soft);
  max-width: 36rem;
}

.cta-band .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bark);
}

.cta-band .btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--bark);
}

.cta-band .btn-ghost {
  border-color: rgba(247, 241, 230, 0.35);
  color: var(--cream);
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cream);
  color: #fff;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  background: linear-gradient(180deg, #342820 0%, #2a2218 100%);
  color: #d9cbb8;
  margin-top: 0;
}

.footer-fence {
  height: 10px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--olive-drab) 0 12px,
      var(--olive-soft) 12px 14px,
      transparent 14px 22px
    );
  opacity: 0.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 1.75rem;
  padding: 2.75rem 0 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  color: var(--cream);
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.footer-tagline {
  color: var(--olive-soft);
  font-size: 0.9rem;
}

.footer-col h3 {
  color: var(--olive-soft);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  color: #e8dcc8;
  text-decoration: none;
  font-weight: 500;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-pin-note {
  font-size: 0.85rem;
  margin-top: 0.85rem;
  color: #a89880;
}

.footer-bottom {
  border-top: 1px solid rgba(217, 203, 184, 0.15);
  padding: 1rem 0 1.25rem;
  font-size: 0.85rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  color: #a89880;
}

/* ── Forms ────────────────────────────────────────────────── */

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  color: var(--bark-soft);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="search"],
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  color: var(--bark);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(184, 92, 56, 0.35);
  border-color: var(--rust);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.stack-form {
  display: grid;
  gap: 0.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.help-text {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.25rem;
}

/* ── Alerts ───────────────────────────────────────────────── */

.alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}

.alert p { margin: 0.25rem 0; }

.alert-success {
  background: #e7f2e4;
  border-color: #b5d4aa;
  color: #2f4a28;
}

.alert-error {
  background: #f8e6e3;
  border-color: #e0b0a6;
  color: #7a2e22;
}

.alert-info {
  background: #e8eef6;
  border-color: #b8c9e0;
  color: #2a4060;
}

/* ── Admin ────────────────────────────────────────────────── */

body.admin-body {
  background: #efe6d8;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bark);
  color: var(--cream);
  padding: 1.5rem 1rem;
}

.admin-sidebar .brand-name {
  color: var(--cream);
  font-size: 1.2rem;
}

.admin-sidebar .brand-owner {
  color: var(--gold-soft);
}

.admin-nav {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.admin-nav a {
  display: block;
  color: #e0d2c0;
  text-decoration: none;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.admin-nav a:hover,
.admin-nav a.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-main {
  padding: 1.75rem;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.admin-top h1 {
  margin: 0;
  font-size: 1.6rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.stat-card .num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--rust);
}

.stat-card .label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: rgba(61, 43, 31, 0.04);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-published {
  background: #dce8d4;
  color: #3d5530;
}

.status-draft {
  background: #efe4d2;
  color: #6b4e1f;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.login-card {
  width: min(100%, 420px);
}

.login-card h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.75rem;
}

/* ── Install ──────────────────────────────────────────────── */

.page-install {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.install-wrap {
  width: min(100%, 520px);
}

.install-steps {
  background: rgba(107, 127, 90, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 1rem 2rem;
  margin-bottom: 1.25rem;
}

.install-steps li {
  margin-bottom: 0.4rem;
}

/* ── About ────────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0 3rem;
}

.portrait-card {
  background: linear-gradient(160deg, var(--olive-pale), var(--cream-dark));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait-card .portrait-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  max-height: 420px;
}

.portrait-card .portrait-meta {
  padding: 1.25rem 1.5rem 1.5rem;
  background: linear-gradient(160deg, var(--olive-pale), var(--cream-dark));
  border-top: 3px solid var(--olive-drab);
}

.portrait-card .big-paw {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 1rem;
}

/* Optional photo page heroes (tips etc.) */
.page-hero.has-photo {
  position: relative;
  border-bottom: 0;
  padding: 3.25rem 0 2.5rem;
  background-color: var(--bark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.page-hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(30, 20, 12, 0.82) 0%,
    rgba(45, 30, 18, 0.65) 50%,
    rgba(61, 43, 31, 0.4) 100%
  );
  pointer-events: none;
}

.page-hero.has-photo .container {
  position: relative;
  z-index: 1;
}

.page-hero.has-photo h1 {
  color: #fffaf3;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.page-hero.has-photo .lead {
  color: rgba(255, 248, 238, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.page-hero.has-photo .eyebrow {
  color: var(--gold-soft);
}

.page-hero.bg-cats {
  background-image: url("../images/cats-four-counter.jpg");
  background-position: center 55%;
}

.page-hero.bg-dogs {
  background-image: url("../images/about-family.jpg");
  background-position: center 40%;
}

.page-hero.bg-healthy {
  background-image: url("../images/cats-sunset.jpg");
  background-position: center 45%;
}

.page-hero.bg-about {
  background-image: url("../images/about-cindy-horse.jpg");
  background-position: center 30%;
}

.about-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .about-photo-grid {
    grid-template-columns: 1fr;
  }
}

.page-hero.bg-shop {
  background-image: url("../images/lifestyle-guitar-cat.jpg");
  background-position: center 40%;
}

/* ── Empty state ──────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero {
    min-height: calc(100dvh - 6.5rem);
    min-height: calc(100vh - 6.5rem);
    padding: 1.75rem 0 2.5rem;
    background-position: 65% 50%;
    align-items: flex-start;
  }

  .hero-inner,
  .blog-layout,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    max-width: 100%;
  }

  .card-grid,
  .feature-grid,
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    padding: 1rem;
  }

  .admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 1rem;
  }
}

/* Tip page two-column stacks on smaller screens */
.tips-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 720px) {
  .tips-layout {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--parchment);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.75rem 1rem 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding-left: 0.75rem;
  }

  .has-dropdown.is-open .dropdown {
    display: block;
  }

  .card-grid,
  .feature-grid,
  .product-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .top-bar-tagline {
    display: none;
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
