:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #12213a;
  --muted: #64748b;
  --primary: #34c8ff;
  --accent: #ffe56a;
  --ring: rgba(52, 200, 255, 0.35);
  --social-icon: #0f4c81;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 5% 5%, #e5f6ff 0%, transparent 30%),
    radial-gradient(circle at 95% 0%, #fff3d2 0%, transparent 28%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.shell {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.logo img {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(220px, 46vw);
  object-fit: contain;
  border-radius: 8px;
}

.social-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--social-icon);
  box-shadow: 0 6px 18px rgba(20, 40, 80, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-bar a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(20, 40, 80, 0.12);
}

.social-bar svg {
  width: 20px;
  height: 20px;
  display: block;
}

.hero {
  background: var(--surface);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 30px rgba(20, 40, 80, 0.08);
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.55;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  border: 2px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #35526e;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.chip:hover {
  border-color: #c7dff5;
  background: #f8fbff;
}

.chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}

.chip--active {
  border-color: #34c8ff;
  background: linear-gradient(135deg, #e8f8ff, #f0fcff);
  color: #0f2e4a;
}

.board {
  columns: 5 220px;
  column-gap: 14px;
}

.board-placeholder {
  column-span: all;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 28px 12px;
  margin: 0;
}

.card {
  break-inside: avoid;
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 10px 26px rgba(20, 40, 80, 0.09);
  border: 2px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card--latest {
  border-color: rgba(52, 200, 255, 0.65);
  box-shadow: 0 12px 32px rgba(52, 200, 255, 0.18);
}

.card-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f4c81;
  background: linear-gradient(135deg, #baf0ff, #d4f4ff);
  padding: 4px 8px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.card-badge--craft {
  background: linear-gradient(135deg, #fff3c4, #ffe8a8);
  color: #5c4a00;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.card-actions a.action {
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 6px 12px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.card-actions a.action--etsy {
  color: #7c2d12;
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  border: 1px solid rgba(245, 100, 0, 0.25);
}

.card-actions a.action--etsy:hover {
  background: linear-gradient(135deg, #fed7aa, #fdba74);
}

.card-actions a.action--amazon {
  color: #0c4a6e;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border: 1px solid rgba(14, 116, 144, 0.2);
}

.card-actions a.action--amazon:hover {
  background: linear-gradient(135deg, #bae6fd, #7dd3fc);
}

.thumb {
  width: 100%;
  min-height: 140px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: rgba(16, 40, 64, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-size: 0.85rem;
}

.t1 {
  background: linear-gradient(140deg, #d4f4ff, #f8fbff 45%, #fff0c4);
  min-height: 230px;
}

.t2 {
  background: linear-gradient(140deg, #ffe0f0, #f5e9ff);
  min-height: 180px;
}

.t3 {
  background: linear-gradient(140deg, #d7ffe8, #f2fff8);
  min-height: 260px;
}

.t4 {
  background: linear-gradient(140deg, #fff3d7, #fffdf7);
  min-height: 200px;
}

.t5 {
  background: linear-gradient(140deg, #dbe8ff, #eef5ff);
  min-height: 300px;
}

.t6 {
  background: linear-gradient(140deg, #ffdede, #fff1f1);
  min-height: 170px;
}

.t7 {
  background: linear-gradient(140deg, #dbfff6, #effffb);
  min-height: 240px;
}

.t8 {
  background: linear-gradient(140deg, #ede1ff, #f8f2ff);
  min-height: 210px;
}

.t9 {
  background: linear-gradient(140deg, #dff5ff, #f6fcff);
  min-height: 280px;
}

/* Card images: neutral strip (no gradient t1–t9), predictable crop */
.thumb.thumb--media {
  padding: 0;
  min-height: 200px;
  background: #e8eef5;
  overflow: hidden;
  display: block;
}

.thumb-inner {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.thumb-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  opacity: 0;
  animation: thumbFadeIn 0.55s ease forwards;
  transition: transform 0.4s ease;
  transform: translateZ(0);
}

.card:hover .thumb-img {
  transform: scale(1.035);
}

@keyframes thumbFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thumb-img {
    animation: none;
    opacity: 1;
    transition: none;
  }

  .card:hover .thumb-img {
    transform: none;
  }
}

.meta {
  padding: 12px 12px 14px;
  display: grid;
  gap: 6px;
}

.meta h3 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.35;
}

.meta p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer {
  width: min(1200px, 92vw);
  margin: 32px auto 0;
  padding: 28px 0 20px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer p {
  margin: 0 0 12px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.site-footer .social-bar {
  justify-content: center;
  margin-bottom: 14px;
}

.site-footer .legal {
  font-size: 0.8rem;
  color: #94a3b8;
}

.site-footer .version {
  margin-top: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #94a3b8;
}
