/* ─── Reset ───────────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Base ────────────────────────────────────────────────────────────────── */

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #111;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── Header ──────────────────────────────────────────────────────────────── */

header {
  text-align: center;
  padding: 72px 24px 48px;
}

.site-name {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111;
  line-height: 1;
}

.tagline {
  margin-top: 10px;
  font-size: 1rem;
  color: #999;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ─── Grid ────────────────────────────────────────────────────────────────── */

.grid {
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 32px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  justify-content: start;
}

/* ─── Card ────────────────────────────────────────────────────────────────── */

.card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #ebebeb;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 75ms ease-in-out, box-shadow 75ms ease-in-out;
  max-width: 300px;
}

.card:hover {
  transform: scale(1.023);
  box-shadow: 3px 6px 16px 0 rgba(0, 0, 0, 0.08);
}

/* ─── Card visual (illustration area) ────────────────────────────────────── */

.card-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Card body ───────────────────────────────────────────────────────────── */

.card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
}

.card-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}

.card-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #bbb;
  transition: color 100ms;
}

.card:hover .card-link {
  color: #555;
}

/* ─── Ghost card ──────────────────────────────────────────────────────────── */

.card--ghost {
  border: 1.5px dashed #e0e0e0;
  background: transparent;
  cursor: default;
  pointer-events: none;
}

.card--ghost:hover {
  transform: none;
  box-shadow: none;
}

.card-visual--ghost {
  background: transparent;
}

.ghost-dots {
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  color: #ddd;
}

.card-title--ghost {
  color: #ccc;
}

.card-desc--ghost {
  color: #ddd;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 0 24px 56px;
  font-size: 0.82rem;
  color: #bbb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.feedback-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ccc;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 100ms;
}

.feedback-link:hover {
  color: #555;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    max-width: none;
  }
}

@media (max-width: 540px) {
  header {
    padding: 48px 20px 36px;
  }

  .site-name {
    font-size: 1.75rem;
  }

  .grid {
    grid-template-columns: 1fr;
    padding: 8px 20px 60px;
  }

  .card {
    max-width: none;
  }
}
