<script setup lang="ts">
defineProps<{
  title: string
  description: string
  aspectRatio: number
}>()
</script>

<template>
  <div class="card">
    <div class="card-inner">
      <span class="card-number" aria-hidden="true">&#9670;</span>
      <h3>{{ title }}</h3>
      <p>{{ description }}</p>
    </div>
  </div>
</template>

<style scoped>
.card {
  border-radius: 12px;
  background: linear-gradient(155deg, #e8e0d2 0%, #f5f0e8 30%, #efe9de 60%, #e8e0d2 100%);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-out-expo);
  display: flex;
  align-items: flex-start;
  border: 1px solid var(--color-hairline-soft);
}

.card:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 8px 24px rgba(20, 20, 19, 0.08);
}

.card-inner {
  padding: 20px 20px;
}

.card-number {
  display: block;
  font-size: 11px;
  color: var(--color-primary);
  opacity: 0.7;
  margin-bottom: 10px;
}

.card-inner h3 {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-inner p {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
</style>
