/*
Theme Name: Jana Nikolovska
Theme URI: https://jananikolovska.com
Author: Jana Nikolovska
Description: Minimal black-and-white portfolio theme with a left menu, bilingual EN/MK (Weglot), paintings shop (WooCommerce), print configurator, exhibitions, video works, interviews and art programs. Pair with the "Jana Nikolovska — Core" plugin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: jana-nikolovska
*/

:root {
	--ink: #111111;
	--muted: #6b6b6b;
	--line: #e3e3e3;
	--bg: #ffffff;
	--sidebar: 260px;
	--font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 300; font-size: 16px; line-height: 1.6; }
img, video { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { opacity: .6; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 12px; }

/* ---------- Layout ---------- */
.jn-layout { display: flex; min-height: 100vh; }
.jn-sidebar { flex: 0 0 var(--sidebar); width: var(--sidebar); padding: 44px 32px 44px 48px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 56px; }
.admin-bar .jn-sidebar { top: 32px; height: calc(100vh - 32px); }
.jn-main { flex: 1 1 auto; min-width: 0; padding: 44px 48px 96px 32px; max-width: 1212px; }
.jn-brand { font-size: 14px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; line-height: 1.6; }
.jn-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.4; }
.jn-nav .jn-nav-label { margin-top: 24px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.jn-nav .jn-gap { margin-top: 24px; }
.jn-nav a { padding-bottom: 2px; border-bottom: 1px solid transparent; }
.jn-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.jn-side-foot { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin-top: auto; }
.jn-side-foot a { color: var(--muted); }
.jn-cart-link { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* Weglot switcher: keep it quiet */
.jn-lang .country-selector, .jn-lang .wg-drop.country-selector { background: transparent !important; border: 0 !important; }
.jn-lang ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.jn-lang a { color: var(--muted) !important; font-size: 13px !important; text-transform: uppercase; }
.jn-lang .is-current a, .jn-lang .wgcurrent a, .jn-lang .wg-li.wgcurrent a { color: var(--ink) !important; font-weight: 500; }

/* Mobile top bar */
.jn-topbar { display: none; }
@media (max-width: 899px) {
	.jn-layout { display: block; }
	.jn-sidebar { display: none; }
	.jn-topbar { display: flex; justify-content: space-between; align-items: center; height: 64px; padding: 0 20px; position: sticky; top: 0; z-index: 20; background: var(--bg); }
	.admin-bar .jn-topbar { top: 46px; }
	.jn-topbar .jn-brand { font-size: 13px; }
	.jn-menu-btn { width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
	.jn-main { padding: 12px 20px 72px; }
	body.jn-menu-open { overflow: hidden; }
	body.jn-menu-open .jn-sidebar { display: flex; position: fixed; inset: 0; z-index: 30; width: 100%; height: 100%; padding: 20px; background: var(--bg); gap: 32px; }
	body.jn-menu-open .jn-sidebar .jn-nav ul { font-size: 26px; gap: 10px; }
	.jn-sidebar .jn-close { display: flex; }
}
.jn-close { display: none; position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Type ---------- */
.jn-h1 { margin: 0 0 48px; font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.jn-kicker { margin: 0 0 16px; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.jn-rule { border-top: 1px solid var(--ink); padding-top: 20px; }
.jn-rule-light { border-top: 1px solid var(--line); padding-top: 20px; }
.jn-lead { margin: 0 0 24px; font-size: 24px; line-height: 1.45; }
.jn-body p { margin: 0 0 20px; font-size: 16px; line-height: 1.8; }
.jn-muted { color: var(--muted); }
.jn-title-italic { font-style: italic; font-weight: 400; }
.jn-link-under { border-bottom: 1px solid var(--ink); padding-bottom: 2px; font-size: 13px; }
.jn-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 32px; border: 0; background: var(--ink); color: #fff; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.jn-btn:hover { opacity: .8; color: #fff; }
.jn-btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.jn-btn-outline:hover { color: var(--ink); }
.jn-section { margin-top: 120px; }
.jn-two { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.jn-two > .jn-side { flex: 1 1 260px; max-width: 340px; }
.jn-two > .jn-wide { flex: 2 1 420px; min-width: 0; max-width: 660px; }

/* ---------- Home ---------- */
.jn-home { display: flex; flex-direction: column; justify-content: space-between; gap: 96px; min-height: calc(100vh - 140px); }
.jn-quote { margin: 12vh 0 0; max-width: 980px; }
.jn-quote blockquote { margin: 0; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.18; font-weight: 300; letter-spacing: -.015em; }
.jn-quote figcaption { margin-top: 32px; font-size: 14px; color: var(--muted); }
.jn-home-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.jn-home-foot p { margin: 0; max-width: 420px; }

/* ---------- Grids ---------- */
.jn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; row-gap: 64px; }
.jn-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; row-gap: 64px; }
@media (max-width: 1100px) { .jn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .jn-grid, .jn-grid-2 { grid-template-columns: minmax(0, 1fr); row-gap: 48px; } }
.jn-frame { aspect-ratio: 1 / 1; display: flex; align-items: flex-end; justify-content: center; }
.jn-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.jn-caption { padding-top: 14px; font-size: 13px; line-height: 1.6; }
.jn-card { display: block; padding: 0; border: 0; background: transparent; text-align: left; color: var(--ink); cursor: pointer; width: 100%; font: inherit; }
.jn-card:hover { opacity: .85; }
.jn-cover { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #161616; }

/* ---------- Lightbox ---------- */
.jn-lightbox { position: fixed; inset: 0; z-index: 50; background: #fff; display: none; flex-direction: column; padding: 24px 32px 32px; }
.jn-lightbox.is-open { display: flex; }
.jn-lb-top { display: flex; justify-content: flex-end; }
.jn-lb-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.jn-lb-stage img { flex: 1 1 auto; min-width: 0; max-height: 100%; height: 100%; object-fit: contain; }
.jn-icon-btn { flex: 0 0 44px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.jn-lb-info { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 24px 60px 0; font-size: 14px; }
.jn-lb-info .jn-lb-title { font-size: 18px; font-style: italic; font-weight: 400; }
@media (max-width: 640px) { .jn-lightbox { padding: 12px; } .jn-lb-info { padding: 16px 4px 0; } }

/* ---------- Exhibitions ---------- */
.jn-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.jn-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.jn-ex-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.jn-ex-head h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); font-weight: 300; font-style: italic; letter-spacing: -.01em; }
.jn-hero-media { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.jn-facts { margin: 0; font-size: 14px; line-height: 1.6; display: flex; flex-direction: column; gap: 20px; }
.jn-facts dt { color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; }
.jn-facts dd { margin: 0; }
.jn-gallery { columns: 2; column-gap: 24px; }
.jn-gallery img { display: block; width: 100%; height: auto; margin: 0 0 24px; break-inside: avoid; }
@media (max-width: 640px) { .jn-gallery { columns: 1; } }
.jn-pager { display: flex; justify-content: space-between; gap: 24px; margin-top: 96px; border-top: 1px solid var(--line); padding-top: 24px; font-size: 14px; }

/* ---------- Video works ---------- */
.jn-video-item { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 32px; }
.jn-video-item + .jn-video-item { margin-top: 96px; }
.jn-video-item .jn-v-media { flex: 3 1 460px; min-width: 0; }
.jn-video-item .jn-v-text { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.jn-video-item video, .jn-video-item .jn-v-still { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.jn-video-item h2 { margin: 0; font-size: 26px; font-weight: 300; font-style: italic; }
.jn-video-item p { margin: 0; font-size: 15px; line-height: 1.75; }
.jn-more { display: none; flex-direction: column; gap: 14px; }
.jn-more.is-open { display: flex; }
.jn-text-btn { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 13px; border-bottom: 1px solid var(--ink); cursor: pointer; }

/* ---------- Prints ---------- */
.jn-pdialog { position: fixed; inset: 0; z-index: 50; background: #fff; overflow-y: auto; display: none; }
.jn-pdialog.is-open { display: block; }
.jn-pd-inner { display: flex; flex-wrap: wrap; gap: 56px; padding: 8px 48px 48px; align-items: flex-start; }
.jn-pd-img { flex: 1 1 480px; min-width: 0; height: 72vh; display: flex; align-items: center; justify-content: center; }
.jn-pd-img img { max-width: 100%; max-height: 100%; }
.jn-pd-side { flex: 0 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.jn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jn-chip { min-height: 44px; padding: 0 14px; border: 1px solid #cfcfcf; background: #fff; color: var(--ink); font-size: 13px; cursor: pointer; }
.jn-chip[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.jn-price-row { border-top: 1px solid var(--ink); padding-top: 20px; display: flex; justify-content: space-between; align-items: baseline; }
.jn-price-row strong { font-size: 28px; font-weight: 400; }
.jn-pcart { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: none; }
.jn-pcart.has-items { display: block; }
.jn-pcart-panel { position: fixed; right: 24px; bottom: 84px; z-index: 41; width: min(380px, calc(100vw - 48px)); background: #fff; border: 1px solid var(--ink); padding: 20px; display: none; }
.jn-pcart-panel.is-open { display: block; }
.jn-pcart-panel ul { list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; }
.jn-pcart-panel li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .jn-pd-inner { padding: 8px 16px 32px; gap: 24px; } .jn-pd-img { height: 50vh; } }

/* ---------- Forms ---------- */
.jn-form { display: flex; flex-direction: column; gap: 28px; }
.jn-form .jn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 640px) { .jn-form .jn-row { grid-template-columns: minmax(0, 1fr); } }
.jn-form label, .jn-form legend { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.jn-form input[type=text], .jn-form input[type=email], .jn-form input[type=tel], .jn-form select { width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 0; font-size: 16px; background: transparent; color: var(--ink); }
.jn-form textarea { width: 100%; border: 1px solid var(--ink); padding: 14px; font-size: 16px; line-height: 1.6; background: transparent; color: var(--ink); resize: vertical; }
.jn-form fieldset { border: 0; margin: 0; padding: 0; }
.jn-radios { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.jn-radios label { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.jn-hp { position: absolute; left: -9999px; }
.jn-notice { border-top: 1px solid var(--ink); padding-top: 20px; font-size: 18px; line-height: 1.5; }

/* ---------- Art programs ---------- */
.jn-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .jn-modules { grid-template-columns: minmax(0, 1fr); } }
.jn-module { border: 1px solid var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.jn-module.is-featured { background: var(--ink); color: #fff; }
.jn-module h3 { margin: 0; font-size: 22px; font-weight: 300; font-style: italic; }
.jn-module p { margin: 0; font-size: 14px; line-height: 1.7; }
.jn-details { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; font-size: 15px; line-height: 1.6; }
@media (max-width: 900px) { .jn-details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jn-details dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.jn-details dd { margin: 0; }
.jn-faq-item { border-bottom: 1px solid var(--line); }
.jn-faq-item button { width: 100%; min-height: 56px; padding: 16px 0; border: 0; background: transparent; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; font-size: 16px; cursor: pointer; }
.jn-faq-item p { margin: 0 0 20px; font-size: 15px; line-height: 1.7; color: #4a4a4a; display: none; }
.jn-faq-item.is-open p { display: block; }

/* ---------- CV ---------- */
.jn-cv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; margin-top: 40px; font-size: 14px; line-height: 1.55; }
@media (max-width: 760px) { .jn-cv { grid-template-columns: minmax(0, 1fr); } }
.jn-cv ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.jn-cv li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
.jn-cv li span:first-child { color: var(--muted); }

/* ---------- WooCommerce (cart, checkout, account) ---------- */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce #respond input#submit { background: var(--ink) !important; color: #fff !important; border-radius: 0 !important; font-weight: 400 !important; letter-spacing: .12em; text-transform: uppercase; font-size: 12px !important; padding: 14px 24px !important; }
.woocommerce table.shop_table { border-radius: 0; border-color: var(--line); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--ink) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--ink) !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { border-radius: 0; border: 1px solid #cfcfcf; padding: 10px; }
.woocommerce span.onsale { display: none; }
.woocommerce div.product .product_title { font-weight: 300; font-style: italic; }

/* Exhibition text: lead, body, pull lines */
.jn-ex-text { max-width: 36em; }
.jn-ex-text p { margin: 0 0 18px; font-size: 15px; line-height: 1.75; color: #2b2b2b; }
.jn-ex-text .jn-ex-lead { font-size: 19px; line-height: 1.55; color: var(--ink); margin-bottom: 32px; }
.jn-ex-text .jn-ex-pull { margin: 30px 0; padding-left: 20px; border-left: 1px solid var(--ink); font-size: 17px; line-height: 1.55; font-style: italic; color: var(--ink); }
.jn-ex-text .jn-ex-credit { margin-top: 28px; font-size: 13px; font-style: italic; color: var(--muted); }
@media (min-width: 900px) { .jn-facts.jn-side { position: sticky; top: 40px; align-self: start; } }
@media (max-width: 899px) { .jn-ex-text .jn-ex-lead { font-size: 18px; } }

/* Interviews */
.jn-interviews { border-top: 1px solid var(--ink); }
.jn-interview { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: start; padding: 40px 0; border-bottom: 1px solid var(--line); }
.jn-interview-video, .jn-interview-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.jn-interview-info .jn-kicker { display: block; margin-bottom: 12px; }
.jn-interview-info h2 { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 300; }
.jn-interview-cta { display: inline-block; margin-top: 16px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 899px) { .jn-interview { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 32px 0; } }

/* Home: installation video */
.jn-home { display: block; min-height: 0; }
.jn-home-hero { position: relative; margin: -44px -48px 0 -32px; background: #000; }
.jn-home-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: calc(100vh - 130px); object-fit: cover; }
.jn-sound { position: absolute; right: 20px; bottom: 20px; min-height: 36px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.25); color: #fff; font: inherit; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.jn-sound:hover, .jn-sound:focus-visible { background: rgba(0,0,0,.55); }
.jn-home-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 40px; padding-top: 28px; }
.jn-home-foot p { margin: 0; max-width: 420px; font-size: 15px; }
.jn-home-latest { text-align: right; font-size: 15px; line-height: 1.6; }
.jn-home-latest .jn-kicker { display: block; margin-bottom: 4px; }
@media (max-width: 899px) {
	.jn-home-hero { margin: -12px -20px 0; }
	.jn-home-video { aspect-ratio: 4 / 5; max-height: 72vh; }
	.jn-home-latest { text-align: left; }
}

/* Home: now line */
.jn-home-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0; padding: 22px 0 0; font-size: 15px; }
.jn-home-now .jn-kicker { margin: 0; }
/* Texts list (Interviews page) */
.jn-texts { margin-top: 88px; }
.jn-texts-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.jn-texts-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.jn-texts-list a { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 640px) { .jn-texts-list li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Prints: certificate preview */
.jn-coa { display: flex; align-items: center; gap: 20px; max-width: 640px; margin: -32px 0 56px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.jn-coa img { flex: 0 0 150px; width: 150px; height: auto; border: 1px solid var(--line); }
.jn-coa-link { display: block; margin-top: 6px; color: var(--ink); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.jn-coa:hover .jn-coa-link { text-decoration: underline; }

/* Anima: CV download */
.jn-cv-dl { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.jn-cv-dl:hover { border-bottom-color: transparent; }

/* Artwork protection (deterrent) */
.jn-main img, .jn-lightbox img, .jn-pdialog img, .jn-main video { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.jn-copy { font-size: 12px; }
