/* ============================================================
   Barkalytics — design tokens
   Palette: forest-ink dark + warm parchment light + brass accent
   Type: Fraunces (display) + IBM Plex Sans (body/UI)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,500&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root{
  --ink: #1C2620;
  --ink-2: #263229;
  --paper: #EAE4D3;
  --paper-2: #DFD6BC;
  --brass: #A9812C;
  --brass-dark: #8A6A22;
  --moss: #4B5C43;
  --rust: #9B4636;
  --cream: #F5F1E6;
  --charcoal: #23241F;
  --line: rgba(28,38,32,0.18);
  --line-on-dark: rgba(245,241,230,0.22);
  --max: 760px;
  --max-wide: 1080px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--charcoal);
  font-family:'IBM Plex Sans', sans-serif;
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
}

h1,h2,h3,h4{
  font-family:'Fraunces', serif;
  font-weight:700;
  line-height:1.12;
  margin:0 0 0.5em;
  color:var(--ink);
  letter-spacing:-0.01em;
}
h1{ font-size:clamp(2.4rem, 5vw, 4rem); font-weight:900; }
h2{ font-size:clamp(1.6rem, 3vw, 2.2rem); }
h3{ font-size:1.3rem; font-weight:600; }
p{ margin:0 0 1.1em; max-width:var(--max); }
a{ color:var(--brass-dark); text-decoration-thickness:1.5px; text-underline-offset:3px; }
a:hover{ color:var(--rust); }
strong{ color:var(--ink); }
img{ max-width:100%; display:block; }

.wrap{ max-width:var(--max-wide); margin:0 auto; padding:0 28px; }
.prose{ max-width:var(--max); }
.prose h2{ margin-top:1.6em; }
.prose ul, .prose ol{ max-width:var(--max); padding-left:1.3em; }
.prose li{ margin-bottom:0.5em; }

/* ---------- header ---------- */
.site-header{
  background:var(--ink);
  color:var(--cream);
  border-bottom:1px solid var(--line-on-dark);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:20px; padding-bottom:20px;
}
.logo{
  font-family:'Fraunces', serif;
  font-weight:700;
  font-size:1.35rem;
  color:var(--cream);
  text-decoration:none;
  letter-spacing:-0.01em;
}
.logo em{ font-style:italic; color:var(--brass); }
.nav{ display:flex; gap:28px; align-items:center; }
.nav a{
  color:var(--cream); opacity:0.85; text-decoration:none;
  font-size:0.95rem;
}
.nav a:hover{ opacity:1; color:var(--brass); }
.nav .btn{ opacity:1; }

/* ---------- buttons ---------- */
.btn{
  display:inline-block;
  font-family:'IBM Plex Sans', sans-serif;
  font-weight:600;
  font-size:0.98rem;
  padding:13px 24px;
  border:1.5px solid var(--ink);
  border-radius:3px;
  text-decoration:none;
  color:var(--ink);
  background:transparent;
  transition:background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover{ background:var(--ink); color:var(--cream); }
.btn-brass{
  background:var(--brass); color:var(--ink); border-color:var(--brass);
}
.btn-brass:hover{ background:var(--brass-dark); border-color:var(--brass-dark); color:var(--cream); }
.btn-on-dark{ border-color:var(--line-on-dark); color:var(--cream); }
.btn-on-dark:hover{ background:var(--brass); border-color:var(--brass); color:var(--ink); }

/* ---------- hero ---------- */
.hero{
  background:var(--ink);
  color:var(--cream);
  padding:72px 0 84px;
}
.hero .wrap{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:center; }
.hero h1{ color:var(--cream); }
.hero h1 em{ color:var(--brass); font-style:italic; }
.hero p.lede{ font-size:1.15rem; opacity:0.88; max-width:46ch; }
.hero-actions{ display:flex; gap:14px; margin-top:28px; flex-wrap:wrap; }

/* quiz teaser card in hero */
.quiz-teaser{
  background:var(--paper);
  color:var(--charcoal);
  border:1px solid var(--ink);
  padding:28px;
}
.quiz-teaser .kicker{ font-size:0.85rem; color:var(--moss); margin-bottom:10px; }
.quiz-teaser h3{ margin-bottom:14px; }
.quiz-teaser .opts{ display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.quiz-teaser .opt{
  border:1px solid var(--line); padding:10px 14px; font-size:0.95rem;
  cursor:pointer; background:var(--cream); transition:border-color .15s;
}
.quiz-teaser .opt:hover{ border-color:var(--brass); }

/* ---------- sections ---------- */
section{ padding:64px 0; }
.section-alt{ background:var(--paper-2); }
.rule{ border:none; border-top:1px solid var(--line); margin:0; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; gap:24px; margin-bottom:32px; flex-wrap:wrap; }
.section-head p{ margin:0; color:var(--moss); }

/* ---------- index cards (flat, bordered, no shadow) ---------- */
.grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.card{
  background:var(--paper);
  padding:26px;
}
.card .tag{ font-size:0.82rem; color:var(--moss); margin-bottom:10px; }
.card h3{ margin-bottom:8px; }
.card p{ font-size:0.96rem; color:var(--charcoal); opacity:0.85; }
.card a.read{ font-size:0.92rem; font-weight:600; }

@media (max-width:860px){
  .grid{ grid-template-columns:1fr; }
  .hero .wrap{ grid-template-columns:1fr; }
}

/* ---------- breed listing block (used inside posts) ---------- */
.breed{
  border:1px solid var(--line);
  border-left:4px solid var(--brass);
  padding:18px 22px;
  margin:0 0 16px;
  background:var(--paper-2);
}
.breed h4{ font-family:'Fraunces', serif; font-size:1.1rem; margin:0 0 6px; color:var(--ink); }
.breed .meta{ font-size:0.86rem; color:var(--moss); margin-bottom:8px; }
.breed p{ margin:0; font-size:0.96rem; }

/* ---------- callouts ---------- */
.callout{
  border:1px solid var(--ink);
  background:var(--cream);
  padding:20px 22px;
  margin:28px 0;
}
.callout .kicker{ font-size:0.82rem; color:var(--brass-dark); font-weight:600; margin-bottom:6px; }
.callout p:last-child{ margin-bottom:0; }
.callout.affiliate{ border-color:var(--moss); }

/* ---------- steps (only for genuinely sequential content) ---------- */
.steps{ counter-reset:step; }
.step{ display:flex; gap:18px; padding:20px 0; border-top:1px solid var(--line); }
.step:first-child{ border-top:none; }
.step .num{
  counter-increment:step; font-family:'Fraunces', serif; font-weight:700;
  font-size:1.4rem; color:var(--brass); min-width:2ch;
}
.step .num::before{ content: counter(step); }

/* ---------- newsletter ---------- */
.newsletter{
  background:var(--ink); color:var(--cream); padding:56px 0; text-align:left;
}
.newsletter h2{ color:var(--cream); }
.newsletter form{ display:flex; gap:10px; max-width:440px; margin-top:20px; flex-wrap:wrap; }
.newsletter input[type=email]{
  flex:1; min-width:220px; padding:13px 14px; border:1px solid var(--line-on-dark);
  background:transparent; color:var(--cream); font-family:'IBM Plex Sans', sans-serif; font-size:0.98rem;
}
.newsletter input::placeholder{ color:rgba(245,241,230,0.55); }

/* ---------- footer ---------- */
.site-footer{ background:var(--ink); color:var(--cream); padding:40px 0; border-top:1px solid var(--line-on-dark); }
.site-footer .wrap{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; align-items:center; }
.foot-links a{ color:var(--cream); opacity:0.75; text-decoration:none; margin-left:20px; font-size:0.9rem; }
.foot-links a:hover{ opacity:1; color:var(--brass); }
.foot-note{ font-size:0.85rem; opacity:0.6; max-width:520px; }

/* ---------- article ---------- */
.article-head{ background:var(--ink); color:var(--cream); padding:56px 0 48px; }
.article-head .tag{ color:var(--brass); font-size:0.9rem; margin-bottom:14px; }
.article-head h1{ color:var(--cream); font-size:clamp(2rem, 4vw, 3rem); }
.article-head .dek{ opacity:0.85; font-size:1.08rem; max-width:60ch; margin-top:14px; }
.article-body{ padding:52px 0 70px; }
.byline{ font-size:0.9rem; color:var(--moss); margin-bottom:8px; }

/* ---------- quiz page ---------- */
.quiz-box{
  border:1px solid var(--ink); background:var(--paper-2); padding:36px; max-width:640px;
}
.quiz-q{ display:none; }
.quiz-q.active{ display:block; }
.quiz-q .qnum{ font-size:0.85rem; color:var(--moss); margin-bottom:10px; }
.quiz-choice{
  display:block; width:100%; text-align:left; border:1px solid var(--line);
  background:var(--cream); padding:14px 16px; margin-bottom:10px; font-family:'IBM Plex Sans',sans-serif;
  font-size:1rem; cursor:pointer; transition:border-color .15s, background .15s;
}
.quiz-choice:hover{ border-color:var(--brass); background:#fff; }
.quiz-result{ display:none; }
.quiz-result.active{ display:block; }
.quiz-result h3{ font-size:1.6rem; }
.result-breed{ margin-top:20px; }
.progress{ height:3px; background:var(--line); margin-bottom:24px; }
.progress-bar{ height:100%; background:var(--brass); width:0%; transition:width .25s ease; }
.restart{ margin-top:20px; }
