:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-alt: #f1ece4;
  --border: #e8e1d5;
  --text: #2c2826;
  --text-muted: #7a6f5f;
  --accent: #c4711a;
  --header: rgba(250, 247, 242, 0.85);
  --shadow: rgba(60, 40, 20, 0.07);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1614;
    --surface: #221d1a;
    --surface-alt: #2a2522;
    --border: #3a322c;
    --text: #ede5d6;
    --text-muted: #9b8c75;
    --accent: #e69245;
    --header: rgba(26, 22, 20, 0.85);
    --shadow: rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: var(--header);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }

nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a {
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
nav a:hover { color: var(--text); background: var(--surface-alt); text-decoration: none; }
nav a.active { color: var(--text); background: var(--surface-alt); }

main { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }

.hero { margin-bottom: 48px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 52px;
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
}
.hero p { font-size: 18px; color: var(--text-muted); margin: 0; max-width: 580px; }

.page-title {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.page-subtitle { color: var(--text-muted); margin: 0 0 32px; }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 40px 0 18px;
}

.meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.meta .tag { color: var(--accent); }

/* карточки статей */
.cards { display: flex; flex-direction: column; }
.card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  transition: background 0.15s;
  border-radius: 8px;
}
.card:last-child { border-bottom: none; }
.card:hover { text-decoration: none; background: var(--surface-alt); box-shadow: 0 0 0 14px var(--surface-alt); }
.card .thumb { width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text);
}
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }
.more { margin: 18px 0 0; font-size: 14px; font-weight: 500; }

.search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 15px;
  margin-bottom: 8px;
}
.search:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }

/* артисты: сетка на главной */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.artist-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.artist-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--shadow); text-decoration: none; }
.artist-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.artist-body { padding: 16px 18px 18px; }
.artist-card h3 { font-family: var(--serif); font-size: 19px; margin: 0 0 6px; font-weight: 600; color: var(--text); }
.artist-card p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* артисты: полная страница */
.artist-list { display: flex; flex-direction: column; gap: 28px; }
.artist-full {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  scroll-margin-top: 90px;
}
.artist-full img { width: 100%; aspect-ratio: 3 / 1.3; object-fit: cover; }
.artist-full .artist-body { padding: 24px 28px 26px; }
.artist-full h2 { font-family: var(--serif); font-size: 30px; margin: 0 0 8px; letter-spacing: -0.02em; }
.artist-full p { margin: 0 0 12px; }
.artist-full .section-label { margin: 22px 0 10px; }
.albums { list-style: none; margin: 0; padding: 0; }
.albums li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.albums li:last-child { border-bottom: none; }
.al-title { font-family: var(--serif); font-weight: 600; }
.al-meta { font-family: var(--mono); font-size: 12px; color: var(--text-muted); margin-left: 6px; }
.sources { margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* статья */
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.post-title {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.post-hero { margin: 26px 0 26px; }
.post-hero img, figure img { width: 100%; border-radius: 10px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--text); margin: 0 0 26px; font-family: var(--serif); }
.prose { font-size: 17px; line-height: 1.75; }
.prose p { margin: 0 0 20px; }
.prose h2 { font-family: var(--serif); font-size: 27px; margin: 38px 0 14px; letter-spacing: -0.015em; line-height: 1.25; }
.prose figure { margin: 30px 0; }
figcaption { font-size: 13px; color: var(--text-muted); margin-top: 8px; font-family: var(--mono); }
.pull {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.4;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 30px 0;
  color: var(--text);
}
.picks { padding-left: 22px; }
.picks li { margin-bottom: 16px; }
.picks li::marker { font-family: var(--mono); color: var(--accent); }
.see-artists { margin-top: 32px; padding: 16px 20px; background: var(--surface-alt); border-radius: 10px; font-size: 15px; }

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
}
.about-card h1 { font-family: var(--serif); font-size: 34px; margin: 0 0 20px; letter-spacing: -0.02em; }
.about-card p { margin: 0 0 16px; }
.about-card p:last-child { margin: 0; }

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
footer a { color: var(--text-muted); }
footer .social { display: flex; gap: 18px; }

/* «слушаем в редакции» */
.now-playing {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  margin: 0 0 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.np-status { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.np-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: np-pulse 2.4s ease-in-out infinite;
}
.np-dot.offline { background: var(--text-muted); animation: none; }
@keyframes np-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
.np-label { font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }
.np-main { flex: 1; min-width: 0; }
.np-track { font-family: var(--serif); font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-meta { font-family: var(--mono); font-size: 12px; color: var(--text-muted); text-align: right; flex-shrink: 0; max-width: 200px; }
.np-bar { height: 2px; margin-top: 8px; background: var(--surface-alt); border-radius: 2px; overflow: hidden; }
.np-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1s linear; }

@media (max-width: 640px) {
  .header-inner { padding: 12px 16px; gap: 6px; }
  nav a { padding: 5px 9px; font-size: 13px; }
  .hero h1 { font-size: 36px; }
  .page-title { font-size: 30px; }
  .post-title { font-size: 32px; }
  .lead { font-size: 18px; }
  main { padding: 32px 18px 60px; }
  .card { grid-template-columns: 1fr; gap: 12px; }
  .card .thumb { width: 100%; }
  .now-playing { flex-wrap: wrap; gap: 12px; }
  .np-main { flex-basis: 100%; order: 3; }
  .artist-full .artist-body { padding: 20px; }
  .about-card { padding: 24px; }
}
