/* JNN Art — site styles */
:root {
  --bg: #fbfaf7;
  --ink: #222;
  --muted: #777;
  --line: #e6e2da;
  --accent: #8a5a3c;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: 1.8rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 99; }
.muted { color: var(--muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251,250,247,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-family: var(--serif); font-size: 1.9rem; letter-spacing: .14em; text-transform: uppercase; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 38px; }
.nav a { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: -18px; min-width: 190px; padding: 14px 18px !important; background: var(--bg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.sub li { padding: 5px 0; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* hero */
.hero img { width: 100%; height: min(72vh, 720px); object-fit: cover; object-position: center 60%; }
.hero-caption { font-size: .85rem; color: var(--muted); padding-top: 10px; }
.intro { text-align: center; max-width: 760px; padding-top: 70px; padding-bottom: 30px; }
.intro p { font-family: var(--serif); font-size: 1.45rem; line-height: 1.5; color: #444; }
.section-title { font-size: .8rem; font-family: var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 26px; margin: 50px 0 30px; }

/* grid (masonry columns) */
.grid { columns: 3 300px; column-gap: 34px; }
.tile { break-inside: avoid; margin: 0 0 40px; }
.tile img { width: 100%; background: #eee; transition: opacity .2s; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tile a:hover img { opacity: .88; }
.tile figcaption { padding-top: 12px; font-size: .88rem; line-height: 1.45; }
.tile .t { display: block; font-family: var(--serif); font-size: 1.25rem; font-style: italic; }
.tile .d { color: var(--muted); }
.badge { display: inline-block; margin-left: 8px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.badge.sold::before { content: "●"; color: #b33; margin-right: 4px; font-size: .6rem; vertical-align: 2px; }

/* category cards */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 80px; }
.cat-card { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat-card:hover img { transform: scale(1.04); }
.cat-card span { position: absolute; inset: auto 0 0 0; padding: 50px 20px 18px; color: #fff; font-family: var(--serif); font-size: 1.7rem;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.cat-card em { display: block; font: 300 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; font-style: normal; opacity: .9; }

/* page head + tabs */
.page-head { padding-top: 60px; padding-bottom: 30px; text-align: center; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.tabs a { padding-bottom: 4px; border-bottom: 1px solid transparent; color: var(--muted); }
.tabs a.on { color: var(--ink); border-color: var(--ink); }

/* painting page */
.painting { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 60px; padding-top: 50px; padding-bottom: 80px; align-items: start; }
.painting-img img { margin: 0 auto; max-height: 82vh; width: auto; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.painting-info { position: sticky; top: 110px; }
.painting-info h1 { font-style: italic; }
.crumb { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; margin: 24px 0 30px; font-size: .95rem; }
dt { color: var(--muted); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
dd { margin: 0; }
.btn { display: inline-block; border: 1px solid var(--ink); padding: 12px 22px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; transition: .2s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.pnav { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* about + contact */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; padding-top: 70px; padding-bottom: 90px; align-items: start; }
.about-text p { margin: 0 0 1.1em; }
.about-text h2 { margin-top: 1.6em; font-size: 1.5rem; }
.about-text ul { padding-left: 1.1em; }
.contact { max-width: 640px; text-align: center; padding-top: 90px; padding-bottom: 120px; }
.contact p { font-size: 1.05rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; font-size: .82rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-links { display: flex; gap: 22px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(20,19,18,.96); display: none; color: #eee; }
.lb.open { display: flex; flex-direction: column; }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 50px 70px 10px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 4px 30px rgba(0,0,0,.5); }
.lb-cap { text-align: center; padding: 14px 20px 26px; font-size: .9rem; }
.lb-cap .t { font-family: var(--serif); font-style: italic; font-size: 1.4rem; display: block; color: #fff; }
.lb-cap a { color: #ccc; text-decoration: underline; text-underline-offset: 3px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.lb button { position: absolute; background: none; border: 0; color: #ddd; font-size: 2.4rem; cursor: pointer; padding: 14px; line-height: 1; font-family: var(--sans); font-weight: 200; }
.lb button:hover { color: #fff; }
.lb-close { top: 6px; right: 12px; }
.lb-prev { left: 8px; top: 45%; }
.lb-next { right: 8px; top: 45%; }

/* responsive */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .header-inner { height: 64px; }
  .brand { font-size: 1.5rem; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 64px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; padding: 10px 20px 24px; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 6px 0 0 14px !important; background: none; }
  .hero img { height: 56vh; }
  .intro { padding-top: 44px; }
  .intro p { font-size: 1.25rem; }
  .page-head { padding-top: 36px; }
  .tabs { gap: 8px 18px; letter-spacing: .1em; font-size: .74rem; }
  .about, .contact { padding-top: 36px; }
  .grid { columns: 2 150px; column-gap: 16px; }
  .tile { margin-bottom: 28px; }
  .tile .t { font-size: 1.1rem; }
  .painting, .about { grid-template-columns: 1fr; gap: 30px; padding-top: 24px; }
  .painting-info { position: static; }
  .lb-stage { padding: 50px 8px 6px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; }
}
@media (max-width: 420px) { .grid { columns: 1; } }
