/* ============================================================
   ВИЗАРТЪ — ЖУРНАЛ ГАЛЕРЕИ
   Лента записей на бархате и гербовый лист отдельной записи.
   Дополняет css/style.css и css/platform.css.
   ============================================================ */

:root {
  --jr-line: rgba(201,162,39,.2);
}

/* ---------- Общий разворот ---------- */

.jr {
  width: min(1240px, 100% - 40px);
  margin: 0 auto;
  padding: 104px 0 110px;
}
@media (max-width: 620px) { .jr { width: calc(100% - 28px); padding-top: 88px; } }

.jr-head { text-align: center; margin-bottom: 34px; }
.jr-head__crest { width: 210px; margin: 0 auto 14px; opacity: .8; }
.jr-head__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--parchment);
  line-height: 1.08;
}
.jr-head__sub {
  font-family: var(--font-text);
  font-style: italic;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--smoke);
  max-width: 62ch;
  margin: 10px auto 0;
  line-height: 1.6;
}
.jr-head__rule {
  width: 260px; height: 1px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Латунные этикетки фильтра ---------- */

.jr-filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}
.jr-tab {
  padding: 8px 18px;
  border: 1px solid rgba(201,162,39,.32);
  border-radius: 2px;
  background: linear-gradient(180deg, #6a4c18 0%, #4c3611 45%, #3a2a0d 100%);
  box-shadow: inset 0 1px 0 rgba(255,238,190,.22), 0 2px 7px rgba(0,0,0,.5);
  color: #ecdcb0;
  font-family: var(--font-text);
  font-size: 15px;
  letter-spacing: .07em;
  cursor: pointer;
  transition: color .25s var(--ease-lux), background .25s var(--ease-lux);
}
.jr-tab:hover { color: #fff3d2; }
.jr-tab.is-on {
  background: linear-gradient(180deg, #33230a 0%, #553d12 60%, #6d5019 100%);
  color: var(--gold-hi);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.65), inset 0 -1px 0 rgba(255,238,190,.16);
}

/* ---------- Лента записей ---------- */

.jr-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--jr-line);
  border-radius: 3px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(74,14,28,.6), rgba(28,5,12,.86)),
    url('../assets/textures/velvet-dark.webp') center / cover;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  transition: transform .4s var(--ease-lux), box-shadow .4s var(--ease-lux), border-color .4s;
}
.entry:hover {
  transform: translateY(-4px);
  border-color: rgba(232,197,95,.45);
  box-shadow: 0 24px 56px rgba(0,0,0,.6);
}
@media (prefers-reduced-motion: reduce) { .entry:hover { transform: none; } }

.entry__link { display: flex; flex-direction: column; height: 100%; color: inherit; }

.entry__shot {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #190409;
  border-bottom: 1px solid var(--jr-line);
}
.entry__shot img { width: 100%; height: 100%; object-fit: cover; }
.entry__shot::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 120%, rgba(20,3,8,.8), transparent 62%),
    url('../assets/textures/craquelure.webp') center / 700px repeat;
  mix-blend-mode: soft-light;
  opacity: .5;
  pointer-events: none;
}

/* Печать типа записи */
.entry__kind {
  position: absolute;
  left: 12px; top: 12px;
  padding: 4px 11px;
  border-radius: 2px;
  background: rgba(20,4,9,.82);
  border: 1px solid rgba(201,162,39,.45);
  color: var(--gold-hi);
  font-family: var(--font-text);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
}
.entry__kind--essay   { border-color: rgba(62,91,76,.75); color: #b6d1c1; }
.entry__kind--event   { border-color: rgba(155,39,64,.7); color: #f0c2c2; }

.entry__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.entry__title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .05em;
  line-height: 1.24;
  color: var(--parchment);
  margin-bottom: 8px;
}
.entry:hover .entry__title { color: var(--gold-hi); }
.entry__lead {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  color: rgba(243,231,201,.78);
  flex: 1 1 auto;
}
.entry__foot {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(201,162,39,.14);
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--smoke);
}
.entry__foot .dot { opacity: .6; }
.entry__tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.entry__tag {
  font-family: var(--font-text);
  font-size: 12.5px;
  color: var(--smoke);
  border: 1px solid rgba(201,162,39,.22);
  border-radius: 11px;
  padding: 2px 9px;
}

/* ---------- Пагинация пролётами ---------- */

.jr-pager {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; flex-wrap: wrap;
  margin-top: 40px;
}
.jr-pager__span {
  min-width: 40px;
  padding: 7px 12px;
  border: 1px solid rgba(201,162,39,.3);
  border-radius: 2px;
  background: rgba(74,14,28,.4);
  color: var(--parchment);
  font-family: var(--font-num);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.jr-pager__span:hover { border-color: rgba(232,197,95,.6); color: var(--gold-hi); }
.jr-pager__span.is-on {
  background: linear-gradient(180deg, #33230a, #6d5019);
  color: var(--gold-hi);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.6);
}
.jr-pager__span[disabled] { opacity: .35; cursor: default; }
.jr-pager__gap { color: var(--smoke); padding: 0 4px; }

/* ---------- Гербовый лист записи ---------- */

.sheet { width: min(1180px, 100% - 40px); margin: 0 auto; padding: 96px 0 100px; }
@media (max-width: 620px) { .sheet { width: calc(100% - 26px); padding-top: 84px; } }

.sheet__crest { text-align: center; margin-bottom: 12px; }
.sheet__crest img { width: 74px; margin: 0 auto; opacity: .85; }

.sheet__kind {
  display: block;
  text-align: center;
  font-family: var(--font-text);
  font-size: 12.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.sheet__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.2vw, 58px);
  letter-spacing: .05em;
  line-height: 1.1;
  text-align: center;
  color: var(--parchment);
  max-width: 22ch;
  margin: 0 auto;
}
.sheet__stamp {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  margin: 20px 0 30px;
  font-family: var(--font-num);
  font-size: 13.5px;
  color: var(--smoke);
  letter-spacing: .05em;
}
.sheet__stamp .plate-min {
  padding: 5px 13px;
  border: 1px solid rgba(201,162,39,.35);
  border-radius: 2px;
  background: linear-gradient(180deg, #5c4215, #3a2a0d);
  color: #ecdcb0;
  box-shadow: inset 0 1px 0 rgba(255,238,190,.2);
}

.sheet__cover {
  position: relative;
  margin: 0 0 34px;
  border: 1px solid rgba(201,162,39,.3);
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: #190409;
}
.sheet__cover img { width: 100%; height: 100%; object-fit: cover; }
.sheet__cover::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 40%, rgba(15,2,7,.75) 100%),
    url('../assets/textures/craquelure.webp') center / 900px repeat;
  mix-blend-mode: soft-light;
  opacity: .6;
  pointer-events: none;
}
.sheet__caption {
  font-family: var(--font-text);
  font-style: italic;
  font-size: 14px;
  color: var(--smoke);
  text-align: center;
  margin: -24px 0 34px;
}

.sheet__lead {
  font-family: var(--font-text);
  font-style: italic;
  font-size: clamp(19px, 2.3vw, 24px);
  line-height: 1.55;
  color: rgba(243,231,201,.92);
  max-width: 66ch;
  margin: 0 auto 34px;
  text-align: center;
}
.sheet__lead::after {
  content: '';
  display: block;
  width: 180px; height: 1px;
  margin: 26px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Тело: мера строки 68 знаков, интерлиньяж 1.65 */
.sheet__body {
  max-width: 68ch;
  margin: 0 auto;
  font-family: var(--font-text);
  font-size: 19px;
  line-height: 1.65;
  color: rgba(243,231,201,.92);
}
.sheet__body p { margin-bottom: 20px; }
.sheet__body h2, .sheet__body h3 {
  font-family: var(--font-display);
  letter-spacing: .07em;
  color: var(--gold-hi);
  margin: 40px 0 14px;
  line-height: 1.2;
}
.sheet__body h2 { font-size: clamp(24px, 3vw, 32px); }
.sheet__body h3 { font-size: clamp(20px, 2.4vw, 25px); color: var(--gold); }
.sheet__body a { color: var(--gold); border-bottom: 1px solid rgba(201,162,39,.4); }
.sheet__body a:hover { color: var(--gold-hi); }
.sheet__body ul, .sheet__body ol { margin: 0 0 20px 26px; }
.sheet__body li { margin-bottom: 7px; }
.sheet__body blockquote {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
  font-style: italic;
  color: rgba(243,231,201,.8);
}
.sheet__body hr {
  border: 0;
  height: 22px;
  margin: 34px auto;
  background: url('../assets/textures/divider-gold.png') center / contain no-repeat;
  opacity: .6;
}
.sheet__body strong { color: var(--parchment); font-weight: 600; }

/* Буквица */
.sheet__body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.2em;
  line-height: .82;
  padding: 6px 12px 0 0;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 22px rgba(232,197,95,.28);
}

/* Врезка карточки лота из маркера [[public_id]] */
.inset {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 26px 0;
  padding: 14px;
  border: 1px solid rgba(201,162,39,.28);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(74,14,28,.5), rgba(28,5,12,.7));
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
  transition: border-color .3s, transform .3s var(--ease-lux);
}
.inset:hover { border-color: rgba(232,197,95,.5); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .inset:hover { transform: none; } }
.inset__shot {
  width: 108px; height: 108px;
  flex: 0 0 auto;
  border: 1px solid rgba(201,162,39,.3);
  border-radius: 2px;
  overflow: hidden;
  background: #190409;
}
.inset__shot img { width: 100%; height: 100%; object-fit: cover; }
.inset__body { min-width: 0; }
.inset__cap {
  font-family: var(--font-text);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--smoke);
}
.inset__title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .04em;
  color: var(--parchment);
  margin: 3px 0 5px;
  line-height: 1.2;
}
.inset__meta { font-family: var(--font-text); font-size: 14.5px; color: var(--smoke); }
.inset__price { font-family: var(--font-num); font-size: 17px; color: var(--gold-hi); margin-top: 5px; }

/* ---------- Подпись хранителя ---------- */

.sign {
  max-width: 68ch;
  margin: 46px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--jr-line);
  display: flex; align-items: center; gap: 16px;
}
.sign__seal {
  width: 54px; height: 54px; flex: 0 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 26%, #a97f38, #3b2a12 72%);
  border: 1px solid rgba(201,162,39,.5);
  box-shadow: inset 0 1px 0 rgba(255,238,190,.3), 0 5px 16px rgba(0,0,0,.55);
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-hi);
}
.sign__who { font-family: var(--font-display); font-size: 18px; letter-spacing: .08em; color: var(--parchment); }
.sign__when { font-family: var(--font-text); font-size: 14px; color: var(--smoke); margin-top: 2px; }

/* ---------- Витрины упомянутых лотов ---------- */

.sheet__section {
  text-align: center;
  margin: 56px 0 24px;
}
.sheet__section h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--parchment);
}
.sheet__section p { font-family: var(--font-text); font-size: 15px; color: var(--smoke); margin-top: 6px; }

.sheet__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.sheet__more {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.more-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--jr-line);
  border-radius: 3px;
  background: rgba(74,14,28,.34);
  transition: border-color .3s, background .3s;
}
.more-card:hover { border-color: rgba(232,197,95,.45); background: rgba(110,27,46,.38); }
.more-card__kind {
  font-family: var(--font-text);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.more-card__title {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .04em;
  color: var(--parchment);
  margin: 5px 0 6px;
  line-height: 1.25;
}
.more-card__lead { font-family: var(--font-text); font-size: 14.5px; color: var(--smoke); line-height: 1.5; }

/* ---------- Соседние записи ---------- */

.neighbours {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 68ch;
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--jr-line);
  font-family: var(--font-text);
  font-size: 15px;
}
.neighbours a { color: var(--gold); }
.neighbours span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); }

/* ---------- Пустое и служебное ---------- */

.jr-empty { text-align: center; padding: 60px 20px; }
.jr-empty img { width: 240px; margin: 0 auto 18px; opacity: .55; }
.jr-empty p {
  font-family: var(--font-text);
  font-size: 18px;
  color: var(--smoke);
  max-width: 54ch;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.jr-shim {
  height: 260px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(243,231,201,.04), rgba(243,231,201,.09), rgba(243,231,201,.04));
  background-size: 300% 100%;
  animation: jrShim 1.5s linear infinite;
}
@keyframes jrShim { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .jr-shim { animation: none; } }
