/* Общий стиль symphoboard.ru. Страницы пишутся руками, стиль один на всех. */

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(/fonts/literata-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(/fonts/literata-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(/fonts/literata-cyrillic-wght-italic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(/fonts/literata-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #f9f5ec;
  --paper: #fffdf8;
  --fg: #241d16;
  --muted: #6f6455;
  --rule: #e4d9c6;
  --accent: #8a5a2b;
  --mark: #f1e6d3;
  --serif: "Literata", ui-serif, Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16120e;
    --paper: #1d1813;
    --fg: #ece4d6;
    --muted: #9a8f7f;
    --rule: #30281f;
    --accent: #d3a06a;
    --mark: #2a2118;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 400 18px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  padding: 0 1.25rem 4rem;
}

a {
  color: inherit;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover, a:focus-visible { color: var(--accent); text-decoration-color: currentColor; }

/* Шапка */

.top {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.4rem 0 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; display: block; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.3rem;
  font-size: 0.95rem;
}
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--accent); }

/* Колонка текста */

main {
  max-width: 36rem;
  margin: 0 auto;
  padding-top: 3rem;
}
main.wide { max-width: 44rem; }

.crumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 2rem;
}
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 0.4rem; color: var(--rule); }

.kicker {
  font-size: 1rem;
  font-weight: 500;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.8rem;
}
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 1.3rem;
  text-wrap: balance;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  margin: 0 0 1.6rem;
  text-wrap: pretty;
}
.lede.muted { color: var(--muted); }

p { margin: 0 0 1.2rem; text-wrap: pretty; }

h2 {
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

hr {
  border: 0;
  height: 1.5rem;
  margin: 2.2rem 0;
  background: none;
  text-align: center;
}
hr::before {
  content: "· · ·";
  color: var(--accent);
  letter-spacing: 0.4em;
}

/* Подписи разделов на главной */

.label {
  font-size: 1rem;
  font-weight: 500;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.section { margin: 0 0 3rem; }

/* Списки разборов */

.guides { list-style: none; margin: 0 0 1rem; padding: 0; }
.guides li { margin: 0 0 1.1rem; }
.guides a { font-size: 1.1rem; }
.guides span { display: block; font-size: 0.95rem; color: var(--muted); margin-top: 0.1rem; }

/* Карточки композиторов */

.composers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem 1.2rem;
}
.composers a { display: block; text-decoration: none; }
.composers img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  background: var(--mark);
  transition: filter 0.2s;
}
.composers a:hover img { filter: brightness(1.05) contrast(1.05); }
.composers .name { display: block; margin-top: 0.6rem; font-size: 1.05rem; font-weight: 500; line-height: 1.3; }
.composers .years { display: block; font-size: 0.85rem; color: var(--muted); }
.composers .about { display: block; font-size: 0.92rem; line-height: 1.45; color: var(--muted); margin-top: 0.35rem; }
@media (prefers-color-scheme: dark) {
  .composers img, .portrait img { filter: brightness(0.86) sepia(0.15); }
  .composers a:hover img { filter: brightness(0.95) sepia(0.1); }
}
@media (max-width: 34rem) {
  .composers { grid-template-columns: repeat(2, 1fr); gap: 1.3rem 1rem; }
}

/* Страница композитора */

.composer-head {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.6rem;
  align-items: end;
  margin: 0 0 2rem;
}
.composer-head h1 { margin-bottom: 0; }
.portrait { margin: 0; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: var(--mark);
}
@media (max-width: 34rem) {
  .composer-head { grid-template-columns: 7.5rem 1fr; gap: 1.1rem; }
}

.listen { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.listen li {
  counter-increment: n;
  position: relative;
  padding: 0 0 0 2.2rem;
  margin: 0 0 1.2rem;
}
.listen li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: oldstyle-nums;
}
.listen b { font-weight: 600; }
.listen span { display: block; color: var(--muted); font-size: 0.97rem; }

.credit {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Разборы: части, тайм-коды, врезки */

.movement { margin: 2.5rem 0; }
.movement h3 {
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.8rem;
}
.movement h3 .dur {
  color: var(--muted);
  font-weight: 400;
  font-variant: normal;
  letter-spacing: 0;
}

.cue {
  display: block;
  background: var(--mark);
  border-left: 2px solid var(--accent);
  border-radius: 0 3px 3px 0;
  padding: 0.7rem 0.95rem;
  margin: 1.2rem 0;
  font-size: 0.97rem;
  line-height: 1.55;
}
.cue b { font-variant-numeric: tabular-nums lining-nums; font-weight: 600; color: var(--accent); }

.next, .aside {
  margin: 2.5rem 0;
  padding: 1.2rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 1rem;
}
.next b {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.aside p:last-child { margin-bottom: 0; }
.aside b { font-weight: 600; }

/* Личная история */

.nope { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.nope li { display: flex; gap: 0.8rem; padding: 0.25rem 0; border-bottom: 1px dotted var(--rule); }
.nope b { font-weight: 500; min-width: 8.5rem; }
.nope span { color: var(--muted); }

.works { margin: 0 0 1.5rem; padding-left: 1.3rem; }
.works li { margin-bottom: 0.25rem; }
.works li::marker { color: var(--accent); }

/* Главная */

.hero { margin: 0 0 3rem; }
.hero h1 { font-size: clamp(2.3rem, 8vw, 3.3rem); }

.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }

.tg {
  display: block;
  padding: 1.1rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
}
.tg b { display: block; font-weight: 600; }
.tg span { color: var(--muted); font-size: 0.97rem; }
.tg:hover b { color: var(--accent); }

/* Подвал */

.foot {
  max-width: 52rem;
  margin: 4.5rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.foot p { margin: 0; }
.foot a { color: var(--muted); }

.composer-head h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }

/* Главная: заголовок и список готовых разборов */

.hero h1 { font-size: clamp(2.1rem, 6.5vw, 3.1rem); max-width: 21ch; margin-bottom: 1rem; }
.hero .lede { font-size: clamp(1.25rem, 3.2vw, 1.5rem); margin-bottom: 1rem; }
.muted { color: var(--muted); }
.hero .muted { max-width: 34rem; margin: 0; }

.done { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.done a {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  text-decoration: none;
  height: 100%;
  transition: border-color 0.15s;
}
.done a:hover { border-color: var(--accent); }
.done img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; flex: none; }
.done small { display: block; font-size: 0.85rem; color: var(--accent); }
.done b { display: block; font-weight: 600; line-height: 1.3; }
.done em { display: block; font-style: normal; font-size: 0.92rem; color: var(--muted); line-height: 1.4; margin-top: 0.2rem; }
@media (max-width: 34rem) { .done { grid-template-columns: 1fr; } }

.guides.soon a { color: var(--muted); font-size: 1rem; }
.guides.soon li { margin-bottom: 0.4rem; }

/* Разбор: кто композитор, со ссылкой на его страницу */

.byline {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.2rem;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.byline:hover { border-color: var(--accent); color: inherit; }
.byline img { width: 40px; height: 50px; object-fit: cover; border-radius: 9px; flex: none; }
.byline b { display: block; font-weight: 600; font-size: 1rem; line-height: 1.3; }
.byline small { display: block; font-size: 0.85rem; color: var(--muted); }
.byline:hover small { color: var(--accent); }

/* Главная, версия 3: оффер по центру, программка разборов, лента композиторов */

main.home { max-width: 52rem; padding-top: 0; }

.home .hero {
  text-align: center;
  padding: 4.5rem 0 4rem;
  margin: 0 auto 1rem;
  max-width: 46rem;
  position: relative;
}
.hero-mark { width: 64px; height: 64px; border-radius: 15px; display: block; margin: 0 auto 2rem; }
.home .hero h1 {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: none;
  margin: 0 0 1.3rem;
}
.tagline {
  font-size: clamp(1.25rem, 3.4vw, 1.65rem);
  font-style: italic;
  color: var(--accent);
  margin: 0 0 1.3rem;
}
.hero-note { color: var(--muted); max-width: 30rem; margin: 0 auto 2.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.btn:hover { opacity: 0.88; color: var(--bg); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* Нотный стан под оффером: пять тонких линеек вместо разделителя */
.home .hero::after {
  content: "";
  display: block;
  height: 25px;
  margin: 4rem auto 0;
  width: min(100%, 22rem);
  background: repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 6px);
}

.section-title {
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-align: center;
  border: 0;
  padding: 0;
  margin: 0 0 1.8rem;
}

.programme { border-top: 1px solid var(--rule); }
.programme .group {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}
.programme .who { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; align-self: start; }
.programme .who img { width: 56px; height: 70px; object-fit: cover; border-radius: 12px; flex: none; }
.programme .who span { font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.programme .who small { display: block; font-size: 0.85rem; font-weight: 400; color: var(--muted); margin-top: 0.2rem; }
.programme ul { list-style: none; margin: 0; padding: 0; }
.programme li a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.38rem 0;
  text-decoration: none;
}
/* пунктир между названием и пометкой, как в программке */
.programme li a::after { content: none; }
.programme .w { flex: 0 1 auto; }
.programme li a .tag { order: 3; }
.programme li a::before {
  content: "";
  order: 2;
  flex: 1;
  border-bottom: 1px dotted var(--rule);
  transform: translateY(-0.3em);
  min-width: 1rem;
}
.programme .tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  white-space: nowrap;
}
.programme li:not(.wip) .w { font-weight: 600; }
.programme li.wip .w { color: var(--muted); }
.programme li.wip .tag { background: transparent; color: var(--muted); border: 1px solid var(--rule); font-weight: 500; }
.programme li a:hover .w { color: var(--accent); }
@media (max-width: 40rem) {
  .programme .group { grid-template-columns: 1fr; gap: 0.8rem; }
}

.strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.strip a { display: block; text-align: center; text-decoration: none; }
.strip img { display: block; width: 100%; max-width: 96px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; margin: 0 auto 0.5rem; transition: transform 0.2s; }
.strip a:hover img { transform: translateY(-3px); }
.strip span { font-size: 0.92rem; }
@media (max-width: 34rem) { .strip { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-color-scheme: dark) {
  .strip img, .programme .who img, .done img, .byline img { filter: brightness(0.86) sepia(0.15); }
}

.home .section { margin-bottom: 4.5rem; }
.home .guides { text-align: center; }
.home .tg { text-align: center; }
