/*
  PANDARAMA — site styles

   1. Fonts                 7. Header               13. Footer
   2. Colours & tokens      8. Opening image        14. Viewer
   3. Base                  9. About                15. Slideshow
   4. Type                 10. Work rows & cards    16. Artwork pages
   5. Page sections        11. Exhibitions          17. 404 page
   6. Buttons              12. Contact

  Every pigment is sampled from the paintings; the interface borrows them in small
  doses so the artwork is always the loudest thing on the page. Artwork and cards are
  square-cornered; everything you can click is fully round.
*/

/* ——— 1. Fonts (served from /fonts, SIL Open Font License) ——— */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  font-stretch: 75% 125%;
  src: url('/fonts/fredoka-latin-wdth-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  font-stretch: 75% 125%;
  src: url('/fonts/fredoka-latin-ext-wdth-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/karla-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/karla-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Karla';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/karla-latin-wght-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Karla';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/karla-latin-ext-wght-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ——— 2. Colours & tokens ——— */
:root {
  --font-display: 'Fredoka', 'Varela Round', 'Helvetica Neue', Helvetica, sans-serif;
  --font-body: 'Karla', 'Helvetica Neue', Helvetica, sans-serif;

  /* Ink: near-black with a green-blue cast. Never pure #000. */
  --ink-900: #14181a;
  --ink-800: #22282b;
  --ink-700: #333a3e;
  --ink-600: #4c5459;
  --ink-500: #6b7378;

  /* Pigments */
  --pigment-marigold: #f2a012;
  --pigment-marigold-deep: #c77405;
  --pigment-magenta: #c7186a;
  --pigment-magenta-deep: #8e0f4a;
  --pigment-rose: #e8788a;
  --pigment-crimson: #c8102e;
  --pigment-violet: #6e5bd0;
  --pigment-cobalt: #1b49c4;
  --pigment-mint: #5fe3c2;
  --pigment-teal: #0e7c70;
  --pigment-teal-deep: #0b4a45;
  --pigment-plum: #4a3560;

  /* The page ground: "mist". Other grounds are listed at the end of this section. */
  --canvas-050: #dee5e9;
  --canvas-100: #d3dce1;
  --canvas-200: #c5d0d6;
  --surface-page: #d3dce1;
  --surface-card: #dee5e9;
  --surface-raised: #dee5e9;
  --surface-sunken: #c5d0d6;
  --text-strong: #14181a;
  --text-body: #1f2427;
  --text-muted: #2e3438;
  --text-faint: #3c4347;
  --line-hairline: rgba(20, 24, 26, 0.22);
  --line-strong: rgba(20, 24, 26, 0.32);
  --line-ink: var(--ink-900);
  --tint-a: #0b4a45; /* colour of the small "Series" label, deep teal */
  --tint-b: #4a3560; /* plum */

  --text-on-dark-muted: #a8b0ae;
  --text-on-accent: var(--ink-900);
  --text-link: var(--pigment-magenta);
  --text-link-hover: var(--pigment-magenta-deep);
  --action-primary: var(--pigment-marigold);
  --action-primary-hover: var(--pigment-marigold-deep);
  --focus-ring: var(--pigment-cobalt);
  --selection-bg: #fbebcb;

  /* Available / Sold / Reserved labels: the pigments, deepened just enough to stay
     readable on the ground (contrast ≥ 4.5:1). Sold is a quiet grey. */
  --status-available: #0c6a5f;
  --status-sold: #576066;
  --status-reserved: #8b5104;
  --status-error: var(--pigment-crimson);

  /* Type scale */
  --size-2xs: 12px;
  --size-xs: 13px;
  --size-sm: 15px;
  --size-md: 17px;
  --size-lg: 19px;
  --size-xl: 22px;
  --size-2xl: clamp(24px, 2.2vw, 30px);
  --size-3xl: clamp(30px, 3.2vw, 42px);
  --size-4xl: clamp(38px, 5vw, 64px);

  /* Spacing & layout */
  --gutter: clamp(20px, 4vw, 56px);
  --page-max: 1440px;
  --section-top: clamp(56px, 7vw, 112px);
  --section-y: clamp(56px, 7vw, 128px);
  --grid-gap: clamp(16px, 2vw, 28px);
  --header-offset: 72px;
  --shadow-float: 0 8px 24px -8px rgba(20, 24, 26, 0.18);

  /* Motion: slow, weighted, never springy */
  --ease-out: cubic-bezier(0.22, 0.7, 0.2, 1);
  --dur-instant: 90ms;
  --dur-fast: 160ms;
  --dur-slow: 420ms;
  --hover-image-scale: 1.035;
  --press-scale: 0.975;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-slow: 0ms;
    --hover-image-scale: 1;
    --press-scale: 1;
  }
}

/* Other page grounds: put data-ground="…" on <html> to use one. */
[data-ground='linen'] { --canvas-050: #fbf7ef; --canvas-100: #f6f1e7; --canvas-200: #ece5d8; --surface-page: #f6f1e7; --surface-card: #fbf7ef; --surface-raised: #fbf7ef; --surface-sunken: #ece5d8; --tint-a: #0e7c70; --tint-b: #6e5bd0; --status-available: #0e7a6e; --status-sold: #6c6d6d; --status-reserved: #9f5d04; }
[data-ground='bone'] { --canvas-050: #efe9dd; --canvas-100: #e6dfd1; --canvas-200: #dbd2c1; --surface-page: #e6dfd1; --surface-card: #efe9dd; --surface-raised: #efe9dd; --surface-sunken: #dbd2c1; --tint-a: #0e7c70; --tint-b: #6e5bd0; --status-available: #0c6e64; --status-sold: #606261; --status-reserved: #8e5304; }
[data-ground='stone'] { --canvas-050: #c4baa9; --canvas-100: #b9ae9c; --canvas-200: #aea290; --surface-page: #b9ae9c; --surface-card: #c4baa9; --surface-raised: #c4baa9; --surface-sunken: #aea290; --tint-a: #0b3b2e; --tint-b: #4a3560; --status-available: #084a42; --status-sold: #404241; --status-reserved: #5f3702; }
[data-ground='sage'] { --canvas-050: #d3dbce; --canvas-100: #c8d1c2; --canvas-200: #bac4b4; --surface-page: #c8d1c2; --surface-card: #d3dbce; --surface-raised: #d3dbce; --surface-sunken: #bac4b4; --tint-a: #0b3b2e; --tint-b: #4a3560; --status-available: #0b6157; --status-sold: #535756; --status-reserved: #7f4a03; }
[data-ground='blush'] { --canvas-050: #f2e3dd; --canvas-100: #ebd7d0; --canvas-200: #e0c9c1; --surface-page: #ebd7d0; --surface-card: #f2e3dd; --surface-raised: #f2e3dd; --surface-sunken: #e0c9c1; --status-available: #0c6a5f; --status-sold: #5f5f5f; --status-reserved: #8b5104; }
[data-ground='lavender'] { --canvas-050: #e4dff0; --canvas-100: #dad4e8; --canvas-200: #cdc6de; --surface-page: #dad4e8; --surface-card: #e4dff0; --surface-raised: #e4dff0; --surface-sunken: #cdc6de; --status-available: #0c675d; --status-sold: #5a5c60; --status-reserved: #864e03; }
[data-ground='clay'] { --canvas-050: #d1b49f; --canvas-100: #c7a68f; --canvas-200: #bb9880; --surface-page: #c7a68f; --surface-card: #d1b49f; --surface-raised: #d1b49f; --surface-sunken: #bb9880; --tint-a: #0b3b2e; --tint-b: #4a3560; --status-available: #084740; --status-sold: #40403f; --status-reserved: #5c3602; }
[data-ground='graphite'] { --surface-page: #4a4744; --surface-card: #55524e; --surface-raised: #55524e; --surface-sunken: #3f3c3a; --text-strong: #fbf7ef; --text-body: #e6e2da; --text-muted: #cfc9bf; --text-faint: #b5afa5; --line-hairline: rgba(251, 247, 239, 0.22); --line-strong: rgba(251, 247, 239, 0.42); --line-ink: #fbf7ef; --text-link: #5fe3c2; --text-link-hover: #8cf0d6; --tint-a: #5fe3c2; --tint-b: #cfc3f2; --status-available: #5fe3c2; --status-sold: #bab7b1; --status-reserved: #f3a928; }
[data-ground='forest'] { --surface-page: #1f2e29; --surface-card: #283a34; --surface-raised: #283a34; --surface-sunken: #192521; --text-strong: #fbf7ef; --text-body: #e6e2da; --text-muted: #cfc9bf; --text-faint: #b5afa5; --line-hairline: rgba(251, 247, 239, 0.22); --line-strong: rgba(251, 247, 239, 0.42); --line-ink: #fbf7ef; --text-link: #5fe3c2; --text-link-hover: #8cf0d6; --tint-a: #5fe3c2; --tint-b: #f3c7cf; --status-available: #5fe3c2; --status-sold: #93938e; --status-reserved: #f2a012; }
[data-ground='plum'] { --surface-page: #2e2436; --surface-card: #392e42; --surface-raised: #392e42; --surface-sunken: #261e2d; --text-strong: #fbf7ef; --text-body: #e6e2da; --text-muted: #cfc9bf; --text-faint: #b5afa5; --line-hairline: rgba(251, 247, 239, 0.22); --line-strong: rgba(251, 247, 239, 0.42); --line-ink: #fbf7ef; --text-link: #5fe3c2; --text-link-hover: #8cf0d6; --tint-a: #5fe3c2; --tint-b: #f3b99d; --status-available: #5fe3c2; --status-sold: #93908f; --status-reserved: #f2a012; }
[data-ground='ink'] { --surface-page: #1c2022; --surface-card: #252a2d; --surface-raised: #252a2d; --surface-sunken: #161a1c; --text-strong: #fbf7ef; --text-body: #e6e2da; --text-muted: #cfc9bf; --text-faint: #b5afa5; --line-hairline: rgba(251, 247, 239, 0.22); --line-strong: rgba(251, 247, 239, 0.42); --line-ink: #fbf7ef; --text-link: #5fe3c2; --text-link-hover: #8cf0d6; --tint-a: #5fe3c2; --tint-b: #cfc3f2; --status-available: #5fe3c2; --status-sold: #898885; --status-reserved: #f2a012; }

/* ——— 3. Base ——— */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--surface-page);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* While the viewer or the slideshow is open the page underneath stays put. */
html:has(dialog[open]) {
  overflow: hidden;
}

/* Arriving from a work's own page: show nothing until the viewer has opened on it. */
.opening-work body {
  background: #2a353b;
}

.opening-work body > :not(dialog) {
  visibility: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--size-md);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-strong);
}

p {
  text-wrap: pretty;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Links carry a permanent 1px underline drawn with a gradient, so it never animates in. */
a {
  color: var(--text-link);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--text-link-hover);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--selection-bg);
  color: var(--ink-900);
}

[hidden] {
  display: none !important;
}

/* Controls that only work with JavaScript stay hidden until it has started. */
.no-js .js-only {
  display: none !important;
}

.icon {
  display: block;
  flex: 0 0 auto;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink-900);
  color: var(--canvas-050);
  background-image: none;
  font-weight: 700;
  font-size: var(--size-sm);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ——— 4. Type ———
   Headings and labels are set in Karla; Fredoka is kept for the PANDARAMA lettering.
   Titles of works are the one italic in the system. */
.pd-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--size-4xl);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.pd-heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--size-3xl);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.pd-subhead {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--size-2xl);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.pd-lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--size-xl);
  line-height: 1.46;
  letter-spacing: -0.01em;
  color: var(--text-body);
}

.pd-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--size-md);
  line-height: 1.58;
  color: var(--text-body);
}

.pd-small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--size-sm);
  line-height: 1.58;
  color: var(--text-body);
}

.pd-caption {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--size-xs);
  line-height: 1.5;
  color: var(--text-muted);
}

.pd-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--size-2xs);
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pd-worktitle {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: var(--size-lg);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

/* ——— 5. Page sections ——— */
.section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--section-top) var(--gutter) 0;
  scroll-margin-top: var(--header-offset);
}

/* Title row with an optional action on the right, closed by a hairline. */
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: clamp(28px, 3vw, 44px);
  border-bottom: 1px solid var(--line-hairline);
}

.section-eyebrow {
  margin-bottom: 20px;
}

.empty-note {
  margin-top: clamp(32px, 4vw, 56px);
  color: var(--text-muted);
}

/* ——— 6. Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-instant) var(--ease-out);
}

.btn:active {
  transform: scale(var(--press-scale));
}

.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--action-primary);
  color: var(--text-on-accent);
}

.btn--primary:hover:not(:disabled) {
  background: var(--action-primary-hover);
  color: var(--text-on-accent);
}

/* "Play slideshow": a quiet slate instead of marigold. */
.btn--slate {
  background: #5c6870;
  color: #ffffff;
}

.btn--slate:hover {
  background: #4a555c;
  color: #ffffff;
}

.btn--outline {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--line-strong);
}

.btn--outline:hover {
  border-color: var(--line-ink);
  color: var(--text-strong);
}

/* Round icon button beside the scrolling rows. */
.round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-hairline);
  background: transparent;
  color: var(--text-strong);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-instant) var(--ease-out);
}

.round-btn:hover {
  background: var(--surface-sunken);
}

.round-btn:active {
  transform: scale(var(--press-scale));
}

/* ——— 7. Header ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface-page) 68%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--line-hairline);
}

.site-header__bar {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* The monogram — a rounded R whose leg is a separate stroke — with the wordmark. */
.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  background-image: none;
  padding-bottom: 0;
}

.logo__mark {
  display: block;
  color: #c7186a;
}

.logo__word {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.logo--header {
  gap: 18px;
}

.logo--header .logo__mark {
  box-sizing: content-box;
  width: 26px;
  height: 26px;
  padding: 5px;
  border: 2px solid #a99be0;
}

.logo--header .logo__word {
  font-size: 19px;
  font-variation-settings: 'wdth' 100;
  letter-spacing: 0.07em;
  color: #44535b;
}

.logo--footer {
  gap: 14px;
}

.logo--footer .logo__mark {
  width: auto;
  height: 44px;
}

.logo--footer .logo__word {
  font-size: 32px;
  font-variation-settings: 'wdth' 125;
  letter-spacing: -0.03em;
  color: var(--canvas-050);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--text-muted);
  background-image: none;
  padding: 0 0 3px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__link:hover {
  color: var(--text-strong);
}

.nav__link[data-active] {
  font-weight: 700;
  color: var(--text-strong);
  border-bottom-color: var(--text-strong);
}

.dropdown {
  position: relative;
}

.dropdown__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  padding-top: 14px;
  min-width: 220px;
}

.dropdown[data-open] .dropdown__panel,
.no-js .dropdown:hover .dropdown__panel,
.no-js .dropdown:focus-within .dropdown__panel {
  display: block;
}

.dropdown__list {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  background: var(--surface-card);
  border: 1px solid var(--line-hairline);
  box-shadow: var(--shadow-float);
}

.dropdown__link {
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--text-muted);
  background-image: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.dropdown__link:hover {
  background-color: var(--surface-sunken);
  color: var(--text-strong);
}

.dropdown__link[data-active] {
  font-weight: 700;
  color: var(--text-strong);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text-strong);
}

.menu-toggle .menu-toggle__close,
.menu-toggle[aria-expanded='true'] .menu-toggle__open {
  display: none;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__close {
  display: block;
}

.mobile-menu {
  max-height: calc(100vh - 73px);
  max-height: calc(100dvh - 73px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--line-hairline);
  background: var(--surface-page);
  padding: 8px var(--gutter) 32px;
  box-shadow: var(--shadow-float);
}

.m-link {
  display: block;
  padding: 14px 0;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  background-image: none;
  border-bottom: 1px solid var(--line-hairline);
}

.m-link--parent {
  padding-bottom: 4px;
  border-bottom: 0;
}

.m-link[data-active] {
  color: var(--text-strong);
}

.m-sub {
  display: flex;
  flex-direction: column;
  padding: 0 0 8px 16px;
  border-bottom: 1px solid var(--line-hairline);
}

.m-sub__link {
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  background-image: none;
}

.m-sub__link[data-active] {
  font-weight: 700;
  color: var(--text-strong);
}

.m-link:hover,
.m-sub__link:hover {
  color: var(--text-strong);
}

@media (max-width: 1139px) {
  .nav {
    display: none;
  }
}

@media (min-width: 1140px) {
  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}

/* ——— 8. Opening image ———
   A painting chosen at random on every visit, slowly cross-fading to another.
   Type sits on a bottom scrim, never on a tinted picture. */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #1e272c;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 50%;
}

.hero__fade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 26, 0) 45%, rgba(20, 24, 26, 0.42) 72%, rgba(20, 24, 26, 0.78) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) var(--gutter);
}

.hero__title {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 100;
  font-weight: 700;
  /* The design's size, shrinking only on the narrowest screens so the word always fits
     (it is about 6.6 times as wide as its font size). */
  font-size: min(clamp(44px, 9vw, 148px), calc((100vw - 40px) / 6.7));
  line-height: 0.94;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
}

.hero__tagline {
  margin-top: 16px;
  max-width: 42ch;
  color: #ffffff;
}

.hero__cta {
  margin-top: clamp(24px, 4vw, 44px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: #ffffff;
  background-image: none;
  font-family: var(--font-body);
  font-size: var(--size-sm);
  letter-spacing: 0.02em;
}

.hero__cta:hover {
  color: #ffffff;
}

.hero__ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.hero__cta:hover .hero__ring {
  background-color: rgba(255, 255, 255, 0.12);
}

/* ——— 9. About ——— */
.about__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 80px);
  align-items: flex-start;
}

.about__text {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 62ch;
}

.about__text p {
  margin-top: 18px;
}

.about__text p:first-of-type {
  margin-top: 28px;
}

.about__figure {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 440px;
}

.about__frame {
  display: block;
  padding: 0;
  border: 1px solid rgba(20, 24, 26, 0.14);
  background: var(--surface-card);
  background-image: none;
  cursor: zoom-in;
}

.about__frame img {
  width: 100%;
  height: auto;
}

.about__caption {
  margin-top: 14px;
}

.about__caption .pd-worktitle {
  font-size: 15px;
}

/* ——— 10. Work rows & cards ——— */
.series {
  padding-top: clamp(40px, 5vw, 80px);
  scroll-margin-top: var(--header-offset);
}

.series__head {
  margin-bottom: clamp(28px, 3vw, 44px);
}

.series__eyebrow {
  margin-bottom: 14px;
}

.series__eyebrow--a {
  color: var(--tint-a);
}

.series__eyebrow--b {
  color: var(--tint-b);
}

.series__description {
  margin-top: 12px;
  max-width: 62ch;
  color: var(--text-muted);
}

.series__empty {
  color: var(--text-muted);
}

/* A row of works, all at the same height so every painting keeps its proportions.
   Each item sets --r (width ÷ height of the picture). */
.row--spaced {
  margin-top: clamp(28px, 3.5vw, 48px);
}

.row__controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}

/* Nothing to scroll: keep the space, hide the arrows. */
.row[data-fits] .row__controls {
  visibility: hidden;
}

.row__track {
  --row-h: clamp(260px, 34vw, 440px);
  display: flex;
  align-items: flex-start;
  gap: var(--grid-gap);
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.row__track::-webkit-scrollbar {
  display: none;
}

.row__item {
  flex: 0 0 auto;
  width: min(calc(var(--row-h) * var(--r)), 86vw);
  scroll-snap-align: start;
}

/* A painting in a square-cornered frame over its gallery label. Nothing crops a painting:
   the frame takes the work's own proportions. On hover the picture creeps up inside the
   frame and the title goes from muted to strong. */
.card {
  display: block;
  color: inherit;
  background-image: none;
  padding: 0;
}

.card:hover {
  color: inherit;
}

.card:focus-visible {
  outline: none;
}

.card__frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--line-hairline);
}

.card:focus-visible .card__frame {
  outline: 2px solid var(--focus-ring);
  outline-offset: -3px;
}

.card__frame picture {
  display: contents;
}

.card__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1);
  transition: transform var(--dur-slow) var(--ease-out);
}

.card:hover .card__frame img,
.card:focus-visible .card__frame img {
  transform: scale(var(--hover-image-scale));
}

.card__caption {
  display: block;
  margin-top: 16px;
}

.card__title {
  display: block;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}

.card:hover .card__title,
.card:focus-visible .card__title {
  color: var(--text-strong);
}

.card__meta {
  display: block;
  margin-top: 4px;
}

/* The status word that closes every caption. */
.badge {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: var(--size-2xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.badge::before {
  content: '';
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge--available {
  color: var(--status-available);
}

.badge--sold {
  color: var(--status-sold);
}

.badge--reserved {
  color: var(--status-reserved);
}

/* ——— 11. Exhibitions ——— */
.exhibitions__title {
  max-width: 20ch;
}

.exhibitions__group {
  margin-top: clamp(40px, 5vw, 72px);
}

.exhibitions__group-title {
  margin-bottom: 20px;
}

.exhibitions__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.show {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding: 22px 0;
  border-top: 1px solid var(--line-hairline);
}

.show__kind {
  flex: 0 0 108px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.show__main {
  flex: 1 1 280px;
  min-width: 0;
}

/* Show names use the work-title size but stay upright: italics are reserved for artworks. */
.show__title {
  font-style: normal;
  font-weight: 500;
}

.show__venue {
  margin-top: 4px;
}

.show__dates {
  flex: 0 0 auto;
  color: var(--text-body);
}

/* ——— 12. Contact ——— */
.contact {
  padding-bottom: var(--section-top);
}

.contact__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 80px);
  align-items: flex-start;
}

.contact__text {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 52ch;
}

.contact__intro {
  margin-top: 24px;
}

.contact__details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__details dt {
  margin-bottom: 8px;
}

.contact__card {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 520px;
  background: var(--surface-card);
  border: 1px solid var(--line-hairline);
  padding: clamp(24px, 3vw, 40px);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 13px 20px;
  font-family: var(--font-body);
  font-size: var(--size-md);
  line-height: 1.4;
  color: var(--text-strong);
  background: var(--surface-raised);
  border: 1px solid var(--line-hairline);
  border-radius: 999px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.input:focus,
.input:focus-visible {
  border-color: var(--line-ink);
  outline: none;
}

.input:user-invalid {
  border-color: var(--status-error);
}

/* A pill on a five-line box reads as a mistake, so the message field is square. */
.input--area {
  border-radius: 0;
  resize: vertical;
}

.select {
  position: relative;
  display: block;
}

.select select {
  appearance: none;
  padding-right: 52px;
  cursor: pointer;
}

.select .icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.contact__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact__error {
  color: var(--status-error);
}

.contact__error a {
  color: inherit;
}

.contact__sent:focus {
  outline: none;
}

.contact__sent-text {
  margin-top: 16px;
}

.contact__again {
  margin-top: 24px;
}

/* ——— 13. Footer: a dark "gallery" place, light type on slate ——— */
.site-footer {
  --text-strong: var(--canvas-050);
  --text-body: #d6d9d7;
  --text-muted: #a8b0ae;
  --text-link: var(--pigment-mint);
  --text-link-hover: #8cf0d6;
  --line-hairline: rgba(251, 247, 239, 0.18);
  background: #2a353b;
  padding: var(--section-y) var(--gutter);
}

.site-footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer__brand {
  min-width: 240px;
}

.site-footer__note {
  margin-top: 20px;
  max-width: 44ch;
  color: var(--text-on-dark-muted);
}

.site-footer__columns {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
}

.site-footer__label {
  margin-bottom: 16px;
}

.site-footer__email {
  color: var(--text-link);
}

.site-footer__email:hover {
  color: var(--text-link-hover);
}

.site-footer__handle {
  margin-top: 8px;
  color: var(--text-on-dark-muted);
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ——— 14. Viewer — always dark ——— */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #2a353b;
  color: #fbf7ef;
}

.viewer::backdrop,
.slideshow::backdrop {
  background: transparent;
}

.viewer:focus,
.slideshow:focus {
  outline: none;
}

.viewer__layout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.viewer__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(56px, 7vw, 76px) clamp(16px, 3vw, 40px) clamp(12px, 2vw, 20px);
  touch-action: none;
}

.viewer__stage picture {
  display: contents;
}

.viewer__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.viewer__img[data-zoomed] {
  cursor: grab;
}

.viewer__img[data-dragging] {
  cursor: grabbing;
}

.viewer__bar {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(20px, 3vw, 44px);
  padding: 14px clamp(16px, 3vw, 40px) clamp(16px, 2vw, 22px);
  border-top: 1px solid rgba(251, 247, 239, 0.18);
}

.viewer__info {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}

.viewer__title {
  font-size: 18px;
  color: #fbf7ef;
}

.viewer__meta {
  color: #a8b0ae;
}

.viewer__status,
.work-page__status {
  color: #5fe3c2;
}

.viewer__status[data-status='sold'],
.work-page__status[data-status='sold'] {
  color: #b8bfbd;
}

.viewer__status[data-status='reserved'],
.work-page__status[data-status='reserved'] {
  color: #f2a012;
}

.viewer__text {
  flex: 1 1 100%;
  max-width: 74ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #a8b0ae;
}

/* A long text is cut to one line; a click reveals all of it. */
.viewer__text[data-truncated] {
  cursor: pointer;
}

.viewer__text[data-expanded] {
  white-space: normal;
}

.viewer__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.viewer__share,
.viewer__steps {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(251, 247, 239, 0.38);
  background: transparent;
  background-image: none;
  color: #fbf7ef;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}

/* Small to look at, with a comfortable area to tap. */
.share::after {
  content: '';
  position: absolute;
  inset: -4px;
}

.share:hover {
  background-color: rgba(251, 247, 239, 0.1);
  color: #fbf7ef;
}

.share--ig {
  font-size: 7px;
  letter-spacing: 0.02em;
}

.share .share__done,
.share[data-done] .share__link {
  display: none;
}

.share[data-done] .share__done {
  display: block;
}

.viewer__divider {
  width: 1px;
  height: 24px;
  margin: 0 4px;
  background: rgba(251, 247, 239, 0.18);
}

.viewer__step,
.tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(251, 247, 239, 0.38);
  background-color: transparent;
  background-image: none;
  color: #fbf7ef;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.viewer__step:hover {
  background-color: rgba(251, 247, 239, 0.1);
  color: #fbf7ef;
}

.viewer__count {
  min-width: 52px;
  text-align: center;
  color: #a8b0ae;
}

.viewer__tools {
  position: absolute;
  top: clamp(12px, 2vw, 20px);
  right: clamp(12px, 2vw, 20px);
  display: flex;
  gap: 10px;
}

.tool {
  background-color: rgba(30, 39, 44, 0.72);
}

.tool:hover {
  background-color: rgba(30, 39, 44, 0.92);
  color: #fbf7ef;
}

[data-fullscreen-toggle] .full__exit,
[data-fullscreen-toggle][data-fullscreen] .full__enter {
  display: none;
}

[data-fullscreen-toggle][data-fullscreen] .full__exit {
  display: block;
}

/* The status word gets the same small dot as on the cards. */
.viewer__status:empty {
  display: none;
}

.viewer__status::before,
.work-page__status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.12em;
}

/* Shown only in the side panel below. */
.viewer__series,
.viewer__details {
  display: none;
}

/* Wide landscape screens (computers, tablets held sideways): the picture on the left, and
   a panel on the right with everything about it — series, title, status, the artist's
   text, medium, size, place and year — then sharing and the arrows. */
@media (orientation: landscape) and (min-width: 1000px) and (min-height: 560px) {
  .viewer__layout {
    flex-direction: row;
  }

  .viewer__stage {
    padding: clamp(28px, 3vw, 48px);
  }

  .viewer__bar {
    flex: 0 0 clamp(330px, 27vw, 420px);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 32px;
    padding: 104px clamp(28px, 2.6vw, 44px) clamp(24px, 3vh, 36px);
    border-top: 0;
    border-left: 1px solid rgba(251, 247, 239, 0.14);
    background: #242e33;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .viewer__info {
    flex: 0 0 auto;
    display: block;
  }

  .viewer__series {
    display: block;
    margin-bottom: 16px;
    line-height: 1.4;
    color: #a8b0ae;
  }

  .viewer__title {
    font-size: clamp(26px, 2.3vw, 36px);
    line-height: 1.15;
    text-wrap: balance;
  }

  .viewer__meta {
    display: none;
  }

  .viewer__status {
    display: block;
    margin-top: 16px;
    font-size: var(--size-2xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
  }

  .viewer__text,
  .viewer__text[data-truncated] {
    margin-top: 28px;
    max-width: none;
    overflow: visible;
    white-space: normal;
    font-size: var(--size-sm);
    line-height: 1.65;
    color: #d6d9d7;
    cursor: auto;
  }

  .viewer__details {
    display: grid;
    gap: 14px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(251, 247, 239, 0.14);
  }

  .viewer__details > div {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 16px;
    align-items: baseline;
  }

  .viewer__details dt {
    font-size: var(--size-2xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a8b0ae;
  }

  .viewer__details dd {
    font-size: var(--size-sm);
    line-height: 1.45;
    color: #fbf7ef;
  }

  .viewer__actions {
    margin-top: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .viewer__divider {
    display: none;
  }
}

/* ——— 15. Slideshow ——— */
.slideshow {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #1e272c;
  color: #fbf7ef;
}

.slideshow__layout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.slideshow__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: clamp(16px, 3vw, 40px);
}

.slideshow__stage picture {
  display: contents;
}

.slideshow__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
}

.slideshow__img[data-active] {
  opacity: 1;
}

.slideshow__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 92px;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
}

.slideshow__capsule {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  max-width: 100%;
  padding: 12px 20px;
  background: #efeafa;
}

.slideshow__title {
  font-size: 16px;
  color: #14181a;
}

.slideshow__meta {
  color: #4c5459;
}

.slideshow__controls {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px clamp(16px, 3vw, 32px) clamp(20px, 3vw, 28px);
}

.ss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(251, 247, 239, 0.38);
  background: transparent;
  color: #fbf7ef;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.ss-btn:hover {
  background-color: rgba(251, 247, 239, 0.1);
}

.ss-btn--play {
  width: 52px;
  height: 52px;
  border-color: transparent;
  background: #f2a012;
  color: #14181a;
}

.ss-btn--play:hover {
  background: #c77405;
}

.ss-btn--play .ss-play,
.ss-btn--play[data-paused] .ss-pause {
  display: none;
}

.ss-btn--play[data-paused] .ss-play {
  display: block;
}

.ss-btn[aria-pressed='true'] {
  background-color: rgba(251, 247, 239, 0.14);
}

.slideshow__count {
  min-width: 56px;
  text-align: center;
  color: #a8b0ae;
}

@media (prefers-reduced-motion: reduce) {
  .slideshow__img {
    transition: none;
  }
}

/* ——— 16. Artwork pages (/works/…/) ———
   Each artwork's own address. Visitors are taken straight to the painting in the viewer
   on the home page; this simple page is what link previews, search engines, AI agents
   and browsers without JavaScript see. */
.work-page {
  background: #2a353b;
  color: #d6d9d7;
}

.work-page__main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px var(--gutter) 72px;
}

.work-page__home {
  color: #fbf7ef;
  background-image: none;
}

.work-page__home .logo__word {
  font-size: 19px;
  font-variation-settings: 'wdth' 100;
  letter-spacing: 0.07em;
  color: #fbf7ef;
}

.work-page__figure {
  margin-top: 36px;
}

.work-page__figure picture {
  display: contents;
}

.work-page__figure img {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
}

.work-page__caption {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}

.work-page__title {
  font-size: 24px;
  color: #fbf7ef;
}

.work-page__meta {
  color: #a8b0ae;
}

.work-page__text {
  margin-top: 16px;
  max-width: 62ch;
  color: #d6d9d7;
}

.work-page__more {
  margin-top: 32px;
}

.work-page a:not(.work-page__home) {
  color: #5fe3c2;
}

/* ——— 17. 404 page ——— */
.not-found {
  max-width: var(--page-max);
  min-height: 72vh;
  margin: 0 auto;
  padding: calc(73px + var(--section-top)) var(--gutter) var(--section-y);
}

.not-found__title {
  margin-top: 20px;
  max-width: 16ch;
}

.not-found__text {
  margin-top: 24px;
  max-width: 52ch;
}

.not-found__cta {
  margin-top: 36px;
}
