/* ==========================================================================
   Watercolors by Mary Pachikara
   Palette drawn from the pigments in the work: indigo, Payne's grey,
   raw sienna, field olive, alizarin. Ground is a damp-paper wash.
   ========================================================================== */

:root {
  --indigo:      #1c2b3a;
  --payne:       #566472;
  --payne-soft:  #8b97a2;
  --paper:       #edece6;
  --sheet:       #fcfbf6;
  --wash-blue:   #c6d5db;
  --wash-ochre:  #e6d9bd;
  --field:       #6b7a4b;
  --alizarin:    #99384a;
  --rule:        #cfcec5;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Karla", "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --shell: 78rem;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, figcaption, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

/* ---------- ground ---------- */
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--indigo);
  background-color: var(--paper);
  background-image:
    radial-gradient(60rem 40rem at 82% -8%,  rgba(198, 213, 219, .85), transparent 62%),
    radial-gradient(48rem 34rem at 4% 12%,   rgba(230, 217, 189, .70), transparent 60%),
    radial-gradient(70rem 46rem at 50% 108%, rgba(198, 213, 219, .55), transparent 64%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='160' height='160' filter='url(%23g)' opacity='.5'/></svg>");
}

.shell { position: relative; z-index: 1; width: min(var(--shell), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.shell--narrow { width: min(52rem, 100%); }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 96;
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-family: var(--body);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--payne);
}

.prose p { max-width: var(--measure); margin-bottom: 1.15em; color: #2b3947; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--indigo); text-decoration-color: var(--field); text-underline-offset: .2em; }

/* The artist statement: set a little larger, with an opening initial. */
.prose--statement p {
  max-width: 37rem;
  font-size: 1.125rem;
  line-height: 1.72;
  margin-bottom: 1.5em;
}
.prose--statement p + p { text-indent: 1.5em; }

.prose--statement p:first-of-type::first-letter {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: 3.6em;
  line-height: .8;
  float: left;
  margin: .06em .1em 0 0;
  color: var(--indigo);
}

@media (max-width: 30rem) {
  .prose--statement p { font-size: 1.0625rem; }
  .prose--statement p:first-of-type::first-letter { font-size: 3em; }
}

/* Statement page: portrait beside the text.
   The photograph gets a clean, machine-cut edge — the torn deckle is reserved
   for the paintings, so the two never read as the same kind of object. */
.shell--statement { width: min(64rem, 100%); }
.shell--record { width: min(60rem, 100%); }

.statement__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 52rem) {
  .statement__grid { grid-template-columns: 16rem 1fr; }
  .portrait { position: sticky; top: 2.5rem; }
}

.portrait { margin: 0; max-width: 18rem; }
.portrait__print {
  background: none;
  padding: 0;
  box-shadow: 0 8px 20px rgba(28, 43, 58, .12);
}
.portrait__print img { width: 100%; height: auto; display: block; }
.portrait figcaption {
  margin-top: .9rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--payne);
}

/* ---------- masthead ---------- */
.masthead {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 24;
  font-size: 1.0625rem;
  letter-spacing: .02em;
  text-decoration: none;
}
.wordmark span { color: var(--payne); }

.utility { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.utility a {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--payne);
  text-decoration: none;
  padding-block: .2rem;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.utility a:hover, .utility a:focus-visible { color: var(--indigo); border-bottom-color: var(--field); }
.utility a[aria-current="page"] { color: var(--indigo); border-bottom-color: var(--indigo); }

/* ---------- bodies of work nav ---------- */
.bodies {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  padding-block: 1.75rem;
}
.bodies a, .bodies span {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 48;
  font-size: clamp(1.5rem, 3.6vw, 2.125rem);
  text-decoration: none;
  color: var(--payne-soft);
  transition: color .2s ease;
}
.bodies a:hover, .bodies a:focus-visible { color: var(--indigo); }
.bodies [aria-current="page"] {
  color: var(--indigo);
  box-shadow: inset 0 -2px 0 0 var(--field);
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}

.hero__title {
  font-size: clamp(3.25rem, 11vw, 7rem);
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
  font-weight: 300;
}
.hero__title em {
  display: block;
  font-style: normal;
  font-weight: 200;
  font-size: .42em;
  letter-spacing: .01em;
  color: var(--payne);
  margin-bottom: .35em;
}
.hero__lede {
  margin-top: 2rem;
  max-width: 31rem;
  color: #2b3947;
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 24;
  font-size: 1.25rem;
  line-height: 1.5;
  text-indent: -.4em;
}
.hero__lede a {
  display: block;
  margin-top: 1rem;
  text-indent: 0;
  font-family: var(--body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--payne);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .35rem;
  width: fit-content;
  transition: color .18s ease, border-color .18s ease;
}
.hero__lede a:hover { color: var(--indigo); border-bottom-color: var(--field); }
.hero__meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--payne);
}

/* ---------- image plate ---------- */
/* No painting alongside — the hero runs as a single centred column. */
.hero--centered .hero__grid { grid-template-columns: 1fr; }
@media (min-width: 60rem) {
  .hero--centered .hero__grid { grid-template-columns: 1fr; }
}
.hero--centered { text-align: center; }
.hero--centered .hero__lede {
  margin-left: auto;
  margin-right: auto;
  text-indent: 0;
  max-width: 34rem;
}
.hero--centered .hero__lede a { margin-left: auto; margin-right: auto; }
.hero--centered .hero__meta { justify-content: center; }

.plate { break-inside: avoid; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }

/* No paper border and no torn edge — the painting sits on the page directly.
   A soft shadow keeps it from floating flat against the wash background. */
.plate__sheet {
  background: none;
  padding: 0;
  filter: drop-shadow(0 8px 20px rgba(28, 43, 58, .12));
  transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}
.plate__sheet img { width: 100%; height: auto; background: none; }

a.plate__link { display: block; text-decoration: none; }
a.plate__link:hover .plate__sheet,
a.plate__link:focus-visible .plate__sheet { transform: translateY(-6px) rotate(-.35deg); }
a.plate__link:focus-visible { outline: 2px solid var(--field); outline-offset: 10px; }

/* museum wall label */
.label { margin-top: 1.1rem; padding-left: .1rem; }
.label__title {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 24;
  font-size: 1.125rem;
  line-height: 1.25;
}
.label__meta {
  margin-top: .4rem;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--payne);
}
.label__meta span + span::before { content: " · "; color: var(--payne-soft); }

/* ---------- gallery ---------- */
.gallery { padding-block: 1rem clamp(3rem, 8vw, 6rem); }

/* Three square tiles per row, edge to edge — no paper border, no torn edge.
   The full uncropped painting is still shown when a tile is opened. */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.9rem, 2.2vw, 1.75rem);
}
@media (max-width: 30rem) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

.gallery__grid .plate { margin-bottom: 0; }

.gallery__grid .plate__sheet {
  background: none;
  padding: 0;
  filter: none;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  transform: none;
}
.gallery__grid .plate__sheet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  background: none;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

/* the tile itself stays put; the painting inside eases forward */
.gallery__grid a.plate__link:hover .plate__sheet,
.gallery__grid a.plate__link:focus-visible .plate__sheet { transform: none; }
.gallery__grid a.plate__link:hover .plate__sheet img,
.gallery__grid a.plate__link:focus-visible .plate__sheet img { transform: scale(1.045); }
.gallery__grid a.plate__link:focus-visible { outline-offset: 4px; }

.gallery__grid .label { margin-top: .8rem; }
.gallery__grid .label__title { font-size: 1rem; }
.gallery__grid .label__meta { font-size: .6875rem; letter-spacing: .08em; }

.gallery__grid .empty { grid-column: 1 / -1; }

.periods {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding-block: .5rem 2.25rem;
  border-top: 1px solid var(--rule);
  margin-top: .25rem;
  padding-top: 1.5rem;
}
.period {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--payne);
  padding: .5rem .9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.period:hover { color: var(--indigo); border-color: var(--payne-soft); }
.period[aria-pressed="true"] { color: var(--sheet); background: var(--indigo); border-color: var(--indigo); }
.period:focus-visible { outline: 2px solid var(--field); outline-offset: 3px; }

.empty {
  border: 1px dashed var(--payne-soft);
  padding: 2.5rem;
  color: var(--payne);
  max-width: var(--measure);
}
.empty code { font-size: .9em; background: rgba(28,43,58,.06); padding: .1em .4em; }

/* ---------- three plates on the home page ---------- */
.rooms { padding-block: clamp(2rem, 5vw, 3rem) clamp(3rem, 8vw, 6rem); border-top: 1px solid var(--rule); }
.rooms__grid { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 48rem) { .rooms__grid { grid-template-columns: repeat(3, 1fr); } }

/* All three the same rectangle, whatever shape the paintings are.
   4:3 is the closest fit to the three images, so cropping stays minimal. */
.rooms__grid .plate__sheet {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.rooms__grid .plate__sheet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.rooms__grid .room:hover .plate__sheet img,
.rooms__grid .room:focus-visible .plate__sheet img { transform: scale(1.045); }
.rooms__grid .room:focus-visible { outline: 2px solid var(--field); outline-offset: 8px; }

.room__name {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-top: 1.25rem;
}
.room__note { margin-top: .5rem; font-size: .9375rem; color: var(--payne); max-width: 22rem; }

/* ---------- editorial sections ---------- */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--rule); }
.section__head { margin-bottom: 2.5rem; }
.section__title { font-size: clamp(2rem, 5vw, 3rem); margin-top: .75rem; }

/* CV / exhibition list */
.cv { margin-top: 2rem; }
.cv__group + .cv__group { margin-top: 3rem; }
.cv__heading {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--field);
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--rule);
}
.cv__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .15rem 2rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 44rem) {
  .cv__row { grid-template-columns: 5.5rem 1fr; align-items: baseline; }
}
.cv__year {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--payne);
  font-variant-numeric: tabular-nums;
}
.cv__title {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 24;
  font-size: 1.0625rem;
}
.cv__venue { font-size: .9375rem; color: var(--payne); margin-top: .1rem; }

/* several shows can sit under one year */
.cv__entry + .cv__entry { margin-top: 1.15rem; padding-top: 1.15rem; border-top: 1px dotted var(--rule); }
.cv__note {
  font-size: .875rem;
  color: var(--payne-soft);
  margin-top: .3rem;
  max-width: 34rem;
}
.cv__note a { color: var(--payne); text-decoration-color: var(--field); text-underline-offset: .2em; }
.cv__note a:hover { color: var(--indigo); }

/* reviews carry full dates, which need a wider column */
@media (min-width: 44rem) {
  .cv__group--dates .cv__row { grid-template-columns: 7.5rem 1fr; }
}
.cv__group--dates .cv__year { letter-spacing: .04em; }

.memberships { margin-top: .5rem; }
.memberships li {
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 24;
  font-size: 1.0625rem;
}

/* jump links for a long record */
.pagenav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 3rem;
}
.pagenav a {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--payne);
  text-decoration: none;
  padding: .45rem .8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.pagenav a:hover, .pagenav a:focus-visible {
  color: var(--sheet);
  background: var(--indigo);
  border-color: var(--indigo);
}

.cv__group { scroll-margin-top: 2rem; }

/* ---------- contact ---------- */
.contact__grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 54rem) { .contact__grid { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: 1.35rem; }
.field label {
  display: block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--payne);
  margin-bottom: .5rem;
}
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--indigo);
  background: rgba(252, 251, 246, .7);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .75rem .85rem;
  transition: border-color .18s ease, background-color .18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--field);
  background: var(--sheet);
}
.field textarea { min-height: 9rem; resize: vertical; }

.btn,
.prose a.btn {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sheet);
  background: var(--indigo);
  padding: .95rem 1.9rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover, .prose a.btn:hover { background: #2c4256; color: #ffffff; }
.btn:focus-visible, .prose a.btn:focus-visible { outline: 2px solid var(--field); outline-offset: 3px; }

.detail { padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.detail:first-of-type { border-top: 1px solid var(--rule); }
.detail dt {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--payne);
}
.detail dd { margin-top: .35rem; font-size: 1.0625rem; }
.detail a { text-decoration-color: var(--field); text-underline-offset: .2em; }

/* ---------- footer ---------- */
.colophon {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: baseline;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--payne);
}
.colophon a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.colophon a:hover { border-bottom-color: var(--field); color: var(--indigo); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(24, 34, 44, .92);
  backdrop-filter: blur(3px);
}
.lightbox[open], .lightbox.is-open { display: flex; }

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: min(72rem, 100%);
  max-height: 100%;
  margin: 0;
  text-align: center;
}
.lightbox__figure img {
  /* 60% of the screen height, never wider than the space available,
     so the painting and its label always fit without scrolling. */
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 60vh;
  max-height: 60dvh;   /* honours mobile browser toolbars where supported */
  object-fit: contain;
  margin-inline: auto;
  background: none;
  padding: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.lightbox .label { margin-top: 1.5rem; text-align: center; }
.lightbox .label__title { color: #f4f2ec; }
.lightbox .label__meta { color: #a9b6c2; }

.lightbox__close, .lightbox__nav {
  position: absolute;
  color: #e8e6df;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background-color .2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .14); }
.lightbox__close:focus-visible, .lightbox__nav:focus-visible { outline: 2px solid var(--wash-ochre); outline-offset: 2px; }
.lightbox__close { top: 1rem; right: 1rem; font-size: 1.75rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 2rem; line-height: 1; }
.lightbox__nav--prev { left: .5rem; }
.lightbox__nav--next { right: .5rem; }
body.is-locked { overflow: hidden; }

/* ---------- motion ---------- */
.rise { opacity: 0; transform: translateY(18px); }
.rise.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}

.bloom { animation: bloom 1.6s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes bloom {
  from { opacity: 0; transform: scale(.985); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rise { opacity: 1; transform: none; }
}

/* accessibility */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--indigo);
  color: var(--sheet);
  padding: .75rem 1.25rem;
  font-size: .8125rem;
}
.skip:focus { left: 1rem; top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--field); outline-offset: 2px; }
