/* Jharna-Kala gallery - the public site.
   Colours and type follow the Jharna-Kala brochure (printapp
   assets/catalogue/brochure-*.pdf): warm paper, navy-to-blue bands with
   italic Lora titles, Abhaya Libre text, the cover's Yeseva One. */

:root {
  --jk-paper: #fbfaf6;
  --jk-paper-shade: #f3f1ea;
  --jk-ink: #183044;
  --jk-muted: #67747d;
  --jk-navy: #173f68;
  --jk-cover-navy: #24356a;
  --jk-blue: #237fb1;
  --jk-blue-name: #4a8ac4;
  --jk-band-top: #233f6e;
  --jk-band-bottom: #3d86c6;
  --jk-band-title: #c7dcf3;
  --jk-turquoise: #56c2ca;
  --jk-gold: #c49a48;
  --jk-deep-top: #1c3f86;
  --jk-deep-bottom: #2f6fc0;
  --jk-year: #f1d37a;
  --jk-frame: #111;
  --jk-shadow: 0 10px 24px rgba(24, 48, 68, 0.14);

  --jk-font-body: "Abhaya Libre", Georgia, "Times New Roman", serif;
  --jk-font-title: "Lora", Georgia, serif;
  --jk-font-cover: "Yeseva One", Georgia, serif;

  --jk-width: 112rem;
  --jk-gutter: clamp(1.6rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--jk-paper);
  color: var(--jk-ink);
  font-family: var(--jk-font-body);
  font-size: 1.85rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--jk-blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--jk-navy); }

.jk-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------------------------------------ header */

.jk-header {
  background: var(--jk-paper);
  border-bottom: 1px solid rgba(23, 63, 104, 0.08);
}
.jk-header__inner {
  max-width: var(--jk-width);
  margin: 0 auto;
  padding: 1.2rem var(--jk-gutter);
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-family: var(--jk-font-title);
  font-style: italic;
}
.jk-header__brand, .jk-header__category {
  color: var(--jk-navy);
  text-decoration: none;
  font-size: 1.9rem;
}
.jk-header__category { color: var(--jk-blue); }
.jk-header__sep { color: var(--jk-muted); }
.jk-langs {
  margin-left: auto;
  display: flex;
  gap: 0.2rem;
  font-family: var(--jk-font-body);
  font-style: normal;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}
.jk-langs__item {
  padding: 0.2rem 0.6rem;
  color: var(--jk-muted);
  text-decoration: none;
  border-radius: 0.3rem;
}
.jk-langs__item:hover { color: var(--jk-navy); }
.jk-langs__item.is-current { color: var(--jk-navy); font-weight: 700; }

/* ------------------------------------------------------------ bands and sections */

.jk-band {
  margin: 0;
  padding: 2.2rem var(--jk-gutter);
  background: linear-gradient(180deg, var(--jk-band-top), var(--jk-band-bottom));
  color: var(--jk-band-title);
  font-family: var(--jk-font-title);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.3;
}
.jk-band__ornament { margin: 0 0.6em; opacity: 0.85; }

.jk-section { margin: 0 0 6rem; }
.jk-section__body {
  max-width: 96rem;
  margin: 0 auto;
  padding: 4.4rem var(--jk-gutter) 0;
}
.jk-section__body p { margin: 0 0 1.4rem; text-align: justify; hyphens: auto; }

.jk-heading {
  margin: 0 0 1rem;
  color: var(--jk-blue);
  font-family: var(--jk-font-title);
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1.25;
}

/* ------------------------------------------------------------ opening */

.jk-opening {
  padding: clamp(2.4rem, 5vw, 5.6rem) var(--jk-gutter) clamp(1.2rem, 3vw, 2.4rem);
}
.jk-opening__inner {
  max-width: var(--jk-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.4rem, 5vw, 6rem);
  align-items: center;
}
.jk-opening__image {
  width: 100%;
  padding: clamp(0.8rem, 2vw, 1.6rem);
  background: #fff;
  border: 1px solid var(--jk-frame);
  box-shadow: var(--jk-shadow);
}
.jk-opening__kicker {
  margin: 0;
  color: var(--jk-cover-navy);
  font-family: var(--jk-font-body);
  font-weight: 700;
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  line-height: 1;
}
.jk-opening__title {
  margin: 0.2rem 0 1.8rem;
  color: var(--jk-cover-navy);
  font-family: var(--jk-font-cover);
  font-weight: 400;
  font-size: clamp(3.6rem, 5.5vw, 6.4rem);
  line-height: 0.95;
}
.jk-opening__copy p { margin: 0 0 1.2rem; }
.jk-opening__signature {
  width: min(28rem, 80%);
  margin-top: 2rem;
}
.jk-opening__category {
  margin: 1.4rem 0 0;
  color: var(--jk-navy);
  font-family: var(--jk-font-title);
  font-style: italic;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
}

@media (max-width: 800px) {
  .jk-opening__inner { grid-template-columns: 1fr; }
  .jk-opening__image { max-width: 52rem; }
}

/* ------------------------------------------------------------ about (brochure page 2) */

.jk-about__lead {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
  gap: 3rem;
  margin-bottom: 1.4rem;
}
.jk-about__portrait { width: 100%; box-shadow: var(--jk-shadow); }
.jk-credit { text-align: right !important; line-height: 1.4; }
.jk-source {
  display: grid;
  grid-template-columns: minmax(12rem, 20rem) 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}
.jk-source__image { width: 100%; mix-blend-mode: multiply; }
.jk-source__quote { margin: 0; font-style: italic; }
.jk-source__quote footer { font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; font-size: 1.5rem; }

@media (max-width: 640px) {
  .jk-about__lead, .jk-source { grid-template-columns: 1fr; gap: 1.6rem; }
  .jk-about__portrait { max-width: 18rem; }
  .jk-source__image { max-width: 22rem; }
}

/* ------------------------------------------------------------ painting grid */

.jk-grid, .jk-collections {
  max-width: var(--jk-width);
  margin: 0 auto;
  padding: 4rem var(--jk-gutter) 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(24rem, 100%), 1fr));
  gap: 3.6rem 3rem;
}

a.jk-card, a.jk-card:hover, a.jk-collection, a.jk-collection:hover {
  color: inherit;
  text-decoration: none;
}
.jk-card, .jk-collection { display: flex; flex-direction: column; gap: 0.6rem; }
.jk-card__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 6%;
  background: #fff;
  border: 1px solid var(--jk-frame);
  box-shadow: var(--jk-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.jk-card__image { max-height: 100%; width: auto; object-fit: contain; }
a.jk-card:hover .jk-card__frame, a.jk-collection:hover .jk-card__frame {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(24, 48, 68, 0.2);
}
.jk-card__id {
  margin-top: 0.8rem;
  font-family: var(--jk-font-title);
  font-size: 1.5rem;
  color: var(--jk-ink);
}
.jk-card__title { font-size: 1.7rem; line-height: 1.3; color: var(--jk-muted); }
a.jk-card:hover .jk-card__title { color: var(--jk-navy); }
.jk-collection__name {
  margin-top: 0.8rem;
  font-family: var(--jk-font-title);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--jk-navy);
}
.jk-collection__count { font-size: 1.5rem; color: var(--jk-muted); }

.jk-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.4rem;
  padding: 4rem var(--jk-gutter) 0;
}
.jk-pages__current { color: var(--jk-muted); }

/* ------------------------------------------------------------ inspiring messages (page 3) */

.jk-messages__body {
  max-width: var(--jk-width);
  margin: 0 auto;
  padding: 4rem var(--jk-gutter) 0;
  display: grid;
  grid-template-columns: minmax(14rem, 30rem) 1fr;
  gap: 4rem;
  align-items: start;
}
.jk-messages__photo { width: 100%; position: sticky; top: 2rem; }
.jk-messages__quotes { max-width: 64rem; }
.jk-quote { margin: 0 0 2.6rem; }
.jk-quote p { margin: 0 0 0.4rem; }
.jk-quote footer { font-size: 1.55rem; line-height: 1.4; }
.jk-quote__name {
  color: var(--jk-blue-name);
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-size: 1.15em;
}

@media (max-width: 720px) {
  .jk-messages__body { grid-template-columns: 1fr; }
  .jk-messages__photo { position: static; max-width: 20rem; margin: 0 auto; }
}

/* ------------------------------------------------------------ exhibitions and contact (page 8) */

.jk-exhibitions {
  position: relative;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(28, 63, 134, 0.92), rgba(47, 111, 192, 0.9)),
    url("../images/brochure/exhibitions-painting.jpg") center / cover no-repeat,
    var(--jk-deep-top);
}
.jk-exhibitions__inner {
  max-width: var(--jk-width);
  margin: 0 auto;
  padding: 6rem var(--jk-gutter);
}
.jk-exhibitions__title {
  margin: 0 0 2.4rem;
  text-align: center;
  font-family: var(--jk-font-title);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  color: var(--jk-band-title);
}
.jk-exhibitions__title:not(:first-child) { margin-top: 5rem; }
.jk-years {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(28rem, 100%), 1fr));
  gap: 0 4rem;
  font-size: 1.55rem;
  line-height: 1.45;
}
.jk-years__column { margin: 0; }
.jk-years dt {
  margin-top: 1.2rem;
  color: var(--jk-year);
  font-weight: 700;
  font-size: 1.8rem;
}
.jk-years dd { margin: 0; padding-left: 1.4em; text-indent: -1.4em; }
.jk-exhibitions__lead, .jk-permanent, .jk-contact, .jk-contact__site { text-align: center; }
.jk-permanent { list-style: none; margin: 0; padding: 0; line-height: 1.8; }
.jk-exhibitions a { color: #fff; }
.jk-exhibitions a:hover { color: var(--jk-year); }
.jk-contact { margin: 0; }
.jk-contact__site {
  margin: 0.4rem 0 0;
  font-family: var(--jk-font-title);
  font-style: italic;
  font-size: 2.4rem;
}
.jk-contact__site a { text-decoration: none; }

/* ------------------------------------------------------------ one painting */

.jk-painting { margin-bottom: 6rem; }
.jk-band--page { font-size: clamp(2rem, 3vw, 2.6rem); }
.jk-painting__stage {
  position: relative;
  max-width: var(--jk-width);
  margin: 0 auto;
  padding: 4rem calc(var(--jk-gutter) + 4.8rem) 0;
}
.jk-painting__figure { margin: 0; }
.jk-painting__frame {
  display: block;
  padding: clamp(1rem, 3vw, 3rem);
  background: #fff;
  border: 1px solid var(--jk-frame);
  box-shadow: var(--jk-shadow);
}
.jk-painting__image {
  margin: 0 auto;
  max-height: 74vh;
  width: auto;
}
.jk-step {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  color: var(--jk-navy);
  text-decoration: none;
  font-family: var(--jk-font-title);
  font-size: 4rem;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.jk-step:hover { opacity: 1; background: rgba(23, 63, 104, 0.06); color: var(--jk-navy); }
.jk-step--prev { left: var(--jk-gutter); }
.jk-step--next { right: var(--jk-gutter); }

.jk-thumbs {
  list-style: none;
  max-width: var(--jk-width);
  margin: 2rem auto 0;
  padding: 0 calc(var(--jk-gutter) + 4.8rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}
.jk-thumbs__item {
  display: block;
  width: 8.8rem;
  height: 8.8rem;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.35);
  opacity: 0.75;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.jk-thumbs__item img { width: 100%; height: 100%; object-fit: cover; }
.jk-thumbs__item:hover, .jk-thumbs__item.is-current { opacity: 1; border-color: var(--jk-frame); }

.jk-painting__info {
  max-width: 80rem;
  margin: 3.2rem auto 0;
  padding: 0 var(--jk-gutter);
  text-align: center;
}
.jk-painting__id {
  display: inline-block;
  margin: 0;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--jk-turquoise);
  font-family: var(--jk-font-title);
  font-size: 2rem;
}
.jk-painting__title {
  margin: 1.2rem 0 0;
  font-family: var(--jk-font-title);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  color: var(--jk-navy);
}
.jk-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 4rem;
  margin: 1.6rem 0 0;
}
.jk-meta dt {
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jk-muted);
}
.jk-meta dd { margin: 0; font-size: 1.9rem; }
.jk-shop { margin: 2.4rem 0 0; font-size: 1.5rem; }
.jk-shop a { color: var(--jk-muted); text-decoration: none; border-bottom: 1px solid rgba(103, 116, 125, 0.35); }
.jk-shop a:hover { color: var(--jk-navy); border-bottom-color: var(--jk-navy); }

.jk-painting__nav {
  max-width: 80rem;
  margin: 4rem auto 0;
  padding: 2rem var(--jk-gutter) 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.6rem;
  border-top: 1px solid rgba(23, 63, 104, 0.12);
  font-size: 1.7rem;
}
.jk-painting__nav a { text-decoration: none; }
.jk-painting__nav > :last-child { text-align: right; }
.jk-painting__count { color: var(--jk-muted); font-size: 0.85em; }

@media (max-width: 640px) {
  .jk-painting__stage, .jk-thumbs { padding-left: var(--jk-gutter); padding-right: var(--jk-gutter); }
  .jk-step { display: none; }
  .jk-thumbs__item { width: 6.4rem; height: 6.4rem; }
  .jk-painting__nav { grid-template-columns: 1fr 1fr; }
  .jk-painting__nav > :nth-child(2) { grid-column: 1 / -1; grid-row: 1; text-align: center; }
}

/* ------------------------------------------------------------ footer, error page */

.jk-footer {
  padding: 2.4rem var(--jk-gutter);
  text-align: center;
  font-size: 1.5rem;
  color: var(--jk-muted);
}
.jk-footer p { margin: 0; }
.jk-footer a { color: inherit; }
.jk-footer__small { font-size: 1.3rem; margin-top: 0.4rem !important; }

.jk-error .jk-section__body { text-align: center; }
.jk-error .jk-section__body p { text-align: center; }
.jk-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--jk-blue);
  color: var(--jk-blue);
  text-decoration: none;
}
.jk-button:hover { background: var(--jk-blue); color: #fff; }
