/* The Daily Dish & Purr-fect Paws — plain static site, no external dependencies */
* { box-sizing: border-box; }
:root {
  --red: #cc0000;
  --red-dark: #a30000;
  --red-soft: #fdf0ec;
  --cream: #fff8f0;
  --paper: #fffdf9;
  --ink: #2b2320;
  --muted: #6f6156;
  --faint: #6f6156;
  --line: #f0e2d3;
  --gold: #d9a441;
  --shadow: 0 2px 10px rgba(60, 35, 20, .08);
  --shadow-lift: 0 10px 28px rgba(60, 35, 20, .16);
}
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65; color: var(--ink); background: var(--cream); font-size: 17px; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
img { max-width: 100%; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header { background: var(--paper); border-bottom: 3px solid var(--red);
  padding: 14px 0; position: sticky; top: 0; z-index: 10;
  box-shadow: 0 2px 12px rgba(60, 35, 20, .06); }
header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.45rem; font-weight: 700; color: var(--red); text-decoration: none; letter-spacing: .2px; }
.brand .logo { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.brand .amp { color: var(--ink); font-style: italic; }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }
nav a { margin-left: 6px; padding: 6px 12px; border-radius: 999px;
  text-decoration: none; font-weight: 600; color: var(--muted); font-size: .98rem;
  transition: background .15s, color .15s; }
nav a:hover { background: var(--red-soft); color: var(--red); }
nav a.active { background: var(--red); color: #fff; }
nav a.active:hover { color: #fff; }

main { padding: 30px 20px 56px; }

/* ---------- Headings & text ---------- */
h1, h2, h3 { font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif; color: var(--ink); }
h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.5rem; margin: 32px 0 10px; padding-bottom: 6px;
  border-bottom: 2px solid var(--line); }
h2:first-of-type { margin-top: 26px; }
h3 { color: #7a2b2b; font-size: 1.2rem; margin: 24px 0 8px; }
p { margin: 0 0 15px; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 680px; }

/* ---------- Homepage hero band ---------- */
.hero-band { background: linear-gradient(135deg, #8f0000, var(--red) 55%, #e03333);
  color: #fff; text-align: center; padding: 52px 20px 46px; }
.hero-band h1 { color: #fff; font-size: 2.6rem; margin: 0 0 12px; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.hero-band .tagline { font-size: 1.2rem; color: #ffe9e2; max-width: 640px; margin: 0 auto; line-height: 1.55; }
.hero-band .rule { width: 64px; height: 4px; background: var(--gold); border-radius: 2px; margin: 22px auto 0; }
.hero { text-align: center; padding: 18px 0 8px; }
.hero p.tagline { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 26px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 26px; align-items: start; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative;
  transition: transform .18s ease, box-shadow .18s ease; }
.badge-new { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--red); color: #fff;
  font-size: .78rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card > a { display: block; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--paper); display: block;
  transition: transform .35s ease; }
.card:hover img { transform: scale(1.04); }
.card .pad { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card h2, .card h3 { margin: 0 0 8px; font-size: 1.25rem; border-bottom: 0; padding-bottom: 0; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--red); }
.card p { color: var(--muted); font-size: .98rem; flex: 1; }
.card .read-more { font-weight: 700; text-decoration: none; font-size: .96rem; }
.card .read-more:hover { text-decoration: underline; }
.btn { display: inline-block; background: var(--red); color: #fff; padding: 11px 24px;
  border-radius: 999px; text-decoration: none; font-weight: 700; margin-top: 8px;
  box-shadow: 0 3px 10px rgba(204, 0, 0, .3); transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(204, 0, 0, .35); }

/* ---------- Article pages ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: 2.2rem; }
.article img.hero-img { width: 100%; height: auto; border-radius: 16px;
  display: block; margin: 8px 0 8px; box-shadow: var(--shadow-lift); }
figure { margin: 0 0 20px; }
figcaption { font-size: .92rem; color: var(--faint); text-align: center; font-style: italic; margin-top: 8px; }
.back { font-size: .96rem; margin-bottom: 14px; }
.back a { text-decoration: none; font-weight: 600; }
.article ul, .article ol { background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px 18px 42px; margin: 0 0 18px;
  box-shadow: var(--shadow); }
.article ul li, .article ol li { margin-bottom: 9px; }
.article ul li::marker { color: var(--red); }
.article ol li::marker { color: var(--red); font-weight: 700; }
.article ul li:last-child, .article ol li:last-child { margin-bottom: 0; }
.footnote { font-size: .88rem; color: var(--faint); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 32px; }

/* ---------- Category page header ---------- */
.page-head { background: var(--red-soft); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 28px; margin-bottom: 8px; }
.page-head h1 { margin-bottom: 6px; }
.page-head .lede { margin-bottom: 0; }

/* ---------- Footer ---------- */
footer { background: #2b2320; color: #d8cbbd; padding: 30px 0; font-size: .94rem;
  border-top: 4px solid var(--red); }
footer p { margin: 0 0 6px; }
footer strong { color: #fff; }
footer a { color: #ffb3a7; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.7rem; }
  .article h1 { font-size: 1.8rem; }
  .hero-band { padding: 40px 18px 36px; }
  .hero-band h1 { font-size: 2rem; }
  .brand { font-size: 0.8rem; flex: 1; min-width: 0; gap: 8px; }
  .brand .logo { width: 28px; height: 28px; }
  header .wrap { padding: 0 12px; }
  .nav-toggle-label { display: block; flex: none; cursor: pointer; font-size: 1.5rem; line-height: 1; color: var(--red); padding: 8px 10px; user-select: none; }
  .nav-toggle { display: block; position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 8px; }
  nav { display: none; flex-basis: 100%; }
  .nav-toggle:checked ~ nav { display: block; }
  nav a { display: block; margin: 4px 0; padding: 12px 14px; }
  .page-head { padding: 20px; }
}
