@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Inter:wght@400;600&display=swap&v=2");

:root { --bg:#faf8f5; --ink:#2b2b2b; --muted:#666; --card:#ffffff; --line:#e8e2da; --accent:#5a7; }
* { box-sizing: border-box; }

html, body { height: 100%; }

body { 
    margin:0; 
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; 
    background:var(--bg); color:var(--ink); }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;                         /* sit under your content */
  background-image: url("https://www.transparenttextures.com/patterns/paper-fibers.png");
  background-repeat: repeat;
  background-size: auto;              /* tile naturally */
  opacity: 0.15;                      /* bump a bit to be visible */
  pointer-events: none;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 24px; background: linear-gradient(160deg, #fdfbfb 0%, #ebedee 100%); }

.wrap, header, .card {
  position: relative;
  z-index: 1;
  background: transparent;            /* keep cards transparent or add a faint white */
}

.card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(2px);
  border: 1px solid #eee;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 18px;
}

header h1 {
  margin: 0 0 6px;
  font-size: 42px;
  font-family: "Caveat", cursive !important; /* force it */
  font-weight: 700;
  letter-spacing: 0.5px;
}

header p { margin: 0; color: var(--muted); font-family: Inter, system-ui, sans-serif; }
.toolbar { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin: 16px 0 8px; }
.search { display:flex; align-items:center; gap:8px; background:var(--card); border:1px solid var(--line); padding:8px 10px; border-radius:10px; flex:1; min-width: 240px; }
.search input { border:0; outline:0; background:transparent; width:100%; font-size:14px; }
.toggle { font-size:14px; display:flex; align-items:center; gap:8px; }

.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; }
.card h3 { margin:0 0 4px; font-size:18px; }
.meta { color:var(--muted); font-size:13px; margin-bottom:8px; }


.kitten { border:1px solid var(--line); border-radius:12px; padding:10px; background:#fff; }
.kitten .row { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.badge { border:1px solid var(--line); border-radius:999px; padding:2px 8px; font-size:12px; color:var(--muted); }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.chip { font-size:11px; border:1px solid var(--line); padding:2px 6px; border-radius:999px; background:#fff; }
.thumbs { display:grid; grid-template-columns: repeat(4, 1fr); gap:6px; margin-top:8px; }
.thumbs button { border:1px solid var(--line); border-radius:8px; overflow:hidden; aspect-ratio:1/1; background:#f6f3ef; cursor:pointer; }
.thumbs img { width:100%; height:100%; object-fit:cover; display:block; }
.dialog-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.6); display:flex; align-items:center; justify-content:center; padding:16px; }
.dialog { max-width: min(960px, 92vw); width: 100%; background:#000; border-radius:12px; overflow:hidden; }
.dialog img, .dialog video { width:100%; height:auto; display:block; }
footer { color:var(--muted); font-size:13px; margin: 18px 0 8px; }
.note { border:1px dashed var(--line); background:#fff; border-radius:12px; padding:12px; color:var(--muted); margin-top:12px; }
a { color: var(--accent); text-decoration: none; }
/* Kitten row layout with a clear thumbnail */
.kit-row {
  display: grid;
  grid-template-columns: 120px 1fr; /* thumbnail column fixed width */
  gap: 12px;
  align-items: start;
}

.kit-thumb {
  display: block;
  max-width: 120px;
  max-height: 120px;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f6f3ef;
  cursor: pointer;
}

/* Thumbnail wrapper forces the display size */
.kit-thumb-wrap {
  width: 120px;          /* change to 96px if you want smaller */
  height: 120px;
  border-radius: 12px;
  overflow: hidden;      /* crop to the square */
  border: 1px solid var(--line);
  background: #f6f3ef;
  flex: 0 0 auto;        /* don't let grid/flex stretch it */
}

/* The image always fills the wrapper */
.kit-thumb-wrap > img.kit-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* center-crop */
  cursor: pointer;
}


.kit-body .row { display:flex; justify-content:space-between; align-items:center; gap:8px; font-family: "Caveat", cursive;
  font-weight: 700; font-size:26px; }
.about {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0 18px;
  line-height: 1.6;
  font-size: 15px;
}

.kit-notes {
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  margin:8px 0 2px;
  font-size:14px;
  line-height:1.5;
}
.kit-notes p { margin: 6px 0; }
.kit-notes strong { color:#3a3a3a; }
.dossier-link { color: var(--accent); text-decoration: none; font-weight: 600; font-size:14px; }
.dossier-link:hover { text-decoration: underline; }

.status-badge {
  display: inline-block;
  margin: 4px 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
}

.status-available {
  background: #eef9f0;
  color: #1b5e20;
  border-color: #cfe8d4;
}

.status-adopted {
  background: #f2f2f2;
  color: #555;
  border-color: #e2e2e2;
}




.hero {
  margin-bottom: 24px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}




.hero-text h1 {
  margin: 0;
  font-family: "Caveat", cursive;
  font-size: 2rem;
}

.hero-text p {
  margin: 4px 0 0;
  color: #555;
}


.topbar {
  margin-bottom: 16px;
}

.back-btn {
  display: inline-block;
  padding: 8px 14px;
  background: #fdf6ff;             /* soft lavender background */
  border: 1px solid #e2d6f3;
  border-radius: 999px;            /* pill shape */
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #5b3a82;                  /* deep lavender text */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: #f7e9ff;
  border-color: #d5c2ef;
  transform: translateY(-1px);
}

/* -------- Lightbox -------- */
.lb-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 16px;
}

.lb-shell {
  position: relative;
  max-width: 96vw;
  max-height: 96vh;
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
}

.lb-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.lb-stage {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: pointer; /* tap to advance */
}

.lb-img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
}

.lb-nav {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  gap: 8px;
  color: #eee;
  text-align: center;
}

.lb-prev, .lb-next {
  border: 1px solid #444;
  background: #222;
  color: #eee;
  border-radius: 10px;
  padding: 6px 0;
  cursor: pointer;
}

.lb-prev:hover, .lb-next:hover { background:#2a2a2a; }
.lb-count { font-size: 13px; color: #ddd; }

/* Make the Write-up section extra readable */
.dossier-box h4 { margin-bottom: 6px; }
.dossier-box p { line-height: 1.7; }
.dossier-box p + p { margin-top: 8px; }



/* --- Layout fix: allow 3 kitten tiles on desktop --- */

/* ===== Litter cards (outer grid): 1 → 2 and stay 2 ===== */


/* Safety: ensure no child spans all columns by accident */
.grid > * { grid-column: auto; }

/* ===== Kitten tiles (inner grid inside each litter card): 1 → 2 → 3 ===== */
.klist {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;                /* phones */
}
@media (min-width: 800px) {
  .klist { grid-template-columns: repeat(2, 1fr); }  /* mid screens: 2 per litter */
}
@media (min-width: 1200px) {
  .klist { grid-template-columns: repeat(3, 1fr); }  /* large: 3 per litter */
}

.profile-btn {
  display: block;
  margin-top: 6px;
  padding: 4px 10px;
  background: #fdf6ff;
  border: 1px solid #e2d6f3;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #5b3a82;
  text-decoration: none;
  transition: all 0.2s ease;
}
.profile-btn:hover {
  background: #f7e9ff;
  border-color: #d5c2ef;
}


/* Column that stacks the image and the button */
.kit-thumb-col {
  width: 120px;             /* match your thumb size */
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Button under the photo */
.profile-btn {
  display: block;
  margin-top: 6px;
  padding: 4px 10px;
  background: #fdf6ff;
  border: 1px solid #e2d6f3;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #5b3a82;
  text-decoration: none;
  transition: all 0.2s ease;
}
.profile-btn:hover {
  background: #f7e9ff;
  border-color: #d5c2ef;
}

/* Keep the grid column widths the same */
.kit-row {
  display: grid;
  grid-template-columns: 120px 1fr;  /* left = .kit-thumb-col */
  gap: 12px;
  align-items: start;
}

