:root {
  --bg: #0d1010;
  --panel: #151917;
  --panel-strong: #1e2420;
  --line: #384035;
  --text: #f2ead9;
  --muted: #b9ad98;
  --gold: #d5ad63;
  --teal: #6ea9a0;
  --red: #b65c4f;
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  align-items: center;
  background: rgba(13, 16, 16, 0.82);
  border-bottom: 1px solid rgba(213, 173, 99, 0.2);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 50%;
  min-height: 64px;
  max-width: 1180px;
  padding: 12px 0;
  position: fixed;
  top: 0;
  transform: translateX(-50%);
  width: min(calc(100% - 36px), 1180px);
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  border-radius: 6px;
  display: inline-block;
  height: 34px;
  object-fit: contain;
  width: 34px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px;
}

.main-nav a:hover {
  color: var(--text);
}

.hero {
  background:
    radial-gradient(130% 110% at 50% -10%, rgba(213, 173, 99, 0.14) 0%, rgba(11, 13, 18, 0) 58%),
    #0b0d12;
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin: 0 auto;
  max-width: 1180px;
  min-height: clamp(380px, 56vh, 540px);
  overflow: hidden;
  padding: clamp(120px, 16vh, 180px) clamp(20px, 5vw, 56px) clamp(72px, 10vh, 104px);
  position: relative;
  text-align: center;
  width: min(calc(100% - 36px), 1180px);
}

.hero-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-content::before {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  content: "";
  height: 2px;
  margin-bottom: 22px;
  width: 48px;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero h1 {
  background: linear-gradient(180deg, #ffffff 0%, #e9dcc0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  margin-bottom: 14px;
}

h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.hero-copy {
  color: #cfc4b0;
  font-size: clamp(15px, 1.5vw, 17px);
  margin: 0 auto;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.button {
  align-items: center;
  border: 1px solid rgba(213, 173, 99, 0.42);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
}

.button.primary {
  background: var(--gold);
  color: #111;
}

.button.secondary {
  background: rgba(21, 25, 23, 0.72);
  color: var(--text);
}

.section-heading p,
.site-footer p {
  color: var(--muted);
}

.section-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 88px clamp(18px, 4vw, 32px);
}

.section-heading {
  margin-bottom: 28px;
  max-width: 760px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.category-button {
  background: #111715;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  min-height: 38px;
  padding: 7px 12px;
}

.category-button:hover,
.category-button.is-active {
  border-color: var(--gold);
  color: var(--text);
}

.item-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.item-card {
  background: var(--panel);
  border: 1px solid rgba(213, 173, 99, 0.22);
  box-shadow: 0 18px 48px var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  position: relative;
}

/* 우측 상단 모서리를 가로지르는 대각 리본(45°). 카드의 overflow:hidden으로 깔끔한 삼각형이 됩니다. */
.new-badge {
  position: absolute;
  top: 14px;
  right: -34px;
  z-index: 3;
  width: 120px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #e0563f, #b6352a);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 5px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.item-visual {
  align-items: center;
  appearance: none;
  aspect-ratio: 4 / 3;
  background: #090a09;
  border: none;
  border-bottom: 1px solid rgba(213, 173, 99, 0.18);
  cursor: zoom-in;
  display: flex;
  font: inherit;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  width: 100%;
}

.item-visual img {
  display: block;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
  width: 100%;
}

.item-visual:hover img,
.item-visual:focus-visible img {
  transform: scale(1.04);
}

.item-visual:focus-visible {
  outline: 2px solid var(--gold, #d5ad63);
  outline-offset: -2px;
}

/* 이미지 라이트박스(클릭 확대) */
.no-scroll {
  overflow: hidden;
}

.lightbox {
  align-items: center;
  background: rgba(6, 7, 6, 0.92);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 1000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  display: inline-flex;
  margin: 0;
  max-height: 92vh;
  max-width: 92vw;
  position: relative;
}

.lightbox-image {
  border: 1px solid rgba(213, 173, 99, 0.35);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-close {
  align-items: center;
  appearance: none;
  background: rgba(20, 20, 20, 0.78);
  border: 1px solid rgba(213, 173, 99, 0.4);
  border-radius: 50%;
  color: #f4ecd8;
  cursor: pointer;
  display: flex;
  font-size: 22px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: -16px;
  top: -16px;
  width: 38px;
  z-index: 1;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(213, 173, 99, 0.25);
}

.item-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.item-meta {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.category-label {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.split {
  align-items: start;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.commission-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 20px;
}

.commission-panel p {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px clamp(18px, 4vw, 56px);
  text-align: center;
}

.site-footer p {
  font-size: 13px;
  margin: 0;
}

.to-top {
  align-items: center;
  background: rgba(213, 173, 99, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.24);
  bottom: 22px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
  color: #111;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  position: fixed;
  right: 22px;
  width: 46px;
  z-index: 30;
}

.to-top:hover {
  background: #efca78;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .item-grid,
  .split {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .to-top {
    bottom: 16px;
    height: 42px;
    right: 16px;
    width: 42px;
  }

  .section-shell {
    padding-bottom: 62px;
    padding-top: 62px;
  }
}
