/* Vantage Pets — Fresh, Organic Editorial Aesthetic inspired by life.simplecontent.org */
:root {
  --bg: #f3f6f0;               /* Organic matcha linen tint — soft, calm, distinctly non-white */
  --card: #fbfdfa;             /* Subtle eggshell/porcelain tint for cards and callouts */
  --ink: #18281e;              /* Deep botanical evergreen ink */
  --muted: #4e6355;            /* Soft sage-slate for descriptions and secondary text */
  --accent: #1e4d34;           /* Deep classic forest green */
  --accent2: #2d7a52;          /* Vibrant organic leaf green */
  --accent-soft: #e5eee4;      /* Soft botanical tint for badges, tags, tables */
  --accent-warm: #a65823;      /* Earthy warm terracotta for highlights / tags */
  --line: #d8e2d6;             /* Crisp natural divider line */
  --max: 840px;                /* Editorial reading width */
  --radius: 14px;              /* Organic rounded corners */
  --shadow: 0 4px 18px rgba(24, 40, 30, 0.05);
  font-family: Georgia, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-family: Georgia, 'Times New Roman', Cambria, serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent2); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent); text-decoration: underline; }

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

/* Masthead Header — Centered, literary, airy */
.site-header {
  border-bottom: 3px double var(--line);
  background: var(--card);
  padding: 1.8rem 0 1.2rem;
  text-align: center;
}

.site-header .nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.brand {
  font-family: Georgia, 'Times New Roman', Cambria, serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ink);
  text-decoration: none;
}
.brand span {
  color: var(--accent2);
}
.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.site-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  font-family: Georgia, serif;
  margin: 0.2rem 0 0.8rem;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-top: 0.3rem;
}
.nav-links a {
  color: var(--accent);
  text-decoration: none;
  padding: 0.2rem 0.4rem;
}
.nav-links a:hover {
  color: var(--accent-warm);
  text-decoration: none;
}

/* Hero Section */
.hero {
  margin: 2.2rem 0 1.5rem;
  padding: 2.4rem 2rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}
.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-warm);
  background: rgba(166, 88, 35, 0.08);
  border: 1px solid rgba(166, 88, 35, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.hero h1 {
  font-family: Georgia, 'Times New Roman', Cambria, serif;
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 0.3rem 0 0.7rem;
}
.hero p {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  color: var(--muted);
  font-style: italic;
  max-width: 62ch;
  margin: 0 auto;
  line-height: 1.65;
}

/* Grid & Cards — 2 Columns Editorial (SimpleContent inspired) */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  padding: 1.2rem 0 3rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: var(--shadow);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent2);
  box-shadow: 0 10px 28px rgba(24, 40, 30, 0.09);
}

.card a img, .card > img {
  width: 100% !important;
  height: 200px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  display: block;
  border-radius: 0 !important;
  margin: 0 !important;
  transition: opacity 0.2s ease;
}
.card:hover img {
  opacity: 0.94;
}

.card h2 {
  font-family: Georgia, 'Times New Roman', Cambria, serif;
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 18px 20px 8px;
  color: var(--ink);
}
.card h2 a {
  color: var(--ink);
  text-decoration: none;
}
.card h2 a:hover {
  color: var(--accent2);
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.62;
  margin: 0 20px 22px;
  flex-grow: 1;
}

/* Featured card */
.card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
}
.card.featured a:first-child {
  height: 100%;
}
.card.featured a img {
  height: 100% !important;
  min-height: 280px;
}
.card.featured h2 {
  font-size: 1.55rem;
  margin: 24px 24px 10px;
}
.card.featured p {
  font-size: 1.05rem;
  margin: 0 24px 24px;
}

/* Article detail page */
article.page {
  padding: 2.2rem 0 3.5rem;
  max-width: 760px;
  margin: 0 auto;
}
article.page h1 {
  font-family: Georgia, 'Times New Roman', Cambria, serif;
  font-size: clamp(1.85rem, 4.2vw, 2.5rem);
  color: var(--ink);
  line-height: 1.25;
  margin: 0.4rem 0 0.8rem;
}
article.page h2 {
  font-family: Georgia, 'Times New Roman', Cambria, serif;
  font-size: 1.42rem;
  color: var(--accent);
  margin: 2.2rem 0 0.8rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
article.page h3 {
  font-family: Georgia, serif;
  font-size: 1.18rem;
  color: var(--ink);
  margin: 1.6rem 0 0.5rem;
}
article.page p {
  font-size: 1.1rem;
  line-height: 1.78;
  margin: 1rem 0;
  color: var(--ink);
}
article.page p.legal {
  font-size: 1.15rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent2);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 1.2rem 0 1.6rem;
}
article.page ul, article.page ol {
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 1rem 0;
  padding-left: 1.4rem;
}
article.page li {
  margin: 0.5rem 0;
}
article.page li::marker {
  color: var(--accent2);
}
article.page blockquote {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-warm);
  padding: 1rem 1.4rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  font-style: italic;
  font-size: 1.05rem;
}
article.page table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: 1.5rem 0;
  font-size: 0.96rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
article.page th, article.page td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
article.page tr:last-child th, article.page tr:last-child td {
  border-bottom: none;
}
article.page th {
  background: var(--accent-soft);
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

figure.hero {
  margin: 1.5rem 0 1.8rem;
  padding: 0;
}
figure.hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  border: 1px solid var(--line);
}

.crumb {
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.crumb .sep { opacity: 0.5; }
.crumb .here { color: var(--ink); font-weight: 600; }

.meta {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

/* Ad slots */
.ad-slot {
  margin: 2rem auto;
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.ad-slot:empty::before {
  content: "Advertisement";
  opacity: 0.65;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ad-slot iframe, .ad-slot > * {
  pointer-events: auto;
  max-width: 100%;
}

/* Footer */
.site-footer {
  border-top: 3px double var(--line);
  background: var(--card);
  padding: 2.2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.site-footer .foot-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.site-footer .foot-links a {
  color: var(--muted);
}
.site-footer .foot-links a:hover {
  color: var(--accent2);
}
.legal {
  max-width: 70ch;
  line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 680px) {
  .wrap { width: calc(100% - 1.5rem); }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card.featured { grid-template-columns: 1fr !important; }
  .card.featured a img { min-height: 210px; }
  .brand { font-size: 1.85rem; }
  .hero { padding: 1.8rem 1.2rem; }
  .hero h1 { font-size: 1.85rem; }
  .hero p { font-size: 1rem; }
  .nav-links { gap: 0.75rem 1rem; font-size: 0.76rem; }
  article.page { padding: 1.4rem 0 2.5rem; }
  article.page h1 { font-size: 1.65rem; }
  article.page p { font-size: 1.02rem; }
}
