:root {
  --bg-1: #fdf6ec;
  --bg-2: #e9f3fb;
  --ink: #2b2b38;
  --muted: #6b6b7a;
  --accent: #4f8cff;
  --accent-2: #ff6b6b;
  --card-shadow: 0 8px 24px rgba(43, 43, 56, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 100%);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.site-header { text-align: center; margin: 8px 0 18px; }

.site-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}

.site-header .tagline {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.search-wrap {
  max-width: 720px;
  width: 100%;
  margin: 0 auto 26px;
}

.search {
  width: 100%;
  padding: 14px 18px;
  font-size: 1.05rem;
  border: 2px solid #dfd7c9;
  border-radius: 999px;
  outline: none;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.15);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(43, 43, 56, 0.18);
}

.card .preview {
  display: block;
  width: 100%;
  height: 170px;
  background: #bfe3ff;
}

.card-body { padding: 16px 20px 20px; }

.card-body h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.no-results {
  text-align: center;
  color: var(--muted);
  margin-top: 30px;
}

.site-footer {
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
