:root{
  --bg-top:#6b1c2b;
  --bg-bottom:#4e1320;
  --paper:#f3e5d2;
  --paper-soft:#ead8bf;
  --gold:#bfa03a;
  --ink:#241015;
  --muted:#6f565a;
  --line: rgba(191,160,58,.28);
  --shadow: 0 18px 38px rgba(0,0,0,.35);
  --radius: 18px;

  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --caps: ui-serif, Georgia, "Times New Roman", serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--paper);
  font-family: var(--sans);
  line-height:1.6;
}

a{color:inherit; text-decoration:none}
.wrap{max-width:1140px; margin:0 auto; padding:26px}

header{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(78,19,32,.55);
  border-bottom:1px solid rgba(243,229,210,.14);
}
.bar{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  position:relative;
  padding-top:10px;   /* чтобы логотип “сел” в орнамент */
}
.mark{
  width:38px; height:38px; border-radius:14px;
  background: linear-gradient(135deg, rgba(191,160,58,.35), rgba(243,229,210,.12));
  border:1px solid rgba(243,229,210,.16);
  box-shadow: 0 12px 22px rgba(0,0,0,.28);
}
.brand-title b{
  display:block;
  font-family: var(--serif);
  font-size:1.08rem;
  letter-spacing:.2px;
  line-height:1.1;
}
.brand-title small{
  display:block;
  color: rgba(243,229,210,.72);
  font-size:.78rem;
  letter-spacing:.12em;
  text-transform: uppercase;
  margin-top:2px;
}

nav{display:flex; gap:6px; flex-wrap:wrap}
nav a{
  padding:10px 12px;
  border-radius:999px;
  color: rgba(243,229,210,.80);
  border:1px solid transparent;
}
nav a:hover{
  border-color: rgba(243,229,210,.22);
  background: rgba(243,229,210,.06);
}

.top-actions{display:flex; gap:10px; align-items:center}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 14px;
  border-radius:999px;
  border:1px solid rgba(243,229,210,.22);
  background: rgba(243,229,210,.07);
  color: rgba(243,229,210,.92);
  cursor:pointer;
  font-weight:600;
}
.btn:hover{transform: translateY(-1px)}
.btn.primary{
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper), var(--paper-soft));
  border-color: rgba(191,160,58,.40);
  box-shadow: 0 14px 28px rgba(0,0,0,.25);
}

.card{
  background: var(--paper);
  color: var(--ink);
  border:1px solid rgba(191,160,58,.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;
  inset:16px;
  border:1px solid rgba(191,160,58,.25);
  border-radius: calc(var(--radius) - 12px);
  pointer-events:none;
}
.card.pad{padding:18px}

h1,h2,h3{
  font-family: var(--serif);
  color: #2b1016;
  margin:0 0 10px;
}
h1{
  font-weight:600;
  font-size: clamp(30px, 4vw, 46px);
  line-height:1.08;
}
h2{font-size:1.35rem}
h3{font-size:1.15rem}

.muted{color: var(--muted)}
.hr{
  height:1px; background: var(--line); border:none; margin:20px 0;
}

.hero{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:stretch;
}
.hero .left{padding:22px}
.hero .right{padding:18px; display:flex; flex-direction:column; gap:12px}

.pills{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}
.pill{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(191,160,58,.28);
  background: rgba(191,160,58,.10);
  font-size:.92rem;
  color: rgba(43,16,22,.78);
}

.search{display:flex; gap:10px; margin-top:10px}
input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(43,16,22,.18);
  background: rgba(255,255,255,.78);
  color: var(--ink);
  outline:none;
}
input:focus{border-color: rgba(191,160,58,.55)}
.smallcaps{
  font-variant: small-caps;
  letter-spacing:.08em;
}

.main{
  padding:22px 0 0;
  display:grid;
  grid-template-columns: .78fr 1.22fr;
  gap:18px;
  align-items:start;
}
.side{position:sticky; top:92px}
.tags{display:flex; flex-wrap:wrap; gap:10px}
.tag{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(43,16,22,.16);
  background: rgba(255,255,255,.55);
  cursor:pointer;
  font-size:.92rem;
  color: rgba(43,16,22,.82);
}
.tag:hover{border-color: rgba(191,160,58,.55)}

.feed{display:grid; gap:14px}
.post{
  display:grid;
  grid-template-columns: 180px 1fr;
  gap:14px;
  padding:14px;
}
.thumb{
  border-radius:16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.74), rgba(255,255,255,.48)),
    radial-gradient(140px 140px at 25% 25%, rgba(191,160,58,.18), transparent 60%),
    radial-gradient(180px 140px at 75% 75%, rgba(43,16,22,.10), transparent 58%);
  border:1px solid rgba(43,16,22,.12);
  position:relative;
  overflow:hidden;
  min-height:120px;
}
.thumb::after{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:12px;
  border:1px solid rgba(191,160,58,.22);
  pointer-events:none;
}
.post h2{
  font-size:1.35rem;
  line-height:1.2;
  margin:0 0 6px;
}
.meta{
  display:flex; gap:10px; flex-wrap:wrap;
  color: rgba(43,16,22,.62);
  font-size:.85rem;
  letter-spacing:.08em;
  text-transform: uppercase;
}
.excerpt{margin:10px 0 0; color: rgba(43,16,22,.78)}

footer{
  margin-top:24px;
  border-top:1px solid rgba(243,229,210,.14);
  color: rgba(243,229,210,.78);
  padding:26px 0 40px;
}
.row{
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  flex-wrap:wrap;
}

.article{
  margin-top:18px;
  padding:22px;
}
.article .title{
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height:1.12;
  margin:0 0 10px;
}
.article .article-meta{
  display:flex; gap:10px; flex-wrap:wrap;
  color: rgba(43,16,22,.62);
  font-size:.85rem;
  letter-spacing:.08em;
  text-transform: uppercase;
  margin-bottom:10px;
}
.article p{color: rgba(43,16,22,.84); margin:0 0 12px}
.article blockquote{
  margin:16px 0;
  padding:14px 16px;
  border-left:3px solid rgba(191,160,58,.55);
  background: rgba(191,160,58,.08);
  border-radius: 14px;
}
.article blockquote p{margin:0; color: rgba(43,16,22,.78)}

@media (max-width: 980px){
  .hero{grid-template-columns: 1fr}
  .main{grid-template-columns: 1fr}
  .side{position:static}
  .post{grid-template-columns: 1fr}
  .thumb{min-height:150px}
  nav{display:none}
}
/* ===== Верхний орнамент (сдержанный Art Nouveau) ===== */
header{
  position: sticky;
  top: 0;
  z-index: 10;
  overflow: hidden; /* важно для псевдо-элементов */
}

/* тонкая линия-орнамент сверху шапки */
header::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:28px;
  opacity:.55;
  pointer-events:none;

  /* SVG-орнамент в data-uri */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='28' viewBox='0 0 1600 28'%3E%3Cpath d='M0 14 H520' stroke='rgba(243,229,210,0.55)' stroke-width='1'/%3E%3Cpath d='M1080 14 H1600' stroke='rgba(243,229,210,0.55)' stroke-width='1'/%3E%3Cpath d='M520 14c40 0 55-8 80-8s40 8 80 8 55-8 80-8 40 8 80 8 55-8 80-8 40 8 80 8' fill='none' stroke='rgba(191,160,58,0.75)' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M790 14c10-10 20-10 20 0s-10 10-20 0z' fill='rgba(191,160,58,0.35)'/%3E%3Cpath d='M800 6c4 4 4 12 0 16' fill='none' stroke='rgba(243,229,210,0.55)' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M800 6c-4 4-4 12 0 16' fill='none' stroke='rgba(243,229,210,0.55)' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 1600px 28px;
}

/* маленький “золотой” отблеск под орнаментом */
header::after{
  content:"";
  position:absolute;
  left:50%;
  top:-140px;
  width:520px;
  height:320px;
  transform:translateX(-50%);
  pointer-events:none;
  opacity:.18;
  background: radial-gradient(circle, rgba(191,160,58,.55), transparent 65%);
}
/* ===== Логотип встроен в орнамент шапки ===== */
.logo-wrap{
  width:120px;
  height:120px;
  border-radius:50%;
  display:inline-grid;
  place-items:center;
  position:relative;
  overflow:hidden;

  background: radial-gradient(circle, rgba(243,229,210,.95), rgba(191,160,58,.35));
  border:2px solid rgba(191,160,58,.8);
  box-shadow:
    0 14px 30px rgba(0,0,0,.45),
    0 0 0 4px rgba(191,160,58,.25);
}

/* тонкое внутреннее кольцо */
.logo-wrap::before{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:50%;
  border:1px solid rgba(191,160,58,.45);
}

/* сама картинка */
.logo-img{
  width:120%;
  height:120%;
  object-fit:cover;
  border-radius:50%;
  transform: scale(1.05);
}