/* Cruize link-in-bio */
:root {
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(8, 16, 32, 0.12);
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--glow), transparent 55%),
    radial-gradient(800px 500px at 110% 0%, var(--glow-2), transparent 50%),
    var(--bg);
  line-height: 1.5;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.wrap {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

/* Themes */
body[data-theme="hub"] {
  --bg: #07111f;
  --text: #eef3fb;
  --muted: #9aa8bd;
  --card: rgba(255,255,255,0.06);
  --line: rgba(255,255,255,0.1);
  --glow: rgba(255,122,26,0.18);
  --glow-2: rgba(80, 180, 140, 0.14);
  --accent: #ff9a4a;
}
body[data-theme="car"] {
  --bg: #071526;
  --text: #e8eef7;
  --muted: #9eb0c8;
  --card: #10233a;
  --line: rgba(255,255,255,0.1);
  --accent: #ff7a1a;
  --accent-2: #ffd0a8;
  --glow: rgba(255,122,26,0.22);
  --glow-2: rgba(40, 90, 180, 0.18);
  --avatar-bg: linear-gradient(160deg, #ff9a3d, #d45200);
}
body[data-theme="watch"] {
  --bg: #f4eee4;
  --text: #0f1c35;
  --muted: #5b6476;
  --card: #fffaf2;
  --line: rgba(15,28,53,0.1);
  --accent: #b8892d;
  --accent-2: #0f1c35;
  --glow: rgba(198,161,91,0.28);
  --glow-2: rgba(15,28,53,0.08);
  --avatar-bg: linear-gradient(160deg, #0f1c35, #243660);
}
body[data-theme="kitchen"] {
  --bg: #fff4c8;
  --text: #3a240c;
  --muted: #7a5a2c;
  --card: #fffaf0;
  --line: rgba(58,36,12,0.1);
  --accent: #e85d04;
  --accent-2: #9a3412;
  --glow: rgba(255,176,60,0.45);
  --glow-2: rgba(255,120,40,0.16);
  --avatar-bg: linear-gradient(160deg, #ffe9a8, #ffcc66);
}
body[data-theme="pets"] {
  --bg: #def7ee;
  --text: #14332c;
  --muted: #3f6a5f;
  --card: #f4fffb;
  --line: rgba(20,51,44,0.1);
  --accent: #1f8a74;
  --accent-2: #c58b16;
  --glow: rgba(80,200,160,0.28);
  --glow-2: rgba(212,160,23,0.16);
  --avatar-bg: linear-gradient(160deg, #f3d087, #e8b84a);
}

.site-header { text-align: center; padding: 12px 0 8px; }
.avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 46px;
  background: var(--avatar-bg, var(--card));
  box-shadow: var(--shadow);
  border: 3px solid rgba(255,255,255,0.35);
}
.kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 6px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 8px;
  font-weight: 650;
}
.tagline {
  margin: 0 auto 10px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.02rem;
}
.handle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 80%, transparent);
}
.handle:hover { border-color: var(--accent); }

.filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 18px;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 12px 0 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
}
.search {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}
.chip[aria-pressed="true"], .chip:hover {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
body[data-theme="watch"] .chip[aria-pressed="true"],
body[data-theme="watch"] .chip:hover { color: #fffaf2; background: #0f1c35; }
body[data-theme="kitchen"] .chip[aria-pressed="true"],
body[data-theme="kitchen"] .chip:hover { color: #fff8ea; }
body[data-theme="pets"] .chip[aria-pressed="true"],
body[data-theme="pets"] .chip:hover { color: #f4fffb; }

.count { color: var(--muted); font-size: 0.9rem; margin: 0 0 14px; }

.grid { display: grid; gap: 14px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  grid-template-columns: 92px 1fr;
  align-items: start;
}
.thumb {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  object-fit: cover;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 30%, var(--card)), var(--card));
  display: grid;
  place-items: center;
  font-size: 32px;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { min-width: 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
}
.badge-placeholder { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-2, var(--accent)); }
.badge-cat { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--muted); }
.card h2 { font-size: 1.05rem; margin: 0 0 6px; line-height: 1.25; }
.price { font-weight: 600; font-size: 0.92rem; margin: 0 0 6px; color: var(--accent-2, var(--accent)); }
.blurb { margin: 0; color: var(--muted); font-size: 0.92rem; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  border-radius: 12px;
  padding: 10px 14px;
  width: 100%;
}
body[data-theme="watch"] .cta { background: #0f1c35; color: #f6efe3; }
.cta:hover { filter: brightness(1.08); }
.empty {
  text-align: center;
  padding: 36px 12px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.site-footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}
.site-footer strong { color: var(--text); font-weight: 600; }
.home-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
}

/* Hub */
.hub-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
@media (min-width: 640px) {
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .card { grid-template-columns: 108px 1fr; }
  .thumb { width: 108px; height: 108px; }
}
.hub-card {
  display: block;
  text-decoration: none;
  border-radius: 24px;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  min-height: 180px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.hub-card:hover { transform: translateY(-3px); }
.hub-card .emoji { font-size: 36px; margin-bottom: 8px; }
.hub-card h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.5rem; }
.hub-card p { margin: 0; color: var(--muted); }
.hub-card .go { margin-top: 14px; font-weight: 650; }
.hub-card.car { background: linear-gradient(180deg, #143052, #0b1c30); color: #e8eef7; --muted: #9eb0c8; border-color: rgba(255,122,26,0.3); }
.hub-card.car .go { color: #ff7a1a; }
.hub-card.watch { background: linear-gradient(180deg, #fffaf2, #efe4d2); color: #0f1c35; --muted: #5b6476; border-color: rgba(184,137,45,0.35); }
.hub-card.watch .go { color: #b8892d; }
.hub-card.kitchen { background: linear-gradient(180deg, #fff8dc, #ffe08a); color: #3a240c; --muted: #7a5a2c; border-color: rgba(232,93,4,0.28); }
.hub-card.kitchen .go { color: #e85d04; }
.hub-card.pets { background: linear-gradient(180deg, #f3fffb, #bfe9db); color: #14332c; --muted: #3f6a5f; border-color: rgba(31,138,116,0.28); }
.hub-card.pets .go { color: #1f8a74; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
