/* Jude Cohen preview: quiet gallery system modelled on mishele.art.
   White page, black hairlines, one serif wordmark, small heavy sans labels. */

:root {
  --bg: #ffffff;
  --ink: #000000;
  --muted: #5c5c5c;
  --rule: #000000;
  --soft-rule: #d9d9d6;
  --tile: #f3f3f1;
  --veil: rgba(0, 0, 0, 0.55);

  --serif: 'Newsreader', 'Times New Roman', Times, serif;
  --sans: 'Nunito Sans', 'Avenir Next', Avenir, 'Helvetica Neue', Arial, sans-serif;

  --col: 640px;          /* main reading / hero column */
  --col-wide: 760px;     /* grids, indexes */
  --gutter: 16px;
  --side: 28px;          /* fixed wordmark / side label inset */
  --chrome-room: 420px;  /* width kept clear of the fixed wordmark + side label (901px and up) */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* ---------- type ---------- */
.label {                               /* SELECTED WORKS, section heads */
  font-family: var(--sans);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.label--sm { font-size: 11px; letter-spacing: 0.04em; }
.serif-display {                       /* page titles: "Fine Art Editions" */
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 2.2rem + 1vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
}
/* the one big page title size shared by Editions, Series and The Book
   (Mishele edition page): 31px on phones up to 64px at 1440 */
.serif-display--page { font-size: clamp(31px, 3.4vw + 15px, 64px); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.prose { font-size: 14px; line-height: 1.65; font-weight: 300; }
.prose p { margin: 0 0 1.1em; }
.prose em { font-style: italic; }
.prose a, a.u { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.muted { color: var(--muted); }

/* ---------- chrome: wordmark, side label, menu toggle ---------- */
.jc-wordmark {
  position: fixed; z-index: 30;
  left: var(--side); top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-weight: 400;
  font-size: 23px; line-height: 1; letter-spacing: -0.02em;
  white-space: nowrap;
}
.jc-side {
  position: fixed; z-index: 30;
  right: calc(var(--side) + 22px); top: 50%; transform: translateY(-50%);
}
.jc-toggle {
  position: fixed; z-index: 40;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 30px;
  display: grid; place-items: center;
}
.jc-toggle span, .jc-toggle span::after {
  display: block; width: 26px; height: 1.5px; background: var(--ink); content: '';
}
.jc-toggle span { position: relative; transform: translateY(-3px); }
.jc-toggle span::after { position: absolute; top: 6px; left: 0; }
.jc-wordmark, .jc-side, .jc-toggle { background: transparent; }
.jc-bar { display: none; }

/* ---------- slide-in menu ---------- */
.jc-veil {
  position: fixed; inset: 0; z-index: 50;
  background: var(--veil);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.jc-menu {
  position: fixed; z-index: 60; top: 0; right: 0; bottom: 0;
  width: min(400px, 100%);
  background: var(--bg);
  padding: 74px 16px 32px;
  transform: translateX(100%);
  visibility: hidden;                  /* closed menu leaves the tab order */
  transition: transform .5s var(--ease), visibility 0s linear .5s;
  overflow-y: auto;
}
.jc-menu__close {
  position: absolute; top: 22px; right: 24px;
  width: 30px; height: 30px; display: grid; place-items: center;
}
.jc-menu__close::before, .jc-menu__close::after {
  content: ''; position: absolute; width: 22px; height: 1.25px; background: var(--ink);
}
.jc-menu__close::before { transform: rotate(45deg); }
.jc-menu__close::after { transform: rotate(-45deg); }
.jc-menu ul { list-style: none; margin: 0; padding: 0; }
.jc-menu li { border-bottom: 1px solid var(--rule); }
.jc-menu li a {
  display: block; padding: 9px 8px 8px;
  font-weight: 800; font-size: 12.5px; letter-spacing: 0.02em; text-transform: uppercase;
  transition: padding-left .3s var(--ease), color .3s;
}
.jc-menu li a:hover { padding-left: 14px; }
.jc-menu li a[aria-current] { color: var(--muted); }
.jc-menu__foot { margin-top: 28px; padding: 0 8px; }
html.menu-open .jc-veil { opacity: 1; visibility: visible; }
html.menu-open .jc-menu { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
html.menu-open { overflow: hidden; }

/* ---------- bag ---------- */
.jc-bag { position: fixed; z-index: 41; top: 16px; right: 24px; padding: 4px 2px; }
.jc-bag__n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: 10px; }
.jc-bagpanel {
  position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(400px, 100%);
  background: var(--bg); padding: 26px 20px 32px; overflow-y: auto;
  transform: translateX(100%); transition: transform .5s var(--ease);
}
.jc-bagpanel .jc-menu__close { top: 16px; right: 16px; }
html.bag-open .jc-bagpanel { transform: none; }
html.bag-open .jc-veil--bag { opacity: 1; visibility: visible; }
html.bag-open { overflow: hidden; }
.jc-bag__row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--rule); font-size: 12px; line-height: 1.5; }
.jc-bag__row img { width: 64px; height: 64px; object-fit: contain; background: var(--tile); padding: 6px; }
.jc-bag__row button { font-size: 11px; }
.jc-bag__total { display: flex; justify-content: space-between; padding: 12px 0 16px; border-top: 1px solid var(--rule); font-weight: 700; font-size: 13px; }
.jc-bag__note { font-size: 11px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }

/* ---------- page column ---------- */
.page {
  min-height: 100vh;
  padding: 72px var(--gutter) 64px;
}
.col { width: 100%; max-width: var(--col); margin: 0 auto; }
.col--wide { max-width: var(--col-wide); }
.section { margin-top: 30px; }
.center { text-align: center; }

/* ---------- framed artwork (the hairline mount) ---------- */
.frame {
  display: block;
  border: 1px solid var(--rule);
  padding: 6px;
  background: var(--bg);
}
.frame img { width: 100%; }
.frame--tile {                        /* edition grid tile: artwork floated on a soft card */
  border: 0; padding: 14% 12%;
  background: var(--tile);
  aspect-ratio: 3 / 4;
  display: grid; place-items: center;
}
.frame--tile img {
  width: auto; max-width: 100%; max-height: 100%;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.10);
}

/* a single large work sized to sit inside the first screen, clear of the side chrome */
.stage {
  width: min(560px, calc(100vw - var(--chrome-room)), calc((100svh - 190px) * var(--stage-ar, .75)));
  margin: 0 auto;
}
@media (max-width: 900px) {
  .stage { width: min(560px, 100%, calc((100svh - 200px) * var(--stage-ar, .75))); min-width: min(300px, 100%); }
}

/* caption row under a framed work */
.caption {
  display: flex; justify-content: space-between; gap: 18px;
  margin-top: 9px; padding: 0 7px;
  font-size: 12px; line-height: 1.45;
}
.caption__title { font-weight: 700; font-size: 12.5px; }
.caption__right { text-align: right; white-space: nowrap; }
.caption .muted { color: var(--ink); font-weight: 300; }

/* ---------- two-column text block ---------- */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin-top: 16px; }
.cols2 p { margin: 0 0 1em; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 280px; min-height: 40px; padding: 10px 26px;
  background: var(--ink); color: var(--bg);
  font-weight: 800; font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase;
  transition: opacity .3s var(--ease);
}
.btn:hover { opacity: .82; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.arrow-link { font-weight: 800; font-size: 12.5px; letter-spacing: .02em; text-transform: uppercase; }
.arrow-link::after { content: ' \2192'; }

/* ---------- index rows (Selected Works list) ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-bottom: 1px solid var(--rule); }
.rows a {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center;
  padding: 13px 0 12px;
  transition: padding-left .35s var(--ease);
}
.rows a:hover { padding-left: 8px; }
.rows .ico { width: 17px; height: 17px; }
.rows .t { font-weight: 800; font-size: 11.5px; line-height: 1.35; letter-spacing: .02em; text-transform: uppercase; }
.rows .n { font-weight: 300; font-size: 11.5px; color: var(--muted); }

/* ---------- accordion ---------- */
.acc details { border-bottom: 1px solid var(--rule); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 8px 30px 8px 38px;
  font-weight: 700; font-size: 13px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-weight: 700; font-size: 17px; line-height: 1; }
.acc details[open] summary::after { content: '\2212'; }
.acc .acc__body { padding: 2px 38px 18px; }

/* ---------- edition grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 26px;
}
.grid a { display: block; }
.grid .grid__t { margin-top: 9px; font-weight: 700; font-size: 11.5px; }
.grid .grid__s { font-size: 11px; color: var(--muted); }
.grid a .frame--tile img { transition: transform .6s var(--ease); }
.grid a:hover .frame--tile img { transform: translateY(-3px); }

/* ---------- footer ---------- */
.jc-footer {
  margin: 0 var(--gutter);
  border-top: 1px solid var(--rule);
  padding: 22px 0 34px;
  text-align: center;
}
.jc-footer__links { font-weight: 800; font-size: 11px; letter-spacing: .03em; text-transform: uppercase; }
.jc-footer__links a + a::before { content: '\00B7'; margin: 0 6px; }
.jc-footer__small { margin-top: 12px; font-size: 10.5px; line-height: 1.6; }
.jc-footer__small a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- preview note (removed before launch) ---------- */
.jc-preview-tag { margin-top: 10px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .jc-menu, .jc-veil { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- small screens: wordmark + toggle become a top bar ---------- */
@media (max-width: 900px) {
  /* white band so photographs and text never scroll under the wordmark and toggle */
  .jc-bar { display: block; position: fixed; z-index: 29; top: 0; left: 0; right: 0; height: 58px; background: var(--bg); }
  .jc-wordmark { top: 22px; left: 50%; transform: translateX(-50%); font-size: 22px; }
  .jc-side { display: none; }
  .jc-toggle { left: auto; right: 6px; transform: none; top: 11px; }
  .jc-bag { top: 19px; right: auto; left: var(--gutter); }
  .page { padding-top: 84px; }
}
@media (max-width: 560px) {
  .cols2 { grid-template-columns: 1fr; }
  .btn { min-width: 250px; }
  .prose, .cols2 { font-size: 15px; }
  .grid { gap: 28px 14px; }
  .caption { gap: 10px; }
  .acc summary { padding: 9px 18px 9px 22px; }
  .acc .acc__body { padding: 2px 22px 16px; }
}
