@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap");

:root {
  --bg: #f4efe9;
  --ink: #1f1a17;
  --muted: #6a5f56;
  --accent: #0c4a56;
  --accent-soft: #d1e3e6;
  --card: #fffaf6;
  --border: #e6d9cf;
  --shadow: rgba(24, 18, 15, 0.08);
  --shadow-strong: rgba(24, 18, 15, 0.16);
  --font: "Fraunces", "Iowan Old Style", "Palatino", "Times New Roman", serif;
  --font-ui: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 800px at 10% -10%, #ffffff, transparent),
    radial-gradient(900px 600px at 90% 10%, #f2fbfc, transparent),
    linear-gradient(160deg, #f7f3ee 0%, var(--bg) 55%, #f1e9df 100%);
  color: var(--ink);
  font-family: var(--font);
}

.site-header {
  padding: 72px 20px 24px 20px;
  text-align: center;
  position: relative;
}

.hero {
  width: min(960px, 92vw);
  margin: 0 auto;
}

.hero-label {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--muted);
}

.site-title {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 0.4px;
  margin: 12px 0 8px;
}

.site-subtitle {
  margin: 0 auto;
  max-width: 640px;
  font-family: var(--font-ui);
  color: var(--muted);
  font-size: 17px;
}

.site-actions {
  margin-top: 28px;
}

.search {
  width: min(560px, 90vw);
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 16px;
  font-family: var(--font-ui);
  background: #fff;
  box-shadow: 0 14px 30px var(--shadow);
}

.stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.stat {
  min-width: 140px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 24px var(--shadow);
}

.stat-value {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 22px;
  color: var(--accent);
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto 96px auto;
}

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

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 14px 34px var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
  position: relative;
  overflow: hidden;
}

.card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px var(--shadow-strong);
}

.card-title {
  font-size: 22px;
  line-height: 1.2;
}

.card-meta {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
}

.empty {
  text-align: center;
  margin-top: 30px;
  font-family: var(--font-ui);
  color: var(--muted);
}

@media (max-width: 640px) {
  .site-title {
    font-size: 32px;
  }
}
