/* BarkAndMeow storefront — colours come from brand.json via app.js */

:root {
  --ink: #1c1917;
  --paper: #faf7f2;
  --primary: #c2410c;
  --accent: #0f766e;
  --sale: #dc2626;

  --card: #fff;
  --hair: color-mix(in srgb, var(--ink) 12%, transparent);
  --soft: color-mix(in srgb, var(--ink) 70%, transparent);
  --wash: color-mix(in srgb, var(--primary) 5%, var(--paper));
  --wa: #25d366;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;

  --pad: clamp(18px, 5vw, 40px);
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.skip {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 6px 0; z-index: 10;
}
.skip:focus {
  position: fixed; left: 0; top: 0;
  width: auto; height: auto; clip-path: none; overflow: visible;
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.head-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.paw {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
  background: var(--primary); display: grid; place-items: center;
}
.paw svg { width: 22px; height: 22px; fill: #fff; }
.logo-name { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.head-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 26px); }
.head-nav a { color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 500; }
.head-nav a:hover { color: var(--primary); }
@media (max-width: 620px) { .head-nav .hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: 15.5px; font-weight: 650; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-wa { background: var(--wa); color: #06331a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- hero ---------- */
.hero { background: var(--wash); border-bottom: 1px solid var(--hair); }
.hero-in { padding-block: clamp(44px, 8vw, 84px); display: grid; gap: 22px; max-width: 760px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding: 7px 15px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: color-mix(in srgb, var(--accent) 92%, black);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.04; letter-spacing: -.028em; font-weight: 700; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p { font-size: clamp(17.5px, 2.2vw, 20px); color: var(--soft); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* ---------- sections ---------- */
section { padding-block: clamp(40px, 7vw, 72px); }
.sec-head { display: grid; gap: 9px; margin-bottom: 28px; max-width: 60ch; }
.sec-head h2 {
  font-family: var(--serif); font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12; letter-spacing: -.022em; font-weight: 700; text-wrap: balance;
}
.sec-head p { color: var(--soft); font-size: 17px; }
.eyebrow,
.sec-head p.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 92%, black);
}

/* ---------- product grid ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--hair); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card-shot { position: relative; aspect-ratio: 1; background: #fff; }
.card-shot img { width: 100%; height: 100%; object-fit: cover; }
.ph {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  background: repeating-linear-gradient(45deg, #fff 0 16px, #f6f3ee 16px 32px);
}
.ph svg { width: 54px; height: 54px; fill: color-mix(in srgb, var(--ink) 15%, transparent); }
.ph span {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
}
.card-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 6px 13px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.card-name { font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.pricing { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-size: 24px; font-weight: 800; letter-spacing: -.025em; color: var(--primary); font-variant-numeric: tabular-nums; }
.mrp { font-size: 15px; text-decoration: line-through; color: color-mix(in srgb, var(--ink) 64%, transparent); font-variant-numeric: tabular-nums; }
.off {
  font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px;
  background: color-mix(in srgb, var(--sale) 12%, transparent);
  color: color-mix(in srgb, var(--sale) 82%, black);
}
.feats { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12.5px; padding: 5px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  color: color-mix(in srgb, var(--accent) 88%, black);
}
.card .btn { margin-top: auto; width: 100%; }
.ship-note { font-size: 12.5px; color: var(--soft); text-align: center; }

.empty {
  border: 1px dashed var(--hair); border-radius: 18px; padding: 44px 24px;
  text-align: center; display: grid; gap: 10px; justify-items: center;
}
/* Direct child only — a descendant selector would also hit the icon inside the
   button, where `.btn svg` has the same specificity and would lose on order. */
.empty > svg {
  width: 46px; height: 46px;
  fill: color-mix(in srgb, var(--ink) 22%, transparent);
}
.empty h3 { font-family: var(--serif); font-size: 24px; font-weight: 700; }
.empty .btn { margin-top: 6px; }
.empty p { color: var(--soft); max-width: 44ch; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step {
  background: var(--card); border: 1px solid var(--hair); border-radius: 16px;
  padding: 22px 20px; display: grid; gap: 8px; align-content: start;
}
.step-n {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary); font-size: 14px; font-weight: 800;
}
.step h3 { font-size: 17px; font-weight: 650; letter-spacing: -.008em; }
.step p { color: var(--soft); font-size: 15.5px; }

/* ---------- pledge ---------- */
.pledge {
  background: var(--card); border: 1px solid var(--hair); border-radius: 20px;
  padding: clamp(24px, 4vw, 38px); display: grid; gap: 12px; max-width: 62ch;
}
.pledge h2 { font-family: var(--serif); font-size: clamp(23px, 3.4vw, 30px); line-height: 1.15; font-weight: 700; }
.pledge p { color: var(--soft); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--hair); background: var(--wash); }
.foot-in { padding-block: 40px 32px; display: grid; gap: 30px; }
.foot-cols { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.foot-col { display: grid; gap: 9px; align-content: start; }
.foot-col h3 {
  font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--soft);
}
.foot-col a, .foot-col p { font-size: 15px; color: var(--ink); text-decoration: none; }
.foot-col a:hover { color: var(--primary); }
.foot-col p { color: var(--soft); }
.foot-legal {
  border-top: 1px solid var(--hair); padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: 13.5px; color: var(--soft);
}

/* ---------- policy pages ---------- */
.doc { max-width: 72ch; padding-block: clamp(34px, 6vw, 60px); display: grid; gap: 26px; }
.doc h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 44px); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
.doc h2 {
  font-family: var(--serif); font-size: clamp(21px, 3vw, 27px); line-height: 1.2; font-weight: 700;
  padding-top: 14px; border-top: 1px solid var(--hair); scroll-margin-top: 80px;
}
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 78%, transparent); }
.doc ul { padding-left: 20px; display: grid; gap: 7px; }
.doc section { padding: 0; display: grid; gap: 12px; }
.doc dl { display: grid; gap: 6px; }
.doc dt { font-weight: 650; font-size: 14px; color: var(--soft); }
.doc dd { margin: 0 0 8px; }
.updated { font-size: 14px; color: var(--soft); }

/* ---------- page header (interior pages) ---------- */
.page-head {
  background: var(--wash);
  border-bottom: 1px solid var(--hair);
  padding-block: clamp(30px, 5vw, 54px);
}
.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5.4vw, 48px);
  line-height: 1.06; letter-spacing: -.026em; font-weight: 700; text-wrap: balance;
  margin-block: 10px 12px;
}
.page-head p { color: var(--soft); font-size: clamp(16.5px, 2vw, 18.5px); max-width: 58ch; }
.crumbs { font-size: 14px; color: var(--soft); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.count-line { font-size: 14px; color: var(--soft); margin-top: 14px; }

/* ---------- section variants ---------- */
.band { background: var(--wash); border-block: 1px solid var(--hair); }
.tight { padding-block: clamp(32px, 5vw, 52px); }

/* ---------- trust strip ---------- */
.trust-strip { border-bottom: 1px solid var(--hair); background: var(--card); }
.trust-in {
  display: grid; gap: 1px 0;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding-block: 20px;
}
.trust { display: grid; gap: 2px; padding-inline: 4px; }
.trust strong { font-size: 15px; font-weight: 650; letter-spacing: -.005em; }
.trust span { font-size: 13.5px; color: var(--soft); }

/* ---------- two-column reasons ---------- */
.two-col { display: grid; gap: clamp(20px, 4vw, 48px); grid-template-columns: 1fr; }
@media (min-width: 860px) { .two-col { grid-template-columns: 0.85fr 1.15fr; } }
.two-col .sec-head { margin-bottom: 0; }
.reasons { list-style: none; display: grid; gap: 22px; }
.reasons li { display: grid; gap: 5px; padding-left: 17px; border-left: 2px solid var(--hair); }
.reasons h3 { font-size: 17px; font-weight: 650; letter-spacing: -.008em; }
.reasons p { color: var(--soft); font-size: 15.5px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
.faq details { background: var(--card); }
.faq summary {
  cursor: pointer; padding: 17px 20px; font-size: 16.5px; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--primary); line-height: 1; flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { padding-bottom: 6px; }
.faq details p { padding: 0 20px 18px; color: var(--soft); font-size: 15.5px; max-width: 66ch; }

/* ---------- cta block ---------- */
.cta-block { display: grid; gap: 12px; justify-items: start; max-width: 58ch; }
.cta-block h2 { font-family: var(--serif); font-size: clamp(24px, 3.6vw, 32px); line-height: 1.14; font-weight: 700; letter-spacing: -.02em; }
.cta-block p { color: var(--soft); }
.cta-block .btn { margin-top: 6px; }
.grid-more { margin-top: 24px; }

/* ---------- prose / guides ---------- */
.prose { max-width: 70ch; display: grid; gap: 20px; }
.prose .lead { font-size: clamp(18px, 2.2vw, 20.5px); line-height: 1.55; color: var(--ink); }
.prose h2 {
  font-family: var(--serif); font-size: clamp(23px, 3.2vw, 30px); line-height: 1.16;
  letter-spacing: -.02em; font-weight: 700; margin-top: 12px; scroll-margin-top: 84px;
}
.prose h3 { font-size: 17px; font-weight: 650; letter-spacing: -.008em; margin-top: 6px; }
.prose p { color: color-mix(in srgb, var(--ink) 80%, transparent); }
.prose a { color: var(--accent); }

.guide {
  display: grid; gap: 13px;
  padding-bottom: 30px; margin-bottom: 8px;
  border-bottom: 1px solid var(--hair);
}
.guide:last-child { border-bottom: 0; }
.guide-note {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-left: 3px solid var(--accent);
  padding: 12px 16px; border-radius: 0 8px 8px 0;
  font-size: 15px; color: color-mix(in srgb, var(--ink) 82%, transparent) !important;
}

.commitments { list-style: none; display: grid; gap: 14px; }
.commitments li {
  padding-left: 17px; border-left: 2px solid var(--hair);
  color: color-mix(in srgb, var(--ink) 80%, transparent); font-size: 15.5px; line-height: 1.55;
}
.commitments strong { color: var(--ink); font-weight: 650; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.contact-card {
  background: var(--card); border: 1px solid var(--hair); border-radius: 16px;
  padding: 22px 20px; display: grid; gap: 9px; align-content: start;
}
.contact-card h2 {
  font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--soft);
}
.contact-v { font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.contact-card p:not(.contact-v) { font-size: 15px; color: var(--soft); }
.contact-card .btn { margin-top: 6px; justify-self: start; }

.seller-details {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 18px;
  background: var(--card); border: 1px solid var(--hair); border-radius: 14px; padding: 20px;
}
.seller-details dt { font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
.seller-details dd { margin: 0; font-size: 15.5px; }

/* ---------- sticky mobile order bar ---------- */
.wa-bar {
  position: fixed; inset: auto 0 0 0; z-index: 6;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--hair);
  display: none;
}
.wa-bar .btn { width: 100%; }
@media (max-width: 720px) {
  .wa-bar { display: block; }
  body { padding-bottom: 74px; }
}

/* nav scrolls rather than collapsing — always reachable, no JS needed */
@media (max-width: 620px) {
  .head-nav {
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; margin-left: 8px;
  }
  .head-nav::-webkit-scrollbar { display: none; }
  .head-nav a { white-space: nowrap; font-size: 14.5px; }
  .logo-name { font-size: 19px; }
}
.head-nav a[aria-current="page"] { color: var(--primary); font-weight: 650; }

/* Structural heading that belongs in the outline but not the design. */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

/* ---------- imagery ---------- */
/* Photographs are what make a shop feel like a shop. Every image is fixed
   aspect-ratio with width/height set, so nothing shifts as they load. */

.hero-in.has-art {
  max-width: none;
  display: grid;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero-in.has-art { grid-template-columns: 1.05fr 0.95fr; }
  .hero-copy { max-width: 34rem; }
}
.hero-copy { display: grid; gap: 22px; justify-items: start; }

.hero-art {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1400 / 824;
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  box-shadow: 0 18px 44px color-mix(in srgb, var(--ink) 16%, transparent);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* Guide illustrations sit alongside the prose on wide screens. */
.guide-art {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--card);
  border: 1px solid var(--hair);
  margin-bottom: 4px;
}
.guide-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-art {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--card);
  border: 1px solid var(--hair);
  max-width: 26rem;
}
.about-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Photo credit line — Unsplash needs none, but saying where they came from
   is consistent with the shop's "no borrowed photos" promise on products. */
.credit {
  font-size: 12.5px;
  color: var(--soft);
  margin-top: 10px;
}
.credit a { color: inherit; }
