/* Дон Жуан Форуми — archive. Burgundy + gold "evening" palette, Playfair Display headings, Manrope text. */
:root {
  --accent: #8c1d40;        /* burgundy */
  --accent-dark: #6d1531;
  --accent-deep: #4a0e22;
  --gold: #b8893a;
  --ink: #23161c;
  --muted: #6c5a61;
  --line: #eadfd9;
  --soft: #f8f2ee;
  --card: #fffdfb;
  --bg: #fdf9f6;
  --quote: #f6ece8;
  --on-accent: #fff;
  --head: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: Manrope, "Segoe UI", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #d0587c; --accent-dark: #b8466a; --accent-deep: #2a0d18; --gold: #d8ae62;
    --ink: #f1e7ea; --muted: #b3a0a7; --line: #35252c; --soft: #1d1418;
    --card: #21171b; --bg: #160f12; --quote: #2a1c22; --on-accent: #fff;
  }
}
:root[data-theme="dark"] {
  --accent: #d0587c; --accent-dark: #b8466a; --accent-deep: #2a0d18; --gold: #d8ae62;
  --ink: #f1e7ea; --muted: #b3a0a7; --line: #35252c; --soft: #1d1418;
  --card: #21171b; --bg: #160f12; --quote: #2a1c22; --on-accent: #fff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, .ptitle { font-family: var(--head); font-weight: 700; letter-spacing: -.005em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; z-index: 10; }
.muted { color: var(--muted); }

/* masthead: deep burgundy band with the rose wordmark */
.masthead { background: linear-gradient(135deg, #3a0a1a 0%, #6d1531 55%, #8c1d40 100%); color: #fff; }
.masthead .wrap { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo:hover { text-decoration: none; }
.logo svg { width: 42px; height: 42px; flex: none; }
.logo .wm { display: flex; flex-direction: column; line-height: 1.05; }
.logo .wm b { font-family: var(--head); font-size: 27px; font-weight: 700; letter-spacing: .01em; }
.logo .wm small { font-size: 11px; text-transform: uppercase; letter-spacing: .22em; color: #f1d9a8; margin-top: 4px; }
.search { flex: 1; display: flex; max-width: 440px; margin-left: auto; }
.search input { flex: 1; min-width: 0; border: 1px solid transparent; border-right: 0; border-radius: 999px 0 0 999px; padding: 10px 16px; font: inherit; font-size: 14px; background: var(--card); color: var(--ink); }
.search button { border: 0; border-radius: 0 999px 999px 0; background: var(--gold); color: #fff; padding: 0 16px; cursor: pointer; font: inherit; font-weight: 700; }
.search button:hover { filter: brightness(1.08); }
.masthead .search input { border-color: rgba(255,255,255,.25); }

/* main nav */
.mainnav { background: var(--card); border-bottom: 1px solid var(--line); }
.mainnav .wrap { display: flex; overflow-x: auto; gap: 4px; }
.mainnav a { color: var(--ink); font-weight: 700; font-size: 13px; text-transform: uppercase; padding: 12px 14px; white-space: nowrap; letter-spacing: .06em; border-bottom: 2px solid transparent; }
.mainnav a:hover, .mainnav a.on { border-bottom-color: var(--gold); color: var(--accent); text-decoration: none; }
.mainnav .tag { margin-left: auto; color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; border: 0; }

main { padding-top: 26px; padding-bottom: 48px; }

/* section heading */
.sec { font-size: 22px; margin: 30px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sec span { position: relative; padding-left: 26px; }
.sec span::before { content: "❦"; position: absolute; left: 0; top: -2px; color: var(--gold); font-size: 18px; }
.ptitle { font-size: 30px; line-height: 1.2; margin: 6px 0 8px; }
.ptitle small { font-family: var(--body); font-size: 16px; color: var(--muted); font-weight: 400; }
.lead { color: var(--muted); margin: 0 0 8px; }

.hero { background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: 22px 26px; margin-bottom: 8px; }
.hero h1 { margin: 0 0 6px; font-size: 32px; }
.hero p { margin: 0; color: var(--muted); max-width: 820px; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr; } }

/* forum and topic lists */
.flist, .tlist, .latest, .simple { list-style: none; margin: 0; padding: 0; }
.flist, .tlist { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.frow, .trow { display: grid; grid-template-columns: minmax(0, 1fr) 120px 230px; gap: 16px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.frow:first-child, .trow:first-child { border-top: 0; }
.frow:nth-child(even), .trow:nth-child(even) { background: var(--soft); }
.frow h3, .trow h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.trow h3 { font-family: var(--body); font-size: 15.5px; }
.frow h3 a, .trow h3 a { color: var(--ink); }
.frow h3 a:hover, .trow h3 a:hover { color: var(--accent); }
.desc { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.subs { margin: 5px 0 0; font-size: 13px; }
.fstats, .tstats { font-size: 13px; color: var(--muted); text-align: right; }
.fstats b, .tstats b { color: var(--ink); }
.flast, .tlast { font-size: 13px; min-width: 0; }
.flast a:first-child { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.flast span, .tlast span { display: block; color: var(--muted); }
.meta { font-size: 13px; color: var(--muted); }
.badge { display: inline-block; background: var(--gold); color: #fff; font-family: var(--body); font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; vertical-align: 2px; }
@media (max-width: 720px) {
  .frow, .trow { grid-template-columns: 1fr; gap: 6px; padding: 12px 14px; }
  .fstats, .tstats { text-align: left; }
  .fstats br, .tstats br { display: none; }
}

/* sidebar */
.side .sec { margin-top: 30px; }
.latest li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.latest a { font-weight: 700; color: var(--ink); display: block; line-height: 1.35; }
.latest a:hover { color: var(--accent); }
.latest span { font-size: 12px; color: var(--muted); }
.note { margin-top: 20px; background: var(--soft); padding: 16px; font-size: 14px; border-top: 3px solid var(--gold); border-radius: 0 0 10px 10px; }

/* breadcrumbs */
.crumbs ol { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 8px; }
.crumbs a { color: var(--muted); }

/* pager */
.pager { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0; }
.pager a, .pager span { min-width: 36px; text-align: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: var(--card); }
.pager .cur { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.pager .gap { border: 0; background: none; }
.pager a:hover { border-color: var(--accent); text-decoration: none; }

/* posts */
.thead { margin-bottom: 4px; }
.posts { display: flex; flex-direction: column; gap: 14px; }
.post { display: grid; grid-template-columns: 180px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); scroll-margin-top: 12px; }
.post:target { outline: 2px solid var(--gold); }
.author { background: var(--soft); padding: 16px; font-size: 13px; color: var(--muted); border-right: 1px solid var(--line); }
.aname { font-weight: 700; font-size: 15px; margin-top: 8px; word-break: break-word; }
.atitle { color: var(--accent); font-weight: 700; }
.pbody { padding: 14px 20px 18px; min-width: 0; }
.pmeta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 12px; }
.plink { color: var(--muted); }
.content { overflow-wrap: anywhere; }
.content p { margin: 0 0 .8em; }
.content img { vertical-align: middle; }
.content img.emo { width: auto; height: 1.2em; }
.content .citation { margin: 10px 0 0; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 8px 8px 0 0; }
.content .blockquote, .content blockquote { margin: 0 0 12px; background: var(--quote); border-left: 3px solid var(--gold); padding: 10px 14px; font-size: 15px; }
.content blockquote { margin: 10px 0; }
.content blockquote > .citation:first-child { margin: -10px -14px 10px; }
.content .citation + .blockquote { margin-top: 0; }
.content pre, .content .prettyprint { background: var(--soft); padding: 10px; overflow-x: auto; font-size: 13px; }
.content .video { position: relative; aspect-ratio: 16 / 9; max-width: 640px; margin: 8px 0; border-radius: 8px; overflow: hidden; }
.content .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.content table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.content td, .content th { border: 1px solid var(--line); padding: 4px 8px; }
@media (max-width: 720px) {
  .post { grid-template-columns: 1fr; }
  .author { display: flex; align-items: center; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .author > div { display: flex; flex-wrap: wrap; gap: 0 10px; align-items: baseline; }
  .aname { margin: 0; }
  .ava.lg { width: 36px; height: 36px; font-size: 16px; }
  .pbody { padding: 12px 14px 14px; }
}
.closed { margin-top: 24px; padding: 14px 16px; background: var(--soft); border-radius: 10px; font-size: 14px; color: var(--muted); }

/* avatars (initials) */
.ava { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: hsl(var(--h) 42% 38%); color: #fff; font-family: var(--head); font-weight: 700; font-size: 13px; flex: none; }
.ava.lg { width: 64px; height: 64px; font-size: 26px; }
.ava.xl { width: 96px; height: 96px; font-size: 40px; }

/* profile */
.profile { display: flex; gap: 22px; align-items: center; background: var(--soft); padding: 22px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 6px 0 0; }
.facts dt { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.facts dd { margin: 0; font-weight: 700; }
.simple li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.simple a { font-weight: 700; }
.simple span { display: block; font-size: 13px; color: var(--muted); }
.empty { color: var(--muted); padding: 20px 0; }

.search.big { max-width: 640px; margin: 10px 0 6px; }
.search.big input { border-color: var(--line); }
.search.big button { padding: 0 22px; }

/* footer */
.foot { background: #24101a; color: #d9c4cb; font-size: 14px; }
.foot .wrap { padding-top: 28px; padding-bottom: 28px; }
.foot strong { color: #fff; font-family: var(--head); font-size: 17px; }
.foot a { color: #f1d9a8; }
.foot p { margin: 0 0 8px; }
.foot .muted { color: #a8919a; }

@media (max-width: 720px) {
  .masthead .wrap { flex-wrap: wrap; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
  .logo svg { width: 36px; height: 36px; }
  .logo .wm b { font-size: 23px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .mainnav .tag { display: none; }
  .ptitle, .hero h1 { font-size: 24px; }
  .hero { padding: 16px 18px; }
  .profile { flex-direction: column; align-items: flex-start; }
}
.fstats .sep, .tstats .sep { display: none; }
@media (max-width: 720px) { .fstats .sep, .tstats .sep { display: inline; } }

/* cookie banner */
.consent { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 12px; box-shadow: 0 10px 30px rgba(36, 16, 26, .25); padding: 16px 18px; font-size: 14px; }
.consent p { margin: 0 0 12px; }
.cbtns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.cbtns button { font: inherit; font-weight: 700; padding: 9px 18px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.cbtns .cyes { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cbtns button:hover { filter: brightness(1.06); }
.linkbtn { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.foot .linkbtn { color: #f1d9a8; text-decoration: none; }
.prose { max-width: 760px; }
.prose h2 { font-size: 20px; margin: 22px 0 6px; }
.prose code { background: var(--soft); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
@media (max-width: 720px) { .consent { left: 8px; right: 8px; bottom: 8px; } .cbtns button { flex: 1; } }
