/* Zone sites (pune / besim / pasion .eridrekaj.com): minimal blog. One accent per zone, light and dark follow the system. */
:root {
	color-scheme: light dark;
	--bg: light-dark(#fbfaf7, #121513);
	--surface: light-dark(#ffffff, #1a1e1b);
	--text: light-dark(#1d221f, #e8ece9);
	--soft: light-dark(#3b443f, #c3ccc6);
	--muted: light-dark(#66706a, #98a39c);
	--line: light-dark(#e4e2da, #2a312d);
	--serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--radius: 14px;
	--w: 1180px;
}
body.zone-blue  { --accent: light-dark(#2358b0, #86b6ff); --fill: #2f6fd0; --tint: light-dark(#e9f0fc, #16233d); }
body.zone-green { --accent: light-dark(#1d7a4d, #6fd7a0); --fill: #1f8a58; --tint: light-dark(#e6f4ec, #14281e); }
body.zone-red   { --accent: light-dark(#b3263a, #ff8a95); --fill: #c8344a; --tint: light-dark(#fbe9ec, #2e171b); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); background: var(--bg); border-top: 4px solid var(--fill); font: 16px/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.2; }
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-size: .92rem; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 14px; color: #fff; background: var(--fill); border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.head-row { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; flex-direction: column; margin-right: auto; }
.brand-name { color: var(--accent); font: 700 1.7rem/1.1 var(--serif); letter-spacing: -.01em; }
.brand-tag { max-width: 36ch; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.nav a, .langs a { color: var(--muted); font-size: .92rem; font-weight: 500; }
.nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .langs a:hover, .tool-search:hover { color: var(--text); }
.nav a.is-current { color: var(--text); border-bottom-color: var(--fill); }
.head-tools { display: flex; align-items: center; gap: 16px; }
.langs { display: flex; gap: 10px; }
.langs a { font-size: .78rem; letter-spacing: .04em; }
.langs a.is-current { color: var(--accent); font-weight: 700; }
.tool-search { display: grid; place-items: center; width: 34px; height: 34px; color: var(--muted); }
.tool-search svg, .widget-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* page frame */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 32px; padding-bottom: 72px; }
.content { min-width: 0; }
.section-title { margin: 40px 0 18px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--sans); font-weight: 600; }
.empty { padding: 40px 0; color: var(--muted); text-align: center; }
.chip { display: inline-block; padding: 2px 10px; color: var(--accent); background: var(--tint); border-radius: 99px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
.chip:hover { filter: brightness(.96); }
.chip-solid { color: #fff; background: var(--fill); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.btn, .search-form button { display: inline-block; padding: 10px 20px; color: #fff; background: var(--fill); border: 0; border-radius: 10px; font-weight: 600; cursor: pointer; }
.btn:hover, .search-form button:hover { filter: brightness(1.08); }

/* slider */
.slider { position: relative; overflow: hidden; background: #111; border-radius: var(--radius); aspect-ratio: 16 / 8; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active, .slider:not(.is-ready) .slide:first-child { opacity: 1; visibility: visible; }
.slide-link, .slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide img { object-fit: cover; }
.slide-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .78)); }
.slide-copy { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px 32px 36px; color: #fff; }
.slide-title { max-width: 26ch; font: 600 clamp(1.4rem, 3.2vw, 2.2rem)/1.15 var(--serif); }
.slide-text { max-width: 58ch; color: rgba(255, 255, 255, .88); font-size: .95rem; line-height: 1.5; }
.slide-meta { color: rgba(255, 255, 255, .7); font-size: .78rem; }
.slider-btn { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; color: #fff; background: rgba(0, 0, 0, .35); border: 0; border-radius: 50%; cursor: pointer; transition: background .2s; }
.slider-btn:hover { background: var(--fill); }
.slider-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-dots { position: absolute; z-index: 2; right: 22px; bottom: 16px; display: flex; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; padding: 0; background: rgba(255, 255, 255, .5); border: 0; border-radius: 50%; cursor: pointer; }
.slider-dots button.is-active { width: 22px; background: #fff; border-radius: 99px; }
.slider:not(.is-ready) .slider-btn, .slider:not(.is-ready) .slider-dots { display: none; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
.card-img { display: block; overflow: hidden; background: var(--tint); border-radius: var(--radius); aspect-ratio: 16 / 9; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 14px; }
.card h3 { font-size: 1.28rem; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; color: var(--soft); font-size: .94rem; line-height: 1.55; }
.meta, .post-meta { color: var(--muted); font-size: .78rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.pager a { color: var(--accent); font-weight: 600; }

/* category and search heads */
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.back, .crumbs { color: var(--muted); font-size: .84rem; }
.back { display: inline-block; margin-bottom: 10px; }
.back:hover, .crumbs a:hover { color: var(--accent); }
.page-text { max-width: 60ch; margin-top: 10px; color: var(--soft); }
.page-text p { margin: 0 0 .8em; }
.search-form { display: flex; gap: 10px; max-width: 480px; margin: 18px 0 14px; }
.search-form input { flex: 1; min-width: 0; }
input[type=search], input[type=text], input[type=email], textarea { width: 100%; padding: 10px 12px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; outline: 0; }
input:focus, textarea:focus { border-color: var(--accent); }

/* article */
.post h1 { margin-top: 10px; font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -.01em; }
.post-meta { margin: 12px 0 0; }
.post-cover { margin: 26px 0 0; overflow: hidden; border-radius: var(--radius); }
.post-cover img { width: 100%; }
.prose { margin-top: 30px; color: var(--soft); font-size: 1.1rem; line-height: 1.78; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.25em; }
.prose h2, .prose h3 { margin: 1.8em 0 .6em; color: var(--text); }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.28rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 10px; margin: 1.4em 0; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; color: var(--text); border-left: 3px solid var(--fill); font-family: var(--serif); font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.prose pre, .prose table { max-width: 100%; overflow-x: auto; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 34px 0 0; font-size: .86rem; }
.post-tags a { color: var(--accent); }
.post-tags a:hover { text-decoration: underline; }

/* comments */
.comments { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line); }
.comments h2 { font-size: 1.4rem; }
.comments h2 span { color: var(--muted); font-weight: 400; }
.comments h3 { margin: 34px 0 14px; font-size: 1.15rem; }
.comment-list { list-style: none; margin: 22px 0 0; padding: 0; }
.comment-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-meta { color: var(--muted); font-size: .8rem; }
.comment-meta strong { color: var(--text); }
.comment-text p { margin: 6px 0 0; color: var(--soft); font-size: .96rem; }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.comment-form .check { display: flex; align-items: flex-start; gap: 8px; }
.comment-form .check input { width: auto; margin-top: 4px; accent-color: var(--fill); }
.comment-form .check label { margin: 0; font-weight: 400; }
.comment-form textarea { resize: vertical; }
.trap { position: absolute; left: -9999px; }
.notice { margin: 14px 0 0; padding: 10px 14px; color: var(--accent); background: var(--tint); border-radius: 10px; font-size: .9rem; }
.notice.is-error { color: #b3263a; background: light-dark(#fbe9ec, #2e171b); }

/* sidebar */
.sidebar { display: flex; flex-direction: column; gap: 34px; align-self: start; }
.widget h2 { margin: 0 0 12px; color: var(--muted); font: 600 .74rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; }
.widget-search form { position: relative; }
.widget-search input { padding-right: 42px; }
.widget-search button { position: absolute; top: 0; right: 0; width: 42px; height: 100%; color: var(--muted); background: none; border: 0; cursor: pointer; }
.about-text { margin: 0; color: var(--soft); font-size: .94rem; line-height: 1.55; }
.about-link { margin: 10px 0 0; font-size: .88rem; }
.about-link a { color: var(--accent); font-weight: 600; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.list li:last-child { border-bottom: 0; }
.list a:hover { color: var(--accent); }
.list-recent time { display: block; margin-top: 2px; color: var(--muted); font-size: .74rem; }
.topics { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; font-size: .88rem; }
.topics a { color: var(--accent); }
.topics a:hover { text-decoration: underline; }
.zone-dot::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--c); }
.zone-dot-blue { --c: #2f6fd0; }
.zone-dot-green { --c: #1f8a58; }
.zone-dot-red { --c: #c8344a; }
.zone-subscribe input { margin-bottom: 8px; }

/* footer, 404 */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 28px; }
.foot-links { display: flex; gap: 18px; }
.site-footer a:hover { color: var(--accent); }
.notfound { padding: 40px 0; }
.notfound h1 { font-size: 2rem; margin-bottom: 10px; }

@media (max-width: 980px) {
	.layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; }
	.widget-search { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
	.head-row { gap: 10px 16px; }
	.brand-tag { display: none; }
	.nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
	.nav a { white-space: nowrap; }
	.grid { grid-template-columns: minmax(0, 1fr); }
	.slider { aspect-ratio: 4 / 3.4; }
	.slide-copy { padding: 20px 20px 44px; }
	.slide-text { display: none; }
	.slider-btn { display: none; }
	.sidebar { grid-template-columns: minmax(0, 1fr); }
	.comment-form .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.slide, .card-img img { transition: none; }
}
