/* Base */
body {
  margin: 0;
  font-family: -apple-system, 'Noto Sans KR', sans-serif;
  background: #f9f9f9;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 16px;
}

nav a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
}

footer {
  text-align: center;
  padding: 32px 16px;
  font-size: 12px;
  color: #aaa;
  border-top: 1px solid #eee;
  margin-top: 40px;
}

footer a {
  color: #888;
}

/* Masonry */
.masonry-grid {
  columns: 2;
  column-gap: 12px;
  padding: 12px;
}

@media (min-width: 768px) {
  .masonry-grid {
    columns: 3;
  }
}

@media (min-width: 1280px) {
  .masonry-grid {
    columns: 4;
  }
}

.masonry-item {
  break-inside: avoid;
  display: block;
  margin-bottom: 12px;
}

.card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 10px 12px 12px;
}

.card-body h2 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #111;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag {
  font-size: 11px;
  padding: 2px 8px;
  background: #f3f4f6;
  border-radius: 999px;
  color: #666;
}

/* Set detail */
.set-detail {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px;
}

.set-detail h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.desc {
  color: #555;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.image-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.img-wrap img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.ai-note {
  font-size: 11px;
  color: #aaa;
  margin-top: 24px;
  text-align: center;
}

.set-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 680px;
  margin: 32px auto 0;
  padding: 0 16px;
}

.set-nav a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  flex: 1;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  text-align: center;
}

.set-nav a:hover {
  border-color: #ccc;
}

.set-nav .placeholder {
  flex: 1;
  visibility: hidden;
}
