/* Kutlesh 2.0 — macedon.org.au
   Flag red for structure, sun gold for the one thing to press, white (or night) for reading.
   Colour names for the curious: Вардар = red, Охрид = blue, Пелистер = gold. */

:root {
	--k-red: #a3121a; --k-red-deep: #7e0d13; --k-sun: #f6c21a; --k-sun-ink: #2a1e00;
	--vardar: var(--k-red); --ohrid: #2f5bd8; --pelister: var(--k-sun);
	--bg: #ffffff; --ink: #1d1d1f; --muted: #5f5955; --line: #ebe6e1; --soft: #f6f3f0;
	--glass: rgba(255,255,255,0.72); --glass-line: rgba(255,255,255,0.75);
	--band: #1d1d1f; --band-ink: #ffffff; --band-muted: #cfc8c2;
	--serif: "Literata", Georgia, "Times New Roman", serif;
	--sans: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1320px;
	color-scheme: light;
}
html[data-theme="dark"] {
	--bg: #141414; --ink: #f3eeea; --muted: #b8b0aa; --line: #2b2826; --soft: #1e1c1b;
	--glass: rgba(30,28,27,0.62); --glass-line: rgba(255,255,255,0.10); --band: #0b0b0b;
	color-scheme: dark;
}

/* Language: both printed, one shown */
[data-mh-lang="mk"] .mh-l-en, [data-mh-lang="en"] .mh-l-mk { display: none !important; }
html:not([data-mh-lang]) .mh-l-en { display: none; }

/* Page transitions between pages (modern browsers; others simply load the page) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--k-red); }
html[data-theme="dark"] a:hover { color: #ff8a8f; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--k-sun); outline-offset: 2px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.k-skip:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000; top: 8px; left: 8px; background: var(--k-sun); color: var(--k-sun-ink); padding: 10px 16px; font-weight: 700; border-radius: 6px; }
.k-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.k-main { min-height: 50vh; padding-bottom: 72px; }
.k-main--elementor { padding-bottom: 0; }
.k-serif { font-family: var(--serif); }
.k-empty { padding: 56px 0; color: var(--muted); font-size: 18px; }
.k-glass { background: var(--glass); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border: 1px solid var(--glass-line); }

/* Wordmark: the full stop unfolds into the sun on hover */
.k-word, .kf-word { font-family: "Unbounded", var(--sans); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.k-mark { position: relative; display: inline-block; }
.k-mark .k-dot { color: var(--k-red); display: inline-block; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s ease; }
.kf .k-mark .k-dot { color: var(--k-sun); }
.k-mark .k-sun { position: absolute; left: 100%; bottom: .02em; width: .62em; height: .62em; margin-left: -.42em; color: var(--k-red); transform: scale(.15) rotate(-120deg); opacity: 0; transition: transform .7s cubic-bezier(.3,1.4,.5,1), opacity .35s ease; }
.kf .k-mark .k-sun { color: var(--k-sun); }
a:hover .k-mark .k-dot { transform: scale(0); opacity: 0; }
a:hover .k-mark .k-sun { transform: none; opacity: 1; }

/* Announcement */
.k-announce { background: var(--k-sun); color: var(--k-sun-ink); text-align: center; font-size: 14.5px; font-weight: 600; padding: 8px 20px; }

/* ---------- Top bar ---------- */
.k-topbar { background: var(--band); color: var(--band-ink); font-size: 13px; }
.k-topbar-in { display: flex; align-items: center; gap: 18px; min-height: 44px; padding-top: 5px; padding-bottom: 5px; }
.k-date { margin: 0; color: var(--band-muted); white-space: nowrap; }
.k-topbar-today { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.k-topbar-today .mc-today a { color: var(--k-sun); }
.k-topbar-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.k-search { display: flex; align-items: center; gap: 8px; border-radius: 999px; padding: 0 14px; height: 34px; }
.k-search input { background: transparent; border: 0; color: inherit; font: inherit; width: 220px; outline: none; }
.k-search--bar { background: rgba(255,255,255,0.1); }
.k-search--bar input::placeholder { color: rgba(255,255,255,0.7); }
.k-search:focus-within { outline: 2px solid var(--k-sun); }
.k-topbar .mh-switch { color: var(--band-ink); border-width: 0; background: rgba(255,255,255,0.1); padding: 3px; }
.k-topbar .mh-switch button { min-height: 30px; min-width: 40px; border-radius: 999px; font-size: 13px; }
.mh-switch { display: inline-flex; border: 2px solid currentColor; border-radius: 999px; overflow: hidden; }
.mh-switch button { background: transparent; color: inherit; border: 0; padding: 4px 12px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 36px; }
.mh-switch button[aria-pressed="true"] { background: #fff; color: #1d1d1f; }
.k-iconbtn { width: 36px; height: 36px; border-radius: 999px; border: 0; background: rgba(255,255,255,0.1); color: inherit; display: grid; place-items: center; cursor: pointer; }
.k-iconbtn svg { width: 16px; height: 16px; }
.k-theme-toggle .k-sunicon { display: none; color: var(--k-sun); }
html[data-theme="dark"] .k-theme-toggle .k-moon { display: none; }
html[data-theme="dark"] .k-theme-toggle .k-sunicon { display: block; }

/* ---------- Glass header ---------- */
.k-header { position: sticky; top: 0; z-index: 50; border-width: 0 0 1px; border-color: var(--line); }
.k-header-in { display: flex; align-items: center; gap: 40px; padding-top: 18px; padding-bottom: 18px; }
.k-brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); flex: none; }
.k-brand:hover { color: var(--ink); }
.k-brand .k-word { font-size: 30px; }
.k-logo { max-height: 52px; width: auto; display: block; }
.k-tagline { display: block; overflow: hidden; margin-top: 6px; height: 18px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.k-nav { flex: 1; min-width: 0; display: flex; justify-content: flex-end; }
.k-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.k-menu::-webkit-scrollbar { display: none; }
.k-menu a { position: relative; display: inline-block; padding: 10px 0; white-space: nowrap; text-decoration: none; font-weight: 500; font-size: 15.5px; color: var(--ink); }
.k-menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--k-red); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.k-menu a:hover::after, .k-menu .current-menu-item > a::after { transform: scaleX(1); }
.k-menu a:hover { color: var(--ink); }
.k-progress { height: 3px; background: var(--k-red); clip-path: inset(0 100% 0 0);
	-webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(6.25% - 3px), transparent calc(6.25% - 3px) 6.25%);
	mask: repeating-linear-gradient(90deg, #000 0 calc(6.25% - 3px), transparent calc(6.25% - 3px) 6.25%); }
.k-reading .k-progress, body.single .k-progress { -webkit-mask: none; mask: none; height: 4px; background: linear-gradient(90deg, #a3121a, #d9481c 45%, #f08a1c 70%, #f6c21a); }
@supports (animation-timeline: scroll()) {
	.k-header-in { animation: k-shrink linear both; animation-timeline: scroll(); animation-range: 0 180px; }
	.k-brand .k-word { animation: k-word linear both; animation-timeline: scroll(); animation-range: 0 180px; }
	.k-tagline { animation: k-tag linear both; animation-timeline: scroll(); animation-range: 0 120px; }
	.k-progress { animation: k-grow linear both; animation-timeline: scroll(); }
}
@keyframes k-shrink { to { padding-top: 10px; padding-bottom: 10px; } }
@keyframes k-word { to { font-size: 22px; } }
@keyframes k-tag { to { opacity: 0; height: 0; margin-top: 0; } }
@keyframes k-grow { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.k-burger { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); width: 44px; height: 44px; cursor: pointer; position: relative; }
.k-burger-lines, .k-burger-lines::before, .k-burger-lines::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .2s ease; }
.k-burger-lines { top: 21px; } .k-burger-lines::before { left: 0; right: 0; top: -7px; } .k-burger-lines::after { left: 0; right: 0; top: 7px; }
.k-burger[aria-expanded="true"] .k-burger-lines { background: transparent; }
.k-burger[aria-expanded="true"] .k-burger-lines::before { transform: translateY(7px) rotate(45deg); }
.k-burger[aria-expanded="true"] .k-burger-lines::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Ticker ---------- */
.k-ticker { display: flex; align-items: center; height: 42px; border-bottom: 1px solid var(--line); overflow: hidden; font-size: 14px; }
.k-ticker-label { flex: none; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 16px 0 28px; font-weight: 600; color: var(--k-red); background: var(--bg); position: relative; z-index: 1; }
.k-live { width: 8px; height: 8px; border-radius: 999px; background: var(--k-red); animation: k-blink 2s ease-in-out infinite; }
@keyframes k-blink { 50% { opacity: .35; } }
.k-ticker-view { overflow: hidden; flex: 1; }
.k-ticker-track { display: flex; gap: 44px; width: max-content; animation: k-marquee 50s linear infinite; }
.k-ticker-track a, .k-ticker-dup a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.k-ticker-dup { display: flex; gap: 44px; }
.k-ticker:hover .k-ticker-track { animation-play-state: paused; }
@keyframes k-marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.k-card { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.k-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--soft); }
.k-media-in { position: absolute; inset: 0; display: block; }
.k-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.k-tint { position: absolute; inset: 0; background: linear-gradient(135deg, #a3121a, #f6c21a); mix-blend-mode: color; opacity: .55; transition: opacity .6s ease; pointer-events: none; }
.k-card:hover .k-media img { transform: scale(1.035); }
.k-card:hover .k-tint, .k-notint .k-tint, .k-hero .k-tint { opacity: 0; }
.k-coin { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #f5efe6, #e7dfd3); }
html[data-theme="dark"] .k-coin { background: radial-gradient(circle at 50% 40%, #2a2522, #1d1a18); }
.k-coin-in { position: relative; width: min(46%, 150px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 800; font-size: clamp(26px, 3.4vw, 56px); color: #6b4f1d;
	background: radial-gradient(circle at 34% 28%, #f6e3ae 0, #d2ab55 46%, #94712c 100%);
	box-shadow: inset 0 0 0 4px rgba(255,255,255,.28), inset 0 0 0 7px rgba(107,79,29,.35), inset 0 -8px 18px rgba(0,0,0,.25), 0 6px 16px rgba(107,79,29,.25); text-shadow: 0 1px 0 rgba(255,255,255,.55); }
.k-coin-in::before { content: ""; position: absolute; inset: 13%; border-radius: 50%; border: 2px dotted rgba(107,79,29,.55); }
.k-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 13.5px; color: var(--muted); }
.k-src { font-weight: 600; color: var(--ink); }
.k-topic { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.k-topic-link { text-decoration: none; }
.k-pearl { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background-image: radial-gradient(circle at 32% 30%, rgba(255,255,255,.9) 0 16%, rgba(255,255,255,0) 52%) !important; box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.2); flex: none; }
.k-pearl--lg { width: 12px; height: 12px; }
.k-title { margin: 0; font-size: 18px; line-height: 1.28; font-weight: 600; }
.k-title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left 96% / 0 1.5px no-repeat; transition: background-size .35s ease; }
.k-card:hover .k-title a { background-size: 100% 1.5px; color: inherit; }
.k-sum { margin: 0; color: var(--muted); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.k-card--lead { gap: 18px; }
.k-media--lead { aspect-ratio: 3 / 2; border-radius: 18px; }
.k-card--lead .k-title { font-weight: 800; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.k-card--lead .k-sum { font-size: 18px; -webkit-line-clamp: 4; }
.k-chip-meta { position: absolute; left: 16px; bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--ink); max-width: calc(100% - 32px); }
.k-card--mid .k-title { font-weight: 700; font-size: 23px; line-height: 1.2; }
.k-card--text { padding-top: 24px; border-top: 1px solid var(--line); }
.k-card--text .k-title { font-weight: 700; font-size: 22px; line-height: 1.22; }
.k-card--tile .k-title { font-weight: 700; font-size: 21px; line-height: 1.25; }
.k-card--row { gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.k-card--row .k-meta { font-size: 13px; }
.k-card--row .k-title { font-size: 16px; line-height: 1.35; }
.k-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,0.18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.35); transition: transform .35s cubic-bezier(.3,1.4,.5,1), opacity .35s ease; }
.k-play--sm { width: 40px; height: 40px; margin: 0; left: 12px; top: auto; bottom: 12px; }
.k-eq { position: absolute; left: 14px; top: 14px; display: flex; align-items: flex-end; gap: 3px; height: 16px; opacity: 0; transition: opacity .4s ease; }
.k-eq i { width: 3px; height: 16px; background: var(--k-sun); transform-origin: bottom; animation: k-eq 1s ease-in-out infinite alternate; }
.k-eq i:nth-child(2) { animation-delay: .2s; } .k-eq i:nth-child(3) { animation-delay: .4s; }
@keyframes k-eq { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.k-vmeta { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(20,20,20,0.4); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.14); color: #fff; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-run { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--k-sun); transform: scaleX(0); transform-origin: left; transition: transform 3s linear; }
.k-card--video:hover .k-play { transform: scale(.8); opacity: 0; }
.k-card--video:hover .k-eq { opacity: 1; }
.k-card--video:hover .k-run { transform: scaleX(1); }
.k-card--video .k-media { aspect-ratio: 16 / 9; border-radius: 16px; background: #2f2c2a; }

/* ---------- Homepage ---------- */
.k-front { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, .95fr); gap: 36px; align-items: start; padding-top: 40px; }
.k-front-mid { display: flex; flex-direction: column; gap: 28px; }
.k-front-latest { border-radius: 20px; background: var(--soft); padding: 22px 22px 14px; }
.k-latest-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; font-weight: 600; font-family: var(--sans); }
.k-more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 14.5px; text-decoration: none; color: var(--k-red); }
.k-section { padding-top: 76px; }
.k-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; margin-bottom: 26px;
	background: conic-gradient(from 45deg, var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) left bottom / 6px 6px repeat-x; }
.k-section-head h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--serif); font-weight: 800; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; }
.k-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 32px 28px; }
.k-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 24px; }
.k-watch { position: relative; overflow: hidden; background: var(--band); color: #fff; margin-top: 80px; padding: 64px 0 72px; }
.k-watch .k-section-head { background-image: conic-gradient(from 45deg, #f6c21a 25%, transparent 0 50%, #f6c21a 0 75%, transparent 0); }
.k-watch .k-section-head h2 { color: #fff; }
.k-watch .k-more, .k-watch .k-section-head a { color: var(--k-sun); }
.k-watch .k-title a { color: #fff; }
.k-watch .k-wrap { position: relative; }
.k-glow { position: absolute; border-radius: 999px; pointer-events: none; }
.k-glow--red { width: 760px; height: 760px; left: -220px; top: -340px; background: radial-gradient(closest-side, rgba(163,18,26,0.55), transparent); }
.k-glow--sun { width: 620px; height: 620px; right: -160px; bottom: -360px; background: radial-gradient(closest-side, rgba(246,194,26,0.22), transparent); }
.k-rights { border-radius: 26px; background: var(--soft); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 36px; align-items: center; }
.k-rights h2 { font-weight: 800; font-size: clamp(32px, 3.8vw, 52px); letter-spacing: -0.02em; }
.k-rights p { font-size: 19px; color: var(--muted); }
.k-rights-list .k-card--text:first-child { border-top: 0; padding-top: 0; }

/* Buttons */
.k-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--k-red); color: #fff !important; text-decoration: none; font-weight: 600; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.k-btn:hover { filter: brightness(1.08); }
.k-btn--ink { background: var(--ink); color: var(--bg) !important; }
.k-btn--line { background: transparent; color: var(--ink) !important; border: 1.5px solid var(--line); }

/* Entry animations */
.k-in { animation: k-up .8s cubic-bezier(.2,.8,.2,1) both; }
.k-d1 { animation-delay: .1s; } .k-d2 { animation-delay: .2s; }
@keyframes k-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) { .k-reveal { animation: k-up linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; } }

/* ---------- Archives: a reading list that suits any photo size ---------- */
.k-list { display: flex; flex-direction: column; max-width: 980px; }
.k-card--list { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); }
.k-card--list:first-child { border-top: 0; padding-top: 4px; }
.k-card--list .k-media { aspect-ratio: 16 / 10; border-radius: 12px; }
.k-card--list .k-coin-in { font-size: 34px; }
.k-list-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.k-card--list .k-title { font-weight: 700; font-size: clamp(21px, 2vw, 26px); line-height: 1.22; }
.k-card--list .k-sum { font-size: 16px; -webkit-line-clamp: 3; }
@media (max-width: 640px) {
	.k-card--list { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 20px 0; }
	.k-card--list .k-media { aspect-ratio: 1; border-radius: 10px; }
	.k-card--list .k-title { font-size: 18px; }
	.k-card--list .k-sum { display: none; }
	.k-card--list .k-coin-in { font-size: 22px; }
}

/* ---------- Archives ---------- */
.k-page-head { padding-top: 40px; }
.k-page-head h1 { font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.k-lede { font-size: 19px; color: var(--muted); max-width: 46em; }
.k-crumb { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.k-crumb a { color: var(--k-red); text-decoration: none; }
.k-chips, .k-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.k-chips a { text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.k-chips a[aria-current="page"] { background: var(--k-red); border-color: var(--k-red); color: #fff; }
.k-kinds a { text-decoration: none; padding: 4px 2px; margin-right: 14px; font-weight: 600; color: var(--muted); }
.k-kinds a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--k-sun); }
.k-pages { margin-top: 44px; }
.k-pages ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.k-pages a, .k-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; }
.k-pages .current { background: var(--k-red); border-color: var(--k-red); color: #fff; }

/* ---------- Reading pages ---------- */
.k-hero { position: relative; height: clamp(320px, 46vw, 600px); overflow: hidden; background: var(--soft); }
.k-hero-in { position: absolute; inset: -40px 0 0; }
.k-hero .k-media-in img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@supports (animation-timeline: scroll()) { .k-hero-in { animation: k-par linear both; animation-timeline: scroll(); animation-range: 0 700px; } }
@keyframes k-par { to { transform: translateY(120px) scale(1.06); } }
.k-item-player { padding-top: 32px; }
.k-item-player .mh-embed--video { position: relative; aspect-ratio: 16 / 9; }
.k-item-player .mh-embed--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 18px; }
.k-item-player .mh-embed--facebook iframe { width: 100%; max-width: 500px; height: 640px; border: 0; display: block; margin: 0 auto; }
.k-item-card { position: relative; z-index: 2; max-width: 900px; margin-top: -200px; border-radius: 28px; padding: clamp(22px, 4vw, 46px); }
.k-item-card--flat { margin-top: 28px; }
.k-item-card h1 { font-weight: 800; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.025em; margin: 14px 0 0; text-wrap: balance; }
.k-item-alt { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); }
.k-item-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; padding-top: 44px; }
.k-item-body { max-width: 720px; }
.k-item-sum { font-family: var(--serif); font-size: 23px; line-height: 1.6; margin: 0 0 24px; }
.k-item-actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 24px 0 28px; }
.k-share-title { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.k-share { display: flex; flex-wrap: wrap; gap: 10px; }
.k-share a, .k-share button { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); text-decoration: none; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s ease, color .2s ease; }
.k-share a:hover, .k-share button:hover { background: var(--ink); color: var(--bg); }
.k-small-note { margin-top: 36px; font-size: 14px; color: var(--muted); }
.k-item-side { position: sticky; top: 110px; }
.k-side-box { border-radius: 22px; background: var(--soft); padding: 22px 22px 10px; }
.k-prose { font-size: 18px; line-height: 1.7; }
.k-prose h2 { font-family: var(--serif); font-size: 28px; margin-top: 1.4em; }
.k-prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 4px solid var(--k-sun); }
.k-page { max-width: 820px; padding-top: 40px; }

/* ---------- 404 ---------- */
.k-404 { padding-top: 64px; max-width: 1100px; }
.k-404-code { margin: 0 0 14px; font-weight: 600; color: var(--k-red); }
.k-404 h1 { font-weight: 800; font-size: clamp(38px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -0.025em; max-width: 16ch; }
.k-red-text { color: var(--k-red); }
.k-route { margin: 40px 0; overflow-x: auto; color: var(--ink); }
.k-route svg { min-width: 640px; width: 100%; display: block; }
.k-route text { font: 15px var(--sans); fill: var(--muted); }
.k-route-line { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: k-draw 4.5s cubic-bezier(.45,.1,.25,1) .4s forwards; }
@keyframes k-draw { to { stroke-dashoffset: 0; } }
.k-route-stop { opacity: 0; animation: k-fade .5s ease forwards; }
@keyframes k-fade { to { opacity: 1; } }
.k-route-end { animation: k-pulse 1.8s ease-out 4.9s infinite; }
@keyframes k-pulse { from { r: 6; opacity: .9; } to { r: 22; opacity: 0; } }
.k-404-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.k-search--big { flex: 1 1 320px; height: 54px; background: var(--soft); color: var(--ink); }
.k-search--big input { width: 100%; font-size: 16px; }
.k-main .k-search:not(.k-search--bar) { background: var(--soft); max-width: 520px; height: 50px; margin: 10px 0 18px; }
.k-main .k-search input { width: 100%; }

/* ---------- Footer ---------- */
.kf { --sky: clamp(240px, 26vw, 360px); position: relative; overflow: hidden; background: var(--k-red); color: #fff; margin-top: 40px; }
.kf a { color: #ffeaea; text-decoration: none; }
.kf a:hover { color: var(--k-sun); }
.kf-ornament { position: relative; height: 92px; margin-top: 28px; }
.kf-band { position: absolute; left: 0; right: 0; top: 24px; box-shadow: 0 1px 0 rgba(0,0,0,.25), 0 -1px 0 rgba(0,0,0,.25); }
.kf-band svg { display: block; width: 100%; }
.kf-medallion { position: absolute; left: 50%; top: 0; margin-left: -46px; border-radius: 999px; box-shadow: 0 0 0 10px var(--k-red); }
.kf-medallion svg { display: block; }
.kf-body { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: 44px 28px calc(var(--sky) + 8px); display: grid; grid-template-columns: minmax(260px, 1.4fr) repeat(5, minmax(0, 1fr)); gap: 40px 32px; }
.kf-word { font-size: 40px; color: #fff; }
.kf-tag { margin: 10px 0 16px; font-size: 16px; color: #ffe3e3; }
.kf-about { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: #ffe3e3; max-width: 34ch; }
.kf-socials { display: flex; gap: 8px; margin-bottom: 20px; }
.kf-social { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); transition: background .2s ease, transform .3s cubic-bezier(.3,1.4,.5,1); }
.kf-social:hover { background: var(--k-sun); color: var(--k-sun-ink) !important; transform: translateY(-2px); }
.kf-cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--k-sun); color: var(--k-sun-ink) !important; font-weight: 600; }
.kf-col h3 { margin: 4px 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--k-sun); }
.kf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.kf-list a { font-size: 15px; background: linear-gradient(currentColor, currentColor) left 100% / 0 1px no-repeat; transition: background-size .3s ease, color .2s ease; }
.kf-list a:hover { background-size: 100% 1px; }
.kf-sky { position: relative; height: var(--sky); margin-top: calc(-1 * var(--sky)); pointer-events: none; }
.kf-sky svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.k-flag { transform-box: fill-box; transform-origin: 100% 50%; animation: k-wave 3.2s ease-in-out infinite alternate; }
@keyframes k-wave { from { transform: skewY(-2.5deg) scaleX(.97); } to { transform: skewY(2deg) scaleX(1); } }
.kf-bar { position: relative; z-index: 1; background: rgba(94,10,15,0.82); border-top: 1px solid rgba(255,255,255,0.14); }
.kf-bar-in { max-width: var(--wrap); margin: 0 auto; padding: 16px 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; font-size: 13px; color: #ffd6d6; }
.kf-bar-in p { margin: 0; }
.kf-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }

/* The oro: tap the wordmark 16 times, or type "илинден" */
.k-oro { position: absolute; left: 0; right: 0; top: 46px; height: 70px; overflow: hidden; pointer-events: none; z-index: 3; display: none; }
.k-oro.is-dancing { display: block; }
.k-oro svg { position: absolute; left: 0; animation: k-line 14s linear forwards; }
.k-dancer { animation: k-step .5s ease-in-out infinite alternate; }
@keyframes k-line { from { transform: translateX(-640px); } to { transform: translateX(110vw); } }
@keyframes k-step { from { transform: translateY(0); } to { transform: translateY(-5px); } }

/* Back to top */
.k-horse { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 58px; height: 58px; border-radius: 999px; display: grid; place-items: center; color: var(--k-red); background: var(--glass); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); border: 1px solid var(--glass-line); box-shadow: 0 8px 24px rgba(0,0,0,.12); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.k-horse.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.k-horse svg { transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.k-horse:hover svg { transform: translateY(-3px); }

/* Phone tab bar */
.k-tabbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.k-front { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.k-front-lead { grid-column: 1 / -1; }
	.kf-body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.kf-brand { grid-column: 1 / -1; }
	.k-header-in { gap: 24px; }
	.k-menu { gap: 20px; }
}
@media (max-width: 960px) {
	.k-burger { display: block; }
	.k-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 28px 18px; }
	.k-nav.is-open { display: block; }
	.k-menu { flex-direction: column; gap: 0; }
	.k-menu a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
	.k-item-grid { grid-template-columns: 1fr; gap: 40px; }
	.k-item-side { position: static; }
	.k-topbar-today { display: none; }
}
@media (max-width: 760px) {
	body { padding-bottom: 92px; }
	.k-wrap { padding: 0 18px; }
	.k-front { grid-template-columns: 1fr; padding-top: 22px; gap: 26px; }
	.k-date, .k-search--bar { display: none; }
	.k-topbar-in { min-height: 40px; }
	.k-header-in { padding-top: 12px; padding-bottom: 12px; }
	.k-brand .k-word { font-size: 24px; }
	.k-tagline { font-size: 11.5px; margin-top: 4px; }
	.k-ticker-label { padding-left: 18px; }
	.k-section { padding-top: 56px; }
	.k-item-card { border-radius: 24px; }
	.k-item-card:not(.k-item-card--flat) { margin-top: -110px; }
	.k-item-card--flat { margin-top: 20px; }
	.kf-body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
	.kf-word { font-size: 32px; }
	.kf-sky svg { }
	.k-horse { bottom: 104px; right: 16px; width: 50px; height: 50px; }
	.k-tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 70; border-radius: 26px; padding: 6px; }
	.k-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; border-radius: 20px; font-size: 11.5px; font-weight: 500; text-decoration: none; color: var(--ink); }
	.k-tabbar a[aria-current="page"] { background: var(--ink); color: var(--bg); font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.k-route-line { stroke-dashoffset: 0; } .k-route-stop { opacity: 1; }
}
