/* Connected Pet Guide: a collar in close-up. Night-dark chrome, stitched leather strap,
   brass ID tag and a green status light. Lexend for UI and headings, Spectral for reading. */

@font-face { font-family: "Lexend"; src: url("/assets/fonts/lexend-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("/assets/fonts/lexend-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --night: #14181d;
  --night-2: #1e242b;
  --night-3: #262d35;
  --night-line: #3a434d;
  --on-night: #eef1f4;
  --on-night-muted: #b9c1ca;
  --leather: #9c5a2c;
  --leather-dk: #6e3d1c;
  --leather-ink: #8a4a1f;
  --thread: #f0dcbc;
  --brass: #d6b25a;
  --brass-bg: #f7efd9;
  --led: #3ddc97;
  --led-ink: #0d6e48;
  --page: #e8eaed;
  --card: #ffffff;
  --ink: #1b1f24;
  --muted: #4a525c;
  --line: #c9ced5;
  --safety: #7a3300;
  --safety-bg: #fbeedd;
  --sans: "Lexend", "Segoe UI", system-ui, sans-serif;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --wrap: min(1100px, calc(100% - 2rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--ink); background: var(--page); font-family: var(--serif); font-size: 1.12rem; line-height: 1.65; }
a { color: var(--led-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--leather-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--led-ink); outline-offset: 3px; border-radius: 2px; }
.banner :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--led); }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--led); color: var(--night); padding: 0.5rem 0.8rem; font-family: var(--sans); font-weight: 600; z-index: 10; }
.skip:focus { top: 0.5rem; }

/* Signature: the collar strap. Leather band, stitched both edges, a brass ring at the end. */
.strap { position: relative; height: 16px; background: linear-gradient(var(--leather-dk) 0 2px, var(--leather) 2px calc(100% - 2px), var(--leather-dk) calc(100% - 2px)); }
.strap::before { content: ""; position: absolute; inset: 4px 0; border-block: 1.5px dashed var(--thread); opacity: 0.85; }
.strap::after { content: ""; position: absolute; right: max(1rem, calc((100% - 1100px) / 2)); top: 50%; width: 22px; height: 22px; margin-top: -11px; border: 4px solid var(--brass); border-radius: 50%; background: transparent; }

/* Cookie choice: in document flow at the top, never over tools or text. */
.banner { display: flex; justify-content: space-between; gap: 0.8rem 1.2rem; align-items: center; flex-wrap: wrap; background: var(--night-3); color: var(--on-night); padding: 0.6rem max(1rem, calc((100% - 1100px) / 2)); font-family: var(--sans); font-size: 0.9rem; }
.banner p { margin: 0; max-width: 46rem; }
.banner a { color: var(--led); }
.banner .actions { margin: 0; gap: 0.5rem; }
.banner button.choice { min-width: 6.5rem; min-height: 40px; background: transparent; color: var(--on-night); border: 2px solid var(--on-night-muted); }
.banner button.choice:hover { border-color: var(--led); color: var(--led); }
.banner[hidden], [hidden], html[data-consent-saved] .banner { display: none !important; }

/* Header */
.site-header { background: var(--night); color: var(--on-night); }
.site-header .bar { width: var(--wrap); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; gap: 0.8rem 1.5rem; flex-wrap: wrap; padding: 1rem 0; }
.brand { display: flex; gap: 0.75rem; align-items: center; text-decoration: none; color: var(--on-night); }
.brand:hover { color: var(--on-night); }
.mark { width: 44px; height: 44px; flex: none; }
.wordmark { display: flex; flex-direction: column; font-family: var(--sans); line-height: 1.05; }
.wm-top { font-size: 0.72rem; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase; color: var(--brass); }
.wm-main { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.3rem; font-family: var(--sans); }
.site-header nav a { color: var(--on-night); text-decoration: none; font-size: 0.95rem; padding: 0.35rem 0; display: inline-flex; align-items: center; gap: 0.4rem; }
.site-header nav a:hover { color: var(--led); }
.site-header nav a[aria-current="page"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.2); }

main { width: var(--wrap); margin-inline: auto; padding-top: 1.2rem; }

h1, h2, h3 { font-family: var(--sans); line-height: 1.18; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 0 0 0.7rem; }
.eyebrow, .kicker { font-family: var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--leather-ink); font-size: 0.75rem; font-weight: 600; margin: 0 0 0.5rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.dek, .lede { font-size: 1.2rem; color: var(--muted); }

/* Affiliate line: a small brass tag clipped to the top of the page */
.disclosure { position: relative; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--brass); padding: 0.7rem 1rem 0.7rem 1.1rem; margin: 0; font-family: var(--sans); font-size: 0.85rem; line-height: 1.55; color: var(--muted); border-radius: 0 6px 6px 0; }
.disclosure a { color: var(--led-ink); }

/* Home hero: night panel with the collar drawing */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center; margin: 1.2rem 0 0; padding: clamp(1.5rem, 4vw, 3rem); background: var(--night); color: var(--on-night); border-radius: 6px 6px 0 0; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 14ch; }
.hero .eyebrow { color: var(--brass); }
.hero .lede { color: var(--on-night-muted); font-size: 1.15rem; }
.hero-art { margin: 0; }
.hero-art svg { width: 100%; height: auto; display: block; border-radius: 6px; }
.hero-art figcaption { font-size: 0.95rem; color: var(--on-night-muted); margin-top: 0.7rem; font-style: italic; }
.hero + .principles { margin-top: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.button, button.primary, button.choice {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.55rem 1.15rem;
  border-radius: 999px; text-decoration: none; border: 2px solid var(--night); font-family: var(--sans); font-size: 0.95rem; font-weight: 600; cursor: pointer;
}
.button, button.primary { background: var(--night); color: #fff; }
.button:hover, button.primary:hover { background: var(--night-3); color: #fff; }
.hero .button { background: var(--led); border-color: var(--led); color: var(--night); }
.hero .button:hover { background: #6be8b1; border-color: #6be8b1; color: var(--night); }
.hero .button.secondary { background: transparent; color: var(--on-night); border-color: var(--on-night-muted); }
.hero .button.secondary:hover { border-color: var(--led); color: var(--led); }
.button.secondary { background: transparent; color: var(--night); }

/* Principles: three engraved tag plates under the hero, joined by the strap */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--night-2); color: var(--on-night); border-radius: 0 0 6px 6px; margin: 0 0 3rem; border-top: 16px solid var(--leather); box-shadow: inset 0 4px 0 -2px var(--thread); }
.principles div { padding: 1.2rem 1.4rem 1.3rem; border-left: 1px dashed var(--night-line); }
.principles div:first-child { border-left: 0; }
.principles strong { font-family: var(--sans); font-weight: 600; color: var(--brass); font-size: 1rem; }
.principles p { margin: 0.35rem 0 0; color: var(--on-night-muted); font-size: 1rem; }

.section-head { margin: 0 0 1.2rem; }
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }

/* Buying check: three ID tags hung from one stitched strap */
.buying-check { margin: 0 0 3.2rem; }
.check-tags { list-style: none; margin: 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; position: relative; }
.check-tags::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--leather); border-block: 2px solid var(--leather-dk); box-shadow: inset 0 3px 0 -1.5px var(--thread), inset 0 -3px 0 -1.5px var(--thread); }
.check-tags li { position: relative; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--brass); border-radius: 4px 4px 22px 22px; padding: 1.6rem 1.3rem 1.2rem; }
.check-tags li::before { content: ""; position: absolute; top: -24px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border: 4px solid var(--brass); border-radius: 50%; background: var(--page); }
.check-tags li::after { content: ""; position: absolute; top: 0.6rem; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--page); border: 1px solid var(--line); }
.tag-label { margin: 0 0 0.4rem; font-family: var(--sans); font-weight: 600; font-size: 1.1rem; color: var(--ink); text-align: center; }
.check-tags p { margin: 0 0 0.6rem; color: var(--muted); font-size: 1.02rem; }
.tag-links { display: grid; gap: 0.25rem; margin: 0.8rem 0 0 !important; padding-top: 0.7rem; border-top: 1px dashed var(--line); font-family: var(--sans); font-size: 0.9rem; }

/* Directory */
.directory { margin-bottom: 3rem; }
.dir-row { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; border-top: 1px solid var(--line); padding: 1.1rem 0; }
.dir-topic { align-self: start; margin: 0.25rem 0 0; font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; display: flex; align-items: center; gap: 0.5rem; }
.dir-topic::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--brass); }
.dir-row ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.dir-row a { display: block; text-decoration: none; color: inherit; }
.dir-row a strong { display: block; font-family: var(--sans); color: var(--ink); font-size: 1.15rem; font-weight: 600; }
.dir-row a span { color: var(--muted); }
.dir-row a:hover strong { color: var(--led-ink); text-decoration: underline; }
.growing { border-top: 1px solid var(--line); padding-top: 1rem; color: var(--muted); }

/* Cards: a tag-ring punched in the corner */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { position: relative; display: block; padding: 1.1rem 1.15rem 1.1rem 2.6rem; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.card::before { content: ""; position: absolute; left: 0.95rem; top: 1.2rem; width: 9px; height: 9px; border-radius: 50%; border: 3px solid var(--brass); }
.card:hover { border-color: var(--night); }
.card:hover::before { border-color: var(--led-ink); }
.card span { font-family: var(--sans); color: var(--leather-ink); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.card strong { display: block; font-family: var(--sans); font-size: 1.08rem; color: var(--ink); margin: 0.25rem 0; font-weight: 600; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Articles */
.page-disclosure { margin: 0 0 0; }
.article { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 2rem clamp(1rem, 4vw, 3rem); margin: 1rem 0 3rem; }
.article > h1 + .dek, .article > h1 + .meta { margin-top: 0; }
.prose { max-width: 44rem; }
.article-hero, .diagram { margin: 1.25rem 0; max-width: 44rem; }
.article-hero img, .diagram img, .hub-art svg { display: block; width: 100%; height: auto; border-radius: 6px; }
.article-hero figcaption, .hub-art figcaption { color: var(--muted); font-size: 0.95rem; font-style: italic; margin-top: 0.4rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; padding-top: 0.9rem; position: relative; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 3.2rem; height: 5px; background: var(--leather); border-radius: 3px; box-shadow: 0.9rem 0 0 -1px var(--brass); }
.prose h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.prose li { margin: 0.3rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.98rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--sans); font-size: 0.9rem; color: var(--ink); }
.hub-art { margin: 1.5rem 0 2rem; }
.alphabet { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 1.25rem 0; font-family: var(--sans); }
.alphabet a { min-width: 2.2rem; min-height: 2.2rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; font-size: 0.9rem; }
.alphabet a:hover { border-color: var(--led-ink); }
.glossary h2 { scroll-margin-top: 1rem; }
.meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; color: var(--muted); font-family: var(--sans); font-size: 0.85rem; }
blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--brass); color: var(--muted); }
code { background: var(--page); padding: 0.05rem 0.3rem; border-radius: 4px; font-size: 0.9em; }
.embed-code { max-width: 100%; overflow-x: auto; margin: 0.8rem 0 1.5rem; padding: 1rem; background: var(--page); border: 1px solid var(--line); border-radius: 6px; font-size: 0.82rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.embed-code code { padding: 0; background: transparent; }

.stop { background: var(--safety-bg); border-left: 6px solid var(--safety); padding: 0.4rem 1.1rem; margin: 1.2rem 0; border-radius: 0 6px 6px 0; }
.stop h2, .stop h3 { color: var(--safety); }
.stop h2::before { display: none; }
.note { background: var(--page); border-left: 6px solid var(--led-ink); padding: 0.4rem 1.1rem; margin: 1.2rem 0; border-radius: 0 6px 6px 0; }
.product { border: 1px solid var(--line); border-top: 5px solid var(--brass); border-radius: 4px 4px 14px 14px; padding: 0.4rem 1.1rem; margin: 1rem 0; background: var(--brass-bg); }
.product p:first-child strong { font-family: var(--sans); color: var(--ink); font-size: 1.05rem; }
.untested { font-size: 0.95rem; color: var(--muted); font-style: italic; }
.related { margin-top: 2.5rem; padding-top: 0.5rem; }
.related h2 { font-size: 1.3rem; }

/* Forms and the subscription planner */
.form, .check-tool { background: var(--page); border: 1px solid var(--line); border-radius: 6px; padding: 1.1rem 1.2rem; display: grid; gap: 0.8rem; margin: 1.2rem 0; }
#planner { scroll-margin-top: 1rem; border-top: 6px solid var(--leather); }
.check-tool fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.check-tool legend { font-family: var(--sans); font-weight: 600; margin-bottom: 0.4rem; }
.check-tool output { display: block; background: var(--night); color: var(--on-night); border-radius: 6px; padding: 0.8rem 1rem; font-family: var(--sans); font-size: 0.95rem; border-left: 6px solid var(--led); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
label { display: flex; flex-direction: column; gap: 0.25rem; font-family: var(--sans); font-size: 0.9rem; font-weight: 600; }
label.check, label.radio { flex-direction: row; align-items: center; font-weight: 400; gap: 0.5rem; }
input, textarea { font: inherit; font-family: var(--sans); font-weight: 400; color: inherit; background: #fff; border: 1px solid #7d8792; border-radius: 6px; padding: 0.55rem 0.65rem; min-height: 44px; width: 100%; }
input[type="checkbox"], input[type="radio"] { min-height: auto; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--led-ink); }
textarea { min-height: 150px; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Footer: the strap again, then night */
.site-footer { margin-top: 2rem; background: var(--night); color: var(--on-night-muted); font-family: var(--sans); font-size: 0.9rem; }
.foot-inner { width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 1.5rem 2rem; padding: 2.2rem 0 3rem; }
.site-footer a { display: block; margin: 0.3rem 0; color: var(--on-night); text-decoration-color: var(--night-line); }
.site-footer a:hover { color: var(--led); }
.site-footer strong { color: #fff; font-size: 1.15rem; font-weight: 600; }
.foot-brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.foot-brand p { margin: 0.35rem 0; }
.foot-brand a { display: inline; }
.foot-head { margin: 0 0 0.5rem; font-weight: 600; color: var(--brass); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; }

@media (max-width: 860px) {
  .hero, .principles, .cards, .foot-inner, .grid, .dir-row, .check-tags { grid-template-columns: 1fr; }
  .principles div { border-left: 0; border-top: 1px dashed var(--night-line); }
  .principles div:first-child { border-top: 0; }
  .check-tags { padding-top: 0; gap: 2.2rem; }
  .check-tags::before { display: none; }
  .check-tags li { margin-top: 26px; }
  .check-tags li::before { top: -26px; }
  .check-tags li:first-child { margin-top: 26px; }
  .dir-row { gap: 0.4rem; }
}

@media (max-width: 480px) {
  body { font-size: 1.06rem; }
  .site-header nav { gap: 0.1rem 1rem; }
  .hero { padding: 1.3rem 1rem 1.5rem; }
  .actions .button { flex: 1 1 100%; }
  .banner .actions { width: 100%; }
  .banner button.choice { flex: 1; }
  .article { padding: 1.4rem 1rem; }
}
