/* ==========================================================================
   Kristina Beaufort — design system
   Fonts → tokens → base → layout → components → responsive
   ========================================================================== */

/* Self-hosted: see build/fetch-fonts.sh. Only the weights this file uses are
   shipped. font-display: swap so text is readable immediately and the page is
   never blocked on a font. */

@font-face {
  font-family: Satoshi;
  src: url("../assets/fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Satoshi;
  src: url("../assets/fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Satoshi;
  src: url("../assets/fonts/satoshi-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Gambetta;
  src: url("../assets/fonts/gambetta-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Gambetta;
  src: url("../assets/fonts/gambetta-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Grounds are warm neutrals, never tinted. An earlier palette ran green
   (bg #181b18, surface #252b25, accent #b6d39f) and cast that green over every
   artwork on the site — the one thing a gallery ground must not do. Hue now
   lives only in --accent, which never sits behind a work. */
:root {
  --bg: #f5f3ed;
  --text: #232120;
  --muted: #5d5952;
  --line: #d2cec4;
  --surface: #ebe8e0;
  --accent: #8c4a2f;
  --overlay: rgba(14, 12, 10, .58);
  --on-overlay: #f5f3ed;

  --xs: clamp(.8rem, .72rem + .15vw, .85rem);
  --body: clamp(1rem, .94rem + .2vw, 1.125rem);
  --lg: clamp(1.4rem, 1rem + 1.4vw, 2.2rem);
  --md: clamp(1.15rem, 1rem + .5vw, 1.5rem);
  --title: clamp(2.5rem, 1.7rem + 2.8vw, 4.5rem);
  --hero: clamp(3.3rem, 1.1rem + 5.8vw, 7.5rem);

  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s6: 3rem;
  --s8: 4rem;
  --s12: 6rem;
  --gutter: clamp(1.25rem, 4vw, 5rem);
  --maxw: 1700px;
}

[data-theme=dark] {
  --bg: #1b1a18;
  --text: #f0eee8;
  --muted: #a8a49b;
  --line: #3a3733;
  --surface: #242220;
  --accent: #d9a273;
  --overlay: rgba(10, 9, 8, .66);
  --on-overlay: #f0eee8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Satoshi, sans-serif;
  font-size: var(--body);
  line-height: 1.6;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface);
}

figure,
p {
  margin: 0;
}

p + p {
  margin-top: var(--s3);
}

h1,
h2,
h3,
h4 {
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -.045em;
  margin: 0;
}

h2 {
  font-size: var(--title);
}

/* Inner pages carry the page title as h1 inside .section-head; their
   sub-section h2s are semantically level 2 but read at sub-heading scale. */
.section-head h1 {
  font-size: var(--title);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.05;
  max-width: 24ch;
}

.section > h2,
.curatorial-philosophy > h2,
.exhibition-details > h2,
.curator-content > h2,
.about-vibrez > h2,
.contact-info > h2,
.contact-form-section > h2,
.post-content > h2,
.newsletter > h2 {
  font-size: var(--lg);
  letter-spacing: -.03em;
}

h3 {
  font-size: var(--lg);
  letter-spacing: -.03em;
}

/* Card and item titles are level-3 headings but read at --md. */
.philosophy-item h3,
.feature-item h3,
.collab-item h3,
.education-item h3,
.timeline-content h3,
.category-content h3 {
  font-size: var(--md);
  letter-spacing: -.02em;
}

/* a sub-section that uses the .section-head pattern keeps sub-heading scale */
.artists-section .section-head h2 {
  font-size: var(--lg);
  letter-spacing: -.03em;
}

h4 {
  font-size: var(--md);
  letter-spacing: -.02em;
}

small,
.eyebrow,
.number,
figcaption,
.descriptor {
  font-size: var(--xs);
}

small,
figcaption {
  color: var(--muted);
}

figcaption {
  margin-top: var(--s2);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-bottom: var(--s3);
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -999px;
  z-index: 10;
  background: var(--bg);
  padding: var(--s2);
}

.skip:focus {
  left: 1rem;
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--gutter);
  border-bottom: 1px solid var(--line);
}

/* The mark is the delivered KB monogram (build/build-logo.py traces it from
   assets/_originals/kblogo/logoname.png). The wordmark beside it is live Satoshi rather
   than the supplied PNG: the delivered wordmark is simply spaced capitals, and
   as text it stays sharp, selectable and free. Weight and tracking follow the
   brand asset — medium and open, not the heavy condensed setting used before. */
.brand {
  display: flex;
  align-items: center;
  gap: .6em;
  font-size: var(--md);
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .16em;
  line-height: 1;
  color: var(--text);
}

/* The monogram rides in as a mask rather than inline SVG or an <img>: fetched
   and cached once for the whole site, and it still takes its colour from the
   text, so it inverts with the theme without a second file. */
.brand .mark {
  flex: none;
  height: 1.5em;
  aspect-ratio: 1365 / 774;
  background: currentColor;
  -webkit-mask: url("../assets/kb-monogram.svg") center / contain no-repeat;
  mask: url("../assets/kb-monogram.svg") center / contain no-repeat;
}

/* The monogram is a lot of ink at small sizes; the wordmark carries the name,
   so on a narrow header the mark stands alone. */
@media (max-width: 420px) {
  header .brand .wordmark {
    display: none;
  }

  header .brand .mark {
    height: 2em;
  }
}

footer .brand {
  margin-bottom: var(--s3);
}

nav {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

nav a {
  font-size: var(--xs);
  text-decoration: none;
  padding-block: var(--s2);
  white-space: nowrap;
}

/* current page marker */
nav a[aria-current=page],
.dropdown[data-current=true] > .dropdown-toggle {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  background: none;
  border: 0;
  width: auto;
  height: auto;
  padding: var(--s2) 0;
  margin: 0;
  font: inherit;
  font-size: var(--xs);
  color: inherit;
  cursor: pointer;
}

.dropdown-toggle::after {
  content: "▾";
  font-size: .9em;
  transition: transform .2s ease;
}

.dropdown-toggle[aria-expanded=true]::after {
  transform: rotate(180deg);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 15rem;
  margin-top: var(--s1);
  padding: var(--s1) 0;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.dropdown-content[hidden] {
  display: none;
}

.dropdown-content a {
  display: block;
  padding: var(--s2) var(--s3);
  text-decoration: none;
  font-size: var(--xs);
}

.dropdown-content a:hover {
  background: var(--surface);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s1);
  flex: none;
}

#theme {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

#nav-toggle {
  display: none;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.section {
  padding: var(--s12) var(--gutter);
  max-width: var(--maxw);
  margin-inline: auto;
}

/* a .section nested inside a .section must not re-apply the page gutter */
.section .section {
  padding-inline: 0;
  max-width: none;
  margin-inline: 0;
}

.section .section:last-child {
  padding-bottom: 0;
}

.section-head {
  margin-bottom: var(--s8);
}

/* A section whose whole content is a heading and a paragraph or two was laid
   out full width, which left the right half of a 1440px screen empty beside a
   45-character measure. Splitting it puts the label and heading in a narrow
   column and the prose beside them — the void becomes a margin. */
@media (min-width: 1000px) {
  .section.split {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: var(--s6) var(--s8);
    align-items: start;
  }

  .section.split > .section-head {
    margin-bottom: 0;
  }

  .section.split > :not(.section-head) {
    grid-column: 2;
  }

  /* A sub-section leads with a bare h2 instead of a .section-head block. That
     heading is the left column — without this it joined the body text in
     column two and left the left half of the screen empty. */
  .section.split > h2 {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }
}

.section.split .prose > :first-child {
  margin-top: 0;
}

.section-head p {
  margin-bottom: var(--s3);
}

.section-head p:last-child {
  margin-bottom: 0;
}

.section-head h2,
.section-head h3 {
  max-width: 24ch;
}

.prose {
  max-width: 60ch;
}

.about .prose {
  max-width: 70ch;
}

/* shared intro paragraph block used by every inner page */
.collection-intro,
.exhibitions-intro,
.exhibition-intro,
.blog-intro,
.contact-intro {
  max-width: 68ch;
  font-size: var(--md);
  line-height: 1.45;
  letter-spacing: -.015em;
  margin-bottom: var(--s8);
}

/* --------------------------------------------------------------------------
   Home — hero, ribbon, featured, collection
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  padding: var(--s6) var(--gutter) var(--s4);
  gap: var(--s8);
  max-width: var(--maxw);
  margin: auto;
}

.hero-copy {
  padding-top: var(--s4);
}

h1 {
  font-size: var(--hero);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .96;
}

h1 span {
  font-weight: 400;
  font-family: Gambetta, serif;
  letter-spacing: -.07em;
  font-size: .9em;
}

.lead {
  font-size: var(--lg);
  line-height: 1.3;
  letter-spacing: -.025em;
  margin-top: var(--s4);
}

.intro {
  max-width: 35ch;
  color: var(--muted);
  margin-top: var(--s3);
}

.cta {
  display: inline-block;
  margin-top: var(--s4);
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
  padding: var(--s2) var(--s3);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* The hero work is never cropped. It was object-fit: cover against a fixed
   max-height, which sliced the edges off a portrait-format piece. */
.hero-art img {
  max-height: 76vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

.hero-art figcaption {
  margin-top: var(--s2);
  font-size: var(--xs);
  color: var(--muted);
}

/* Exhibition-led hero: the show carries the page, so the title block is the
   exhibition's and Kristina's name sits in the masthead where it belongs. */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  margin-top: var(--s4);
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.hero-meta strong {
  font-weight: 500;
  color: var(--text);
}

.ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s6);
  padding: var(--s6) var(--gutter);
  flex-wrap: wrap;
  background: var(--surface);
}

.ribbon span {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: var(--xs);
  white-space: nowrap;
}

.featured,
.collections {
  background: var(--surface);
}

.exhibition-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}

.exhibition-info h3 {
  margin-bottom: var(--s3);
}

.event-dates {
  color: var(--muted);
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: var(--s2);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s6);
  margin-top: var(--s8);
}

.collection-item {
  display: flex;
  flex-direction: column;
}

.collection-item figure,
.collection-item > img {
  overflow: hidden;
}

.collection-item img {
  transition: transform .5s ease;
}

.collection-item:hover img {
  transform: scale(1.02);
}

/* captions are always visible — they were hover-only and invisible on touch */
.collection-info {
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  margin-top: var(--s3);
}

.collection-info h3 {
  font-size: var(--md);
  margin-bottom: var(--s1);
}

.collection-info p {
  color: var(--muted);
  font-size: var(--xs);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-content {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s8);
  align-items: start;
  margin-bottom: var(--s12);
}

.about-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-text {
  font-size: var(--md);
  line-height: 1.5;
  letter-spacing: -.015em;
  max-width: 60ch;
}

.curatorial-philosophy {
  padding-top: var(--s8);
  border-top: 1px solid var(--line);
}

.curatorial-philosophy > p {
  max-width: 68ch;
  margin-top: var(--s3);
}

.philosophy-points,
.philosophy-features,
.collab-points,
.education-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s6);
  margin-top: var(--s8);
}

.philosophy-item,
.feature-item,
.collab-item,
.education-item {
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}

.philosophy-item h3,
.feature-item h3,
.collab-item h3,
.education-item h3 {
  margin-bottom: var(--s2);
}

.philosophy-item p,
.feature-item p,
.collab-item p,
.education-item p {
  color: var(--muted);
}

.education-item p + p {
  margin-top: var(--s1);
}

/* timeline */
.timeline {
  margin-top: var(--s6);
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 4fr);
  gap: var(--s4);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  padding-top: .35em;
}

.timeline-content h3 {
  margin-bottom: var(--s2);
}

.timeline-content p {
  color: var(--muted);
  max-width: 60ch;
}

/* Placeholder for a slot whose real photograph has not been supplied yet.
   Deliberately honest: better an empty frame than a misattributed artwork. */
.image-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .13em;
  text-align: center;
  padding: var(--s3);
}

.about-image .image-pending,
.artist-image .image-pending {
  aspect-ratio: 4 / 5;
}

.artwork-image .image-pending {
  aspect-ratio: 3 / 2;
}

/* --------------------------------------------------------------------------
   Collection
   -------------------------------------------------------------------------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s6);
  margin-top: var(--s6);
}

.category-item figure {
  overflow: hidden;
}

.category-image img {
  transition: transform .5s ease;
}

.category-item:hover .category-image img {
  transform: scale(1.04);
}

.category-content {
  padding-top: var(--s3);
  margin-top: var(--s3);
  border-top: 1px solid var(--line);
}

.category-content h3 {
  margin-bottom: var(--s2);
}

.category-content p {
  color: var(--muted);
  font-size: var(--xs);
  line-height: 1.6;
}

.artwork-feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s8);
  align-items: center;
}

.artwork-image img {
  width: 100%;
}

.artwork-info h3 {
  font-size: var(--lg);
  margin-bottom: var(--s2);
}

.artwork-info p:first-of-type {
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.collection-philosophy > p {
  max-width: 68ch;
  margin-top: var(--s3);
}

/* --------------------------------------------------------------------------
   Exhibitions
   -------------------------------------------------------------------------- */

.exhibition-banner {
  position: relative;
  margin-bottom: var(--s8);
}

.exhibition-banner img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s6) var(--s4) var(--s4);
  background: linear-gradient(to top, var(--overlay), transparent);
  color: var(--on-overlay);
}

.banner-overlay p {
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-bottom: var(--s2);
}

.banner-overlay h2,
.banner-overlay h3,
.banner-overlay .banner-title {
  color: var(--on-overlay);
  max-width: 20ch;
  font-size: var(--title);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.exhibition-details > p {
  max-width: 68ch;
}

.exhibition-meta,
.visit-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s6);
  margin-top: var(--s8);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}

.exhibition-meta .meta-label,
.visit-info .meta-label {
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted);
  margin-bottom: var(--s2);
  font-weight: 500;
}

.exhibition-meta p,
.visit-info p {
  font-size: var(--md);
  letter-spacing: -.015em;
}

/* artist cards */
/* Capped at three columns. auto-fit gave four at desktop width, which left the
   fifth artist stranded alone on a second row; 3 + 2 reads as a deliberate
   arrangement rather than a wrap. */
.artist-grid,
.exhibition-artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--s8) var(--s6);
  margin-top: var(--s6);
}

@media (min-width: 1000px) {
  .artist-grid,
  .exhibition-artists-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.artist-card {
  display: flex;
  flex-direction: column;
}

/* Index grids sit the works on a shared baseline in a fixed-height band.
   Each artwork keeps its own proportions — nothing is cropped — but the
   captions line up across the row instead of stepping wherever a portrait
   format happened to end. The detail pages below show the works full width. */
.artist-image {
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(200px, 24vw, 330px);
}

.artist-image picture {
  display: contents;
}

.artist-image img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  background: none;
}

/* Artworks are shown whole and at their own proportions. They used to be
   letterboxed into a fixed 4/5 box on a grey panel, which left a small image
   marooned in dead space; the intrinsic width/height attributes now set the
   ratio, so a wide relief and a tall painting each get the shape they are. */
.artist-image img {
  transition: transform .5s ease;
}

.artist-card:hover .artist-image img {
  transform: scale(1.02);
}

.artist-image figcaption {
  margin-top: var(--s2);
  font-size: var(--xs);
  color: var(--muted);
  line-height: 1.5;
}

.artist-info {
  padding-top: var(--s3);
  margin-top: var(--s3);
  border-top: 1px solid var(--line);
}

.artist-info h3 {
  font-size: var(--lg);
  margin-bottom: var(--s1);
}

/* Derived from the works data, never typed by hand — see build/artists.json.
   Satoshi, not Kalam: pricing has to be unambiguous. */
.artist-pricing {
  font-size: var(--xs);
  letter-spacing: .02em;
  color: var(--text);
  margin-bottom: var(--s2);
}

.artist-info p:first-of-type {
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: var(--s3);
}

.artist-info p + p {
  margin-top: var(--s2);
}

.artist-info p:not(:first-of-type) {
  color: var(--muted);
  font-size: var(--xs);
  line-height: 1.65;
}

/* past exhibition list */
.exhibition-list {
  margin-top: var(--s6);
  border-top: 1px solid var(--line);
}

.exhibition-item {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--s6);
  align-items: center;
  padding-block: var(--s6);
  border-bottom: 1px solid var(--line);
}

.exhibition-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.exhibition-content h3 {
  font-size: var(--lg);
  margin-bottom: var(--s2);
}

.exhibition-content p {
  color: var(--muted);
  max-width: 55ch;
}

.upcoming-exhibitions > p,
.visit-section > p,
.curator-content > p,
.editorial-section > p {
  max-width: 68ch;
  margin-top: var(--s3);
  color: var(--muted);
}

.curator-section {
  background: var(--surface);
  padding-inline: var(--gutter);
  margin-top: var(--s12);
}

.curator-content h2 {
  margin-bottom: var(--s2);
}

.curator-content > p {
  color: var(--text);
  font-size: var(--md);
  line-height: 1.5;
  letter-spacing: -.015em;
}

.exhibition-page .section-head h1 span {
  font-family: Gambetta, serif;
  font-weight: 400;
  letter-spacing: -.04em;
}

.exhibition-page .section-head .lead {
  color: var(--muted);
  max-width: 24ch;
}

.about-vibrez {
  border-top: 1px solid var(--line);
  padding-top: var(--s8);
}

.about-vibrez h2 {
  margin-bottom: var(--s3);
}

.about-vibrez p {
  max-width: 68ch;
  color: var(--muted);
}

.editorial-section {
  border-top: 1px solid var(--line);
  padding-top: var(--s6);
}

.editorial-section > p {
  font-size: var(--xs);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

.blog-posts {
  border-top: 1px solid var(--line);
}

.blog-post {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s6);
  align-items: center;
  padding-block: var(--s8);
  border-bottom: 1px solid var(--line);
}

.post-image {
  overflow: hidden;
}

.post-image img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .5s ease;
}

.blog-post:hover .post-image img {
  transform: scale(1.04);
}

.post-content h2 {
  margin-bottom: var(--s2);
}

.post-meta {
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: var(--s3);
}

.post-content > p {
  max-width: 58ch;
  color: var(--muted);
}

.newsletter {
  background: var(--surface);
  padding: var(--s8) var(--gutter);
  margin-top: var(--s8);
}

.newsletter h2 {
  margin-bottom: var(--s2);
}

.newsletter > p {
  color: var(--muted);
  max-width: 55ch;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: flex-end;
  margin-top: var(--s4);
  max-width: 34rem;
}

.newsletter-form input {
  flex: 1 1 16rem;
}

.newsletter-form .cta {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

input,
textarea {
  width: 100%;
  font: inherit;
  font-size: var(--body);
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: var(--s2) 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
textarea:focus {
  border-bottom-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-group {
  margin-bottom: var(--s4);
}

.form-group label {
  display: block;
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted);
  margin-bottom: var(--s1);
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: var(--s12);
  align-items: start;
}

.contact-info h2,
.contact-form-section h2 {
  margin-bottom: var(--s6);
}

.contact-details {
  display: grid;
  gap: var(--s4);
}

.detail-item {
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}

.detail-item h3 {
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: var(--s1);
}

.detail-item p + p {
  margin-top: var(--s1);
}

.contact-form .cta {
  margin-top: var(--s2);
}

.form-note {
  font-size: var(--xs);
  color: var(--muted);
  margin-top: var(--s3);
}

.collaboration {
  border-top: 1px solid var(--line);
  margin-top: var(--s12);
  padding-top: var(--s8);
}

.collaboration > p {
  max-width: 68ch;
  margin-top: var(--s3);
}


/* --------------------------------------------------------------------------
   Artist pages
   -------------------------------------------------------------------------- */

/* Gambetta italic carries the curatorial voice — the exhibition strapline and
   any note Kristina adds to a work. Never prices, dimensions or editions:
   those are the one place on the page where a misread costs money, so they
   stay in Satoshi.

   This was Kalam, a handwriting face pulled from Google Fonts for these two
   rules alone. It cost a whole extra origin on every page and read as informal
   next to the works; the serif we already load does the job with more poise. */
.strapline,
.curator-note {
  font-family: Gambetta, Georgia, serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
}

.strapline {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.4;
  color: var(--accent);
  margin-top: var(--s3);
  max-width: 24ch;
}

.curator-note {
  font-size: 1.15em;
  line-height: 1.55;
  color: var(--text);
  max-width: 40ch;
  margin-top: var(--s3);
  padding-left: var(--s3);
  border-left: 2px solid var(--accent);
}

.breadcrumb {
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: var(--s6);
}

.breadcrumb a {
  text-decoration: none;
}

.artist-page .section-head .lead {
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-top: var(--s3);
}

.artist-bio {
  max-width: 68ch;
  font-size: var(--md);
  line-height: 1.5;
  letter-spacing: -.015em;
}

.works-section {
  border-top: 1px solid var(--line);
  margin-top: var(--s12);
}

.works-pending {
  max-width: 60ch;
  margin-top: var(--s3);
  padding: var(--s3);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--xs);
  line-height: 1.6;
}

.work-list {
  margin-top: var(--s8);
  border-top: 1px solid var(--line);
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s8);
  align-items: start;
  padding-block: var(--s8);
  border-bottom: 1px solid var(--line);
}

/* works are shown whole, at their own proportions — see .artist-image img */
.work-media img {
  width: 100%;
}

.work-details h3 {
  font-size: var(--lg);
  margin-bottom: var(--s3);
  max-width: 28ch;
}

.work-year {
  font-weight: 400;
  color: var(--muted);
}

.work-details p {
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.6;
}

.work-details p + p {
  margin-top: var(--s2);
}

.work-ref {
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.work-note {
  padding-left: var(--s3);
  border-left: 2px solid var(--accent);
  font-size: var(--xs);
}

/* Further states of a time-based work, under the primary view. Three of these
   pieces are films: one frame describes them poorly, so Transforming Vanitas
   shows the frog whole, reduced to bone, and the full four-state sequence. */
.work-states {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--s2);
  margin-top: var(--s2);
}

.work-states .zoom-trigger {
  cursor: zoom-in;
}

.work-state img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: .82;
  transition: opacity .3s ease;
}

.work-states .zoom-trigger:hover .work-state img,
.work-states .zoom-trigger:focus-visible .work-state img {
  opacity: 1;
}

/* Where a number would sit on a commercial page, there is a conversation. */
.work-enquire {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.work-enquire a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.work-enquire a:hover {
  border-color: var(--accent);
}

/* An honest gap in the catalogue record, marked as one. */
.work-pending {
  font-size: var(--xs);
  color: var(--muted);
  font-style: italic;
}

.work-series {
  margin-top: var(--s2);
  border-top: 1px solid var(--line);
  padding-top: var(--s2);
}

.work-series summary {
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  cursor: pointer;
  padding-block: var(--s1);
}

.work-series summary:hover {
  color: var(--text);
}

.work-series p {
  margin-top: var(--s2);
  font-size: var(--xs);
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}

.work-price {
  margin-top: var(--s3);
  color: var(--text);
  font-size: var(--md);
  letter-spacing: -.015em;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer {
  background: var(--text);
  color: var(--bg);
  padding: var(--s6) var(--gutter);
  margin-top: var(--s12);
  /* The footer inverts the page, so the page's --muted lands at ~2:1 here.
     These are the inverted equivalents, measured against each footer ground. */
  --muted: #aaa9a2;
}

[data-theme=dark] footer {
  --muted: #5b5f56;
}

.footer-content {
  max-width: var(--maxw);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: start;
}

footer .brand {
  color: var(--bg);
  font-size: var(--lg);
  font-weight: 900;
  text-decoration: none;
  margin-bottom: var(--s3);
}

.footer-content p {
  max-width: 40ch;
  color: var(--muted);
}

footer a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  font-size: var(--xs);
}

.social-links a {
  color: var(--bg);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.footer-bottom {
  max-width: var(--maxw);
  margin: auto;
  padding-top: var(--s6);
  border-top: 1px solid var(--line);
  margin-top: var(--s6);
  color: var(--muted);
  font-size: var(--xs);
}

/* --------------------------------------------------------------------------
   Lightbox

   Now that the artwork files are real resolution rather than PDF thumbnails,
   detail is worth showing. Enhancement only: main.js adds .zoomable and the
   button wrapper, so with JavaScript off every work is still a plain image.
   -------------------------------------------------------------------------- */

.zoom-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  color: inherit;
  font: inherit;
}

/* display lives on [open] only. A bare `display: flex` on the dialog beats the
   user-agent's `display: none` for a closed one, which painted an empty
   full-screen overlay over every artist page. */
.lightbox[open] {
  display: flex;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  padding: clamp(1rem, 4vw, 3rem);
  border: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  background: var(--bg);
  color: var(--text);
}

.lightbox::backdrop {
  background: var(--overlay);
}

.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: none;
}

.lightbox figcaption {
  font-size: var(--xs);
  color: var(--muted);
  text-align: center;
  max-width: 70ch;
}

.lightbox-close {
  position: absolute;
  top: clamp(.5rem, 2vw, 1.5rem);
  right: clamp(.5rem, 2vw, 1.5rem);
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: var(--body);
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero {
    gap: var(--s4);
  }

  .exhibition-preview,
  .about-content,
  .artwork-feature,
  .blog-post,
  .exhibition-item,
  .work,
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }

  .contact-content {
    gap: var(--s8);
  }
}

@media (max-width: 760px) {
  header {
    flex-wrap: wrap;
    gap: var(--s2);
  }

  /* keep the wordmark and the two controls on one row at phone width.
     footer .brand is listed too: it outranks a bare .brand selector, so
     without it the footer kept --lg and the wordmark rendered at two
     different sizes on the same page. */
  .brand,
  footer .brand {
    font-size: var(--md);
  }

  .brand svg {
    width: 26px;
    height: 26px;
  }

  #nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-size: var(--xs);
    text-transform: uppercase;
    letter-spacing: .1em;
    cursor: pointer;
  }

  header nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: var(--s2);
    border-top: 1px solid var(--line);
  }

  header nav[hidden] {
    display: none;
  }

  nav a,
  .dropdown-toggle {
    display: block;
    width: 100%;
    padding-block: var(--s2);
    font-size: var(--body);
    text-align: left; /* buttons centre their text by default */
  }

  .dropdown-content {
    position: static;
    border: 0;
    box-shadow: none;
    background: var(--surface);
    margin: 0 0 var(--s2);
    min-width: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: var(--s3);
  }

  .hero-copy {
    padding-top: var(--s2);
  }

  .hero-art img {
    max-height: 60vh;
  }

  .ribbon {
    gap: var(--s2) var(--s4);
  }

  .section {
    padding-block: var(--s8);
  }

  .section-head {
    margin-bottom: var(--s6);
  }

  .section-head h1,
  .section-head h2,
  .section-head h3 {
    max-width: 14ch;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }

  .philosophy-points,
  .philosophy-features,
  .collab-points,
  .education-list,
  .category-grid,
  .artist-grid,
  .exhibition-artists-grid,
  .collection-grid {
    gap: var(--s6);
  }

  .banner-overlay {
    padding: var(--s4) var(--s3) var(--s3);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }

  /* Four links laid in a row overflowed a 390px screen by 37px and gave the
     whole site a horizontal scrollbar. They wrap. */
  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--s2) var(--s4);
  }

  /* Inline links sat at 15–19px tall — below the 24px WCAG 2.2 minimum and
     well under a comfortable thumb. Grow the hit area, not the type. */
  .social-links a,
  .breadcrumb a,
  .detail-item a,
  .form-note a,
  .footer-content a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   Collection & contact
   -------------------------------------------------------------------------- */

/* The JKB Collection is not reproduced publicly, so this page carries no
   images at all. Rather than fake it with empty frames — which is what the
   previous build did, twice, at full viewport height — the areas of emphasis
   are set as a typographic list and the page is the stronger for it. */
.area-list {
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s4);
  border-top: 1px solid var(--line);
}

.area-list li {
  padding-top: var(--s4);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s4);
}

.area-list li:last-child {
  border-bottom: 0;
}

.area-list h3 {
  font-size: var(--md);
  letter-spacing: -.02em;
  margin-bottom: var(--s1);
}

.area-list p {
  color: var(--muted);
  max-width: 62ch;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s4);
  margin-top: var(--s4);
}

.detail-item .meta-label {
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted);
  margin-bottom: var(--s1);
}

.field {
  display: grid;
  gap: var(--s1);
  margin-top: var(--s3);
  max-width: 44rem;
}

.field label {
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: var(--s2);
  border-radius: 0;
}

.field textarea {
  resize: vertical;
}

/* The upcoming show is the only exhibition, so it gets the whole width rather
   than sitting in a list of one. */
.featured-show {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-top: 1px solid var(--line);
  align-items: start;
}

.featured-show .exhibition-image img {
  aspect-ratio: auto;
  object-fit: contain;
}

.featured-show .exhibition-content .eyebrow {
  margin-bottom: var(--s2);
}

.featured-show .exhibition-content h3 {
  font-size: var(--title);
  letter-spacing: -.045em;
  margin-bottom: var(--s2);
}

.featured-show .exhibition-content h3 a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .featured-show {
    grid-template-columns: 1fr;
  }
}

/* A work whose only file is a low-resolution extract is never scaled past its
   own pixels. See the is-low-res note in build/chrome.py. */
picture.is-low-res img {
  max-width: var(--intrinsic);
  margin-inline: auto;
}

/* The About portrait sits under the heading in the left column, so the
   biography keeps its own measure beside it. Absent until the photograph is
   supplied — see has_image() in build/chrome.py. */
.portrait img {
  width: 100%;
}

.portrait figcaption {
  margin-top: var(--s2);
}

@media (min-width: 1000px) {
  .section.split.about-section > .portrait {
    grid-column: 1;
    grid-row: 2;
    margin-top: var(--s6);
  }

  /* The biography spans both rows, so row 1 is only as tall as the heading
     and the portrait sits directly beneath it rather than below the text. */
  .section.split.about-section > .portrait + .about-text {
    grid-row: 1 / span 2;
  }
}

@media (max-width: 999px) {
  .portrait {
    margin-bottom: var(--s6);
    max-width: 26rem;
  }
}

/* --------------------------------------------------------------------------
   Enquiry form
   -------------------------------------------------------------------------- */

/* Honeypot. Off-screen rather than display:none — some bots skip hidden
   fields, and the wrapper is aria-hidden so it never reaches a screen reader. */
.field-gotcha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.enquiry-form button[type="submit"] {
  margin-top: var(--s4);
}

.enquiry-form button[disabled] {
  opacity: .55;
  cursor: progress;
}

.form-status:empty {
  display: none;
}

.form-status {
  margin-top: var(--s3);
  padding: var(--s2) var(--s3);
  border-left: 2px solid var(--line);
  font-size: var(--xs);
}

.form-status.is-sent {
  border-color: var(--accent);
  color: var(--text);
}

.form-status.is-error {
  border-color: var(--accent);
  color: var(--text);
}

.form-note {
  margin-top: var(--s3);
  font-size: var(--xs);
  color: var(--muted);
}
