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

* {
  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,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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: 236px;
  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 {
  display: grid;
  gap: 7px;
  padding: 0 12px 12px;
}

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

.prototype-tools select {
  width: 100%;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  font-size: 12px;
}

.prototype-tools label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  font-size: 12px;
}

.prototype-segment {
  display: grid;
  grid-template-columns: repeat(2, 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;
}

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

.curation-detail-page {
  padding: 28px 32px 120px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  color: #555a56;
  font-size: 13px;
  font-weight: 900;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ended-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 14px;
  padding: 10px 13px;
  border: 1px solid #d9c99a;
  border-radius: 6px;
  background: #fff8de;
  font-size: 12px;
}

.ended-notice span {
  color: #655d45;
}

.curation-hero {
  display: grid;
  height: 330px;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  overflow: hidden;
  border-radius: 8px;
  background: var(--yellow);
}

.curation-hero__copy {
  display: flex;
  min-width: 0;
  justify-content: center;
  flex-direction: column;
  padding: 36px 40px;
}

.curation-label {
  align-self: flex-start;
  padding: 6px 8px;
  border-radius: 4px;
  color: #fff;
  background: #202220;
  font-size: 11px;
  font-weight: 900;
}

.curation-hero h1 {
  max-width: 500px;
  margin: 15px 0 12px;
  font-size: 38px;
  line-height: 1.18;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.curation-hero p {
  display: -webkit-box;
  max-width: 560px;
  margin: 0 0 20px;
  overflow: hidden;
  color: #444843;
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.curation-hero small {
  color: #555747;
  font-size: 11px;
  font-weight: 900;
}

.curation-hero__media {
  min-width: 0;
  overflow: hidden;
}

.curation-hero__media img {
  height: 100%;
  object-fit: cover;
}

.curation-section {
  padding-top: 62px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 20px;
}

.section-heading > span {
  color: #65716a;
  font-size: 10px;
  font-weight: 900;
}

.section-heading h2 {
  margin: 6px 0 7px;
  font-size: 27px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.ended-footer {
  margin-top: 64px;
  padding: 32px;
  border-block: 1px solid var(--line);
  text-align: center;
}

.ended-footer strong {
  font-size: 20px;
}

.ended-footer p {
  margin: 8px 0 17px;
  color: var(--muted);
  font-size: 13px;
}

.ended-footer a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 1023px) {
  .curation-detail-page {
    padding: 24px 24px 108px;
  }

  .curation-hero {
    grid-template-columns: 1fr 1fr;
  }

  .curation-hero__copy {
    padding: 28px;
  }

  .curation-hero h1 {
    font-size: 31px;
  }
}

@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-detail-page {
    padding: 16px 16px 96px;
  }

  .back-link {
    min-height: 34px;
    margin-bottom: 4px;
  }

  .ended-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .curation-hero {
    height: auto;
    grid-template-columns: 1fr;
    border-radius: 0;
    margin-inline: -16px;
  }

  .curation-hero__media {
    height: 218px;
    order: 1;
  }

  .curation-hero__copy {
    min-height: 224px;
    padding: 20px 16px 22px;
    order: 2;
  }

  .curation-hero h1 {
    display: -webkit-box;
    width: min(100%, 330px);
    max-width: 330px;
    margin: 11px 0 9px;
    overflow: hidden;
    font-size: 27px;
    white-space: normal;
    word-break: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .curation-hero p {
    margin-bottom: 14px;
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  .curation-section {
    padding-top: 44px;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .ended-footer {
    margin-top: 48px;
    padding: 28px 12px;
  }
}
