/* ============================================================
   KENNEL, shared design tokens copied from index.html
   ============================================================ */
:root {
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
    --font-display: "Space Grotesk", "Inter", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    --container: min(880px, calc(100% - clamp(20px, 4vw, 56px)));
    --container-wide: min(1480px, calc(100% - clamp(20px, 4vw, 56px)));
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 360ms;
}

[data-theme="dark"], :root {
    --bg: #07060f;
    --bg-2: #0c0a1c;
    --bg-3: #15102e;
    --surface: rgba(22, 17, 44, 0.62);
    --surface-strong: rgba(28, 22, 56, 0.92);
    --text: #f6f1ff;
    --text-strong: #ffffff;
    --muted: #aea0d3;
    --line: rgba(168, 132, 255, 0.16);
    --line-strong: rgba(168, 132, 255, 0.36);
    --accent: #a855f7;
    --accent-2: #c084fc;
    --accent-3: #d464e1;
    --accent-deep: #6d28d9;
    --accent-glow: rgba(168, 85, 247, 0.45);
    --accent-soft: rgba(139, 92, 246, 0.12);
    --success: #10b981;
    --warn: #f59e0b;
    --shadow-lg: 0 30px 80px rgba(8, 4, 30, 0.55), 0 8px 24px rgba(8, 4, 30, 0.32);
    --shadow-glow: 0 0 60px rgba(168, 85, 247, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    font-size: clamp(16px, 0.95vw + 8px, 19px);
    line-height: 1.65;
    background: var(--bg);
    min-height: 100vh;
}

a { color: var(--accent-2); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 200ms var(--ease); }
a:hover { border-color: var(--accent); }

/* ============================================================
   ARTICLE LAYOUT
   ============================================================ */
.kennel-article { padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px); }
.kennel-article .container { max-width: var(--container); margin: 0 auto; }

.article-kicker {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    border: 1px solid var(--line-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 20px;
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text-strong);
    margin: 0 0 20px;
    font-weight: 700;
}

.article-dek {
    font-size: clamp(18px, 1.4vw, 22px);
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 30px;
}

.article-byline {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.article-hero {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    border: 1px solid var(--line);
}

.article-body { font-size: 18px; line-height: 1.75; }
.article-body h2 { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); margin-top: 56px; color: var(--text-strong); }
.article-body h3 { font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 26px); margin-top: 40px; color: var(--text-strong); }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body code { font-family: var(--font-mono); background: var(--accent-soft); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.article-body pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 14px; }
.article-body blockquote { border-left: 3px solid var(--accent); padding: 4px 20px; margin: 24px 0; color: var(--muted); font-style: italic; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.article-body th, .article-body td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.article-body th { background: var(--accent-soft); color: var(--text-strong); font-weight: 700; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 20px 0; }

.callout {
    background: var(--surface-strong);
    border: 1px solid var(--line-strong);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 32px 0;
}
.callout strong { color: var(--accent-2); }

/* ============================================================
   CITATIONS / END BLOCKS
   ============================================================ */
.citations { margin: 48px 0 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.citations h3 { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 16px; }
.citations ol { padding-left: 20px; font-size: 15px; color: var(--muted); }
.citations li { margin-bottom: 8px; }
.citations a { color: var(--accent-2); }

/* ============================================================
   END-OF-ARTICLE CTA
   ============================================================ */
.article-cta {
    margin: 56px 0 0;
    padding: 36px;
    background: var(--surface-strong);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.article-cta h3 { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 32px); margin: 0 0 12px; color: var(--text-strong); }
.article-cta p { font-size: 17px; color: var(--muted); margin: 0 auto 24px; max-width: 540px; }
.article-cta .btn {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: white;
    border-radius: var(--radius-pill);
    font-weight: 700;
    border: none;
    text-decoration: none;
    box-shadow: var(--shadow-glow);
    transition: transform 200ms var(--ease);
}
.article-cta .btn:hover { transform: translateY(-2px); }

/* ============================================================
   RELATED ARTICLES
   ============================================================ */
.related-strip { margin-top: 56px; }
.related-strip h3 { font-family: var(--font-display); font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.related-card {
    display: block;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--text);
    transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.related-card strong { display: block; color: var(--text-strong); margin-bottom: 6px; font-size: 16px; }
.related-card span { font-size: 13px; color: var(--muted); }

/* ============================================================
   INDEX LISTING PAGE
   ============================================================ */
.kennel-index { padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px); }
.kennel-index .container { max-width: var(--container-wide); margin: 0 auto; }
.kennel-hero { text-align: center; margin-bottom: 60px; }
.kennel-hero h1 { font-family: var(--font-display); font-size: clamp(48px, 6vw, 84px); margin: 0 0 16px; color: var(--text-strong); letter-spacing: -0.02em; }
.kennel-hero p { font-size: clamp(18px, 1.4vw, 22px); color: var(--muted); max-width: 640px; margin: 0 auto; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.article-card {
    display: block;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--text);
    transition: border-color 280ms var(--ease), transform 280ms var(--ease);
}
.article-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.article-card .meta { padding: 24px; }
.article-card .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.article-card .tag { font-size: 11px; padding: 4px 10px; background: var(--accent-soft); border-radius: var(--radius-pill); color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.06em; }
.article-card h2 { font-family: var(--font-display); font-size: 22px; margin: 0 0 8px; color: var(--text-strong); line-height: 1.2; }
.article-card .dek { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0 0 12px; }
.article-card time { font-size: 12px; color: var(--muted); }

/* ============================================================
   KENNEL NAV (lightweight, used in article + index pages)
   ============================================================ */
.kennel-nav { border-bottom: 1px solid var(--line); background: rgba(7, 6, 15, 0.75); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 50; }
.kennel-nav .container { max-width: var(--container-wide); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.kennel-nav .brand { display: flex; gap: 12px; align-items: center; border: 0; color: var(--text-strong); }
.kennel-nav .brand strong { font-family: var(--font-display); font-weight: 700; }
.kennel-nav nav { display: flex; gap: 24px; align-items: center; }
.kennel-nav nav a { border: 0; color: var(--text); font-size: 15px; }
.kennel-nav nav a:hover { color: var(--accent-2); }
.kennel-nav nav .nav-cta { background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: white; padding: 10px 18px; border-radius: var(--radius-pill); font-weight: 700; }

/* ============================================================
   FOOTER + DISCLAIMER STRIP (matches site footer)
   ============================================================ */
.kennel-footer { padding: 40px 0; border-top: 1px solid var(--line); margin-top: 80px; font-size: 13px; color: var(--muted); text-align: center; }
.kennel-footer .container { max-width: var(--container-wide); margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.kennel-footer a { color: var(--muted); }

@media (max-width: 720px) {
    .kennel-nav nav { gap: 14px; }
    .kennel-nav nav a:not(.nav-cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
