/* Cozy Finds: Kitchen & Pets - one shared stylesheet, no external assets */

:root {
  --cream: #fbf6ee;
  --paper: #fffdf9;
  --sand: #f3e9da;
  --sand-soft: #f3e6d6;
  --line: #e6d8c3;
  --ink: #2f241c;
  --muted: #64554a;
  --brown: #5b3a29;
  --brown-soft: #a8795a;
  --link: #8a4526;
  --sage: #8fa88f;
  --sage-soft: #e7eee4;
  --sage-border: #cfdccb;
  --sage-dark: #46624a;
  --sage-darker: #374e3a;
  --cta-paper: #fff7ee;
  --focus: #2f6f9f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 40, 25, 0.06), 0 6px 20px rgba(60, 40, 25, 0.07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

::selection {
  background: var(--sand);
  color: var(--brown);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--brown);
  line-height: 1.35;
  font-weight: 700;
}
h1 { font-size: clamp(1.85rem, 5vw, 2.6rem); margin: 0.5em 0 0.4em; letter-spacing: -0.01em; line-height: 1.35; }
h2 { font-size: clamp(1.4rem, 3.6vw, 1.75rem); margin: 2em 0 0.6em; line-height: 1.35; }
h3 { font-size: 1.2rem; margin: 1.5em 0 0.4em; line-height: 1.4; }

p, ul, ol { margin: 0 0 1.1em; }
li { margin-bottom: 0.4em; }

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brown); text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--brown);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  color: #fff;
  background: var(--brown);
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip-link:hover {
  color: #fff;
  background: var(--brown);
  text-decoration: underline;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 720px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brown);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
}
.brand:hover { color: var(--brown); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand small {
  display: block;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--sage-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.nav li { margin: 0; }
.nav a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}
.nav a:hover { background: var(--sand); }
.nav a[aria-current="page"] { background: var(--sage-soft); color: var(--sage-darker); font-weight: 650; }

main { display: block; padding: 1.5rem 0 3rem; }

/* ---------- Home ---------- */
.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0 1rem;
}
.hero .eyebrow, .eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 0.25rem;
}
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-art { max-width: 340px; width: 100%; justify-self: center; }

.btn {
  display: inline-block;
  background: var(--sage-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--sage-dark);
  line-height: 1.3;
}
.btn:hover { background: var(--sage-darker); border-color: var(--sage-darker); color: #fff; }
.btn-ghost { background: transparent; color: var(--sage-darker); }
.btn-ghost:hover { background: var(--sage-soft); color: var(--sage-darker); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

.section { margin-top: 3rem; }
.section > h2 { margin-top: 0; }

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}
.card-grid > li { margin: 0; }
.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  color: var(--brown);
  background: linear-gradient(135deg, var(--sand), var(--sage-soft));
}
.card-art svg { width: 64px; height: 64px; }
.card-art--img {
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: var(--sand);
}
.card-art--img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-body h2,
.card-body h3 { margin: 0.2rem 0 0.5rem; font-size: 1.2rem; }
.card-body h2 a,
.card-body h3 a { color: var(--brown); text-decoration: none; }
.card-body h2 a:hover,
.card-body h3 a:hover { text-decoration: underline; }
.card-body p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.8rem; }
.card-body .more { margin-top: auto; font-weight: 600; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-darker);
}

.category-links {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-links li { margin: 0; }
.category-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--brown);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
}
.category-links a:hover { background: var(--sage-soft); }
.category-links svg { width: 44px; height: 44px; flex: none; color: var(--sage-dark); }
.category-links span small {
  display: block;
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--muted);
}

.pinterest-cta {
  background: var(--brown);
  color: var(--cta-paper);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.pinterest-cta h2 { color: var(--cta-paper); margin: 0 0 0.4rem; }
.pinterest-cta p { color: var(--sand-soft); margin-bottom: 1.1rem; }
.pinterest-cta .btn { background: var(--cta-paper); color: var(--brown); border-color: var(--cta-paper); }
.pinterest-cta .btn:hover { background: var(--sand); border-color: var(--sand); color: var(--brown); }
.pinterest-cta :focus-visible { outline-color: var(--cta-paper); }

/* ---------- Page / article ---------- */
.page-header { max-width: 720px; margin: 0 auto 1.5rem; }
.page-header p { color: var(--muted); font-size: 1.1rem; }

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "\203A"; margin: 0 0.4rem 0 0.15rem; color: var(--brown-soft); }

.article { max-width: 720px; margin: 0 auto; }
.article-meta { color: var(--muted); font-size: 0.92rem; margin-top: -0.2rem; }

.disclosure {
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--sand);
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.lead { font-size: 1.15rem; }

/* Tall 2:3 Pin placeholder (CSS/SVG only) */
.pin-hero {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 2 / 3;
  margin: 1.25rem auto 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem 1.75rem;
  text-align: center;
  color: var(--brown);
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.7) 0 18%, transparent 19%),
    radial-gradient(circle at 85% 85%, rgba(143, 168, 143, 0.35) 0 22%, transparent 23%),
    linear-gradient(160deg, var(--sand) 0%, var(--cream) 45%, var(--sage-soft) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.pin-hero svg { width: 42%; height: auto; }
.pin-hero .pin-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.3rem, 4.5vw, 1.65rem);
  line-height: 1.4;
  color: var(--brown);
}
.pin-hero .pin-brand {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-darker);
  font-weight: 650;
}

.hero-img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  margin: 1.25rem auto 1.75rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(91, 58, 41, 0.12);
}

.answer {
  background: var(--sage-soft);
  border: 1px solid var(--sage-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.answer p:last-child { margin-bottom: 0; }

.checklist {
  list-style: none;
  counter-reset: step;
  padding: 0;
}
.checklist li {
  counter-increment: step;
  position: relative;
  padding: 0.7rem 0.9rem 0.7rem 3.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.6rem;
}
.checklist li::before {
  content: counter(step);
  position: absolute;
  left: 0.8rem;
  top: 0.7rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--sage-dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.7rem;
  text-align: center;
}
.checklist strong { color: var(--brown); }

.fit-box {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}
.fit-box > div {
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.fit-box .fit-yes {
  background: var(--sage-soft);
  border-color: var(--sage-border);
}
.fit-box .fit-yes h3 {
  color: var(--sage-darker);
}
.fit-box .fit-no {
  background: var(--sand);
  border-color: var(--line);
}
.fit-box .fit-no h3 {
  color: var(--brown);
}
.fit-box h3 { margin-top: 0.2rem; font-size: 1.1rem; line-height: 1.35; }
.fit-box ul { padding-left: 1.2rem; margin-bottom: 0; }

.product-box {
  display: grid;
  gap: 1.25rem;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 2.25rem 0;
  box-shadow: var(--shadow);
}
.product-box h2, .product-box h3 { margin: 0.1rem 0 0.5rem; }
.product-art {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 220px;
  justify-self: center;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  background: linear-gradient(150deg, var(--cream), var(--sand));
  border: 1px dashed var(--brown-soft);
}
.product-art svg { width: 55%; height: auto; color: var(--brown); }
.product-box ul { padding-left: 1.2rem; }
.product-note { font-size: 0.88rem; color: var(--muted); margin-top: 0.75rem; margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 0.97rem;
  min-width: 520px;
}
caption { text-align: left; font-weight: 650; color: var(--brown); padding-bottom: 0.5rem; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border: 1px solid var(--line); }
thead th { background: var(--sand); color: var(--brown); }
tbody th { font-weight: 650; color: var(--brown); }

.faq h3 { font-family: var(--font); font-size: 1.05rem; color: var(--ink); }
.faq p { color: var(--ink); }

.callout {
  background: #fff4e6;
  border: 1px solid #efd5b4;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.related { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 0.5rem; }

.prose { max-width: 720px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  font-size: 0.93rem;
  color: var(--muted);
}
.footer-disclosure { color: var(--ink); font-weight: 500; }
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  padding: 0;
  margin: 0 0 1rem;
}
.footer-links li { margin: 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .category-links { grid-template-columns: repeat(3, 1fr); }
  .fit-box { grid-template-columns: 1fr 1fr; }
  .product-box { grid-template-columns: 200px 1fr; align-items: start; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.3fr 1fr; padding-top: 2.5rem; }
}

/* Single-column list for category pages */
.card-grid.stack { max-width: 720px; margin: 0 auto; grid-template-columns: 1fr; }

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header nav, .skip-link, .btn { display: none; }
  body { background: #fff; }
}

