/* PawSetup — clean modern editorial design system */

:root {
  --bg: #ffffff;
  --surface: #f6f8f6;
  --surface-2: #eef2ee;
  --ink: #16241c;
  --text: #2d3a34;
  --muted: #6a766f;
  --line: #e3e8e3;
  --line-strong: #d2dad3;
  --accent: #2f7d57;
  --accent-dark: #235c40;
  --accent-soft: #e8f2ec;
  --accent-ink: #1c4631;
  --amber: #b9762f;
  --shadow-sm: 0 1px 2px rgba(22, 36, 28, 0.06);
  --shadow: 0 18px 40px rgba(22, 36, 28, 0.10);
  --radius: 14px;
  --radius-sm: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

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

h1, h2, h3 { color: var(--ink); line-height: 1.18; letter-spacing: -0.01em; }
h1 { font-family: var(--serif); font-weight: 600; }
h2 { font-family: var(--serif); font-weight: 600; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 40px, 760px); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand em {
  font-style: normal;
  color: var(--accent);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.brand-mark svg { width: 18px; height: 18px; }
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- Hero (home) ---------- */
.hero {
  background:
    radial-gradient(120% 120% at 100% 0%, var(--accent-soft), transparent 46%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding: clamp(44px, 7vw, 86px) 0;
}
.hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(34px, 5.4vw, 58px);
  text-wrap: balance;
}
.hero p {
  margin: 0 0 26px;
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--text);
  max-width: 52ch;
}
.hero-art {
  width: 100%;
  border-radius: var(--radius);
  filter: drop-shadow(0 22px 40px rgba(22, 36, 28, 0.12));
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--accent-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Section headers ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}
.section-head h2 { margin: 6px 0 0; font-size: clamp(24px, 3vw, 33px); }
.section-head p { margin: 0; color: var(--muted); max-width: 46ch; }

/* ---------- Card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.card-thumb {
  aspect-ratio: 16 / 10;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
.card-thumb svg { width: 64%; height: 64%; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.card h3 { margin: 0; font-family: var(--serif); font-size: 21px; color: var(--ink); line-height: 1.22; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-meta { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* Featured card spanning */
.featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}
.featured:hover { box-shadow: var(--shadow); }
.featured .card-thumb { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); min-height: 280px; }
.featured-body { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.featured-body h3 { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); margin: 0; color: var(--ink); line-height: 1.16; }
.featured-body p { margin: 0; color: var(--text); font-size: 17px; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--ink);
  color: #dfe8e2;
}
.trust .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: clamp(34px, 5vw, 54px) 0; }
.trust h3 { color: #fff; font-family: var(--sans); font-size: 16px; margin: 0 0 8px; }
.trust p { margin: 0; color: #aebbb3; font-size: 14px; line-height: 1.55; }

/* ---------- Article ---------- */
.article-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: clamp(34px, 5vw, 60px) 0 clamp(26px, 4vw, 44px);
}
.article-head .wrap-narrow { text-align: left; }
.article-head h1 {
  margin: 12px 0 16px;
  font-size: clamp(30px, 4.6vw, 50px);
  text-wrap: balance;
}
.article-dek {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text);
  line-height: 1.45;
  margin: 0 0 20px;
  max-width: 60ch;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 650;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.article-meta strong { color: var(--text); font-weight: 750; }

.article-hero-art {
  width: min(100% - 40px, 1000px);
  margin: clamp(22px, 4vw, 38px) auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--accent-soft);
}
.article-hero-art svg, .article-hero-art img { width: 100%; height: auto; display: block; }
.article-hero-cap {
  width: min(100% - 40px, 1000px);
  margin: 10px auto 0;
  font-size: 13px;
  color: var(--muted);
}

.article-layout {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding: clamp(36px, 6vw, 70px) 0 clamp(50px, 8vw, 90px);
}
.article-body { max-width: var(--measure); }
.article-body > p { margin: 0 0 22px; font-size: 18px; line-height: 1.75; }
.article-body h2 {
  margin: 46px 0 14px;
  font-size: clamp(23px, 2.6vw, 30px);
}
.article-body h3 { margin: 30px 0 10px; font-family: var(--sans); font-weight: 750; font-size: 19px; color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 0; list-style: none; }
.article-body li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  line-height: 1.65;
  font-size: 17px;
}
.article-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.article-body ol { counter-reset: step; }
.article-body ol li::before {
  counter-increment: step;
  content: counter(step);
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.article-body strong { color: var(--ink); }
.lead { font-size: 20px !important; line-height: 1.6 !important; color: var(--ink) !important; }

.article-body blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--accent);
  color: var(--ink);
  font-size: 19px;
}

/* table */
.spec-table { width: 100%; border-collapse: collapse; margin: 8px 0 26px; font-size: 15px; }
.spec-table caption { text-align: left; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { background: var(--surface-2); color: var(--ink); font-size: 13px; letter-spacing: 0.02em; }
.spec-table tbody tr:nth-child(even) { background: var(--surface); }

/* callout */
.callout {
  margin: 30px 0;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid #cfe5d8;
}
.callout h3 { margin: 0 0 8px; font-family: var(--sans); font-size: 16px; color: var(--accent-ink); }
.callout p { margin: 0; font-size: 16px; color: var(--accent-ink); }
.callout.warn { background: #fbf1e6; border-color: #efd9bf; }
.callout.warn h3, .callout.warn p { color: #7a4a17; }

/* ---------- Aside ---------- */
.article-aside { position: sticky; top: 86px; display: grid; gap: 18px; }
.aside-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 20px;
}
.aside-card h4 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.aside-row { padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.aside-row:first-of-type { border-top: 0; padding-top: 0; }
.aside-row strong { display: block; color: var(--accent-dark); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.aside-note { font-size: 13px; color: var(--muted); line-height: 1.55; }

.source-list { margin-top: 12px; }
.source-list li { font-size: 14px; }

/* ---------- Generic page ---------- */
.page { padding: clamp(40px, 6vw, 72px) 0 clamp(50px, 8vw, 90px); }
.page h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 12px 0 18px; }
.page h2 { font-size: clamp(21px, 2.4vw, 27px); margin: 36px 0 12px; }
.page p, .page li { font-size: 17px; line-height: 1.7; }
.page .wrap-narrow > ul { padding-left: 0; list-style: none; }
.page .wrap-narrow > ul > li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.page .wrap-narrow > ul > li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.footer-inner {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: clamp(36px, 5vw, 56px) 0 28px;
}
.footer-brand p { margin: 10px 0 0; color: var(--muted); font-size: 14px; max-width: 32ch; }
.footer-col h5 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-legal {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
  border-top: 1px solid var(--line);
  padding: 18px 0 30px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin-top: 8px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured { grid-template-columns: 1fr; }
  .featured .card-thumb { border-right: 0; border-bottom: 1px solid var(--line); min-height: 200px; }
  .trust .wrap { grid-template-columns: 1fr; gap: 16px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; order: 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav { gap: 0; }
  .nav a { padding: 8px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
}
