/*
Theme Name: Arte Child – Jac Naber
Theme URI: https://jacnaber.com
Description: Child theme for Jac Naber's site. Mobile-first, images first, lively colours. Colour variants via ?theme=zon|fris|nacht.
Author: Dennis Bogers (Switchbyte)
Template: arte
Version: 0.3.2
*/

/* ---------------------------------------------------------------------------
   1. Colour variants (html[data-theme] is set by the mu-plugin)
--------------------------------------------------------------------------- */
:root {
  --jn-bg: #FFF7EE;
  --jn-bg-2: #FFE9D6;        /* soft band behind sections */
  --jn-surface: #FFFFFF;     /* cards */
  --jn-ink: #1E1B2E;
  --jn-ink-2: #5B566B;
  --jn-accent: #FF4F12;      /* signal orange */
  --jn-accent-ink: #FFFFFF;
  --jn-pop: #0E9E95;         /* turquoise */
  --jn-pop-2: #FFC53D;       /* yellow */
  --jn-accent-text: #C93C00; /* orange for text on the light background (4.9:1) */
  --jn-pop-text: #0B7F78;    /* turquoise for text (4.6:1) */
  --jn-shadow: 0 10px 30px rgba(30, 27, 46, 0.10);
  --jn-radius: 14px;
  --jn-font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[data-theme="fris"] {
  --jn-bg: #EAF9F6;
  --jn-bg-2: #D4F3EC;
  --jn-surface: #FFFFFF;
  --jn-ink: #102A3A;
  --jn-ink-2: #4A6473;
  --jn-accent: #FF5C1A;
  --jn-pop: #D81B7A;
  --jn-pop-2: #00B3A4;
  --jn-accent-text: #C93C00;
  --jn-pop-text: #A3125C;
  --jn-shadow: 0 10px 30px rgba(16, 42, 58, 0.12);
}
html[data-theme="nacht"] {
  --jn-bg: #13232B;
  --jn-bg-2: #1B3039;
  --jn-surface: #1E323C;
  --jn-ink: #F6F1EA;
  --jn-ink-2: #B9C4C8;
  --jn-accent: #FF6A1F;
  --jn-accent-ink: #13232B;
  --jn-pop: #FFD23F;
  --jn-pop-2: #2ED3C0;
  --jn-accent-text: #FF8A50;
  --jn-pop-text: #FFD23F;
  --jn-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------------------------------------------
   2. Base: undo the parent's grey/serif look
--------------------------------------------------------------------------- */
html { font-size: 100%; }
body.jn {
  background: var(--jn-bg);
  color: var(--jn-ink);
  font-family: var(--jn-font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.jn h1, body.jn h2, body.jn h3, body.jn h4 {
  font-family: var(--jn-font);
  color: var(--jn-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: none;
}
body.jn a { color: var(--jn-accent-text); text-decoration: none; }
body.jn a:hover { color: var(--jn-pop); }
body.jn img { max-width: 100%; height: auto; }
html, body.jn { overflow-x: clip; }   /* 'clip', not 'hidden': hidden on an ancestor disables the sticky header */
/* The parent makes .ct-site a wrapping flex ROW with min-height 100vh; on short pages the leftover space is
   shared between the rows, which stretched the header (123px on About at 1440x900). Column layout instead:
   header and footer keep their height, the content area grows to push the footer down. */
body.jn .ct-site { display: flex; flex-direction: column; flex-wrap: nowrap; min-height: 100vh; min-height: 100dvh; }
body.jn .ct-site > .ct-header, body.jn .ct-site > .ct-footer { flex: 0 0 auto; width: 100%; }
body.jn .ct-site > .ct-content { flex: 1 0 auto; width: 100%; }
body.jn .ct-content { padding: 0; }
body.jn .ct-content > .container-fluid { padding: 0 16px; max-width: 1200px; margin: 0 auto; }
body.jn .ct-page__entry-content { padding: 0; }
/* The parent's floating-menu and hero spacing */
body.jn.ct-menu--floating .ct-content, body.jn .ct-header__hero { margin: 0; padding: 0; min-height: 0; }
body.jn #ct-header__hero { display: none; }

/* ---------------------------------------------------------------------------
   3. Header (mobile first)
--------------------------------------------------------------------------- */
body.jn .ct-header.jn-header,
body.jn.ct-menu--floating .ct-header.jn-header, body.jn.ct-menu--fixed .ct-header.jn-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--jn-bg);
  border-bottom: 3px solid var(--jn-accent);
  height: auto; min-height: 0; padding: 0;
}
/* Logged in: stay below the WordPress admin bar (fixed above 600px; it scrolls away on phones). */
@media (min-width: 601px) { body.jn.admin-bar .ct-header.jn-header { top: 46px; } }
@media (min-width: 783px) { body.jn.admin-bar .ct-header.jn-header { top: 32px; } }
.jn-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; max-width: 1200px; margin: 0 auto; position: relative;
}
.jn-brand { display: flex; flex-direction: column; line-height: 1.05; color: var(--jn-ink); }
.jn-brand__name { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.jn-brand__tagline { font-size: 0.66rem; color: var(--jn-ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; white-space: nowrap; }
@media (min-width: 900px) { .jn-brand__tagline { font-size: 0.72rem; letter-spacing: 0.08em; } }
.jn-brand:hover { color: var(--jn-accent); }

.jn-nav-burger {
  width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: 0 8px; margin: 0; cursor: pointer; border-radius: 10px; background: var(--jn-accent);
}
.jn-nav-burger span { display: block; height: 3px; border-radius: 3px; background: var(--jn-accent-ink); transition: transform .2s, opacity .2s; }
.jn-nav-toggle:checked ~ .jn-nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.jn-nav-toggle:checked ~ .jn-nav-burger span:nth-child(2) { opacity: 0; }
.jn-nav-toggle:checked ~ .jn-nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.jn-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--jn-bg); border-bottom: 3px solid var(--jn-accent); box-shadow: var(--jn-shadow);
  padding: 8px 16px 16px;
}
.jn-nav-toggle:checked ~ .jn-nav { display: block; }
.jn-nav__list { list-style: none; margin: 0; padding: 0; }
.jn-nav__list li { margin: 0; }
.jn-nav__list a {
  display: block; padding: 14px 4px; font-size: 1.25rem; font-weight: 700; color: var(--jn-ink);
  border-bottom: 1px solid color-mix(in srgb, var(--jn-ink) 12%, transparent);
}
.jn-nav__list .current-menu-item > a, .jn-nav__list .current_page_item > a, .jn-nav__list .current-menu-ancestor > a { color: var(--jn-accent); }
.jn-instagram { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.jn-nav__instagram { padding: 14px 4px; font-size: 1.1rem; color: var(--jn-ink); }
.jn-nav__instagram:hover { color: var(--jn-accent); }

@media (min-width: 900px) {
  .jn-header__inner { padding: 14px 24px; }
  .jn-nav-burger { display: none; }
  .jn-nav { display: flex !important; position: static; background: none; border: 0; box-shadow: none; padding: 0; align-items: center; gap: 8px; }
  .jn-nav__list { display: flex; gap: 4px; }
  .jn-nav__list a { padding: 8px 12px; font-size: 1.05rem; border: 0; border-radius: 999px; }
  .jn-nav__list a:hover { background: var(--jn-bg-2); color: var(--jn-accent); }
  .jn-nav__list .current-menu-item > a, .jn-nav__list .current_page_item > a { background: var(--jn-accent); color: var(--jn-accent-ink); }
  .jn-nav__instagram { padding: 8px 10px; margin-left: 4px; }
  .jn-nav__instagram span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------------------------------------------------------------------------
   4. Buttons, chips, section headings
--------------------------------------------------------------------------- */
.jn-btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1.2rem; /* ≥ 18.7px bold: large text, 3:1 suffices */
  background: var(--jn-accent); color: var(--jn-accent-ink) !important; box-shadow: 0 6px 18px color-mix(in srgb, var(--jn-accent) 40%, transparent);
  transition: transform .15s, box-shadow .15s;
}
.jn-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--jn-accent) 50%, transparent); }
.jn-link { font-weight: 700; color: var(--jn-accent-text); }
.jn-center { text-align: center; margin: 24px 0 0; }
.jn-lead { font-size: 1.15rem; line-height: 1.5; color: var(--jn-ink-2); max-width: 60ch; }

.jn-section { padding: 36px 0; }
.jn-section--archive { padding-top: 24px; }
.jn-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.jn-section__title { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0 0 12px; }
.jn-section__title::after { content: ""; display: block; width: 56px; height: 6px; border-radius: 6px; background: var(--jn-pop); margin-top: 10px; }
.jn-page-title { font-size: clamp(2rem, 7vw, 3.2rem); margin: 24px 0 16px; }
.jn-page-title::after { content: ""; display: block; width: 64px; height: 7px; border-radius: 7px; background: var(--jn-accent); margin-top: 12px; }

.jn-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.jn-chip {
  display: inline-block; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  background: var(--jn-surface); color: var(--jn-ink) !important; border: 2px solid color-mix(in srgb, var(--jn-ink) 15%, transparent);
}
.jn-chip:hover { border-color: var(--jn-accent); }
.jn-chip.is-active { background: var(--jn-accent); border-color: var(--jn-accent); color: var(--jn-accent-ink) !important; }
.jn-chip--small { padding: 6px 12px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------------------------------------------------------------------------
   5. Home hero
--------------------------------------------------------------------------- */
.jn-hero { display: grid; gap: 20px; padding: 20px 0 8px; }
.jn-hero__media { display: block; border-radius: var(--jn-radius); overflow: hidden; box-shadow: var(--jn-shadow); background: var(--jn-surface); }
.jn-hero__img { display: block; width: 100%; height: auto; }
.jn-hero__text { display: grid; gap: 8px; justify-items: start; }
.jn-hero__kicker { margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--jn-pop-text); }
.jn-hero__title { margin: 0; font-size: clamp(1.9rem, 8vw, 3.6rem); }
.jn-hero__title a { color: var(--jn-ink); }
.jn-hero__title a:hover { color: var(--jn-accent); }
.jn-hero__meta { margin: 0 0 8px; color: var(--jn-ink-2); font-weight: 600; }
@media (min-width: 900px) {
  .jn-hero { grid-template-columns: 7fr 5fr; align-items: center; gap: 48px; padding: 40px 0 16px; }
  .jn-hero__text { gap: 12px; }
}

/* ---------------------------------------------------------------------------
   6. Work grids and cards
--------------------------------------------------------------------------- */
.jn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px)  { .jn-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.jn-masonry { columns: 1; column-gap: 16px; }          /* phones: one painting at a time */
@media (min-width: 560px)  { .jn-masonry { columns: 2; } }
@media (min-width: 820px)  { .jn-masonry { columns: 3; column-gap: 20px; } }
@media (min-width: 1200px) { .jn-masonry { columns: 4; } }
.jn-masonry .jn-card { break-inside: avoid; margin-bottom: 16px; }
@media (min-width: 820px) { .jn-masonry .jn-card { margin-bottom: 20px; } }
.jn-masonry--home { columns: 1; }
@media (min-width: 560px) { .jn-masonry--home { columns: 2; } }
@media (min-width: 820px) { .jn-masonry--home { columns: 3; } }

.jn-card {
  display: block; background: var(--jn-surface); border-radius: var(--jn-radius); overflow: hidden;
  box-shadow: var(--jn-shadow); color: var(--jn-ink); transition: transform .15s;
}
.jn-card:hover { transform: translateY(-3px); color: var(--jn-ink); }
.jn-card__media { display: block; background: var(--jn-bg-2); }
.jn-card__img { display: block; width: 100%; height: auto; }
.jn-card__body { display: block; padding: 10px 12px 12px; }
.jn-card__title { display: block; font-weight: 700; line-height: 1.2; font-size: 1.05rem; }
.jn-card__meta { display: block; margin-top: 3px; font-size: 0.85rem; color: var(--jn-ink-2); }

/* ---------------------------------------------------------------------------
   7. Single work
--------------------------------------------------------------------------- */
.jn-work { display: grid; gap: 20px; padding: 16px 0 40px; }
.jn-work__media { display: block; border-radius: var(--jn-radius); overflow: hidden; box-shadow: var(--jn-shadow); background: var(--jn-surface); }
.jn-work__img { display: block; width: 100%; height: auto; }
.jn-work__title { font-size: clamp(1.7rem, 7vw, 3rem); margin: 10px 0 6px; }
.jn-work__meta { font-weight: 600; color: var(--jn-ink-2); margin: 0 0 12px; }
.jn-work__desc { max-width: 60ch; }
.jn-work__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; padding-top: 16px; border-top: 2px solid var(--jn-bg-2); font-weight: 700; }
@media (min-width: 900px) {
  .jn-work { grid-template-columns: 7fr 5fr; align-items: start; gap: 48px; padding-top: 32px; }
  .jn-work__body { position: sticky; top: 90px; }
}

/* Full-screen view of a work: a native <dialog>, no plugin. Pinch-zoom works because the viewport allows it. */
.jn-work__media { cursor: zoom-in; }
.jn-zoom { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #0B0B10; }
.jn-zoom:not([open]) { display: none; }   /* the parent's old normalize.css shows closed dialogs */
.jn-zoom::backdrop { background: #0B0B10; }
.jn-zoom__scroll { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; -webkit-overflow-scrolling: touch; }
.jn-zoom__img { max-width: 100%; max-height: 100dvh; width: auto; height: auto; display: block; }
.jn-zoom__close { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #0B0B10; font: 400 28px/1 var(--jn-font); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.jn-zoom__close span { display: block; transform: translateY(-2px); }
.jn-zoom__caption { position: fixed; left: 12px; right: 68px; bottom: 12px; color: #fff; font-weight: 600; font-size: 0.9rem; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.jn-work__hint { font-size: 0.85rem; color: var(--jn-ink-2); margin: 6px 0 0; }

/* ---------------------------------------------------------------------------
   8. Pages (About, Exhibitions, Contact)
--------------------------------------------------------------------------- */
.jn-page { padding-bottom: 40px; }
.jn-page__media { border-radius: var(--jn-radius); overflow: hidden; box-shadow: var(--jn-shadow); margin-bottom: 20px; max-width: 720px; }
.jn-prose { max-width: 64ch; font-size: 1.1rem; }
.jn-prose p { margin: 0 0 1em; }
.jn-prose h2 { font-size: 1.5rem; margin: 1.6em 0 0.5em; }
.jn-prose h3 { font-size: 1.1rem; margin: 1.4em 0 0.4em; color: var(--jn-accent-text); }
.jn-prose ul { padding-left: 1.2em; }
.jn-prose li { margin: 0.25em 0; }
.jn-prose blockquote { border-left: 6px solid var(--jn-pop); padding-left: 16px; margin: 1em 0; font-weight: 600; font-size: 1.2rem; }
/* Exhibitions list: year headings as chips */
.jn-prose .jn-year { display: inline-block; background: var(--jn-accent-text); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 1rem; margin: 1.4em 0 0.4em; }
.jn-prose .jn-year:first-child { margin-top: 0; }
.jn-prose .jn-exhibitions { list-style: none; padding: 0; margin: 0 0 8px; }
.jn-prose .jn-exhibitions li { padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--jn-ink) 10%, transparent); }

/* Contact Form 7 */
body.jn .wpcf7 { max-width: 560px; }
body.jn .wpcf7 label { display: block; font-weight: 700; font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--jn-ink); margin-bottom: 14px; }
body.jn .wpcf7 input[type="text"], body.jn .wpcf7 input[type="email"], body.jn .wpcf7 textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 1.05rem;
  border: 2px solid color-mix(in srgb, var(--jn-ink) 45%, transparent); border-radius: 12px; background: var(--jn-surface); color: var(--jn-ink);
}
body.jn .wpcf7 input.wpcf7-form-control, body.jn .wpcf7 textarea.wpcf7-form-control { text-transform: none; letter-spacing: 0; font-weight: 400; line-height: 1.4; color: var(--jn-ink) !important; }
body.jn .wpcf7 label { color: var(--jn-ink); opacity: 1; }   /* the parent fades labels to 50%, taking the inputs with them */
body.jn .wpcf7 input::placeholder, body.jn .wpcf7 textarea::placeholder { text-transform: none; color: var(--jn-ink-2) !important; opacity: 1; }
body.jn .wpcf7 input::-webkit-input-placeholder, body.jn .wpcf7 textarea::-webkit-input-placeholder { color: var(--jn-ink-2) !important; opacity: 1; }
body.jn .wpcf7 input:focus, body.jn .wpcf7 textarea:focus { outline: none; border-color: var(--jn-accent); }
body.jn .wpcf7 input[type="submit"].wpcf7-submit {
  padding: 14px 28px; border: 0; border-radius: 999px; font: inherit; font-weight: 700 !important; font-size: 1.2rem !important; text-transform: none; letter-spacing: 0;
  background: var(--jn-accent); color: var(--jn-accent-ink) !important; cursor: pointer; box-shadow: 0 6px 18px color-mix(in srgb, var(--jn-accent) 40%, transparent);
}
body.jn .wpcf7-spinner { display: none; }
.grecaptcha-badge { visibility: hidden; }   /* attribution text is shown under the form instead (mu-plugin) */
.jn-recaptcha-note { font-size: 0.8rem; color: var(--jn-ink-2); margin: 14px 0 0; max-width: 60ch; }
.jn-recaptcha-note a { color: var(--jn-ink-2); text-decoration: underline; }
body.jn .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--jn-pop); }

/* ---------------------------------------------------------------------------
   9. Footer
--------------------------------------------------------------------------- */
body.jn .ct-footer.jn-footer { background: #1E1B2E; color: #F6F1EA; padding: 0; margin: 24px 0 0; }
html[data-theme="fris"] body.jn .ct-footer.jn-footer { background: #102A3A; }
html[data-theme="nacht"] body.jn .ct-footer.jn-footer { background: #0C171D; }
.jn-footer__inner { max-width: 1200px; margin: 0 auto; padding: 32px 16px 80px; display: grid; gap: 20px; }
.jn-footer__brand { display: grid; gap: 10px; justify-items: start; }
.jn-footer__name { font-weight: 800; font-size: 1.4rem; }
.jn-footer__instagram { color: var(--jn-pop-2) !important; }
.jn-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.jn-footer__list a { color: #F6F1EA !important; font-weight: 600; }
.jn-footer__list a:hover { color: var(--jn-accent) !important; }
.jn-footer__copy { margin: 0; font-size: 0.85rem; opacity: 0.7; }
.jn-footer__copy .jn-footer__login { color: inherit !important; text-decoration: underline; text-underline-offset: 3px; }
.jn-footer__copy .jn-footer__login:hover { color: var(--jn-pop-2) !important; }
@media (min-width: 900px) {
  .jn-footer__inner { grid-template-columns: 1fr auto; align-items: center; padding: 40px 24px 80px; }
  .jn-footer__copy { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------------------
   10. Draft-phase colour switcher
--------------------------------------------------------------------------- */
.jn-switcher {
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px;
  background: #fff; color: #1E1B2E; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 0.85rem; font-weight: 700; white-space: nowrap;
}
.jn-switcher__item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; color: #1E1B2E !important; }
.jn-switcher__item::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--sw); }
.jn-switcher__item.is-active { background: #1E1B2E; color: #fff !important; }

/* ---------------------------------------------------------------------------
   11. Playful touches (Nov 2026): brush strokes, paper grain, category colours,
       scroll reveal, page transitions. All CSS, all respect reduced motion.
--------------------------------------------------------------------------- */
:root {
  /* A hand-painted stroke, used as a mask on accent bars. */
  --jn-brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M1 8 Q 14 3 30 5 T 62 4 T 96 6 T 130 4 T 164 6 T 199 5 L 198 12 Q 180 17 160 14 T 120 16 T 84 14 T 50 16 T 18 15 Q 6 15 0 13 Z' fill='black'/%3E%3C/svg%3E");
  --jn-cat: var(--jn-accent);
}
/* Category colours: monumental = turquoise, abstract expressionist = orange. */
.jn-cat--monumental { --jn-cat: var(--jn-pop); --jn-cat-text: var(--jn-pop-text); }
.jn-cat--abstract-expressionist { --jn-cat: var(--jn-accent); --jn-cat-text: var(--jn-accent-text); }
:root { --jn-cat-text: var(--jn-accent-text); }

/* Brush-stroke accents */
body.jn .ct-header.jn-header { border-bottom: 0; }
body.jn .ct-header.jn-header::after {
  content: ""; display: block; position: absolute; left: 0; right: 0; bottom: -4px; height: 7px; opacity: 1; border: 0;
  background: var(--jn-accent); -webkit-mask: var(--jn-brush) center / 100% 100% no-repeat; mask: var(--jn-brush) center / 100% 100% no-repeat;
}
.jn-section__title::after, .jn-page-title::after {
  border-radius: 0; background: var(--jn-cat);
  -webkit-mask: var(--jn-brush) center / 100% 100% no-repeat; mask: var(--jn-brush) center / 100% 100% no-repeat;
}
.jn-section__title::after { width: 72px; height: 8px; }
.jn-page-title::after { width: 96px; height: 10px; }
.jn-card__title { color: var(--jn-cat-text); }
.jn-hero__kicker { color: var(--jn-pop-text); }

/* Chips stay plain pills; the category colour is the only change. */
.jn-chip.is-active { background: var(--jn-cat-text); border-color: var(--jn-cat-text); }
.jn-chip--small { background: var(--jn-cat-text); border-color: var(--jn-cat-text); color: #fff !important; }

/* Paper grain: a faint noise layer on the page and header backgrounds, never over the paintings. Off in the dark variant. */
:root { --jn-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.25  0 0 0 0 0.18  0 0 0 0 0.12  0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0.09'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
body.jn { background-image: var(--jn-grain); background-size: 220px 220px; }
body.jn .ct-header.jn-header { background-image: var(--jn-grain); background-size: 220px 220px; }
html[data-theme="nacht"] body.jn, html[data-theme="nacht"] body.jn .ct-header.jn-header { background-image: none; }

/* Cards: a touch of tilt on hover (pointer devices only) */
@media (hover: hover) {
  .jn-card:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 16px 36px color-mix(in srgb, var(--jn-cat) 28%, transparent); }
  .jn-masonry .jn-card:nth-child(even):hover { transform: translateY(-4px) rotate(0.6deg); }
}

/* Scroll reveal, driven by the browser (no JS). Only where supported and when motion is welcome. */
@keyframes jn-reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .jn-masonry .jn-card { animation: jn-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}

/* Page transitions: the painting glides from the grid into its own page (Chrome, Safari; others get a normal load). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
  ::view-transition-group(*) { animation-duration: 0.32s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
  ::view-transition-old(jn-header), ::view-transition-new(jn-header) { animation: none; }
}

/* Footer: her own words */
.jn-footer__quote { grid-column: 1 / -1; margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; color: var(--jn-pop-2); line-height: 1.1; }

/* ---------------------------------------------------------------------------
   12. Series ("doors"), series pages, arrows on a work (14 Nov 2026)
--------------------------------------------------------------------------- */
.jn-section__head--title { align-items: center; margin-bottom: 0; }
.jn-section__head--title .jn-page-title { margin-bottom: 20px; }
.jn-doors__heading { margin-top: 8px; }
.jn-doors + .jn-doors__heading { margin-top: 36px; }
.jn-doors { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px)  { .jn-doors { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 900px)  { .jn-doors { grid-template-columns: repeat(3, 1fr); } }
.jn-door {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--jn-radius); overflow: hidden;
  background: var(--jn-bg-2); box-shadow: var(--jn-shadow); color: #fff; transition: transform .15s, box-shadow .15s;
}
.jn-door__media { position: absolute; inset: 0; }
body.jn .jn-door__img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: transform .4s; }
.jn-door__body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 14px;
  background: linear-gradient(to top, rgba(14, 10, 20, .82), rgba(14, 10, 20, 0));
}
.jn-door__title { display: block; font-weight: 800; font-size: 1.35rem; line-height: 1.1; letter-spacing: -0.01em; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.jn-door__meta { display: block; margin-top: 4px; font-size: 0.85rem; font-weight: 600; color: var(--jn-pop-2); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.jn-door:hover { color: #fff; transform: translateY(-3px); }
.jn-door:hover .jn-door__img { transform: scale(1.04); }
@media (hover: hover) { .jn-door:hover { box-shadow: 0 16px 36px color-mix(in srgb, var(--jn-accent) 28%, transparent); } }
@supports (animation-timeline: view()) { @media (prefers-reduced-motion: no-preference) {
  .jn-doors .jn-door { animation: jn-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
} }

.jn-crumb { margin: 20px 0 0; font-weight: 700; font-size: 0.95rem; }
.jn-crumb a { color: var(--jn-ink-2); }
.jn-work__nav a, .jn-series__nav a, .jn-section__head .jn-link { color: var(--jn-accent-text); }
.jn-crumb a:hover { color: var(--jn-accent); }
.jn-crumb + .jn-page-title { margin-top: 8px; }
.jn-series__meta { margin: -8px 0 16px; font-weight: 600; color: var(--jn-ink-2); }
.jn-series__nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 16px; border-top: 2px solid var(--jn-bg-2); font-weight: 700; }

/* Arrows over the painting */
.jn-work__stage { position: relative; }
.jn-work__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 30px; line-height: 1; font-weight: 400; padding-bottom: 4px;
  background: rgba(255, 255, 255, .9); color: var(--jn-ink) !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  opacity: .85; transition: opacity .15s, transform .15s;
}
.jn-work__arrow--prev { left: 10px; }
.jn-work__arrow--next { right: 10px; }
.jn-work__arrow:hover { opacity: 1; transform: translateY(-50%) scale(1.06); }
.jn-work .jn-crumb { margin: 0 0 10px; }
.jn-work__nav a { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
