/* ==========================================================================
   아티스트 상세 페이지 공용 스타일 — /artists/gaho/ · /artists/kave/

   홈(index.html)은 CSS 를 인라인으로 들고 있지만, 아티스트 페이지는 둘이
   구조가 완전히 같으므로 파일로 공유한다. 두 벌로 복사하면 반드시 갈라진다.

   ⚠ 이 파일과 아티스트 HTML 의 모든 경로는 루트 절대경로(/images/...)다.
      페이지가 /artists/gaho/ 에 있으므로 상대경로를 쓰면
      /artists/gaho/images/... 를 찾아 전부 깨진다.

   토큰 값은 홈과 동일하게 유지한다. 홈에서 토큰을 바꾸면 여기도 바꾼다.
   ========================================================================== */

:root {
  --ink:    #000000;
  --paper:  #ffffff;
  --grey:   #8e8e8e;
  --hair:   #d8d8d8;

  --hair-on-dark: rgba(255, 255, 255, .22);
  --on-dark-2:    rgba(255, 255, 255, .62);
  --placeholder:  #e9e9e9;

  --font-display: 'Anton', 'Black Han Sans', Impact, sans-serif;
  --font-ko:      'Black Han Sans', 'Anton', sans-serif;
  --font-body:    'Archivo', -apple-system, 'Pretendard', 'Apple SD Gothic Neo',
                  'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', sans-serif;

  --gut:  clamp(16px, 3.2vw, 52px);
  --maxw: 1600px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

.display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
           letter-spacing: -.01em; line-height: .82; margin: 0; }
/* 한글이 들어가는 디스플레이 텍스트. Anton 은 라틴 전용이라 행간 .82 로는 받침이 겹친다 */
.display--ko { font-family: var(--font-ko); line-height: .98; letter-spacing: -.02em; }
.micro { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.lower { text-transform: none; letter-spacing: .02em; }
.body-lg { font-size: clamp(.95rem, 1.15vw, 1.0625rem); line-height: 1.62; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- 상단 네비 ----
   홈은 영상 위에 얹혀서 mix-blend-mode 를 쓰지만, 여기는 흰 지면이라 그냥 잉크다. */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px var(--gut);
  background: var(--paper); border-bottom: 1px solid var(--hair);
}
.nav__logo { display: flex; align-items: center; }
/* 로고는 흰 글자 PNG 다 — 흰 지면에서는 반전해야 보인다 */
.nav__logo img { width: auto; height: clamp(20px, 2.4vw, 30px); display: block; filter: invert(1); }
.nav__links { display: flex; gap: clamp(10px, 2vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav__links a { position: relative; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__lang { display: flex; align-items: center; gap: 6px; }
.nav__lang span { opacity: .45; }
.lang {
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  background: none; border: 0; padding: 0 0 2px; color: inherit; opacity: .45;
  cursor: pointer; border-bottom: 1px solid transparent;
  transition: opacity .25s var(--ease), border-color .25s var(--ease);
}
.lang:hover { opacity: 1; }
.lang[aria-pressed="true"] { opacity: 1; border-color: currentColor; }

@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* ---- 본문 ---- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding: clamp(40px, 6vw, 96px) var(--gut); }

/* 되돌아가는 길. 검색으로 이 페이지에 바로 들어온 사람에게 필요하다 */
.crumb { color: var(--grey); margin: 0 0 clamp(22px, 3vw, 40px); }
.crumb a:hover { color: var(--ink); }
.crumb span { opacity: .5; padding: 0 .5em; }

/* 제목 + 대표 사진 2단 */
.head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(22px, 4vw, 76px); align-items: start;
  margin-bottom: clamp(40px, 6vw, 96px);
}
.head__name { font-size: clamp(3rem, 11vw, 8rem); margin: 0 0 6px; }
.head__ko { font-family: var(--font-ko); font-size: clamp(.9rem, 1.6vw, 1.35rem);
            color: var(--grey); margin: 0 0 clamp(20px, 3vw, 34px); }
.head__media { margin: 0; background: var(--placeholder); }
.head__media img { width: 100%; height: auto; display: block; filter: grayscale(1) contrast(1.04);
                   transition: filter .7s var(--ease), opacity .5s var(--ease); }
.head__media:hover img { filter: grayscale(0); }

.facts { margin: 0 0 clamp(24px, 3.4vw, 44px); }
.facts dt { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
            color: var(--grey); margin-top: 14px; }
.facts dd { margin: 3px 0 0; }

/* SNS — 아이콘만. 글자가 없으므로 aria-label 이 유일한 이름이다 */
.sns { display: flex; flex-wrap: wrap; gap: clamp(2px, .8vw, 10px); margin: clamp(22px, 2.4vw, 34px) 0 0 -12px; }
.sns a {
  display: grid; place-items: center; width: 44px; height: 44px; color: var(--grey);
  transition: color .3s var(--ease), transform .4s var(--ease);
}
.sns a:hover { color: var(--ink); transform: translateY(-2px); }
.sns a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; color: var(--ink); }
.sns svg { display: block; }

/* 섹션 */
.sec + .sec { margin-top: clamp(46px, 7vw, 104px); }
.sec__title { font-size: clamp(1.5rem, 4vw, 3rem); margin: 0 0 clamp(20px, 2.6vw, 34px); }
.prose p { margin: 0 0 1.05em; max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }

/* 발매작 · 공연 이력 — 한 건이 한 줄 */
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hair); }
.rows li {
  display: grid; grid-template-columns: minmax(96px, 148px) minmax(0, 1fr) minmax(0, 220px);
  gap: clamp(14px, 2.6vw, 44px); align-items: start;
  padding: clamp(16px, 2.2vw, 26px) 0; border-top: 1px solid var(--hair);
}
.rows time, .rows .when { color: var(--grey); padding-top: .3em; font-variant-numeric: tabular-nums; }
.rows h3 { font-family: var(--font-display); text-transform: uppercase;
           font-size: clamp(1.05rem, 2.2vw, 1.75rem); line-height: 1.05; margin: 0 0 6px; }
.rows p { margin: 0; }
.rows .where { margin: 0; padding-top: .3em; text-align: right; color: var(--grey); }
@media (max-width: 760px) {
  .rows li { grid-template-columns: 1fr; gap: 8px; }
  .rows .where { text-align: left; padding-top: 0; }
}

/* 멤버 — KAVE 전용 */
.members { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(120px, 15vw, 200px), 1fr));
           gap: clamp(10px, 1.6vw, 22px); list-style: none; margin: 0; padding: 0; }
.members li { margin: 0; }
.members figure { margin: 0; position: relative; background: var(--placeholder); }
.members img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; display: block;
               filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease), opacity .5s var(--ease); }
.members figure:hover img { filter: grayscale(0); }
.members figcaption {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 6px 10px;
  background: rgba(0, 0, 0, .62); color: var(--paper); backdrop-filter: blur(6px);
  font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.members .no { color: rgba(255, 255, 255, .55); margin-right: .5em; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  /* 좁은 화면에서는 이름·설명이 먼저, 사진이 그 아래 */
  .head { grid-template-columns: 1fr; }
  .head__media { order: 2; }
}

/* ---- 푸터 ---- */
.foot { background: var(--ink); color: var(--paper); padding: clamp(40px, 6vw, 90px) var(--gut) clamp(24px, 3vw, 40px); }
.foot__inner { max-width: var(--maxw); margin-inline: auto; }
.foot__mark { margin: 0 0 clamp(24px, 4vw, 56px); line-height: 0; }
.foot__mark img { display: block; width: min(420px, 62%); height: auto; }
.foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
              gap: clamp(20px, 3vw, 48px); border-top: 1px solid var(--hair-on-dark); padding-top: 20px; }
.foot__cols p { margin: 0 0 8px; color: var(--grey); }
.foot__cols a { display: block; }
.foot__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
                margin-top: clamp(30px, 5vw, 60px); color: var(--grey); }

/* ---- 사진 등장 ----
   느린 회선에서 빈 상자가 먼저 떠오르지 않게, 사진 자신의 load 에 맞춰 나타낸다.
   JS 가 없으면 이 규칙이 걸리지 않아 이미지는 그냥 보인다. */
.js .head__media img,
.js .members img { opacity: 0; }
.js .head__media img.is-loaded,
.js .members img.is-loaded { opacity: 1; }

/* 터치 기기에는 hover 가 없다. 탭이 hover 를 흉내 내고 풀리지 않아 상태가 굳는다 */
@media (hover: none) {
  .head__media:hover img { filter: grayscale(1) contrast(1.04); }
  .members figure:hover img { filter: grayscale(1) contrast(1.05); }
  .sns a:hover { transform: none; }
  .nav__links a:hover::after { transform: scaleX(0); }
  .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   공연 이력 페이지 (/live/)

   투어를 덩어리로 묶고 개별 공연을 그 안의 목록으로 둔다.
   낱개로 늘어놓으면 규모가 안 보이고, 요약만 두면 검색이 읽을 게 없다.
   ========================================================================== */
.tour + .tour { margin-top: clamp(44px, 6.5vw, 96px); padding-top: clamp(30px, 4.5vw, 60px);
                border-top: 1px solid var(--hair); }
.tour__head { display: flex; align-items: flex-end; justify-content: space-between;
              gap: 20px; flex-wrap: wrap; margin-bottom: clamp(16px, 2.4vw, 30px); }
.tour__label { color: var(--grey); margin: 0 0 6px; }
.tour__title { font-size: clamp(1.4rem, 3.4vw, 2.8rem); margin: 0; }
.tour__span { margin: 0; text-align: right; color: var(--grey); }

/* 다가오는 투어임을 알린다 — 지난 것과 같은 무게로 두면 '지금'이 안 보인다 */
.tour__now { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 8px; }
.tour__pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor;
               animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }

.gigs { list-style: none; margin: 0; padding: 0; }
.gigs li {
  display: grid; grid-template-columns: minmax(84px, 130px) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(12px, 2.4vw, 40px); align-items: baseline;
  padding: clamp(14px, 2.2vw, 26px) 0; border-top: 1px solid var(--hair);
}
.gigs li:last-child { border-bottom: 1px solid var(--hair); }
.gigs .date { color: var(--grey); font-variant-numeric: tabular-nums; }
.gigs h3 { font-family: var(--font-display); text-transform: uppercase;
           font-size: clamp(1.05rem, 2.2vw, 1.9rem); line-height: 1; margin: 0; }
.gigs .place { margin: 0; color: var(--grey); }
@media (max-width: 760px) {
  .gigs li { grid-template-columns: 1fr auto; }
  .gigs .date, .gigs .place { grid-column: 1 / -1; }
  .tour__span { text-align: left; }
}

/* ==========================================================================
   발매작 페이지 (/releases/)

   연도로 묶고, 커버가 주인공이다. 제목·수록처는 커버 아래에 텍스트로 둔다 —
   홈처럼 hover 오버레이로 감추면 검색엔진은 읽지만 사람은 못 읽고,
   터치 기기에서는 아무도 못 본다.
   ========================================================================== */
.year + .year { margin-top: clamp(46px, 7vw, 104px); }
.year__no { font-size: clamp(2rem, 7vw, 5rem); color: var(--hair); margin: 0 0 clamp(18px, 2.4vw, 30px); }

.discs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 15vw, 210px), 1fr));
  gap: clamp(18px, 2.6vw, 40px);
}
.disc { margin: 0; }
.disc__art { display: block; position: relative; background: var(--placeholder); margin-bottom: 12px; }
.disc__art img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block;
  filter: saturate(.9) contrast(1.02);
  transition: filter .6s var(--ease), transform .9s var(--ease), opacity .5s var(--ease);
}
/* 커버는 흑백으로 죽이지 않는다 — 아트워크 자체가 디자인이다.
   가장자리만 눌러 지면 톤에 앉힌다. */
.disc__art::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.16), inset 0 0 clamp(12px,2vw,28px) rgba(0,0,0,.22);
  transition: opacity .6s var(--ease);
}
.disc:hover .disc__art img { filter: none; transform: scale(1.03); }
.disc:hover .disc__art::after { opacity: 0; }

.disc__title { font-family: var(--font-display); text-transform: uppercase;
               font-size: clamp(.95rem, 1.3vw, 1.15rem); line-height: 1.05; margin: 0 0 5px; }
.disc__meta { display: block; color: var(--grey); font-variant-numeric: tabular-nums; }
.disc__from, .disc__tracks { margin: 5px 0 0; color: var(--grey); line-height: 1.4; }
.disc__tracks { opacity: .8; }
.disc__link { margin: 7px 0 0; }
.disc__link a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.js .disc__art img { opacity: 0; }
.js .disc__art img.is-loaded { opacity: 1; }

@media (hover: none) {
  .disc:hover .disc__art img { filter: saturate(.9) contrast(1.02); transform: none; }
  .disc:hover .disc__art::after { opacity: 1; }
}
