:root {
  color-scheme: light;
  --pink: #FF3B6E;
  --pink-soft: #FF8FB1;
  --green: #6BE676;
  --green-deep: #1E8E3E;
  --green-readable: #177A35;
  --ink: #1B1B1B;
  --bg: #FFF9FB;
  --surface: #FFFFFF;
  --surface-2: #F7F3F5;
  --text: #1B1B1B;
  --muted: #665F63;
  --line: rgba(27, 27, 27, 0.12);
  --header-bg: rgba(255, 249, 251, 0.88);
  --shadow: 0 22px 60px rgba(27, 27, 27, 0.12);
  --focus: 0 0 0 4px rgba(107, 230, 118, 0.32);
  --max: 1180px;
  --radius: 24px;
  --radius-sm: 16px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121212;
  --surface: #1B1B1B;
  --surface-2: #232323;
  --text: #F7F4F5;
  --muted: #C8BFC3;
  --line: rgba(255, 255, 255, 0.13);
  --header-bg: rgba(18, 18, 18, 0.88);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --focus: 0 0 0 4px rgba(255, 59, 110, 0.28);
  --green-readable: #6BE676;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); }
::selection { background: var(--pink-soft); color: #1B1B1B; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 800;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.brand img { width: 152px; height: auto; }
html[data-theme="dark"] .brand { background: #F7F4F5; padding: 5px 8px; border-radius: 10px; }
.nav-wrap { display: flex; align-items: center; gap: 10px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 750;
  color: var(--muted);
}
.site-nav a[aria-current="page"], .site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.theme-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.theme-toggle svg { width: 21px; height: 21px; }
.theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: block; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }

.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section.compact { padding: 64px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-readable);
}
html[data-theme="dark"] .eyebrow { color: var(--green); }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 99px; background: linear-gradient(90deg,var(--pink),var(--green)); }
.section-title {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.section-lead { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; }

.hero {
  min-height: calc(100dvh - 76px);
  display: grid;
  align-items: center;
  overflow: clip;
  position: relative;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  z-index: -2;
  opacity: .34;
}
.hero::before { width: 34vw; height: 34vw; min-width: 320px; min-height: 320px; background: var(--pink); top: -16vw; left: -12vw; }
.hero::after { width: 30vw; height: 30vw; min-width: 280px; min-height: 280px; background: var(--green); bottom: -14vw; right: -9vw; }
.hero-grid {
  padding: 58px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
}
.hero-copy h1 {
  margin: 16px 0 20px;
  max-width: 790px;
  font-size: clamp(3.3rem, 7.2vw, 7.2rem);
  line-height: .88;
  letter-spacing: -0.07em;
}
.hero-copy h1 .accent { color: var(--pink); }
.hero-copy p { max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pink); color: #1B1B1B; border-color: transparent; box-shadow: 0 14px 32px rgba(255,59,110,.24); }
.btn-secondary { background: var(--surface); color: var(--text); }
.btn-green { background: var(--green); color: #102114; border-color: transparent; }

.hero-art { position: relative; }
.hero-photo {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.18);
  background: #2a2426;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 43%; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(27,27,27,.55));
}
.hero-badge {
  position: absolute;
  left: -24px;
  bottom: 28px;
  z-index: 2;
  max-width: 260px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-badge strong { display: block; font-size: 1rem; }
.hero-badge span { display: block; color: var(--muted); font-size: .9rem; margin-top: 3px; }
.palette-dots { display: flex; gap: 6px; margin-top: 12px; }
.palette-dots i { width: 24px; height: 7px; border-radius: 99px; display: block; }

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.fact { padding: 26px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact strong { display: block; font-size: 1.1rem; }
.fact span { color: var(--muted); font-size: .94rem; }

.artist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 38px; }
.artist-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  min-height: 390px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
}
.artist-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg,var(--pink),var(--pink-soft),var(--green),var(--green-deep)); }
.artist-card h3 { margin: 12px 0 2px; font-size: 1.65rem; letter-spacing: -.035em; }
.artist-role { color: var(--muted); font-weight: 650; }
.artist-card p { color: var(--muted); }
.channel-list { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 9px; }
.channel-list a {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-weight: 780;
}
.channel-list a:hover { border-color: var(--pink-soft); }
.channel-list small { color: var(--muted); font-weight: 650; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.feature-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feature-card h3 { font-size: 1.8rem; margin: 6px 0 10px; letter-spacing: -.03em; }
.feature-card p { color: var(--muted); }
.feature-card .meta { color: var(--green-readable); font-weight: 850; font-size: .9rem; }
html[data-theme="dark"] .feature-card .meta { color: var(--green); }

.cta-panel {
  padding: clamp(34px, 6vw, 68px);
  border-radius: 34px;
  background: linear-gradient(120deg, #FF3B6E 0%, #FF8FB1 38%, #6BE676 100%);
  color: #1B1B1B;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 32px;
  align-items: center;
}
.cta-panel h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.055em; }
.cta-panel p { max-width: 680px; font-weight: 650; }
.cta-panel .btn { justify-self: end; background: #1B1B1B; color: white; border-color: #1B1B1B; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); }
.footer-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner a { text-decoration: none; font-weight: 750; color: var(--text); }

/* Encyclopedic page */
.wiki-shell { padding: 48px 0 92px; }
.wiki-topline { display: flex; justify-content: space-between; gap: 20px; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.wiki-kicker { color: var(--muted); font-size: .92rem; }
.wiki-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 7vw, 6.6rem); line-height: .9; margin: 5px 0 0; letter-spacing: -.045em; font-weight: 500; }
.wiki-note { max-width: 410px; color: var(--muted); font-size: .92rem; }
.wiki-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; margin-top: 38px; }
.wiki-article { min-width: 0; }
.wiki-article p { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; }
.wiki-article h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin: 42px 0 14px;
}
.wiki-article h3 { font-size: 1.15rem; margin-top: 28px; }
.ref { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .72em; vertical-align: super; text-decoration: none; font-weight: 800; color: var(--green-readable); }
html[data-theme="dark"] .ref { color: var(--green); }
.toc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 20px 22px; margin: 28px 0 36px; }
.toc strong { display: block; margin-bottom: 9px; }
.toc ol { margin: 0; padding-left: 22px; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--text); }
.infobox {
  position: sticky;
  top: 102px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}
.infobox-head { padding: 20px; background: linear-gradient(120deg, rgba(255,59,110,.18), rgba(107,230,118,.18)); text-align: center; }
.infobox-head img { width: 220px; height: auto; max-height: 120px; object-fit: contain; margin: 0 auto; }
html[data-theme="dark"] .infobox-head { background: #F7F4F5; }
.infobox-photo { aspect-ratio: 1 / 1; width: 100%; height: auto; object-fit: cover; object-position: 50% 43%; }
.infobox dl { margin: 0; padding: 8px 20px 20px; display: grid; grid-template-columns: 105px 1fr; column-gap: 12px; }
.infobox dt, .infobox dd { padding: 10px 0; margin: 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.infobox dt { font-weight: 850; }
.infobox dd { color: var(--muted); }
.discography-table { width: 100%; border-collapse: collapse; margin: 18px 0 30px; font-size: .95rem; }
.discography-table th, .discography-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.discography-table th { background: var(--surface-2); }
.references { counter-reset: references; padding-left: 0; list-style: none; }
.references li { position: relative; padding: 11px 0 11px 42px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.references li::before { counter-increment: references; content: "[" counter(references) "]"; position: absolute; left: 0; top: 11px; color: var(--text); font-weight: 800; }
.references a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.source-note { padding: 16px 18px; border-left: 4px solid var(--pink); background: var(--surface-2); border-radius: 0 12px 12px 0; color: var(--muted); }

.error-page { min-height: calc(100dvh - 76px); display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.error-card { max-width: 680px; }
.error-card h1 { font-size: clamp(5rem, 16vw, 10rem); line-height: .8; margin: 0; color: var(--pink); }
.error-card h2 { font-size: 2rem; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-art { width: min(620px, 100%); margin: 0 auto; }
  .hero-badge { left: 18px; }
  .artist-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-panel .btn { justify-self: start; }
  .wiki-layout { grid-template-columns: 1fr; }
  .infobox { position: static; order: -1; max-width: 560px; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 68px; width: min(100% - 20px, var(--max)); }
  .brand img { width: 118px; }
  .site-nav a { padding: 9px 10px; font-size: .92rem; }
  .theme-toggle { width: 42px; height: 42px; }
  .container { width: min(var(--max), calc(100% - 24px)); }
  .section { padding: 68px 0; }
  .hero { min-height: auto; }
  .hero-copy h1 { font-size: clamp(3.2rem, 17vw, 5.2rem); }
  .hero-grid { gap: 38px; }
  .hero-photo { border-radius: 24px; }
  .hero-badge { position: static; margin: -42px 16px 0; max-width: none; }
  .fact-strip { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .artist-card { min-height: 0; }
  .wiki-topline { display: block; }
  .wiki-note { margin-top: 18px; }
  .wiki-shell { padding-top: 32px; }
  .infobox dl { grid-template-columns: 90px 1fr; }
  .discography-table { font-size: .86rem; }
  .discography-table th, .discography-table td { padding: 10px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
