:root {
  --v-950: #150a22;
  --v-900: #1f1131;
  --v-800: #2a1640;
  --v-700: #3b2158;
  --v-600: #5a3789;
  --v-400: #8e6cbf;
  --v-300: #b9a0d8;
  --v-100: #efe7f8;
  --v-50:  #f7f2fc;
  --gold: #b8892e;
  --gold-2: #d9b25c;
  --gold-soft: #f4e8cb;
  --ink: #241a2e;
  --ink-2: #4a4054;
  --muted: #7b7086;
  --paper: #faf6ef;
  --card: #fffdf9;
  --line: #e8dfd0;
  --serif: "Noto Serif Georgian", Georgia, serif;
  --sans: "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
  --shadow: 0 1px 2px rgba(42, 22, 64, .06), 0 8px 24px -12px rgba(42, 22, 64, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  min-height: 100vh; display: flex; flex-direction: column;
  font: 400 17px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
a { color: var(--v-600); text-decoration: none; }
a:hover { color: var(--v-800); }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.3; color: var(--ink); margin: 0 0 .5em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.narrow-wide { max-width: 980px; }
.section { padding-top: 40px; padding-bottom: 24px; }
.section:last-child { padding-bottom: 72px; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1.2 var(--sans); transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { font-size: 18px; }
.btn-gold { background: var(--gold-2); color: var(--v-900); }
.btn-gold:hover { background: #e6c378; color: var(--v-900); }
.btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-ghost:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn-violet { background: var(--v-700); color: #fff; }
.btn-violet:hover { background: var(--v-800); color: #fff; }

/* ---------- header */
.site-header { background: var(--v-800); color: #eadff5; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header-in { display: flex; align-items: center; gap: 16px; height: 72px; }
.site-header .wrap { max-width: 1340px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex: none; }
.brand img { width: 34px; height: auto; }
.brand-name { font: 600 20px/1 var(--serif); letter-spacing: .14em; color: var(--gold-2); }
.brand-name span { color: #cdb9e6; font-weight: 400; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .dd-btn {
  color: #d9cbe9; padding: 8px 9px; border-radius: 8px; font-size: 15px; background: none; border: 0;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.nav > a:hover, .dd-btn:hover, .nav > a.on, .dd-btn.on { color: #fff; background: rgba(255,255,255,.07); }
.nav > a.on, .dd-btn.on { box-shadow: inset 0 -2px 0 var(--gold-2); border-radius: 8px 8px 2px 2px; }
.nav > a.pin { white-space: nowrap; }
.dd { position: relative; }
.dd-btn svg { font-size: 16px; transition: transform .2s; }
.dd-menu {
  position: absolute; top: calc(100% + 10px); right: -40px; transform: translateY(6px);
  background: var(--card); border-radius: 12px; box-shadow: 0 18px 48px -12px rgba(21,10,34,.45);
  padding: 8px; min-width: 300px; opacity: 0; visibility: hidden; transition: .18s;
}
.dd.open .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-menu a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; line-height: 1.4; }
.dd-menu a:hover { background: var(--v-50); color: var(--v-700); }
.dd-menu small { color: var(--muted); font-size: 12px; padding-top: 2px; }
.dd-menu .dd-all { font-weight: 500; color: var(--v-600); border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.header-tools { display: flex; gap: 4px; }
.icon-btn { background: none; border: 0; color: #d9cbe9; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.icon-btn svg { font-size: 22px; }
.menu-btn { display: none; }

.search-bar { background: var(--v-900); max-height: 0; overflow: hidden; transition: max-height .25s; }
.search-bar.open { max-height: 80px; }
.search-bar .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.search-bar .wrap > svg { font-size: 20px; color: var(--gold-2); }
.search-bar input { flex: 1; background: none; border: 0; color: #fff; font: 400 17px var(--sans); outline: none; }
.search-bar input::placeholder { color: #9d8cb3; }

/* ---------- hero */
.hero {
  background:
    radial-gradient(circle at 18% 50%, rgba(217,178,92,.14), transparent 38%),
    radial-gradient(circle at 85% 10%, rgba(142,108,191,.28), transparent 45%),
    linear-gradient(180deg, var(--v-800), var(--v-900));
  color: #eadff5; overflow: hidden; position: relative;
}
.hero::after {
  content: ""; position: absolute; left: 16%; top: 50%; width: 340px; height: 340px; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid rgba(217,178,92,.18); box-shadow: 0 0 0 40px rgba(217,178,92,.03), 0 0 0 90px rgba(217,178,92,.025);
  pointer-events: none;
}
.hero-in { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 40px; padding-top: 40px; padding-bottom: 44px; position: relative; z-index: 1; }
.hero-sigil { display: grid; place-items: center; }
.hero-sigil img { width: 104px; filter: drop-shadow(0 12px 32px rgba(0,0,0,.35)); }
.hero-kicker { font: 500 13px/1 var(--sans); letter-spacing: .28em; color: var(--gold-2); margin: 0 0 12px; }
.hero h1 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; margin-bottom: 12px; }
.hero blockquote { margin: 0 0 22px; font: 400 16px/1.7 var(--serif); color: #cdbde0; max-width: 680px; border-left: 2px solid var(--gold); padding-left: 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sections */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: 28px; margin: 0; position: relative; padding-left: 18px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: .35em; width: 6px; height: .8em; border-radius: 3px; background: var(--gold-2); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; }

/* ---------- cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(42,22,64,.06), 0 18px 36px -14px rgba(42,22,64,.3); }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--v-100); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-noimg .card-media { background: linear-gradient(135deg, var(--v-700), var(--v-900)); display: grid; place-items: center; }
.card-sigil { font: 500 64px/1 var(--serif); color: var(--gold-2); opacity: .75; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.kicker { font: 500 12px/1.3 var(--sans); letter-spacing: .04em; color: var(--gold); margin-bottom: 8px; align-self: flex-start; }
.kicker:hover { color: var(--v-600); }
.card-title { font-size: 20px; margin: 0 0 8px; line-height: 1.4; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--v-600); }
.card-text { color: var(--ink-2); font-size: 15px; line-height: 1.65; margin: 0 0 14px; flex: 1; }
.meta { color: var(--muted); font-size: 13px; margin: 0; }
.card-big { display: grid; grid-template-columns: 1fr 1.35fr; margin-bottom: 24px; }
.card-big .card-media { aspect-ratio: auto; min-height: 0; height: 100%; }
.card-big .card-body { padding: 24px 32px; justify-content: center; }
.card-big .card-title { font-size: clamp(21px, 2.1vw, 26px); }
.card-big .card-text { font-size: 15px; flex: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- topics */
.topics { background: var(--v-50); margin-top: 48px; padding-bottom: 64px; border-top: 1px solid var(--v-100); border-bottom: 1px solid var(--v-100); }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.topic { background: var(--card); border: 1px solid var(--v-100); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, transform .2s; }
.topic:hover { border-color: var(--v-300); transform: translateY(-2px); }
.topic-name { font: 500 17px/1.4 var(--serif); color: var(--ink); }
.topic-n { font-size: 13px; color: var(--muted); }

/* ---------- shelf */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 160px; gap: 20px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; }
.shelf-book { scroll-snap-align: start; color: var(--ink); font-size: 14px; line-height: 1.4; display: flex; flex-direction: column; gap: 10px; }
.shelf-book img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px 8px 8px 4px; box-shadow: -3px 0 0 rgba(0,0,0,.08) inset, 0 10px 24px -10px rgba(42,22,64,.45); transition: transform .2s; }
.shelf-book:hover img { transform: translateY(-4px) rotate(-1deg); }
.shelf-cta { margin: 20px 0 0; }

/* ---------- page head */
.page-head { background: linear-gradient(180deg, var(--v-800), var(--v-900)); color: #d9cbe9; padding: 56px 0 48px; }
.page-head h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); font-weight: 500; margin: 0; }
.kicker-light { font: 500 13px/1.4 var(--sans); letter-spacing: .12em; color: var(--gold-2); margin: 0 0 12px; }
.page-intro { margin: 16px 0 0; max-width: 720px; color: #cdbde0; }
.page-intro p { margin: 0 0 8px; }
.page-intro a { color: var(--gold-2); }
.page-intro a:hover { color: #f0d08a; }
.page-head .btn { margin-top: 20px; }
.count { margin: 16px 0 0; font-size: 14px; color: #a996c0; }
.search-inline { display: flex; gap: 10px; margin-top: 24px; max-width: 560px; }
.search-inline input { flex: 1; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; padding: 12px 20px; font: 400 16px var(--sans); outline: none; }
.search-inline input:focus { border-color: var(--gold-2); }
.page-head .search-inline .btn { margin-top: 0; }
.empty { color: var(--muted); font-size: 17px; padding: 40px 0; text-align: center; }

/* ---------- pager */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 48px 0 0; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 14px; display: grid; place-items: center; border-radius: 10px; font-size: 15px; color: var(--ink-2); }
.pager a { background: var(--card); box-shadow: var(--shadow); }
.pager a:hover { color: var(--v-600); }
.pager .on { background: var(--v-700); color: #fff; }

/* ---------- post */
.post-head { background: linear-gradient(180deg, var(--v-800), var(--v-900)); padding: 64px 0 56px; text-align: center; }
.post-head h1 { color: #fff; font-size: clamp(30px, 4.2vw, 48px); font-weight: 500; margin: 0 0 16px; }
.post-cats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.post-cats .kicker-light { margin: 0; padding: 4px 12px; border: 1px solid rgba(217,178,92,.35); border-radius: 999px; transition: color .2s, border-color .2s, background .2s; }
.post-cats .kicker-light:hover { color: #fff; border-color: var(--gold-2); background: rgba(217,178,92,.14); }
.post-sub { font: 400 19px/1.6 var(--serif); color: #cdbde0; margin: 0 auto 18px; max-width: 640px; }
.post-meta { color: #a996c0; font-size: 14px; margin: 0; }
.draft-note { display: inline-block; background: var(--gold-soft); color: #6b4d12; font-size: 13px; padding: 4px 12px; border-radius: 999px; margin: 0 0 16px; }
.post-cover { margin: -28px auto 0; position: relative; }
.post-cover img { width: 100%; border-radius: var(--r); box-shadow: 0 24px 48px -24px rgba(21,10,34,.5); max-height: 560px; object-fit: cover; }
.post .prose { padding-top: 48px; }

.prose { font-size: 18px; line-height: 1.9; color: #2e2438; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 28px; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 23px; margin: 1.5em 0 .6em; color: var(--v-700); }
.prose h4 { font-size: 20px; margin: 1.4em 0 .5em; }
.prose strong, .prose b { font-weight: 600; color: var(--ink); }
.prose a { color: var(--v-600); text-decoration: underline; text-decoration-color: var(--v-300); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--v-600); }
.prose img { border-radius: 10px; margin: 1.6em auto; box-shadow: var(--shadow); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; background: var(--v-50); border-left: 3px solid var(--v-400); border-radius: 0 10px 10px 0; font-family: var(--serif); color: var(--v-800); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose .emoji { display: inline; width: auto; height: 1em; margin: 0; box-shadow: none; }
.prose iframe { max-width: 100%; border: 0; border-radius: 10px; }
.prose .center { text-align: center; }
.prose .right { text-align: right; }

.rights { margin: 40px 0 0; padding: 16px 20px; border: 1px dashed var(--line); border-radius: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.tags a { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--v-50); color: var(--v-600); }
.tags a:hover { background: var(--v-100); }
.share { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.share span { font-size: 14px; color: var(--muted); margin-right: 6px; }
.share a, .share button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--v-700); transition: .2s; }
.share a:hover, .share button:hover { background: var(--v-700); color: #fff; border-color: var(--v-700); }
.share svg { font-size: 19px; }
.share button.copied { background: var(--gold-2); border-color: var(--gold-2); color: var(--v-900); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0 0; }
.post-nav a { background: var(--card); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow); color: var(--ink); font: 500 16px/1.4 var(--serif); display: flex; flex-direction: column; gap: 4px; }
.post-nav a:hover { color: var(--v-600); }
.post-nav small { font: 400 13px var(--sans); color: var(--muted); }
.post-nav .next { text-align: right; grid-column: 2; }

.comments { margin: 56px 0 0; }
.comments h2 { font-size: 24px; }
.comments h2 span { font: 500 14px var(--sans); background: var(--v-100); color: var(--v-700); border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.comment { background: var(--card); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--shadow); }
.comment p { margin: 0; font-size: 16px; }
.comment-head { margin-bottom: 6px !important; display: flex; gap: 10px; align-items: baseline; }
.comment-head time { color: var(--muted); font-size: 13px; }

/* ---------- forms */
.form { display: grid; gap: 16px; margin-top: 20px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form textarea {
  width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 12px 14px;
  font: 400 16px/1.5 var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--v-400); box-shadow: 0 0 0 3px var(--v-100); }
.form .btn { justify-self: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 10px; font-size: 15px; margin: 16px 0; }
.notice.ok { background: #eaf5ea; color: #245a26; }
.notice.err { background: #fbeaea; color: #8a2424; }

/* ---------- books */
.books { display: grid; gap: 32px; }
.book { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; background: var(--card); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); scroll-margin-top: 96px; }
.book-alt { grid-template-columns: 1fr 280px; }
.book-alt .book-cover { order: 2; }
.book-cover img { width: 100%; border-radius: 4px 10px 10px 4px; box-shadow: -4px 0 0 rgba(0,0,0,.1) inset, 0 24px 40px -16px rgba(42,22,64,.55); }
.book-text h2 { font-size: 28px; font-weight: 500; }
.book-sub { font: 400 17px var(--serif); color: var(--v-600); margin: -4px 0 16px; }
.book .prose { font-size: 17px; }
.badge { display: inline-block; background: var(--gold-soft); color: #6b4d12; font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }

/* ---------- contact */
.link-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.link-group h2 { font-size: 20px; margin-bottom: 12px; }
.link-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); color: var(--ink); margin-bottom: 10px; transition: transform .2s; }
.link-row:hover { transform: translateX(3px); color: var(--v-700); }
.link-row svg { font-size: 22px; color: var(--v-600); }
.link-row span { flex: 1; font-weight: 500; }
.link-row .go { font-size: 18px; color: var(--muted); }
.contact-form { margin-top: 48px; background: var(--card); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.contact-form h2 { font-size: 26px; margin: 0; }

/* ---------- footer */
.site-footer { background: var(--v-950); color: #b3a3c8; margin-top: 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.footer-about p { margin: 16px 0 0; line-height: 1.8; max-width: 440px; font-family: var(--serif); }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #b3a3c8; }
.site-footer a:hover { color: var(--gold-2); }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.social svg { font-size: 19px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; padding-bottom: 28px; font-size: 13px; color: #8a7a9e; }

/* ---------- responsive */
@media (max-width: 1180px) {
  .menu-btn { display: grid; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--v-900); flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 24px; max-height: calc(100vh - 72px); overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav > a, .dd-btn, .nav > a.pin { padding: 14px 12px; font-size: 16px; justify-content: space-between; width: 100%; max-width: none; }
  .nav > a.on, .dd-btn.on { box-shadow: inset 3px 0 0 var(--gold-2); border-radius: 4px; }
  .dd-menu { position: static; transform: none; opacity: 1; visibility: visible; display: none; min-width: 0; background: rgba(255,255,255,.04); box-shadow: none; margin: 0 0 8px; }
  .dd.open .dd-menu { display: block; transform: none; }
  .dd:focus-within .dd-menu { transform: none; }
  .dd-menu a { color: #d9cbe9; }
  .dd-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .dd-menu .dd-all { color: var(--gold-2); border-color: rgba(255,255,255,.1); }
  .header-tools { margin-left: auto; }
}
/* same as the <=1180px block, applied by site.js when the menu does not fit */
.nav-compact .menu-btn { display: grid; }
.nav-compact .nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--v-900); flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 24px; max-height: calc(100vh - 72px); overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
.nav-compact .nav.open { transform: none; opacity: 1; visibility: visible; }
.nav-compact .nav > a, .nav-compact .dd-btn, .nav-compact .nav > a.pin { padding: 14px 12px; font-size: 16px; justify-content: space-between; width: 100%; max-width: none; }
.nav-compact .nav > a.on, .nav-compact .dd-btn.on { box-shadow: inset 3px 0 0 var(--gold-2); border-radius: 4px; }
.nav-compact .dd-menu { position: static; transform: none; opacity: 1; visibility: visible; display: none; min-width: 0; background: rgba(255,255,255,.04); box-shadow: none; margin: 0 0 8px; }
.nav-compact .dd.open .dd-menu { display: block; transform: none; }
.nav-compact .dd:focus-within .dd-menu { transform: none; }
.nav-compact .dd-menu a { color: #d9cbe9; }
.nav-compact .dd-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-compact .dd-menu .dd-all { color: var(--gold-2); border-color: rgba(255,255,255,.1); }
.nav-compact .header-tools { margin-left: auto; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; gap: 14px; padding-top: 28px; padding-bottom: 34px; }
  .hero::after { left: 50%; top: 18%; width: 240px; height: 240px; }
  .hero-sigil img { width: 64px; }
  .hero blockquote { border-left: 0; padding: 0; font-size: 15px; margin-left: auto; margin-right: auto; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { padding: 11px 20px; }
  .card-big { grid-template-columns: 1fr; }
  .card-big .card-media { min-height: 0; max-height: none; aspect-ratio: 16 / 9; }
  .card-big .card-body { padding: 22px; }
  .book, .book-alt { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .book-alt .book-cover { order: 0; }
  .book-cover { max-width: 240px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .header-in { height: 64px; }
  .nav { inset: 64px 0 auto 0; }
  .brand-name { font-size: 17px; }
  .section { padding-top: 40px; }
  .section-head h2 { font-size: 23px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .prose { font-size: 17px; line-height: 1.85; }
  .row2, .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: auto; }
  .contact-form { padding: 24px 18px; }
  .post-head { padding: 44px 0 44px; }
  .post-cover { margin-top: 0; padding: 0; }
  .post-cover img { border-radius: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- credit */
.credit { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.credit a { color: var(--gold-2); }
.credit a:hover { color: #f0d08a; }
.heart { color: #e0566f; font-size: 15px; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.22); } 24% { transform: scale(1); } 36% { transform: scale(1.14); } 48% { transform: scale(1); } }
@media (max-width: 600px) { .footer-bottom { flex-direction: column; gap: 6px; } }

/* ---------- reCAPTCHA: badge hidden, notice shown in the form instead (allowed by Google) */
.grecaptcha-badge { visibility: hidden !important; }
.captcha-note { font-size: 12px !important; font-weight: 400; color: var(--muted); margin: -4px 0 0; line-height: 1.5; }
.captcha-note a { color: var(--muted); text-decoration: underline; }

.ts-box:empty { display: none; }
.ts-box { margin: 4px 0; }

/* ---------- copy protection (admin setting) */
body.protect { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.protect input, body.protect textarea, body.protect [contenteditable] { -webkit-user-select: text; user-select: text; }
body.protect img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
body.protect a img { pointer-events: auto; }
.protect-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--v-900); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: .25s; z-index: 100; }
.protect-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media print {
  body.protect > * { display: none !important; }
  body.protect::after { content: "ამ საიტის ბეჭდვა აკრძალულია · olmek.ge"; display: block; padding: 40px; font: 18px sans-serif; }
}

/* ---------- 404 */
.notfound { text-align: center; padding: 64px 0 72px; flex: 1; display: flex; align-items: center; }
.notfound .wrap { display: flex; flex-direction: column; align-items: center; }
.nf-code { font: 500 clamp(72px, 12vw, 128px)/1 var(--serif); color: var(--gold-2); margin: 0 0 8px; opacity: .9; letter-spacing: .04em; }
.notfound .page-intro { margin-left: auto; margin-right: auto; }
.notfound .search-inline { width: 100%; margin-left: auto; margin-right: auto; }
.nf-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.page-head .nf-actions .btn { margin-top: 0; }
.nf-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; }
.nf-topics a { font-size: 13px; color: #d9cbe9; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 5px 14px; }
.nf-topics a:hover { color: var(--gold-2); border-color: var(--gold-2); }
main:has(.notfound) { display: flex; flex-direction: column; }
main:has(.notfound) + .site-footer { margin-top: 0; }
