/*
  Оболочка: ширина 780, шапка 96, логотип 96, полоса меню 64, кнопки 48.
  Подключается после appearance.css, чтобы пульт вида не сбивал эти размеры.
*/

:root {
  --content: 780px;
  --header-h: 96px;
  --menu-h: 64px;
}

.container {
  max-width: 780px;
}

.site-header {
  height: 96px;
  min-height: 96px;
  max-height: 96px;
}

.header-logo {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
}

.header-logo img {
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.main-menu {
  position: relative;
  height: 64px;
  min-height: 64px;
  padding-top: 0;
  padding-bottom: 0;
  overflow: visible;
  background: #efe4d0;
  align-items: center;
  justify-content: center !important;
  margin-bottom: 0 !important;
  gap: 8px;
  box-sizing: border-box;
  border-bottom: 4px solid var(--rust, #b85c38);
}

.main-menu::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--pad, 24px);
  background: var(--rust, #b85c38);
  pointer-events: none;
}

.main-menu .btn.menu-stub {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  box-shadow: none;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.main-menu .btn.menu-stub svg {
  width: 24px;
  height: 24px;
  display: block;
}

.main-menu a.btn.menu-stub {
  text-decoration: none;
  color: inherit;
}

.main-menu a.btn.menu-stub.is-current {
  border-color: var(--rust, #b85c38);
  box-shadow: none;
}

.main-menu .btn.menu-stub:hover {
  box-shadow: 2px 3px 0 var(--ink);
}

.main-menu a.btn.menu-stub.is-current:hover {
  border-color: var(--rust, #b85c38);
  box-shadow: 2px 3px 0 var(--rust, #b85c38);
}

body.is-home .page-content > .home-podium:first-child {
  margin-top: 28px;
}

/* Карусель на главной: лента. Размер кадра зависит от места в окне. */
body.is-home .site-carousel {
  position: relative;
  min-height: 0 !important;
}
body.is-home .site-carousel-track {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  scroll-behavior: auto;
  touch-action: manipulation;
  cursor: default;
}
body.is-home .site-carousel-track::-webkit-scrollbar {
  display: none;
  height: 0;
}
body.is-home .site-carousel-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  flex: none;
  position: relative;
}
body.is-home .site-carousel-slide,
body.is-home .site-carousel-slide.is-prev,
body.is-home .site-carousel-slide.is-next,
body.is-home .site-carousel-slide.is-on {
  display: block !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  flex: 0 0 var(--slide-w, 604px) !important;
  width: var(--slide-w, 604px) !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  overflow: hidden;
  transform: none !important;
  scale: none !important;
  filter: none;
  z-index: 1;
  animation: none !important;
}
body.is-home .site-carousel-slide.is-prev,
body.is-home .site-carousel-slide.is-next {
  filter: brightness(0.92);
}
body.is-home .site-carousel-slide.is-on {
  filter: none;
  z-index: 2;
}
body.is-home .site-carousel-slide {
  transition: translate .4s cubic-bezier(.22, 1, .3, 1), rotate .4s cubic-bezier(.22, 1, .3, 1);
}
body.is-home .site-carousel-slide.is-prev,
body.is-home .site-carousel-slide.is-next {
  cursor: pointer;
}
body.is-home .site-carousel-slide.is-prev:hover {
  translate: 12px 0;
  rotate: 0.6deg;
}
body.is-home .site-carousel-slide.is-next:hover {
  translate: -12px 0;
  rotate: -0.6deg;
}
body.is-home .site-carousel-slide.is-prev:active {
  translate: 18px 0;
  rotate: 0.8deg;
}
body.is-home .site-carousel-slide.is-next:active {
  translate: -18px 0;
  rotate: -0.8deg;
}
body.is-home .site-carousel-slide.is-prev:hover .site-carousel-card,
body.is-home .site-carousel-slide.is-next:hover .site-carousel-card {
  filter: brightness(1.12);
}
body.is-home .site-carousel-slide.is-on a.site-carousel-card {
  cursor: pointer;
}
body.is-home .site-carousel-slide.is-on:hover .site-carousel-card {
  box-shadow: inset 0 -3px 0 #b85c38;
  filter: brightness(1.05);
}
@media (prefers-reduced-motion: reduce) {
  body.is-home .site-carousel-slide,
  body.is-home .site-carousel-slide.is-on {
    animation: none !important;
  }
}
body.is-home .site-carousel-slide .site-carousel-card {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 8 / 3.22 !important;
  margin: 0 !important;
  transition: aspect-ratio .45s cubic-bezier(.22, 1, .3, 1);
}
body.is-home .site-carousel-slide.is-on .site-carousel-card {
  aspect-ratio: 8 / 3.45 !important;
}
body.is-home .site-carousel-slide .site-carousel-card img {
  object-position: center center !important;
}
body.is-home .site-carousel-slide .site-carousel-copy {
  display: flex !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
}
body.is-home .site-carousel-bar {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: var(--slide-w, 604px) !important;
  margin: 14px auto 4px !important;
  gap: 18px !important;
}
body.is-home .site-carousel-bar button {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  flex-basis: 15px !important;
  border-radius: 0 !important;
  border-color: rgba(28, 26, 22, .45) !important;
  background: rgba(28, 26, 22, .22) !important;
  box-shadow: none !important;
}
body.is-home .site-carousel-bar button[aria-current="true"] {
  background: #b85c38 !important;
  border-color: #b85c38 !important;
}


/* Состояния: покой без тени, наведение — чернильная тень, нажатие — сдвиг. Ржавчина только у текущего. */
.btn {
  box-shadow: none !important;
  background: var(--bone, #f6f0e4);
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn:hover {
  transform: none;
  background: var(--bone, #f6f0e4);
  box-shadow: 3px 4px 0 var(--ink) !important;
}
.btn:active {
  transform: translate(1px, 2px);
  box-shadow: 1px 2px 0 var(--ink) !important;
}
.btn:focus-visible {
  outline: 2px solid var(--rust, #b85c38);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--rust, #b85c38);
  color: var(--bone, #f6f0e4);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--rust-dark, #8f4529);
  color: var(--bone, #f6f0e4);
  box-shadow: 3px 4px 0 var(--ink) !important;
}
.btn-primary:active {
  background: var(--rust-dark, #8f4529);
}

.main-menu .btn.menu-stub,
.main-menu a.btn.menu-stub.is-current {
  box-shadow: none !important;
}
.main-menu a.btn.menu-stub.is-current {
  border-color: var(--rust, #b85c38);
}
.main-menu .btn.menu-stub:hover {
  box-shadow: 3px 4px 0 var(--ink) !important;
}
.main-menu a.btn.menu-stub.is-current:hover {
  border-color: var(--rust, #b85c38);
  box-shadow: 3px 4px 0 var(--rust, #b85c38) !important;
}
.main-menu .btn.menu-stub:active {
  transform: translate(1px, 2px);
  box-shadow: 1px 2px 0 var(--ink) !important;
}

.header-pass a {
  box-shadow: none !important;
}
.header-pass a:hover {
  transform: none;
  box-shadow: 2px 3px 0 var(--ink) !important;
}
.header-pass a:active {
  transform: translate(1px, 2px);
  box-shadow: 1px 2px 0 var(--ink) !important;
}

.home-champ,
.home-row {
  border: 1.5px solid var(--ink);
  box-shadow: 2px 3px 0 var(--ink);
  transition: transform .16s ease, box-shadow .16s ease;
}
.home-champ:hover,
.home-row:hover {
  transform: translate(-2px, -3px);
  box-shadow: 4px 5px 0 var(--ink);
}
.home-champ:active,
.home-row:active {
  transform: translate(1px, 2px);
  box-shadow: 1px 2px 0 var(--ink);
}


/* Косметика: иерархия, один приём кнопок, воздух по 8, ржавчина только состоянию. */
html, body {
  background: #ddd4c4;
}
.container {
  background: #f6f1e7;
}
.brand, header h1, header .brand {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: .06em;
}
.header-hello, .header-pass, .header-pass a, .header-pass .is-you, .site-footer, .btn, .event-feed-type {
  font-family: var(--font-body) !important;
}
.header-pass a {
  min-height: 32px;
  padding: 4px 12px;
  font-size: .72rem;
  letter-spacing: .04em;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  box-shadow: none !important;
}
.header-pass a:hover {
  box-shadow: 2px 2px 0 var(--ink) !important;
}
.main-menu {
  border-bottom-color: var(--ink);
}
.main-menu::after {
  background: var(--ink);
}
.main-menu .btn.menu-stub {
  border-radius: 6px;
  border-width: 1px;
}
body.is-home .site-carousel,
body.is-home .site-carousel-track {
  background: #f6f1e7;
}
body.is-home .site-carousel-slide.is-prev,
body.is-home .site-carousel-slide.is-next {
  background: #efe8da;
}
body.is-home .site-carousel-slide.is-prev .site-carousel-card,
body.is-home .site-carousel-slide.is-next .site-carousel-card {
  opacity: .72;
}
body.is-home .site-carousel-bar {
  margin-top: 8px !important;
  gap: 8px !important;
}
body.is-home .chronicle > h2 {
  margin: 24px 0 8px;
}
body.is-home .chronicle > h2::after {
  width: 16px;
  margin: 8px auto 0;
}
body.is-home .event-feed-list {
  margin-top: 16px;
  gap: 16px;
}
body.is-home .event-feed-item.is-newest {
  transform: translateY(-8px);
  filter: drop-shadow(3px 6px 0 var(--ink));
}
body.is-home .event-feed-item.is-newest:hover {
  transform: translate(-2px, -12px);
}
body.is-home .event-date-mark {
  margin: 8px;
  padding: 4px;
  background: rgba(246, 241, 231, .42);
}
body.is-home .event-react i.is-zero {
  font-size: .52rem;
  opacity: .35;
  font-weight: 400;
}
body.is-home .event-react.is-mine i {
  color: var(--rust, #b85c38);
  opacity: 1;
}
body.is-home .event-feed-head {
  gap: 4px;
}
body.is-home .event-feed-type {
  font-size: 1rem;
  color: var(--muted-2, #868c85);
  letter-spacing: .06em;
}
body.is-home .event-card:has(.event-feed-description) .event-feed-description,
body.is-home .event-feed-description {
  border: 1px solid var(--ink);
  border-top: 1px dashed rgba(28, 26, 22, .35);
  border-radius: 0 0 6px 6px;
  background: #efe8da;
  padding: 8px 16px 10px;
}
body.is-home .event-cover {
  border-right-color: var(--ink);
}
body.is-home .event-reacts {
  border-left-color: var(--ink);
}
.home-champ.is-empty .home-champ-art,
.home-row.is-placeholder .home-row-art,
.home-champ-art:not(:has(img)),
.home-row-art:not(:has(img)) {
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: repeating-linear-gradient(0deg, transparent, transparent 8px, rgba(28,26,22,.08) 9px), #e6dcc8;
}
.home-champ-art .no-cover, .home-row-art .no-cover {
  color: var(--ink);
  background: transparent;
}
.site-footer {
  margin-top: 32px !important;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-family: var(--font-body) !important;
  letter-spacing: .12em;
  text-transform: lowercase;
}
.char-quote, .char-quote-text {
  font-family: var(--font-hand, "Neucha", cursive);
}


/* Второй проход косметики. */
body.is-home .site-carousel-bar {
  margin: 16px auto 0 !important;
}
body.is-home .chronicle > h2 {
  margin: 24px 0 16px;
}
body.is-home .chronicle > h2::after {
  margin: 8px auto 0;
}
body.is-home .event-feed-list {
  margin-top: 8px;
}
body.is-home .site-carousel-slide.is-quote .site-carousel-card,
body.is-home .site-carousel-slide.is-paper .site-carousel-card {
  background: #f6f1e7 !important;
  border: 1px solid var(--ink);
  color: var(--ink);
}
body.is-home .site-carousel-slide.is-quote .site-carousel-quote,
body.is-home .site-carousel-slide.is-paper .site-carousel-quote {
  color: var(--ink);
  font-family: var(--font-hand, "Neucha", cursive);
}
body.is-home .site-carousel-slide.is-quote .site-carousel-by,
body.is-home .site-carousel-slide.is-paper .site-carousel-by {
  color: var(--ink-2, #5c574e);
}
body.is-home .site-carousel-slide.is-prev .site-carousel-card,
body.is-home .site-carousel-slide.is-next .site-carousel-card {
  opacity: 1;
}
body.is-home .event-feed-type {
  letter-spacing: 0;
}
body.is-home .event-card:has(.event-feed-description) .event-feed-description,
body.is-home .event-feed-description {
  border-left: 0;
  border-right: 0;
  padding-left: 16px;
  padding-right: 16px;
}
body.is-home .event-feed-item.is-newest {
  transform: translateY(-8px);
  filter: drop-shadow(3px 14px 0 var(--ink));
}
body.is-home .event-feed-item.is-newest:hover {
  transform: translate(-2px, -12px);
  filter: drop-shadow(4px 16px 0 var(--ink));
}
.shelf-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.shelf-head h2,
.home-podium > h2 {
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}
.shelf-head a {
  color: var(--ink) !important;
  font-size: .75rem;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}
.shelf-head a:hover {
  color: var(--rust, #b85c38) !important;
}
.home-champ-art .no-cover,
.home-row-art .no-cover,
.person-card-cover .no-cover,
.cassette-cover .no-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
}
.site-footer .foot-brand {
  letter-spacing: .12em;
  text-transform: lowercase;
}
.site-footer .foot-side {
  font-size: .72rem;
  color: var(--ink-2, #5c574e);
  letter-spacing: .04em;
}
body.is-char .char-hero {
  margin-left: auto;
  margin-right: auto;
}
body.is-char .char-scoreline,
body.is-char .char-scoreline.song-scoreline {
  width: min(100%, 420px);
  grid-auto-columns: 1fr;
  align-items: stretch;
}
body.is-char .char-scoreline .score-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  height: 100%;
  padding: 8px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: #efe8da;
  text-align: center;
}
.container {
  border-left: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}
body.is-home .event-feed-item:hover .event-cover img {
  transform: none;
}
