/* =========================================================================
   Tracey Exton — Scottish landscape painter
   One stylesheet, recreating the approved homepage comp
   (docs/design/handoff/Home - Studio.dc.html).

   The painting is the only bold element on the page: every canvas is
   contained on a square mount and hung with a soft shadow. Nothing else
   casts a shadow and nothing anywhere has a radius. One thing moves, and
   only on the Save Me! page, where the motion is the argument of the work.
   ========================================================================= */

/* ---------- 1. Fonts ---------- */

/* Variable faces, self-hosted. Provenance and licence: static/fonts/README.md.
   Paths stay relative so ManifestStaticFilesStorage rewrites them on collect. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorantgaramond-normal-latin.c47ff12887a3.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: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorantgaramond-normal-latin-ext.acc46a2a7785.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: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorantgaramond-italic-latin.3e2c4175a96d.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: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorantgaramond-italic-latin-ext.61d59919981f.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: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/archivo-normal-latin.cd56e2ec63d7.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: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/archivo-normal-latin-ext.c5e41aa17045.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. Tokens ---------- */

:root {
  /* Ink and paper are given as channels so any opacity step can be written
     inline as rgb(var(--ink-rgb) / .65) instead of earning its own token. */
  --ink-rgb: 43 41 37;
  --paper-rgb: 251 250 247;

  --paper: rgb(var(--paper-rgb));
  --mount: #f1efe9;
  --ink: rgb(var(--ink-rgb));

  /* One colour for every piece of secondary text. The brief sets three muted
     steps (.68, .6, .55), but they are all spent on 11-12.5px type, where
     anything lighter than .68 falls under 4.5:1 against the cream and the
     tinted band alike. Hierarchy is carried by size, weight, letter-spacing
     and case instead, which is how the small labels read anyway. */
  --text-soft: rgb(var(--ink-rgb) / 0.68);

  --on-dark: rgb(var(--paper-rgb));
  --on-dark-soft: rgb(var(--paper-rgb) / 0.75);
  --on-dark-faint: rgb(var(--paper-rgb) / 0.6);

  --accent: oklch(0.5 0.08 230);

  --rule: 1px solid rgb(var(--ink-rgb) / 0.1);
  --border-secondary: 1px solid rgb(var(--ink-rgb) / 0.35);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --shell-max: 1240px;
  --gutter: 48px;

  /* A section that pads itself caps on the outer measure, so its content box
     is still --shell-max wide; a .shell inside an already-padded section caps
     on --shell-max directly. Mixing the two drifts left edges by a gutter. */
  --shell-outer: calc(var(--shell-max) + 2 * var(--gutter));

  --header-height: 86px;

  --overlay: rgb(var(--ink-rgb) / 0.94);

  --shadow-hung: 0 20px 50px -20px rgb(var(--ink-rgb) / 0.35);
  --shadow-card: drop-shadow(0 10px 14px rgb(var(--ink-rgb) / 0.28));

  /* The one colour the public site has no use for. It appears on the studio
     manager's delete confirmation and nowhere else. */
  --danger: oklch(0.48 0.13 25);
}

/* ---------- 3. Reset and base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Anchored sections must clear the sticky header. */
  scroll-padding-top: var(--header-height);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.75 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

/* A button starts as a blank slate, like every other element here. The site dresses
   links as buttons, so the component classes were written assuming there was nothing
   to undo -- and a real <button> kept the browser's grey box and border underneath.
   Components that want a border or a background still set their own. */
button {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

/* Both list types, because an ordered list is still a list: the numbering carries
   meaning in the markup without the browser's indent and markers being wanted on
   screen. Anything that does want them says so. */
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* ---------- 4. Typography ---------- */

.section__title {
  font: 400 38px/1.15 var(--font-display);
  text-wrap: balance;
}

.section__title--small {
  font-size: 34px;
}

.section__intro {
  margin-top: 12px;
  max-width: 560px;
  font: 400 14.5px/1.7 var(--font-ui);
  color: var(--text-soft);
  text-wrap: pretty;
}

.section__meta {
  font: 400 12.5px var(--font-ui);
  color: var(--text-soft);
}

/* The two labels the brief asks for; both carry real information. */
.eyebrow {
  font: 500 11px var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--on-dark {
  color: var(--on-dark-faint);
}

/* ---------- 5. Layout ---------- */

.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
}

.section {
  padding: 64px var(--gutter);
}

.section--ruled-top {
  border-top: var(--rule);
}

.section--ruled-bottom {
  border-bottom: var(--rule);
}

.section--tinted {
  background: var(--mount);
}

.section--flush {
  padding: 0;
}

/* The studio collection sits deeper on its base than the sections around it,
   so the grid has room to breathe before the tinted band. */
.section--deep {
  padding-bottom: 80px;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.section__head--baseline {
  align-items: baseline;
}

/* ---------- 6. Links and buttons ---------- */

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.78;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  font: 600 13px var(--font-ui);
  padding: 13px 26px;
}

.button--primary {
  background: var(--ink);
  color: var(--paper);
}

.button--secondary {
  padding: 13px 22px;
  border: var(--border-secondary);
}

/* Waiting on the server: the button stays where it is and says so by receding. */
.button.htmx-request {
  opacity: 0.5;
  cursor: progress;
}

.text-link {
  font: 600 13px var(--font-ui);
  color: var(--accent);
  border-bottom: 1px solid currentcolor;
  padding-bottom: 2px;
  white-space: nowrap;
}

.text-link--on-dark {
  display: inline-block;
  align-self: flex-start;
  color: var(--on-dark);
  border-bottom-color: rgb(var(--paper-rgb) / 0.5);
  white-space: normal;
}

.text-link--wrapping {
  white-space: normal;
}

/* ---------- 7. Header and menu ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  padding: 13px 26px;
  background: var(--ink);
  color: var(--paper);
  font: 600 13px var(--font-ui);
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  background: rgb(var(--paper-rgb) / 0.94);
  backdrop-filter: blur(6px);
  border-bottom: var(--rule);
}

.site-header__lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-header__wordmark {
  font: 500 24px/1.1 var(--font-display);
  letter-spacing: 0.02em;
}

.site-header__tagline {
  font: 400 11px/1.2 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.site-nav__list {
  display: flex;
  gap: 26px;
  font: 500 12.5px var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--ink-rgb) / 0.72);
}

.site-nav__link[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid currentcolor;
  padding-bottom: 2px;
}

/* The menu is a <details>, so it opens and closes with no JavaScript;
   CloseMenu adds close-on-tap and Escape on top. */
.menu {
  display: none;
}

.menu__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid rgb(var(--ink-rgb) / 0.3);
  cursor: pointer;
  list-style: none;
}

.menu__toggle::-webkit-details-marker {
  display: none;
}

.menu__bar {
  display: block;
  height: 1.5px;
  background: var(--ink);
}

.menu__list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  background: var(--paper);
  border-bottom: var(--rule);
  font: 500 13px var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--ink-rgb) / 0.8);
}

.menu__link[aria-current="page"] {
  color: var(--ink);
}

/* ---------- 8. Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
  max-width: var(--shell-outer);
  margin: 0 auto;
  padding: 72px var(--gutter);
}

.hero--unillustrated {
  grid-template-columns: 1fr;
}

.hero__title {
  font: 400 54px/1.1 var(--font-display);
  text-wrap: balance;
}

.hero__intro {
  margin-top: 22px;
  max-width: 420px;
  font: 400 15px/1.75 var(--font-ui);
  color: var(--text-soft);
  text-wrap: pretty;
}

.hero__figure {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__image {
  display: block;
  width: 100%;
  /* The width and height attributes reserve the canvas's box while it loads;
     auto keeps them from setting the rendered height. */
  height: auto;
  box-shadow: var(--shadow-hung);
}

.hero__caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: 400 12.5px var(--font-ui);
  color: var(--text-soft);
}

.hero__caption-title {
  font: italic 500 16px var(--font-display);
  color: var(--ink);
}

/* ---------- 9. Painting grid ---------- */

.painting-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
  margin-top: 40px;
}

.painting-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* No canvas is ever cropped: the image is contained on its mount, inset so
   the mount reads as the wall behind it. */
.painting-card__mount {
  display: block;
  position: relative;
  aspect-ratio: 1;
  background: var(--mount);
}

.painting-card__image {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: var(--shadow-card);
}

.painting-card__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.painting-card__line--meta {
  margin-top: -6px;
}

.painting-card__title {
  font: 500 19px var(--font-display);
}

.painting-card__price {
  font: 500 13px var(--font-ui);
  white-space: nowrap;
}

/* A sold canvas stays on the wall; the colour drains rather than the card
   changing shape, so the grid's rhythm survives a sold-out row. */
.painting-card--sold .painting-card__image {
  filter: var(--shadow-card) saturate(0.45);
}

.painting-card__price--status {
  font-weight: 400;
  color: var(--text-soft);
}

.painting-card__meta {
  /* Flex items refuse to shrink past their content without this, so the
     ellipsis below never gets a chance to do its job. */
  min-width: 0;
  font: 400 12px var(--font-ui);
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.painting-card__enquire {
  font: 600 12px var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* The button is a row of the grid, so the six it brings in take its place and
   the next button follows them without anything having to be rebuilt. */
.grid-paging {
  grid-column: 1 / -1;
}

/* ---------- 10. Collections ---------- */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Editorial photographs crop; only paintings are contained. */
.collection-card__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.collection-card__placeholder {
  background: rgb(var(--ink-rgb) / 0.06);
}

.collection-card__name {
  font: 500 20px var(--font-display);
}

.collection-card__description {
  margin-top: -5px;
  font: 400 12.5px var(--font-ui);
  color: var(--text-soft);
}

/* ---------- 11. Save Me! band ---------- */

/* The ink runs to both edges, because the page is a sequence of grounds; the
   content inside it sits on the same measure as every other section, so the
   band reads as a change of ground and not a change of page. */
.band {
  padding: 64px var(--gutter);
  background: var(--ink);
  color: var(--on-dark);
}

.band__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--shell-max);
  margin: 0 auto;
}

.band--unillustrated .band__inner {
  grid-template-columns: 1fr;
}

/* A fixed ratio, so the band's height is the design's and not the source
   photograph's: a portrait installation shot otherwise set this section 989px
   tall. Wider than the square mounts, narrower than the workshops figure
   below, and cropped low to hold the foot of the scroll. */
.band__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 70%;
}

/* Without the photograph the one column is the full measure, which is twice
   a readable line, so the text keeps the intro measure either way. */
.band__text {
  display: flex;
  flex-direction: column;
  max-width: 560px;
}

.band__title {
  margin-top: 14px;
  font: 400 38px/1.15 var(--font-display);
  text-wrap: balance;
}

.band__body {
  margin-top: 18px;
  font: 400 14.5px/1.8 var(--font-ui);
  color: var(--on-dark-soft);
  text-wrap: pretty;
}

.band__body + .text-link {
  margin-top: 24px;
}

/* ---------- 12. Workshops ---------- */

.workshops {
  padding: 80px var(--gutter);
}

.workshops__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--shell-max);
  margin: 0 auto;
}

.workshops__grid--unillustrated {
  grid-template-columns: 1fr;
}

.workshops__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.workshops__title {
  margin-top: 14px;
  font: 400 38px/1.15 var(--font-display);
  text-wrap: balance;
}

.workshops__body {
  margin-top: 18px;
  font: 400 14.5px/1.8 var(--font-ui);
  color: var(--text-soft);
  text-wrap: pretty;
}

.workshops .button-row {
  margin-top: 24px;
}

/* ---------- 13. Exhibitions and news ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 26px;
}

/* The rule above each entry is the section boundary doing the work a border
   around a card would otherwise do. */
.news-card {
  display: block;
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}

.news-card__date {
  display: block;
  font: 400 11.5px var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.news-card__title {
  display: block;
  margin-top: 8px;
  font: 500 21px/1.3 var(--font-display);
}

/* ---------- 14. About and contact ---------- */

/* About and Contact are a pair, so a vertical rule splits them rather than
   two separate sections stacked. */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pair__column {
  padding: 64px var(--gutter);
}

.pair__column--ruled {
  border-right: var(--rule);
}

.pair__body {
  margin-top: 16px;
  max-width: 460px;
  font: 400 14.5px/1.8 var(--font-ui);
  color: var(--text-soft);
  text-wrap: pretty;
}

.pair__column .text-link {
  display: inline-block;
  margin-top: 20px;
}

.pair__column .button-row {
  margin-top: 22px;
}

/* ---------- 15. Footer ---------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 22px var(--gutter);
  font: 400 12px var(--font-ui);
  color: var(--text-soft);
}

.site-footer__links {
  display: flex;
  gap: 18px;
}

/* ---------- 16. Paintings page ---------- */

/* The filters read as a gallery label rather than a toolbar: two lines of
   plain links split by the same vertical rule that pairs About with Contact,
   with the ink underline the navigation already uses to say "you are here". */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 36px;
  padding-bottom: 20px;
  border-bottom: var(--rule);
}

.filters__group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  align-items: baseline;
}

.filters__group--availability {
  padding-left: 28px;
  border-left: var(--rule);
}

.filters__chip {
  display: inline-block;
  padding: 4px 0;
  font: 500 12.5px var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.filters__chip--current {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.filters__empty {
  margin-top: 40px;
  font: 400 14.5px/1.7 var(--font-ui);
  color: var(--text-soft);
}

.filters__empty .text-link {
  margin-left: 8px;
}

/* ---------- 17. Painting detail ---------- */

.painting {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
  max-width: var(--shell-outer);
  margin: 0 auto;
  padding: 64px var(--gutter);
}

/* The one place the work is shown as large as the page allows. The mount is
   the wall; the canvas hangs on it, contained, never cropped. */
.painting__mount {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 8%;
  background: var(--mount);
}

.painting__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: var(--shadow-hung);
}

/* A gallery wall label: the lines name themselves, so nothing is captioned. */
.painting__label {
  padding-top: 8px;
}

.painting__title {
  font: 400 42px/1.12 var(--font-display);
  text-wrap: balance;
}

.painting__spec {
  margin-top: 6px;
  font: 400 14px var(--font-ui);
  color: var(--text-soft);
}

.painting__spec:first-of-type {
  margin-top: 14px;
}

.painting__price {
  margin-top: 14px;
  font: 500 17px var(--font-ui);
}

.painting__price--status {
  font-weight: 400;
  color: var(--text-soft);
}

.painting__description {
  margin-top: 24px;
  max-width: 46ch;
  font: 400 14.5px/1.8 var(--font-ui);
  color: var(--text-soft);
  text-wrap: pretty;
}

.painting__label .text-link {
  display: inline-block;
  margin-top: 22px;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--shell-outer);
  margin: 0 auto;
  padding: 26px var(--gutter) 64px;
  border-top: var(--rule);
}

.pager__link {
  font: italic 500 17px var(--font-display);
}

.pager__link--next {
  margin-left: auto;
  text-align: right;
}

/* ---------- 18. Collections page ---------- */

/* A contents page rather than a card wall: each body of work gets a full row,
   the same way round every time, with the rule marking where one ends. */
.collection-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: var(--rule);
}

.collection-row:first-of-type {
  border-top: none;
}

.collection-row__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.collection-row__name {
  font: 400 34px/1.15 var(--font-display);
  text-wrap: balance;
}

.collection-row__description {
  margin-top: 14px;
  max-width: 54ch;
  font: 400 14.5px/1.8 var(--font-ui);
  color: var(--text-soft);
  text-wrap: pretty;
}

.collection-row__count {
  margin-top: 12px;
  font: 400 12.5px var(--font-ui);
  color: var(--text-soft);
}

.collection-row__link {
  display: inline-block;
  margin-top: 20px;
}

/* ---------- 19. Save Me!: hero and language ribbon ---------- */

.installation-hero {
  --ribbon-width: 200px;
  --ribbon-overlap: 72px;
  --ribbon-fade: 70px;
  --ribbon-scroll: 46s;

  display: grid;
  grid-template-columns: 1fr var(--ribbon-width) 1.25fr;
  border-bottom: var(--rule);
}

.installation-hero--unribboned {
  grid-template-columns: 1fr 1.25fr;
}

.installation-hero--unillustrated {
  grid-template-columns: 1fr var(--ribbon-width);
}

.installation-hero--unribboned.installation-hero--unillustrated {
  grid-template-columns: 1fr;
}

.installation-hero__text {
  display: flex;
  flex-direction: column;
  padding: 80px 44px 80px var(--gutter);
}

.installation-hero__title {
  margin-top: 16px;
  font: 400 64px/1.02 var(--font-display);
}

.installation-hero__lead {
  margin-top: 12px;
  max-width: 440px;
  font: italic 500 24px/1.4 var(--font-display);
  color: var(--text-soft);
  text-wrap: pretty;
}

.installation-hero__body {
  margin-top: 16px;
  max-width: 430px;
  font: 400 14.5px/1.75 var(--font-ui);
  color: var(--text-soft);
  text-wrap: pretty;
}

.installation-hero .button-row {
  align-items: flex-start;
}

/* The photograph fills a frame rather than setting one. Left to itself a tall
   canvas would size the row by its own aspect ratio, so the hero would grow
   with the viewport and strand the title halfway down a wide screen. */
.installation-hero__figure {
  position: relative;
  min-height: 560px;
}

.installation-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 15%;
}

/* The signature element: printed-line cloth, hung in front of the photograph
   the way the scroll itself hangs, with the names rising past the reader. */
.ribbon {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-right: calc(-1 * var(--ribbon-overlap));
  border-left: var(--rule);
  background: repeating-linear-gradient(0deg,
      rgb(241 239 233 / 94%) 0 3px,
      rgb(236 233 226 / 94%) 3px 4px);
  box-shadow: 8px 0 24px rgb(var(--ink-rgb) / 0.12);
}

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

.ribbon__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  /* Only the top is padded: the gap alone carries the join, so the halfway
     point of the track lands exactly on the start of the second copy. */
  padding-top: 24px;
  text-align: center;
}

/* Set at 24px rather than the comp's 18px so every step of the fade below
   still clears WCAG's large-text contrast on this cloth. At 18px the same
   range would have to start at .7, which erases the fade altogether. */
.ribbon__name {
  font: 500 24px/1.2 var(--font-display);
}

/* The fainter the name, the closer the language is to silence. */
.ribbon__name--vulnerable {
  opacity: 1;
}

.ribbon__name--definitely {
  opacity: 0.85;
}

.ribbon__name--severely {
  opacity: 0.7;
}

.ribbon__name--critically {
  opacity: 0.55;
}

@media (prefers-contrast: more) {
  .ribbon__name {
    opacity: 1;
  }
}

@keyframes ribbon-scroll {
  to {
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ribbon__track {
    animation: ribbon-scroll var(--ribbon-scroll) linear infinite;
  }

  .ribbon:hover .ribbon__track,
  .ribbon:focus-within .ribbon__track {
    animation-play-state: paused;
  }
}

/* Without motion the ribbon is simply what it is: a column of names to read. */
@media (prefers-reduced-motion: reduce) {
  .ribbon {
    overflow-y: auto;
  }

  .ribbon__track {
    position: static;
  }

  .ribbon__list:last-child,
  .ribbon__fade {
    display: none;
  }
}

.ribbon__fade {
  position: absolute;
  right: 0;
  left: 0;
  height: var(--ribbon-fade);
  pointer-events: none;
}

.ribbon__fade--top {
  top: 0;
  background: linear-gradient(to bottom, var(--paper), transparent);
}

.ribbon__fade--bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--paper), transparent);
}

/* The native player is the base; the behaviour swaps it for this button. */
.soundscape__player {
  width: 100%;
  max-width: 320px;
}

.soundscape__toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
  line-height: normal;
}

/* An author display beats the user agent's [hidden] rule, so restate it or the
   button would show before Hyperscript has hidden the native controls. */
.soundscape__toggle[hidden] {
  display: none;
}

.soundscape__dot,
.soundscape__bar {
  background: var(--accent);
}

.soundscape__dot {
  width: 8px;
  height: 8px;
}

.soundscape__level {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.soundscape__bar {
  width: 2px;
  height: 12px;
  transform-origin: bottom;
}

.soundscape__toggle.is-playing .soundscape__dot {
  display: none;
}

.soundscape__toggle.is-playing .soundscape__level {
  display: inline-flex;
}

.soundscape__caption {
  flex-basis: 100%;
  font: 400 12.5px var(--font-ui);
  color: var(--text-soft);
}

@keyframes soundscape-bar {
  0%,
  100% {
    transform: scaleY(0.3);
  }

  50% {
    transform: scaleY(1);
  }
}

/* The bars only ever move while audio the visitor started is playing, and the
   button beside them is the pause control. */
@media (prefers-reduced-motion: no-preference) {
  .soundscape__toggle.is-playing .soundscape__bar {
    animation: soundscape-bar 0.9s ease-in-out infinite;
  }

  .soundscape__toggle.is-playing .soundscape__bar:nth-child(2) {
    animation-delay: 0.2s;
  }

  .soundscape__toggle.is-playing .soundscape__bar:nth-child(3) {
    animation-delay: 0.4s;
  }
}

/* ---------- 20. Save Me!: the work, views and history ---------- */

.stats {
  display: flex;
  border-bottom: var(--rule);
}

.stats__item {
  flex: 1;
  padding: 36px var(--gutter);
  border-right: var(--rule);
}

.stats__item--note {
  flex: 1.4;
  display: flex;
  align-items: center;
  border-right: none;
}

.stats__figure {
  font: 500 42px var(--font-display);
}

.stats__figure--accent {
  color: var(--accent);
}

.stats__label {
  margin-top: 4px;
  font: 400 12.5px var(--font-ui);
  color: var(--text-soft);
}

.stats__note {
  font: italic 500 19px/1.45 var(--font-display);
  color: var(--text-soft);
  text-wrap: pretty;
}

.work {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.work--unillustrated {
  grid-template-columns: 1fr;
}

.work__title {
  margin-top: 14px;
  font: 400 42px/1.15 var(--font-display);
  text-wrap: balance;
}

.work__body {
  margin-top: 16px;
  max-width: 62ch;
  font: 400 14.5px/1.8 var(--font-ui);
  color: var(--text-soft);
  text-wrap: pretty;
}

.work__body:first-of-type {
  margin-top: 20px;
}

.pull-quote {
  margin: 26px 0 0;
  padding: 20px 24px;
  background: var(--mount);
}

.pull-quote__text {
  font: italic 500 19px/1.5 var(--font-display);
}

.pull-quote__text::before {
  content: "\201C";
}

.pull-quote__text::after {
  content: "\201D";
}

.pull-quote__attribution {
  display: block;
  margin-top: 10px;
  font: 400 12px var(--font-ui);
  font-style: normal;
  color: var(--text-soft);
}

.work__figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-self: stretch;
}

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

.work-figure__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.work-figure__caption {
  font: 400 12.5px var(--font-ui);
  color: var(--text-soft);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 16px;
  margin-top: 28px;
}

/* The first view is the room itself, so it gets the room's share of the grid. */
.gallery__figure {
  position: relative;
}

.gallery__figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* The link is the cell: the image inside it is absolutely positioned, so
   without a box of its own the anchor would collapse to nothing. */
.gallery__link {
  position: absolute;
  inset: 0;
  display: block;
}

.gallery__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* An ordered list because the scroll's travels are a sequence, but the numbers are
   not printed: the dates already say the order. The reset takes care of that. */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 28px;
}

.timeline__entry {
  padding-right: 28px;
}

.timeline__entry + .timeline__entry {
  padding-left: 28px;
  border-left: var(--rule);
}

.timeline__entry:last-child {
  padding-right: 0;
}

.timeline__date {
  font: 400 11.5px var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.timeline__title {
  margin-top: 8px;
  font: 500 20px/1.3 var(--font-display);
}

.timeline__note {
  margin-top: 6px;
  font: 400 13px/1.6 var(--font-ui);
  color: var(--text-soft);
}

.timeline__link {
  display: inline-block;
  margin-top: 12px;
}

/* ---------- 21. Workshops page ---------- */

/* Two across rather than three: these are photographs of people making
   things, and they need the room to read as that. */
.workshop-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 28px;
  margin-top: 32px;
}

.workshop__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Where and when, before what: the two facts a group co-ordinator scans for. */
.workshop__meta {
  margin-top: 14px;
  font: 400 12.5px var(--font-ui);
  color: var(--text-soft);
}

.workshop__title {
  margin-top: 4px;
  font: 400 26px/1.2 var(--font-display);
  text-wrap: balance;
}

.workshop__body {
  margin-top: 10px;
  max-width: 54ch;
  font: 400 14.5px/1.8 var(--font-ui);
  color: var(--text-soft);
  text-wrap: pretty;
}

.closing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.closing__body {
  margin-top: 12px;
  max-width: 58ch;
  font: 400 14.5px/1.8 var(--font-ui);
  color: var(--text-soft);
  text-wrap: pretty;
}

.closing__button {
  flex: none;
}

/* ---------- 22. News page and a single post ---------- */

/* A record read down rather than across: the date holds its own column, so
   the years line up the way they do on a CV. */
.post-list {
  margin-top: 32px;
  border-top: 1px solid var(--ink);
}

.post-entry {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: var(--rule);
}

.post-entry__date {
  font: 400 11.5px var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* Sentence case under the tracked date: an award is not a show, and the two
   lines should not read as one label. */
.post-entry__kind {
  margin-top: 4px;
  font: italic 400 13px var(--font-display);
  color: var(--text-soft);
}

.post-entry__title {
  font: 500 24px/1.25 var(--font-display);
  text-wrap: balance;
}

.post-entry__excerpt {
  margin-top: 8px;
  max-width: 66ch;
  font: 400 14.5px/1.8 var(--font-ui);
  color: var(--text-soft);
  text-wrap: pretty;
}

.post-paging {
  padding-top: 28px;
}

.post {
  max-width: 680px;
}

.post__meta {
  font: 400 11.5px var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.post__title {
  margin-top: 12px;
  font: 400 42px/1.15 var(--font-display);
  text-wrap: balance;
}

.post__image {
  width: 100%;
  margin-top: 28px;
}

.post__body {
  margin-top: 24px;
  font: 400 15px/1.8 var(--font-ui);
  color: var(--text-soft);
  text-wrap: pretty;
}

.post__body p + p {
  margin-top: 16px;
}

.post__link {
  display: inline-block;
  margin-top: 20px;
}

/* ---------- 23. About page ---------- */

/* Her words, then her face, in the order the homepage hero gives text and canvas. */
.bio-intro {
  display: grid;
  grid-template-columns: minmax(0, 62ch) 360px;
  justify-content: space-between;
  align-items: start;
  gap: 64px;
}

/* A photograph of someone, not a canvas: cropped to its frame, and no shadow. */
.bio-intro__portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--mount);
}

.bio {
  max-width: 62ch;
}

.bio__body {
  margin-top: 20px;
  font: 400 15px/1.85 var(--font-ui);
  color: var(--text-soft);
  text-wrap: pretty;
}

.cv__section + .cv__section {
  margin-top: 44px;
}

.cv__heading {
  padding-bottom: 12px;
  font: 400 24px var(--font-display);
  border-bottom: 1px solid var(--ink);
}

/* The year keeps its own column so the dates line up down the page, which is
   how a CV is read. A line without a year simply starts at the text column. */
.cv__entry {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 14px 0;
  border-bottom: var(--rule);
}

.cv__year {
  font: 400 11.5px var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding-top: 5px;
}

.cv__text {
  font: 400 16px/1.5 var(--font-display);
  text-wrap: pretty;
}

/* ---------- 24. Contact page ---------- */

.enquiry {
  margin-top: 28px;
  max-width: 460px;
}

.enquiry__field + .enquiry__field {
  margin-top: 20px;
}

.enquiry__label {
  display: block;
  margin-bottom: 6px;
  font: 500 12.5px var(--font-ui);
  color: var(--text-soft);
}

.enquiry input[type="text"],
.enquiry input[type="email"],
.enquiry textarea {
  display: block;
  width: 100%;
  padding: 11px 13px;
  font: 400 14.5px/1.6 var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  border: var(--border-secondary);
}

.enquiry textarea {
  resize: vertical;
}

.enquiry input:focus-visible,
.enquiry textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* The honeypot is off-screen rather than display:none, which some bots skip. */
.enquiry__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.enquiry__errors,
.enquiry__error {
  font: 400 13px/1.6 var(--font-ui);
  color: var(--ink);
}

.enquiry__errors {
  margin-bottom: 20px;
  padding: 12px 14px;
  background: var(--mount);
  border-left: 2px solid var(--accent);
}

.enquiry__error {
  margin-top: 6px;
  color: var(--accent);
}

.enquiry__check,
.enquiry button[type="submit"] {
  margin-top: 24px;
}

.enquiry__check + button[type="submit"] {
  margin-top: 20px;
}

.studio-details {
  margin-top: 24px;
}

.studio-details__item {
  padding: 14px 0;
  font: 400 14.5px/1.7 var(--font-ui);
  color: var(--text-soft);
  border-bottom: var(--rule);
}

.studio-details__email {
  font: 500 19px var(--font-display);
  color: var(--ink);
}

.enquiry-sent .text-link {
  display: inline-block;
  margin-top: 20px;
}

/* ---------- 25. Not found ---------- */

/* An error page is a place to give directions, so it is sized for reading
   rather than for a large apology. */
.notice {
  max-width: 54ch;
  padding: 40px 0 64px;
}

.notice__title {
  font: 400 42px/1.15 var(--font-display);
  text-wrap: balance;
}

.notice__body {
  margin-top: 18px;
  font: 400 15px/1.8 var(--font-ui);
  color: var(--text-soft);
  text-wrap: pretty;
}

/* ---------- 26. Blow-out ---------- */

/* The work on the wall, with the whole viewport given over to it.

   The ground is the mount colour, not a dark scrim. A dark surround is what
   every lightbox does, and it is wrong here: against black, this painter's
   muted darks read washed out and her lights glare. Galleries hang on
   off-white for that reason, and the site is that colour throughout.

   The square mount is deliberately absent. It exists to give a grid its
   rhythm; there is no grid here, and a square inscribed in a wide viewport
   would leave a landscape canvas smaller than it is on its own page -- the
   opposite of the point. The rule that matters survives: `object-fit: contain`,
   so no canvas is ever cropped. */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  background: var(--mount);
  color: var(--ink);
  border: 0;
  overflow: hidden;
  /* Only matters when the dialog is open but not modal -- that is, when
     Hyperscript never arrived to call showModal(). A modal dialog is in the
     top layer and ignores this; a non-modal one would sit under the sticky
     header, which is z-index 10. */
  z-index: 20;
}

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

/* The installation photographs are of a room, not a canvas, and the Save Me!
   page already owns the dark band they belong on. */
.lightbox--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.lightbox__panel {
  position: absolute;
  inset: 0;
  outline: none;
}

.lightbox__image {
  display: block;
  width: 100%;
  height: 100%;
  padding: 72px 96px 128px;
  box-sizing: border-box;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgb(var(--ink-rgb) / 0.35));
}

/* A photograph is printed to its edges rather than hung, so it takes no shadow. */
.lightbox__image--photograph {
  filter: none;
}

.lightbox__label {
  position: absolute;
  z-index: 1;
  inset: auto auto 34px 48px;
  max-width: min(58ch, calc(100% - 200px));
  margin: 0;
  color: inherit;
}

.lightbox__title {
  display: block;
  font: 400 26px/1.2 var(--font-display);
}

.lightbox__spec {
  display: block;
  margin-top: 4px;
  font: 400 13px/1.6 var(--font-ui);
  color: var(--text-soft);
}

.lightbox--dark .lightbox__spec {
  color: var(--on-dark-soft);
}

.lightbox__link {
  display: inline-block;
  margin-top: 12px;
  font: 600 12.5px var(--font-ui);
  color: var(--accent);
  border-bottom: 1px solid currentcolor;
  padding-bottom: 2px;
}

.lightbox__close {
  position: absolute;
  z-index: 1;
  inset: 18px 24px auto auto;
  margin: 0;
}

.lightbox__button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  font: 400 26px/1 var(--font-ui);
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Full-height strips rather than small targets: easy to hit, quiet until
   wanted, and out of the way of the painting. */
.lightbox__step {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  font: 400 30px/1 var(--font-ui);
  color: inherit;
  opacity: 0.55;
}

.lightbox__step--previous {
  left: 0;
}

.lightbox__step--next {
  right: 0;
}

.lightbox__step:hover,
.lightbox__step:focus-visible {
  opacity: 1;
}

.lightbox__button:focus-visible,
.lightbox__step:focus-visible,
.lightbox__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lightbox--dark .lightbox__button:focus-visible,
.lightbox--dark .lightbox__step:focus-visible {
  outline-color: var(--on-dark);
}

/* The fade answers the click that opened it, so it is motion with a cause. */
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] {
    animation: lightbox-in 0.18s ease-out;
  }

  @keyframes lightbox-in {
    from {
      opacity: 0;
    }
  }
}

/* The grid must not scroll behind the blow-out. */
body:has(.lightbox[open]) {
  overflow: hidden;
}

/* ---------- 27. Mobile ---------- */

@media (max-width: 840px) {
  :root {
    --gutter: 20px;
    --header-height: 74px;
  }

  .site-header {
    padding: 16px var(--gutter);
  }

  .site-nav__list {
    display: none;
  }

  .menu {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px var(--gutter);
  }

  .hero__title {
    font-size: 40px;
  }

  .section {
    padding: 56px var(--gutter);
  }

  .section--flush {
    padding: 0;
  }

  .workshops {
    padding: 56px var(--gutter);
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .installation-hero,
  .installation-hero--unribboned,
  .installation-hero--unillustrated {
    --ribbon-overlap: 0px;

    grid-template-columns: 1fr;
  }

  .installation-hero__text {
    padding: 48px var(--gutter);
  }

  .installation-hero__title {
    font-size: 48px;
  }

  .installation-hero__figure {
    min-height: 340px;
  }

  .ribbon {
    height: 240px;
    border-top: var(--rule);
    border-bottom: var(--rule);
    border-left: none;
    box-shadow: none;
  }

  .stats {
    flex-wrap: wrap;
  }

  .stats__item {
    flex: 1 1 42%;
    padding: 22px var(--gutter);
    border-bottom: var(--rule);
  }

  .stats__item--note {
    flex: 1 1 100%;
  }

  .work {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .work__title {
    font-size: 32px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 200px;
  }

  .gallery__figure:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline__entry,
  .timeline__entry + .timeline__entry {
    padding: 22px 0;
    border-top: var(--rule);
    border-left: none;
  }

  .lightbox__image {
    padding: 56px 12px 150px;
  }

  .lightbox__label {
    inset: auto 20px 84px 20px;
    max-width: none;
  }

  .lightbox__title {
    font-size: 22px;
  }

  /* Below the caption rather than beside the painting, so a thumb can reach
     both without covering the work. */
  .lightbox__step {
    top: auto;
    bottom: 0;
    width: 50%;
    height: 64px;
    opacity: 1;
  }

  .lightbox__step--previous {
    justify-content: flex-start;
    padding-left: 20px;
  }

  .lightbox__step--next {
    justify-content: flex-end;
    padding-right: 20px;
  }

  .notice__title {
    font-size: 32px;
  }

  .bio-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .cv__entry {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cv__year {
    padding-top: 0;
  }

  .post-entry {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .post-entry__kind {
    display: inline;
  }

  .post__title {
    font-size: 32px;
  }

  .workshop-list {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .closing {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .collection-row {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 36px 0;
  }

  .collection-row__name {
    font-size: 28px;
  }

  .painting {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px var(--gutter);
  }

  .painting__title {
    font-size: 34px;
  }

  .painting__label {
    padding-top: 0;
  }

  .pager {
    flex-direction: column;
    gap: 14px;
    padding-bottom: 48px;
  }

  .pager__link--next {
    margin-left: 0;
    text-align: left;
  }

  .filters__group--availability {
    padding-left: 0;
    border-left: none;
  }

  .painting-grid,
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  /* News titles are long; two columns would set them four words wide. */
  .news-grid {
    grid-template-columns: 1fr;
  }

  .workshops__grid,
  .pair {
    grid-template-columns: 1fr;
  }

  /* Flush on a phone: the image spans the screen and the text keeps the
     gutter, so the band gives up its padding and the grid its gap. */
  .band {
    padding: 0;
  }

  .band__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .band__image {
    height: 320px;
  }

  .band__text {
    padding: 56px var(--gutter);
  }

  .pair__column {
    padding: 44px var(--gutter);
  }

  .pair__column--ruled {
    border-right: none;
    border-bottom: 1px solid rgb(var(--ink-rgb) / 0.12);
  }

  .site-footer {
    flex-direction: column;
    gap: 10px;
    padding: var(--gutter);
  }
}

/* ---------- 28. Utility ---------- */

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