:root {
  --ink: #181918;
  --muted: #686c68;
  --line: #dfe2de;
  --canvas: #f5f6f3;
  --surface: #fff;
  --soft: #eff1ed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

[hidden] {
  display: none !important;
}

.prototype-tools {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  width: 220px;
  border: 1px solid #cfd2cc;
  border-radius: 8px;
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 12px 30px rgb(22 24 22 / 14%);
}

.prototype-tools:has(details:not([open])) {
  width: 112px;
}

.prototype-tools summary {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.prototype-tools__body {
  padding: 0 12px 12px;
}

.prototype-tools__body > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.prototype-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 6px;
  background: var(--soft);
}

.prototype-segment button {
  min-width: 0;
  min-height: 30px;
  padding: 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.prototype-segment button.is-active {
  background: #fff;
  box-shadow: 0 1px 4px rgb(20 22 20 / 12%);
  font-weight: 900;
}

.curation-list-page {
  padding: 42px 32px 110px;
}

.page-heading {
  margin-bottom: 30px;
}

.page-heading > span {
  color: #69706b;
  font-size: 11px;
  font-weight: 900;
}

.page-heading h1 {
  margin: 7px 0 8px;
  font-size: 36px;
  line-height: 1.2;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.curation-grid,
.curation-skeleton {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 22px;
}

.curation-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease;
}

.curation-card:hover,
.curation-card:focus-visible {
  border-color: #9ba19b;
  outline: 0;
  transform: translateY(-2px);
}

.curation-card__media {
  height: 250px;
  overflow: hidden;
  background: #e8eae6;
}

.curation-card__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.curation-card:hover img {
  transform: scale(1.025);
}

.curation-card__copy {
  padding: 18px 20px 20px;
}

.curation-label {
  display: inline-flex;
  padding: 5px 7px;
  color: #fff;
  border-radius: 4px;
  background: #202220;
  font-size: 10px;
  font-weight: 900;
}

.curation-card h2 {
  display: -webkit-box;
  min-height: 58px;
  margin: 10px 0 7px;
  overflow: hidden;
  font-size: 23px;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.curation-card p {
  overflow: hidden;
  margin: 0 0 15px;
  color: #555a56;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.curation-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.curation-skeleton article {
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.curation-skeleton i {
  display: block;
  height: 250px;
  background: #e7e9e5;
}

.curation-skeleton span,
.curation-skeleton b,
.curation-skeleton small {
  display: block;
  height: 12px;
  margin: 18px 20px 0;
  border-radius: 3px;
  background: #e7e9e5;
}

.curation-skeleton b {
  width: 70%;
}

.curation-skeleton small {
  width: 42%;
}

.curation-skeleton :is(i, span, b, small) {
  animation: pulse 1.3s ease-in-out infinite;
}

.empty-state {
  max-width: 620px;
  margin: 80px auto 0;
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  font-size: 24px;
}

.empty-state h2 {
  margin: 0 0 9px;
  font-size: 24px;
}

.empty-state p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.empty-state > div {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

.primary-button {
  color: #fff;
  background: var(--ink);
}

.secondary-button {
  background: #fff;
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

@media (max-width: 1023px) {
  .curation-list-page {
    padding: 30px 24px 100px;
  }

  .curation-card__media {
    height: 220px;
  }
}

@media (max-width: 767px) {
  .prototype-tools {
    position: relative;
    inset: auto;
    width: auto;
    margin: 8px 12px;
    box-shadow: none;
  }

  .prototype-tools:has(details:not([open])) {
    width: auto;
  }

  .curation-list-page {
    padding: 22px 16px 94px;
  }

  .page-heading {
    margin-bottom: 22px;
  }

  .page-heading h1 {
    font-size: 28px;
  }

  .page-heading p {
    font-size: 13px;
    line-height: 1.5;
  }

  .curation-grid,
  .curation-skeleton {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .curation-card__media {
    height: 190px;
  }

  .curation-card__copy {
    padding: 14px 15px 16px;
  }

  .curation-card h2 {
    min-height: 46px;
    margin-top: 8px;
    font-size: 19px;
  }

  .curation-card p {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .curation-skeleton article {
    min-height: 332px;
  }

  .curation-skeleton i {
    height: 190px;
  }

  .empty-state {
    margin-top: 54px;
  }

  .empty-state > div {
    flex-direction: column;
  }
}
