/* Zemaboard — dark, warm, Ethiopian-inspired */
:root {
  --bg: #120d0a;
  --surface: #1c1510;
  --raised: #271d15;
  --line: #3a2c20;
  --text: #f2e8d8;
  --muted: #b0a28d;
  --gold: #e9b23c;
  --gold-deep: #c98f1d;
  --green: #2fa862;
  --red: #e2483f;
  --radius: 14px;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --geez: "Noto Sans Ethiopic", "Abyssinica SIL", "Nyala", sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 80% -100px, rgba(233, 178, 60, 0.10), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffd067; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #1a1208; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

/* Ethiopian flag stripe */
.tricolor { height: 4px; background: linear-gradient(90deg, var(--green) 0 33.33%, var(--gold) 33.33% 66.66%, var(--red) 66.66%); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 13, 10, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; }
.logo:hover { color: var(--text); }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--gold); color: #1a1208; display: grid; place-items: center; font-family: var(--geez); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.logo-light { font-weight: 500; color: var(--muted); }
.nav { display: flex; gap: 0.25rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 0.5rem 0.9rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: #1a1208; background: var(--gold); }

/* Buttons */
.btn { display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 0.8rem 1.5rem; border-radius: 999px; text-decoration: none; background: var(--gold); color: #1a1208; transition: background 0.15s, transform 0.15s; }
.btn:hover { background: #ffd067; color: #1a1208; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--gold); }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 2rem; }
.hero-copy h1 { max-width: 14ch; }
.hero-copy p { color: var(--muted); font-size: 1.2rem; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 2rem; }
.search-form { display: flex; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem; }
.search-form:focus-within { border-color: var(--gold); }
.search-form input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: inherit; padding: 0.55rem 1rem; }
.search-form input:focus { outline: none; }
.search-form input::placeholder { color: var(--muted); }
.search-form .btn { padding: 0.55rem 1.2rem; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero-glyph {
  font-family: var(--geez);
  font-weight: 800;
  font-size: clamp(9rem, 22vw, 19rem);
  line-height: 1;
  letter-spacing: -0.04em;
  background:
    repeating-linear-gradient(45deg, rgba(18, 13, 10, 0.28) 0 2px, transparent 2px 10px),
    linear-gradient(160deg, #ffd067 10%, var(--gold) 45%, var(--gold-deep) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  user-select: none;
}
.hero-art::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(233, 178, 60, 0.20), transparent 75%); }
.hero-art .hero-glyph { position: relative; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; }
.page-head p { color: var(--muted); max-width: 52ch; font-size: 1.15rem; }

/* Genre chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font: inherit; font-weight: 600; font-size: 0.97rem; cursor: pointer; }
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a1208; }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--gold)); }
.chip[aria-pressed="true"]::before { background: #1a1208; }
.dot-0 { --dot: var(--green); }
.dot-1 { --dot: var(--gold); }
.dot-2 { --dot: var(--red); }

/* Artist grid — no card boxes, the portrait is the card */
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.75rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.artist-card { display: block; text-decoration: none; color: var(--text); }
.artist-card:hover { color: var(--text); }
.avatar { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: linear-gradient(150deg, var(--a, #7a2e1d), var(--b, #e9b23c)); display: grid; place-items: center; }
.avatar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.10) 0 2px, transparent 2px 12px); pointer-events: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { position: relative; z-index: 1; font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem, 7vw, 4rem); color: rgba(255, 255, 255, 0.92); letter-spacing: -0.03em; }
.artist-card .avatar { transition: transform 0.2s, box-shadow 0.2s; }
.artist-card:hover .avatar { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }
.artist-name { display: block; margin-top: 0.75rem; font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.artist-meta { display: block; color: var(--muted); font-size: 0.93rem; }
.badge-sample { position: absolute; z-index: 2; top: 0.6rem; left: 0.6rem; background: rgba(18, 13, 10, 0.75); color: var(--text); font-size: 0.78rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 999px; }

/* Artists directory tools */
.tools { display: grid; gap: 1rem; margin: 1rem 0 2rem; }
.tools .search-form { max-width: 520px; }
.result-count { color: var(--muted); margin: 0 0 1.25rem; }
.empty { color: var(--muted); padding: 2rem 0; font-size: 1.1rem; }
[hidden] { display: none !important; }

/* News list — rows, not cards */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.news-date { color: var(--muted); font-size: 0.95rem; padding-top: 0.2rem; }
.news-item h3 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.news-item h3 a { color: var(--text); text-decoration: none; }
.news-item h3 a:hover { color: var(--gold); }
.news-item p { margin: 0; color: var(--muted); max-width: 62ch; }

/* Artist page */
.artist-hero { padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; }
.artist-hero .wrap { display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: end; }
.artist-hero .avatar { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); }
.artist-hero h1 { margin-bottom: 0.15em; }
.amharic-name { font-family: var(--geez); font-size: 1.6rem; color: var(--gold); margin: 0 0 0.4rem; }
.artist-facts { color: var(--muted); margin: 0 0 1rem; }
.artist-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.artist-links a { display: inline-block; padding: 0.4rem 1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.artist-links a:hover { border-color: var(--gold); color: var(--gold); }
.artist-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 4px solid var(--gold); color: var(--muted); }

/* Player */
.player-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-start { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: #000 center / cover no-repeat; display: grid; place-items: center; }
.player-start::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55)); }
.play-icon { position: relative; width: 72px; height: 72px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; transition: transform 0.15s; }
.player-start:hover .play-icon { transform: scale(1.08); }
.play-icon::after { content: ""; margin-left: 5px; border-left: 20px solid #1a1208; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.now-playing { padding: 0.9rem 1.1rem; font-weight: 600; border-top: 1px solid var(--line); }
.now-playing span { color: var(--muted); font-weight: 500; }
.tracklist { list-style: none; margin: 0; padding: 0.4rem; }
.track { display: grid; grid-template-columns: 1.6rem 1fr auto; align-items: center; gap: 0.75rem; padding: 0.75rem 0.7rem; border-radius: 10px; color: var(--text); text-decoration: none; border-left: 3px solid transparent; }
.track:hover { background: var(--raised); color: var(--text); }
.track.is-active { background: var(--raised); border-left-color: var(--gold); }
.track-icon { width: 0; height: 0; margin-left: 4px; border-left: 10px solid var(--muted); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.track.is-active .track-icon { border-left-color: var(--gold); }
.track-title { font-weight: 600; }
.track-note { color: var(--muted); font-size: 0.88rem; }
.track-missing { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: 0.75rem; padding: 0.75rem 0.7rem; color: var(--muted); }
.track-missing::before { content: ""; width: 8px; height: 8px; margin: 0.55rem 0 0 4px; border-radius: 50%; background: var(--line); }
.player-empty { padding: 1.5rem; color: var(--muted); }

/* Article page */
.article-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; }
.article-head .wrap, .article-body .wrap { max-width: 780px; }
.article-meta { color: var(--muted); margin: 0; }
.article-body { padding-bottom: 3rem; }
.article-body .prose { font-size: 1.15rem; line-height: 1.75; }
.back-link { display: inline-block; margin-bottom: 1.25rem; text-decoration: none; font-weight: 600; }

/* CTA band */
.band { margin: 2rem 0 0; padding: clamp(2rem, 5vw, 3rem) 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.band h2 { margin: 0 0 0.3rem; }
.band p { margin: 0; color: var(--muted); max-width: 48ch; }

/* Footer */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: var(--bg); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.75rem 0; color: var(--muted); font-size: 0.95rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold); }
.footer-links { display: flex; gap: 1.25rem; }

/* Responsive */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { min-width: 0; }
  .hero-art { order: -1; min-height: 200px; justify-content: start; }
  .hero-art .hero-glyph { font-size: clamp(7rem, 38vw, 11rem); }
  .artist-hero .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .artist-hero .avatar { max-width: 220px; }
  .artist-body { grid-template-columns: minmax(0, 1fr); }
  .news-item { grid-template-columns: 1fr; gap: 0.25rem; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .logo-light { display: none; }
  .nav a { padding: 0.45rem 0.7rem; }
  .artist-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
