/* 브랜드 색 — 여기만 고치면 전체가 바뀝니다 (최종 로고 파일 '사운드 베리즈_로고 PNG 파일.png' 의 색) */
:root {
  --brand: #B20029;        /* 크림슨 레드 (로고 글자) */
  --brand-hover: #821226;  /* 와인 레드 */
  --accent: #476936;       /* 그린 (로고 잎) */
  --bg: #F5F5F4;           /* 오프화이트 바탕 */
  --tint: #F3ECEA;         /* 연한 베리 톤 — 번갈아 쓰는 섹션 배경 */
  --cream: #FFFAE5;        /* 포인트 크림 (토글, 버건디 위 라벨, 태그) */
  --text: #1C1917;
  --muted: #78716C;
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;

  /* 화면 구성용 보조 색 */
  --surface: #FFFFFF;
  --line: rgba(28, 25, 23, 0.1);   /* 옅은 중립 구분선 */
  --glass: rgba(255, 255, 255, 0.2);
  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, 0.72);
  --hero-bg: #490715;       /* 짙은 버건디 (히어로 · 문의) */
  --footer-bg: #1C1917;
  --next-track-bg: #000000;   /* The Next Track 로고 배경 */
  --sing-bg: #382C60;         /* 싱어송 배워송 로고 배경 */

  /* 글자 크기 — 사이트 전체가 이 7단계만 씁니다 */
  --fs-display: clamp(40px, 7vw, 80px);   /* 히어로 슬로건 */
  --fs-h2: clamp(28px, 4vw, 40px);        /* 섹션 제목 */
  --fs-h3: 24px;                          /* 카드·패널 제목, 이름, 숫자 */
  --fs-lead: 18px;                        /* 강조 문장 */
  --fs-body: 16px;                        /* 본문 */
  --fs-small: 14px;                       /* 보조 설명, 버튼, 메뉴 */
  --fs-caption: 12px;                     /* 영문 라벨, 태그 */

  --container: 1120px;
  --gutter: 16px;
  --header-h: 64px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
img { max-width: 100%; height: auto; }
button:focus { outline: none; }
button:focus-visible { outline: 2px solid var(--brand-hover); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- 헤더 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

/* 로고 */
.logo { flex: none; display: inline-flex; }
.logo img { display: block; width: auto; height: 28px; }

.nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nav a:hover { color: var(--brand); }

.header-tools { display: flex; align-items: center; gap: 12px; }

/* 언어 전환: 메뉴와 구분되도록 알약 모양 토글 */
.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
}
.lang button {
  border: 0;
  border-radius: 999px;
  background: none;
  padding: 4px 10px;
  font: inherit;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  cursor: pointer;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--brand); color: var(--on-dark); }

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  padding: 10px 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.menu-btn span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

@media (min-width: 1041px) {
  .header-tools { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 1040px) {
  .header-tools { margin-left: auto; }
  .menu-btn { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .logo img { height: 24px; }
}

/* ---------- 히어로 ---------- */
.hero {
  background: var(--hero-bg);
  color: var(--on-dark);
  padding: 136px 0;
}
.eyebrow {
  margin: 0 0 48px;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}
.hero-title {
  margin: 0;
  max-width: 14ch;
  font-size: var(--fs-display);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-sub {
  margin: 28px 0 0;
  max-width: 34em;
  font-size: var(--fs-lead);
  color: var(--on-dark-muted);
}
.hero-cta { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
}
.btn-primary { background: var(--brand); color: var(--on-dark); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-dark); }
.btn-ghost { border: 1.5px solid var(--on-dark-muted); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); color: var(--on-dark); }

/* ---------- 공통 섹션: 영문 라벨(caption) → 제목(h2) → 본문 ---------- */
.section { padding: 96px 0; }
.label {
  margin: 0 0 16px;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--brand);
}
.title {
  margin: 0 0 32px;
  text-wrap: balance;
  font-size: var(--fs-h2);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-tint { background: var(--tint); }
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero { padding: 88px 0 96px; }
  .eyebrow { margin-bottom: 32px; }
  .hero-sub { font-size: var(--fs-body); }
  .hero-cta { margin-top: 40px; }
  .title { margin-bottom: 24px; }
  .what-desc { white-space: normal; }
  .about-body .about-lead { margin-bottom: 24px; }
  .lang button { padding: 4px 8px; }
  .header-inner { gap: 12px; }
}

/* ABOUT */
.about-body { font-size: var(--fs-body); line-height: 1.9; }
.about-body p { margin: 0 0 24px; text-wrap: pretty; }
.about-body p:last-child { margin-bottom: 0; }
.about-body .about-lead {
  margin-bottom: 32px;
  white-space: pre-line;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
@media (min-width: 900px) {
  .about { display: grid; grid-template-columns: 1fr 2.2fr; gap: 64px; align-items: start; }
  .about-head .title { margin-bottom: 0; }
  .about-body p { white-space: pre-line; }
  /* 영어 문장은 길어서 본문 칸을 더 넓게 */
  html[lang="en"] .about { grid-template-columns: 1fr 3fr; gap: 48px; }
  html[lang="en"] .about-body { font-size: 15px; }
}

/* ---------- WHAT WE DO — 겹쳐 이어진 원(=올인원). 원을 누르면 아래에 설명이 바뀜 ---------- */
.what-head { text-align: center; }
.what-desc { margin: -16px auto 0; max-width: 46em; color: var(--muted); white-space: pre-line; text-wrap: balance; }

.rings {
  --size: clamp(100px, 13.5vw, 156px);
  margin: 56px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.ring {
  position: relative;
  width: var(--size);
  height: var(--size);
  margin-left: calc(var(--size) * -0.14);   /* 옆 원과 살짝 겹쳐 하나로 이어지게 */
  border: 2px dotted var(--brand);          /* 선택 안 된 원: 촘촘한 점선 */
  border-radius: 50%;
  background: transparent;
  color: var(--brand);
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.ring:first-child { margin-left: 0; }
.ring b { font-size: var(--fs-body); font-weight: 800; line-height: 1.3; }
.ring span { font-size: var(--fs-caption); font-weight: 600; color: var(--muted); }
.ring:hover { border-style: solid; }
html[lang="en"] .ring span { display: none; }
.ring[aria-selected="true"] { z-index: 1; border-style: solid; background: var(--brand); color: var(--on-dark); }
.ring[aria-selected="true"] span { color: var(--on-dark-muted); }
.ring:focus-visible { outline: none; }
/* 선택된 원 아래 작은 삼각형: 아래 설명과 연결 */
.ring[aria-selected="true"]::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 50%;
  margin-left: -8px;
  border: 8px solid transparent;
  border-top-color: var(--brand);
}

.what-panels { max-width: 760px; margin: 40px auto 0; }
.what-panel {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px 36px;
}
.what-panel h3 { margin: 0 0 8px; font-size: var(--fs-h3); font-weight: 800; }
.what-panel p { margin: 0; }
.text-link { display: inline-block; margin-top: 16px; font-size: var(--fs-small); font-weight: 700; text-decoration: none; }

/* 좁은 화면: 위 4개 · 아래 3개로 겹쳐 쌓기 (영문 보조 글자는 숨김) */
@media (max-width: 699px) {
  .rings { --size: min(100px, calc((100vw - 2 * var(--gutter)) / 3.7)); }
  .ring:nth-child(4n + 1) { margin-left: 0; }
  .ring:nth-child(n + 5) { margin-top: calc(var(--size) * -0.1); }
  .ring b { font-size: 13px; letter-spacing: -0.02em; }
  .ring span { display: none; }
  .ring[aria-selected="true"]::after { display: none; }
  .what-panels { margin-top: 24px; }
  .what-panel { padding: 24px; }
}

/* ---------- BRANDS — 아이콘 탭으로 전환 ---------- */
.brand-tabs {
  margin: 0 0 40px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.brand-tab {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  font: inherit;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.brand-tab svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-tab:hover { color: var(--text); }
.brand-tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.brand-tab:focus-visible { outline: none; color: var(--text); }
.soon {
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-dark);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.soon-lg { margin: 0; padding: 4px 10px; font-size: var(--fs-caption); }
.brand-visual .soon { background: var(--glass); }

.brand-panel {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px;
  background: var(--surface);
  border-radius: 24px;
}
.brand-panel[hidden] { display: none; }
.brand-visual {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
  color: var(--on-dark);
}
.brand-visual svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-visual-logo img { width: 80%; height: auto; aspect-ratio: 1; }
.brand-visual-next { background: var(--next-track-bg); }
.brand-visual-sing { background: var(--sing-bg); }
.brand-visual-place { background: var(--accent); }
.brand-visual-store { background: var(--brand); }
.brand-name { margin: 0 0 4px; font-size: var(--fs-h3); font-weight: 800; line-height: 1.3; }
.brand-lead { margin: 0 0 16px; font-size: var(--fs-lead); font-weight: 700; color: var(--brand); }
.brand-text > p:not(.label):not(.brand-lead) { margin: 0 0 20px; }

/* 키워드 태그 (SEL · 동요 · 율동) */
.tags {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.channels { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
}
.chip:hover { background: var(--brand); color: var(--on-dark); }
.chip[aria-disabled="true"] { border-color: var(--line); color: var(--muted); cursor: default; }
.chip[aria-disabled="true"]:hover { background: none; color: var(--muted); }

@media (max-width: 800px) {
  .brand-panel { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
  .brand-visual { width: 140px; border-radius: 16px; }
  .brand-visual svg { width: 44px; height: 44px; }
}
/* 좁은 화면: 탭을 같은 폭으로 나누고 아이콘을 글자 위로 */
@media (max-width: 600px) {
  .brand-tabs { gap: 4px; flex-wrap: nowrap; }
  .brand-tab {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    padding: 12px 6px;
    font-size: var(--fs-caption);
    line-height: 1.3;
    text-align: center;
  }
  .brand-tab .soon { display: block; width: max-content; margin: 4px auto 0; }
}

/* ---------- RELEASES — 앨범 커버 그리드 ---------- */
.releases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 24px;
}
.release { display: block; color: var(--text); text-decoration: none; }
.release:hover { color: var(--text); }
.release-cover {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.08), 0 8px 24px rgba(28, 25, 23, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.release-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 마우스를 올리면 살짝 떠오르고 재생 버튼 */
.release-cover::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='white'/%3E%3C/svg%3E") center / 20px no-repeat;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}
.release:hover .release-cover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(28, 25, 23, 0.08), 0 16px 32px rgba(28, 25, 23, 0.14); }
.release:hover .release-cover::after { opacity: 1; transform: none; }
.release-title { display: block; margin-top: 14px; font-size: var(--fs-small); font-weight: 700; line-height: 1.4; }
.release-artist { display: block; margin-top: 2px; font-size: var(--fs-caption); color: var(--muted); }

@media (max-width: 900px) { .releases { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .releases { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; } }

/* ---------- UPCOMING EVENT — 날짜 블록 + 공연 정보 ---------- */
.events { display: grid; gap: 16px; }
.event {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
}
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 32px 16px;
  background: var(--brand);
  color: var(--on-dark);
  text-align: center;
}
.event-year,
.event-week { font-size: var(--fs-caption); font-weight: 700; letter-spacing: 0.2em; color: var(--on-dark-muted); }
.event-day { font-size: var(--fs-h2); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.event-body { padding: 32px 36px; }
.event[hidden] { display: none; }
.event-tags { margin: 0 0 12px; display: flex; gap: 6px; }
.event-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  background: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
  color: var(--brand);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.event-tag-free { background: var(--accent); color: var(--on-dark); }
.event-name { margin: 0 0 16px; font-size: var(--fs-h3); font-weight: 800; line-height: 1.3; }
.event-meta { margin: 0; display: grid; gap: 6px; }
.event-meta + .chip { margin-top: 24px; }
.events-empty { margin: 32px 0 0; color: var(--muted); }
.event-meta div { display: flex; gap: 16px; }
.event-meta dt { flex: none; min-width: 4.5em; white-space: nowrap; font-size: var(--fs-small); font-weight: 700; color: var(--muted); }
.event-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: var(--fs-small); }

@media (max-width: 600px) {
  .event { grid-template-columns: 1fr; }
  .event-date { flex-direction: row; gap: 12px; padding: 20px 24px; }
  .event-body { padding: 24px; }
  .event-meta div { gap: 12px; }
}

/* ---------- CONTACT: 라벨 → 제목 → 본문 → 메일 버튼 ---------- */
.contact { background: var(--hero-bg); color: var(--on-dark); text-align: center; }
.contact .label { margin-bottom: 40px; color: var(--cream); }
.contact .title { margin-bottom: 12px; }
.contact p { margin: 0; color: var(--on-dark-muted); }
.contact-mails { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--on-dark-muted);
  color: var(--on-dark);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.contact-mail svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-mail:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--hero-bg); }

/* ---------- 푸터 ---------- */
.footer { background: var(--footer-bg); color: var(--on-dark-muted); padding: 48px 0; font-size: var(--fs-small); }
.footer-inner { display: flex; flex-direction: column; gap: 20px; }
.logo-footer img { height: 24px; }
.company { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.company div { display: flex; gap: 8px; }
.company dt { font-weight: 600; color: var(--on-dark); }
.company dd { margin: 0; }
.company a { color: var(--on-dark-muted); }
.copyright { margin: 0; font-size: var(--fs-caption); }
