/* 기본 */
body.theme-dark {
  --bg: #0f0b14;
  --panel: #1a1222;
  --line: rgba(255, 255, 255, .12);
  --soft: rgba(255, 255, 255, .62);
  --lilac: #c9a8e8;
  --ink: #fff;
  --text-body: rgba(255, 255, 255, .62);
  --muted: rgba(255, 255, 255, .62);
  --wrap: min(1320px, calc(100% - 80px));
  --edge: max(40px, calc((100% - 1320px) / 2));
  color: #fff;
  background: var(--bg) !important;
  word-break: keep-all;
}

/* 헤더 */
.theme-dark .header {
  background: rgba(15, 11, 20, .82);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.theme-dark .header.is-scrolled {
  background: rgba(15, 11, 20, .82);
  box-shadow: 0 1px 0 var(--line);
}
.theme-dark .nav-submenu {
  border-color: var(--line);
  background: rgba(26, 18, 34, .97);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.theme-dark .header .nav-menu .nav-submenu a {
  color: #fff;
}
.theme-dark .header .nav-menu .nav-submenu a:hover,
.theme-dark .header .nav-menu .nav-submenu a[aria-current="page"] {
  background: rgba(201, 168, 232, .14);
}
@media (max-width: 700px) {
  .theme-dark .header .nav-menu {
    background: #0f0b14;
  }
  .theme-dark .nav-submenu {
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

/* 상단 소개 */
.theme-dark .creator-hero > p:first-child,
.theme-dark .creator-heading > p,
.theme-dark .works-hero .works-kicker {
  color: var(--lilac);
}
.theme-dark .creator-hero > p:last-child,
.theme-dark .works-hero .intro {
  color: var(--soft);
}

/* 섹션 제목 */
.theme-dark .creator-heading h2,
.theme-dark .works-contents h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.045em;
}
.theme-dark.works-page .works-contents p {
  color: var(--soft);
}

/* 버튼 */
.theme-dark .view-button {
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}
.theme-dark .view-button:hover {
  border-color: #fff;
  color: var(--bg);
  background: #fff;
}

/* CREATOR */
.theme-dark .creator-filters button {
  border-color: var(--line);
  color: var(--soft);
  background: transparent;
}
.theme-dark .creator-filters button:hover {
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
  background: transparent;
}
.theme-dark .creator-filters button.is-active {
  border-color: #fff;
  color: var(--bg);
  background: #fff;
}
.theme-dark .creator-info h3 {
  color: #fff;
}
.theme-dark .creator-id {
  color: var(--lilac) !important;
}
.theme-dark .creator-tag {
  color: rgba(255, 255, 255, .45) !important;
}
.theme-dark .creator-socials img {
  filter: brightness(0) invert(1);
}

/* WORKS */
.theme-dark.works-page .works-card {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: none;
}
.theme-dark.works-page .works-card:hover {
  border-color: rgba(201, 168, 232, .5);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4);
}
.theme-dark.works-page .works-card::before {
  color: var(--lilac);
}
.theme-dark.works-page .works-card p {
  color: var(--soft);
}
.theme-dark.works-page .works-card-image {
  background: var(--panel);
  box-shadow: none;
}

/* NEWSROOM 목록 */
.theme-dark .news-filter-button {
  border-color: var(--line);
  color: var(--soft);
  background: transparent;
}
.theme-dark .news-filter-button.is-active {
  border-color: #fff;
  color: var(--bg);
  background: #fff;
}
.theme-dark .news-card-image {
  background: var(--panel);
  box-shadow: none;
}
.theme-dark .news-category {
  color: var(--lilac);
}
.theme-dark .news-card-title,
.theme-dark .news-title {
  color: #fff;
}
.theme-dark .news-date,
.theme-dark .news-empty {
  color: var(--soft);
}
.theme-dark .news-page-button {
  color: var(--soft);
}
.theme-dark .news-page-button:hover {
  color: #fff;
}
.theme-dark .news-page-button.is-active {
  color: var(--bg);
  background: #fff;
}

/* NEWSROOM 상세 */
.theme-dark .news-back {
  color: var(--soft);
}
.theme-dark .news-back:hover {
  color: #fff;
}
.theme-dark .news-article-header,
.theme-dark .news-adjacent,
.theme-dark .news-adjacent-link {
  border-color: var(--line);
}
.theme-dark .news-body {
  color: rgba(255, 255, 255, .78);
}
.theme-dark .news-adjacent-link span {
  color: var(--soft);
}
.theme-dark .news-adjacent-link strong {
  color: #fff;
}
.theme-dark .news-adjacent-link:hover strong {
  color: var(--lilac);
}
.theme-dark .news-body .news-link {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}
.theme-dark .news-body .news-link:hover {
  border-color: #fff;
  color: var(--bg);
  background: #fff;
}
.theme-dark .news-body .news-link img {
  filter: brightness(0) invert(1);
}
.theme-dark .news-body .news-link:hover img {
  filter: brightness(0);
}

/* 푸터 */
.theme-dark .site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

/* 브랜드 그라데이션 */
.theme-dark .header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--iris);
  opacity: .9;
  pointer-events: none;
}
.theme-dark .creator-hero,
.theme-dark .works-hero {
  position: relative;
  isolation: isolate;
}
.theme-dark .creator-hero::before,
.theme-dark .works-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: min(1100px, 120%);
  height: 100%;
  background:
    radial-gradient(closest-side at 30% 45%, rgba(126, 166, 234, .32), transparent),
    radial-gradient(closest-side at 70% 55%, rgba(213, 154, 208, .3), transparent);
  filter: blur(30px);
  transform: translateX(-50%);
  pointer-events: none;
}

/* WORKS 등장 효과 */
@keyframes works-rise {
  from {
    opacity: 0;
    translate: 0 140px;
    scale: .9;
    filter: blur(12px);
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    filter: blur(0);
  }
}
@keyframes works-curtain {
  from {
    clip-path: inset(100% 0 0 0 round 22px);
  }
  to {
    clip-path: inset(0 0 0 0 round 22px);
  }
}
@keyframes works-zoom-out {
  from {
    scale: 1.3;
  }
  to {
    scale: 1;
  }
}
@keyframes works-slide {
  from {
    opacity: 0;
    translate: -120px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes works-title {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    translate: 0 70%;
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 -10% 0);
    translate: 0 0;
  }
}
.has-reveal .works-card:not(.is-in),
.has-reveal .works-card:not(.is-in) > div > *,
.has-reveal .works-contents:not(.is-in) > * {
  opacity: 0;
}
.has-reveal .works-card:not(.is-in) .works-card-image {
  clip-path: inset(100% 0 0 0);
}
.works-card.is-in {
  animation: works-rise 1.2s cubic-bezier(.16, 1, .3, 1) both;
}
.works-card.is-in .works-card-image {
  animation: works-curtain 1.3s cubic-bezier(.76, 0, .24, 1) .25s both;
}
.works-card.is-in .works-card-image img {
  animation: works-zoom-out 1.8s cubic-bezier(.16, 1, .3, 1) .25s both;
}
.works-card.is-in > div > * {
  animation: works-slide 1s cubic-bezier(.16, 1, .3, 1) both;
}
.works-card.is-in > div > :nth-child(2) {
  animation-delay: .45s;
}
.works-card.is-in > div > :nth-child(3) {
  animation-delay: .6s;
}
.works-contents.is-in > * {
  animation: works-rise 1.1s cubic-bezier(.16, 1, .3, 1) both;
}
.works-contents.is-in h2 {
  animation-name: works-title;
  animation-delay: .1s;
}
.works-contents.is-in > p {
  animation-delay: .3s;
}
