:root {
  --bg: #f6f2ec;
  --bg-2: #fef7ee;
  --ink: #1e1b16;
  --muted: #6a5f52;
  --accent: #d66a3a;
  --accent-2: #f2c2a3;
  --card: #ffffff;
  --card-2: #fff7f1;
  --border: #e6d8cc;
  --shadow: 0 18px 40px rgba(30, 27, 22, 0.12);
  --shadow-soft: 0 10px 24px rgba(30, 27, 22, 0.08);
  --radius: 18px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 10% -10%, #ffffff 0%, var(--bg) 55%, var(--bg-2) 100%);
}

h1, h2, h3 {
  font-family: "Fraunces", "Times New Roman", serif;
  margin: 0 0 0.6rem 0;
}

p {
  margin: 0 0 1rem 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero {
  padding: 72px 24px 40px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, #ffffff 0%, #fff5ec 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-subtitle {
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.search {
  flex: 1 1 320px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.95rem;
}

.search:focus {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.count {
  background: #1e1b16;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.tag {
  font-size: 0.75rem;
  color: var(--muted);
  background: #f6eee6;
  padding: 4px 10px;
  border-radius: 999px;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.ghost-card {
  background: var(--card-2);
  border-style: dashed;
}

.empty {
  text-align: center;
  margin-top: 40px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

code {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: #fff0e7;
  padding: 2px 6px;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .hero-inner {
    padding: 28px;
  }

  .hero {
    padding-top: 48px;
  }
}
