/* SynapMall — 테마 둘러보기(templates/showcase/index.html). 쇼핑몰 스킨과 무관한 별도 화면이라 토큰도 여기에만 둔다.
   흰 바탕·검정 글자에 사진(스킨 화면)이 주인공 — 장식은 브라우저 창 막대 하나. 클래스는 sc-*. */
:root {
  --sc-bg: #FFFFFF;
  --sc-soft: #F4F4F2;
  --sc-ink: #111111;
  --sc-text: #3A3A3A;
  --sc-muted: #6E6E6E;
  --sc-line: #E6E6E3;
  --sc-accent: #2E5BFF;
  --sc-font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --sc-ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--sc-bg); color: var(--sc-text); font-family: var(--sc-font); letter-spacing: -0.02em; word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
.sc-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* 머리말 */
.sc-top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sc-line); }
.sc-top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.sc-brand { display: inline-flex; align-items: baseline; gap: 8px; font-size: 1.15rem; font-weight: 800; color: var(--sc-ink); }
.sc-brand span { font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sc-muted); }
.sc-top-links { display: flex; gap: 6px; }
.sc-top-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--sc-text); }
.sc-top-links a:hover { background: var(--sc-soft); color: var(--sc-ink); }

/* 첫 화면 */
.sc-hero { padding: 88px 0 48px; }
.sc-eyebrow { margin: 0 0 18px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sc-accent); }
.sc-hero h1 { margin: 0; font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 700; line-height: 1.22; letter-spacing: -0.045em; color: var(--sc-ink); }
.sc-lead { max-width: 640px; margin: 22px 0 0; font-size: 1.02rem; line-height: 1.75; color: var(--sc-muted); }

/* 업종 칩 */
.sc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.sc-chips button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 1px solid var(--sc-line); border-radius: 999px;
  background: var(--sc-bg); color: var(--sc-text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.sc-chips button small { font-size: .74rem; font-weight: 500; color: var(--sc-muted); }
.sc-chips button:hover { border-color: var(--sc-ink); }
.sc-chips button.on { background: var(--sc-ink); border-color: var(--sc-ink); color: #fff; }
.sc-chips button.on small { color: rgba(255, 255, 255, .7); }

/* 테마 카드 */
.sc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; margin: 0 0 120px; padding: 0; list-style: none; }
.sc-card[hidden] { display: none; }
.sc-card > a { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.sc-shot { position: relative; display: block; overflow: hidden; border: 1px solid var(--sc-line); border-radius: 12px; background: var(--sc-soft);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 28px -18px rgba(0, 0, 0, .28); }
.sc-bar { display: flex; gap: 6px; height: 26px; padding: 0 12px; align-items: center; background: var(--sc-soft); border-bottom: 1px solid var(--sc-line); }
.sc-bar i { width: 8px; height: 8px; border-radius: 50%; background: #D6D6D2; }
.sc-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.sc-swatch { display: flex; aspect-ratio: 16 / 10; }
.sc-swatch i { flex: 1; }
.sc-now { position: absolute; right: 12px; top: 38px; padding: 4px 10px; border-radius: 999px; background: var(--sc-ink); color: #fff; font-size: .74rem; font-weight: 700; }
.sc-body { display: flex; flex-direction: column; gap: 8px; padding: 0 2px; }
.sc-name { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sc-name b { font-size: 1.2rem; font-weight: 700; color: var(--sc-ink); }
.sc-dots { display: flex; gap: 4px; }
.sc-dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.sc-desc { font-size: .9rem; line-height: 1.65; color: var(--sc-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sc-go { margin-top: 4px; font-size: .88rem; font-weight: 700; color: var(--sc-ink); }
.sc-card > a:hover .sc-go { color: var(--sc-accent); }

.sc-foot { padding: 28px 0 40px; border-top: 1px solid var(--sc-line); font-size: .8rem; color: var(--sc-muted); }

@media (max-width: 1023px) {
  .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
}
@media (max-width: 639px) {
  .sc-wrap { padding: 0 16px; }
  .sc-top-row { height: 56px; }
  .sc-top-links a { padding: 0 10px; font-size: .8rem; }
  .sc-top-links a:first-child:not(:only-child) { display: none; }
  .sc-hero { padding: 48px 0 28px; }
  .sc-lead { font-size: .94rem; }
  .sc-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 24px; padding: 0 16px; }
  .sc-chips::-webkit-scrollbar { display: none; }
  .sc-chips button { flex-shrink: 0; }
  .sc-grid { grid-template-columns: 1fr; gap: 36px; margin-bottom: 72px; }
}

/* 움직임 — 카드 사진이 살짝 다가온다 */
@media (prefers-reduced-motion: no-preference) {
  .sc-shot { transition: translate .35s var(--sc-ease), box-shadow .35s var(--sc-ease); }
  .sc-shot img { transition: scale .6s var(--sc-ease); }
  .sc-card > a:hover .sc-shot { translate: 0 -4px; box-shadow: 0 2px 4px rgba(0, 0, 0, .04), 0 24px 40px -22px rgba(0, 0, 0, .35); }
  .sc-card > a:hover .sc-shot img { scale: 1.02; }
  @keyframes sc-in { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: none; } }
  .sc-hero .sc-wrap > * { animation: sc-in .7s var(--sc-ease) both; }
  .sc-hero .sc-wrap > :nth-child(2) { animation-delay: .08s; }
  .sc-hero .sc-wrap > :nth-child(3) { animation-delay: .16s; }
}
