@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700;800&family=Golos+Text:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&subset=cyrillic&display=swap');

/* ───────────────────────── токены ───────────────────────── */

:root{
  --paper:#F1F1EF;
  --panel:#E6E6E3;
  --card:#FAFAF9;
  --line:#D3D4D0;
  --ink:#191A19;
  --dim:#4B4D4A;
  --muted:#7B7E79;

  --display:'Unbounded', sans-serif;
  --body:'Golos Text', sans-serif;
  --mono:'JetBrains Mono', monospace;

  --chamfer:10px;
  --radius:2px;
  --container:1160px;
  --gutter:clamp(20px, 5vw, 64px);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  background:var(--paper);
  color:var(--dim);
  font-family:var(--body);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img,svg{ display:block; max-width:100%; }
a{ color:inherit; }

h1,h2,h3{
  font-family:var(--display);
  color:var(--ink);
  line-height:1.12;
  margin:0 0 0.5em;
  letter-spacing:-0.01em;
}
h1{ font-weight:700; }
h2{ font-weight:600; }
h3{ font-weight:600; font-size:1.05rem; }

p{ margin:0 0 1.1em; }
p:last-child{ margin-bottom:0; }

::selection{ background:var(--ink); color:var(--paper); }

:focus-visible{
  outline:3px solid var(--ink);
  outline-offset:3px;
}

/* ───────────────────────── layout ───────────────────────── */

.wrap{
  max-width:var(--container);
  margin:0 auto;
  padding:0 var(--gutter);
}

.section{ padding:88px 0; }
.section.panel{ background:var(--panel); }

.eyebrow{
  font-family:var(--mono);
  font-size:12.5px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--muted);
  display:block;
  margin-bottom:14px;
}

/* ───────────────────────── шапка ───────────────────────── */

.site-header{
  position:sticky; top:0; z-index:40;
  background:rgba(241,241,239,0.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{
  height:76px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{ display:flex; align-items:center; }
.brand svg{ height:22px; width:auto; }

.nav{ display:flex; align-items:center; gap:34px; }
.nav a{
  font-family:var(--mono);
  font-size:13.5px;
  letter-spacing:0.02em;
  text-decoration:none;
  color:var(--dim);
  position:relative;
  padding:4px 0;
}
.nav a:hover{ color:var(--ink); }
.nav a.cta{
  color:var(--paper);
  background:var(--ink);
  padding:10px 20px;
  border-radius:var(--radius);
}
.nav a.cta:hover{ background:#000; }

.nav-toggle{ display:none; }

/* ───────────────────────── hero ───────────────────────── */

.hero{
  padding:96px 0 0;
  overflow:hidden;
}
.hero .wrap{ position:relative; }
.hero-copy{ max-width:640px; }
.hero h1{
  font-size:clamp(2.5rem, 5.2vw, 4.1rem);
  margin-bottom:24px;
}
.hero-lede{
  font-size:19px;
  color:var(--dim);
  max-width:520px;
  margin-bottom:36px;
}
.hero-actions{ display:flex; gap:16px; align-items:center; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--mono);
  font-size:13.5px;
  letter-spacing:0.03em;
  text-decoration:none;
  padding:14px 24px;
  border-radius:var(--radius);
  border:1px solid var(--ink);
}
.btn-primary{ background:var(--ink); color:var(--paper); }
.btn-primary:hover{ background:#000; }
.btn-ghost{ color:var(--ink); }
.btn-ghost:hover{ background:var(--card); }

/* дорожка из плит — сигнатурный элемент, тоже эквалайзер */

.ridge{
  margin-top:64px;
  height:150px;
  display:flex;
  align-items:flex-end;
  gap:5px;
}
.slab{
  flex:1 1 0;
  background:var(--ink);
  clip-path:polygon(var(--chamfer) 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%, 0 var(--chamfer));
  transform-origin:bottom;
  animation:slab-breathe 4.6s ease-in-out infinite;
}
@keyframes slab-breathe{
  0%,100%{ transform:scaleY(1); }
  50%{ transform:scaleY(0.86); }
}
@media (prefers-reduced-motion: reduce){
  .slab{ animation:none; }
}

/* высоты и фазы — 12 паттернов, циклически на 36 плит */
.slab:nth-child(12n+1){ height:38%; animation-delay:0s; }
.slab:nth-child(12n+2){ height:64%; animation-delay:0.3s; }
.slab:nth-child(12n+3){ height:82%; animation-delay:0.1s; }
.slab:nth-child(12n+4){ height:50%; animation-delay:0.5s; }
.slab:nth-child(12n+5){ height:96%; animation-delay:0.2s; }
.slab:nth-child(12n+6){ height:70%; animation-delay:0.6s; }
.slab:nth-child(12n+7){ height:44%; animation-delay:0.4s; }
.slab:nth-child(12n+8){ height:88%; animation-delay:0s; }
.slab:nth-child(12n+9){ height:58%; animation-delay:0.35s; }
.slab:nth-child(12n+10){ height:100%; animation-delay:0.15s; }
.slab:nth-child(12n+11){ height:66%; animation-delay:0.55s; }
.slab:nth-child(12n){ height:30%; animation-delay:0.25s; }

/* ───────────────────────── about / for-artists / roster ───────────────────────── */

.section-head{
  max-width:620px;
  margin-bottom:52px;
}
.section-head p{ font-size:18px; }

.grid-3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.grid-3 .card{
  background:var(--card);
  padding:36px 32px;
}
.card-num{
  font-family:var(--mono);
  font-size:13px;
  color:var(--muted);
  display:block;
  margin-bottom:18px;
}
.card p{ color:var(--dim); font-size:15.5px; }

.genres{
  display:flex; flex-wrap:wrap; gap:12px;
}
.genre-chip{
  font-family:var(--mono);
  font-size:13.5px;
  padding:10px 18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--card);
  color:var(--dim);
}

/* ───────────────────────── новости (используется и на главной, и в build.py) ───────────────────────── */

.news-head{
  display:flex; align-items:baseline; justify-content:space-between;
  margin-bottom:28px; gap:20px; flex-wrap:wrap;
}
.news-head h2{ margin:0; }
.news-head a{
  font-family:var(--mono); font-size:13px;
  text-decoration:none; color:var(--dim);
  border-bottom:1px solid var(--line);
}

.post-row{
  display:flex; gap:28px; align-items:flex-start;
  padding:26px 0;
  border-top:1px solid var(--line);
  text-decoration:none; color:inherit;
}
.post-row:last-child{ border-bottom:1px solid var(--line); }
.post-meta{
  font-family:var(--mono);
  font-size:12.5px;
  color:var(--muted);
  min-width:150px;
  display:flex; flex-direction:column; gap:6px;
}
.post-meta b{ color:var(--ink); font-weight:600; }
.post-title{
  display:block;
  font-family:var(--display);
  font-weight:600;
  font-size:19px;
  color:var(--ink);
  margin-bottom:6px;
}
.post-row:hover .post-title{ text-decoration:underline; text-underline-offset:3px; }
.post-excerpt{ display:block; font-size:15px; color:var(--dim); }

.chips{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:36px; }
.chip{
  font-family:var(--mono); font-size:12.5px;
  padding:8px 16px;
  border:1px solid var(--line);
  border-radius:999px;
  text-decoration:none;
  color:var(--dim);
  background:var(--card);
}
.chip.on{ background:var(--ink); border-color:var(--ink); color:var(--paper); }
.chip:hover:not(.on){ border-color:var(--ink); color:var(--ink); }

.pagination{
  display:flex; gap:6px; align-items:center; flex-wrap:wrap;
  margin-top:40px; padding-top:28px; border-top:1px solid var(--line);
}
.page-link{
  font-family:var(--mono); font-size:13px;
  min-width:34px; height:34px;
  display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none; color:var(--dim);
  border:1px solid var(--line); border-radius:var(--radius);
}
.page-link.on{ background:var(--ink); border-color:var(--ink); color:var(--paper); }
.page-link:hover:not(.on){ border-color:var(--ink); color:var(--ink); }
.page-gap{ color:var(--muted); font-family:var(--mono); padding:0 4px; }

/* ───────────────────────── article page (post.html использует эти же классы) ───────────────────────── */

.article-head{ max-width:720px; margin:0 auto 44px; }
.article-meta{
  font-family:var(--mono); font-size:12.5px; color:var(--muted);
  display:flex; gap:16px; margin-bottom:18px; flex-wrap:wrap;
}
.article-body{ max-width:720px; margin:0 auto; font-size:17.5px; }
.article-body .lead{ font-size:20px; color:var(--ink); }
.article-body h2{ font-size:1.5rem; margin-top:1.6em; }
.article-body a{ text-decoration-color:var(--line); }
.article-body blockquote{
  margin:1.6em 0; padding:4px 0 4px 24px;
  border-left:2px solid var(--ink);
  font-family:var(--display); font-weight:500; font-size:1.15rem; color:var(--ink);
}
.article-body ul,.article-body ol{ padding-left:1.3em; }
.article-body li{ margin-bottom:0.4em; }

.related{ max-width:720px; margin:64px auto 0; padding-top:36px; border-top:1px solid var(--line); }
.related h3{ margin-bottom:8px; }

/* ───────────────────────── footer ───────────────────────── */

.site-footer{
  border-top:1px solid var(--line);
  padding:56px 0 40px;
}
.footer-top{
  display:flex; justify-content:space-between; align-items:flex-start;
  flex-wrap:wrap; gap:32px; margin-bottom:40px;
}
.footer-top svg{ height:20px; }
.footer-links{ display:flex; gap:28px; }
.footer-links a{
  font-family:var(--mono); font-size:13px; text-decoration:none; color:var(--dim);
}
.footer-links a:hover{ color:var(--ink); }
.footer-bottom{
  font-family:var(--mono); font-size:12px; color:var(--muted);
  padding-top:24px; border-top:1px solid var(--line);
}

/* ───────────────────────── responsive ───────────────────────── */

@media (max-width:860px){
  .nav{ display:none; }
  .grid-3{ grid-template-columns:1fr; }
}

@media (max-width:600px){
  .section{ padding:64px 0; }
  .hero{ padding-top:56px; }
  .ridge{ height:100px; gap:3px; margin-top:44px; }
  .post-row{ flex-direction:column; gap:8px; }
  .post-meta{ flex-direction:row; gap:12px; min-width:0; }
  .footer-top{ flex-direction:column; }
}
