/* artgallery.fun, "The Living Canvas": one stylesheet for every page. The home page is a sheet of paper that draws
   itself (assets/living.js), in the palette of the app's brand art; below the drawing you step back into the room,
   the dark wall the brand painting hangs on, where the works hang as objects. Support and Privacy open with a strip
   of the same drawing; the 404 is the wall with one framed drawing on it. Type: Fraunces (soft) and DM Mono. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-soft-roman.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-soft-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/assets/fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/assets/fonts/dm-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* The painting */
  --paper: #f1e9d8;
  --paper-hi: #f8f3e8;
  --ink: #1b2a41;
  --ink-soft: #46536a;
  --vermilion: #e4572e;
  --ochre: #f3a712;
  --teal: #1f8a8a;
  --blush: #e99a86;
  --blue: #6c8ebf;
  --teal-ink: #16696a;
  --vermilion-ink: #b2401b;
  /* The room */
  --wall-top: #2a3e40;
  --wall: #0e1819;
  --cream: #f3ecdd;
  --cream-soft: rgba(243, 236, 221, 0.72);
  --cream-faint: rgba(243, 236, 221, 0.16);
  --frame: #141210;
  --brass: #a88752;

  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4.6vw, 72px);
  --wide: 1320px;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--vermilion); outline-offset: 3px; border-radius: 2px;
}

em { font-style: italic; }

.mono { font-family: var(--mono); font-size: 0.82em; letter-spacing: 0.02em; }

/* Small mono line above a heading, led by one short stroke of paint. */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; line-height: 1.4;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-ink);
}
.kicker::before {
  content: ""; flex: none; width: 30px; height: 5px; border-radius: 3px; background: var(--vermilion);
  transform: rotate(-8deg);
}

h2 {
  margin-top: 18px;
  font-weight: 600; font-size: clamp(36px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 em { font-weight: 450; color: var(--teal); }

/* ------------------------------------------------------------------ The bar */

.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: flex-end; align-items: center;
  padding: 24px max(var(--gutter), calc((100% - var(--wide)) / 2));
}
.bar nav { display: flex; gap: 8px 30px; }
.bar a {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.bar a:hover { color: var(--vermilion-ink); text-decoration: underline; }
.bar a[aria-current="page"] {
  color: var(--vermilion-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.5em;
}
/* The name, on pages other than home (where the title is the name). */
.bar .mark {
  margin-right: auto;
  font-family: var(--serif); font-size: 23px; font-weight: 640; line-height: 1; letter-spacing: -0.02em;
  text-transform: none; font-variation-settings: "opsz" 144;
}
.bar .mark em { font-weight: 480; color: var(--vermilion); }
.bar .mark:hover { color: var(--ink); text-decoration: none; }

/* ------------------------------------------------------------------ The living canvas */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(600px, 100vh, 1080px); min-height: clamp(600px, 100svh, 1080px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px 56px;
  padding: 120px max(var(--gutter), calc((100% - var(--wide)) / 2)) clamp(32px, 6vh, 64px);
  background: var(--paper);
}
.field, .field-still {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
}
.field { transition: opacity 0.42s ease; }
.field.is-wiping { opacity: 0; }
.field-still { object-fit: cover; }

.intro { max-width: 860px; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-ink);
}
h1 {
  margin-top: 10px; margin-left: -0.04em;
  font-weight: 640; font-size: clamp(40px, calc(15.6vw - 52px), 136px); line-height: 0.95; letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;          /* the display cut at every size, so it fits a phone */
  white-space: nowrap;
}
h1 em { font-weight: 480; letter-spacing: -0.02em; color: var(--vermilion); }
.lede {
  max-width: 31em; margin-top: 26px;
  font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55;
}
.wink {
  max-width: 34em; margin-top: 12px;
  font-style: italic; font-size: clamp(17px, 1.35vw, 19px); color: var(--teal-ink);
}
.soon {
  display: flex; align-items: center; gap: 12px; margin-top: 30px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}
.soon-mark {
  flex: none; width: 22px; height: 15px; border: 2px solid var(--ink); border-radius: 3px; position: relative;
}
.soon-mark::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: -6px; height: 2px; background: var(--ink); border-radius: 1px;
}

/* Wall labels: the one for the drawing, and the ones beside the works. */
.label { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.4; }
.label > * { display: block; }
.label-artist { font-weight: 600; }
.label-artist a { text-decoration: none; }
.label-artist a:hover { text-decoration: underline; }
.label-title { font-size: 1.25em; line-height: 1.25; }
.label-title i { font-weight: 450; }
.label-medium, .label-credit { font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; line-height: 1.5; }
.label-medium { margin-top: 6px; }

.edition {
  justify-self: end; width: 236px; padding: 18px 20px 16px;
  background: var(--paper-hi); color: var(--ink);
  box-shadow: 0 1px 0 rgba(27, 42, 65, 0.06), 0 10px 24px -14px rgba(27, 42, 65, 0.45);
}
.edition .label-title { font-size: 26px; }
.edition [data-seed] { font-variant-numeric: lining-nums tabular-nums; }
.edition .label-credit { color: var(--ink-soft); }
.again {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 14px; padding: 6px 0 4px;
  font: 500 12px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--vermilion-ink);
  background: none; border: 0; border-bottom: 1.5px solid currentColor; cursor: pointer;
}
.again svg { transition: transform 0.5s ease; }
.again:hover svg { transform: rotate(-200deg); }

/* ------------------------------------------------------------------ The room */

.room, .coda, .foot {
  color: var(--cream);
  background-color: var(--wall);
}
.room {
  isolation: isolate; overflow: hidden;
  padding: clamp(88px, 11vw, 168px) max(var(--gutter), calc((100% - var(--wide)) / 2)) clamp(96px, 12vw, 176px);
  background-image:
    radial-gradient(1000px 560px at 50% -120px, rgba(255, 241, 214, 0.14), transparent 70%),
    linear-gradient(180deg, var(--wall-top) 0, #1a2b2c 640px, var(--wall) 1300px);
  background-repeat: no-repeat;
}
.room .kicker, .coda .kicker { color: var(--ochre); }
.room h2 em, .coda h2 em { color: var(--ochre); }
.room-text { max-width: 640px; }
.room-text p:last-child { margin-top: 22px; color: var(--cream-soft); max-width: 34em; }

/* Both works hang on one centre line, each with its label to the right, as in a museum. */
.hang {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 72px clamp(48px, 6vw, 96px);
  margin-top: clamp(64px, 8vw, 120px);
}
.work { display: flex; align-items: flex-end; gap: 22px; }
.work-toccata { flex-direction: row-reverse; }
.work-toccata .label { text-align: right; }
.work .label { width: 196px; padding-bottom: 4px; font-size: 14px; color: var(--cream); }
.work .label-medium, .work .label-credit { color: var(--cream-soft); letter-spacing: 0; }
.nowrap { white-space: nowrap; }
/* Under the works, like a museum's credit line: a short brass rule, then one quiet sentence in italic. */
.collection-note {
  margin: clamp(40px, 4.5vw, 64px) auto 0; max-width: 34em; text-align: center; text-wrap: balance;
  font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.55; color: var(--cream-soft);
}
.collection-note::before {
  content: ""; display: block; width: 32px; height: 1px; margin: 0 auto 16px; background: var(--brass);
}
.work-toccata .frame { width: clamp(280px, 29vw, 420px); }
.work-yod .frame { width: clamp(220px, 21vw, 310px); }
.frame { position: relative; }
.frame::before {               /* the picture light's pool on the wall */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -55%; right: -55%; top: -38%; bottom: 8%;
  background: radial-gradient(closest-side, rgba(255, 238, 205, 0.16), rgba(255, 238, 205, 0.05) 60%, transparent);
}

.frame {
  padding: clamp(10px, 1vw, 14px);
  background: linear-gradient(180deg, #2c2824 0, var(--frame) 9%, var(--frame) 100%);
  box-shadow:
    0 2px 2px rgba(0, 0, 0, 0.3),
    0 26px 44px -10px rgba(0, 0, 0, 0.62),
    0 60px 90px -30px rgba(0, 0, 0, 0.5);
}
.mat {
  padding: 11%;
  background: var(--paper-hi);
  box-shadow: 0 0 0 1.5px var(--brass), inset 0 3px 7px rgba(0, 0, 0, 0.28);
}
/* A work that runs live: its frame over the still, faded in once it has loaded (assets/living.js) */
.live { position: relative; }
.live img { display: block; }
.live iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
  background: #1a1b1c; opacity: 0; transition: opacity 1.2s ease;
}
.live.is-live iframe { opacity: 1; }
.live-play {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cream); background: rgba(14, 24, 25, 0.82); border: 1px solid var(--brass); border-radius: 999px;
  padding: 10px 16px; cursor: pointer;
}
.live-play:hover, .live-play:focus-visible { background: rgba(14, 24, 25, 0.95); outline: none; box-shadow: 0 0 0 2px var(--brass); }
.label-live { display: block; margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--ochre); }
.label-live[hidden] { display: none; }
.mat img { width: 100%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 1px 1px 1px rgba(255, 255, 255, 0.7); }

/* ------------------------------------------------------------------ How it works */

.how, .where, .runs, .private {
  padding-inline: max(var(--gutter), calc((100% - var(--wide)) / 2));
}
.how {
  position: relative;
  padding-top: clamp(88px, 11vw, 160px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
}
.how-head { grid-column: 1 / -1; max-width: 720px; }

.steps {
  grid-column: 1 / -1; grid-row: 2;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 88px); list-style: none; position: relative; z-index: 1;
}
.steps li { max-width: 330px; }
.steps li:nth-child(2) { margin-top: 64px; }
.steps li:nth-child(3) { margin-top: 128px; }
.step-n {
  display: block; height: 0.9em;
  font-style: italic; font-weight: 500; font-size: clamp(88px, 9vw, 128px); line-height: 0.9;
  color: var(--vermilion);
}
.steps li:nth-child(2) .step-n { color: var(--teal); }
.steps li:nth-child(3) .step-n { color: var(--ink); }
.steps h3 { margin-top: 26px; font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.steps p { margin-top: 8px; color: var(--ink-soft); }

.thread {
  grid-column: 1 / -1; grid-row: 2; align-self: start;
  width: 100%; height: 250px; margin-top: clamp(48px, 6vw, 88px);
  fill: none; stroke: var(--ochre); stroke-width: 7; stroke-linecap: round;
  overflow: visible; pointer-events: none;
}

.screen {
  grid-column: 1 / -1; margin-top: clamp(72px, 9vw, 128px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end;
}
.screen .tv { grid-column: 5 / -1; grid-row: 1; }
.screen figcaption {
  grid-column: 1 / span 3; grid-row: 1; max-width: 15em; padding-bottom: 6px;
  font-size: 15px; line-height: 1.45; color: var(--ink-soft);
}
.screen figcaption b { display: block; margin-bottom: 6px; font: 500 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-ink); }
.tv {
  padding: clamp(6px, 0.9vw, 12px); border-radius: clamp(8px, 1.2vw, 16px);
  background: #08090a;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 30px 60px -24px rgba(27, 42, 65, 0.55), 0 12px 22px -12px rgba(27, 42, 65, 0.4);
}
.tv img { border-radius: clamp(3px, 0.5vw, 6px); }

/* ------------------------------------------------------------------ Where your art lives */

.where {
  padding-top: clamp(104px, 13vw, 184px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start;
}
.where-head { grid-column: 1 / span 4; position: sticky; top: 32px; }
.where-head > p:last-child { margin-top: 18px; color: var(--ink-soft); max-width: 20em; }
.sources { grid-column: 6 / -1; }
.sources > div { padding: 22px 0 26px; border-top: 1px solid rgba(27, 42, 65, 0.18); }
.sources > div:last-child { border-bottom: 1px solid rgba(27, 42, 65, 0.18); }
.sources dt {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-ink);
}
.names {
  list-style: none; margin-top: 8px;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -0.01em;
}
.names li { display: inline; --dash: var(--ochre); }
.names li:not(:last-child) { white-space: nowrap; }
.names li.long { white-space: normal; }
.names .tail { white-space: nowrap; }
.names li:not(:last-child):not(.long)::after, .names .tail::after {
  content: ""; display: inline-block; width: 0.62em; height: 0.15em; margin: 0 0.42em 0.18em 0.36em;
  border-radius: 1em; background: var(--dash); transform: rotate(-16deg); vertical-align: middle;
}
.names li:nth-child(6n+2) { --dash: var(--teal); }
.names li:nth-child(6n+3) { --dash: var(--ink); }
.names li:nth-child(6n+4) { --dash: var(--blush); }
.names li:nth-child(6n+5) { --dash: var(--blue); }
.names li:nth-child(6n) { --dash: var(--vermilion); }
.chains { grid-column: 6 / -1; margin-top: 26px; max-width: 36em; color: var(--ink-soft); }

/* ------------------------------------------------------------------ A gallery that runs itself */

.runs { padding-top: clamp(104px, 13vw, 184px); }
.runs h2 { max-width: 12em; }
.notes {
  list-style: none; margin-top: clamp(40px, 5vw, 72px);
  columns: 2 360px; column-gap: clamp(40px, 6vw, 96px);
}
.notes li { break-inside: avoid; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 0 0 30px; }
.swatch { width: 64px; height: 20px; margin-top: 7px; fill: none; stroke-width: 6; stroke-linecap: round; overflow: visible; }
.note-1 .swatch { stroke: var(--vermilion); }
.note-2 .swatch { stroke: var(--teal); }
.note-3 .swatch { stroke: var(--ochre); }
.note-4 .swatch { stroke: var(--ink); }
.note-5 .swatch { stroke: var(--blue); }
.note-6 .swatch { stroke: var(--blush); }
.notes p { color: var(--ink-soft); }
.notes b { font-weight: 600; font-style: italic; font-size: 1.12em; color: var(--ink); }

/* ------------------------------------------------------------------ Private by design */

.private { padding-top: clamp(96px, 12vw, 168px); padding-bottom: clamp(104px, 13vw, 184px); }
.nos {
  max-width: 18em; margin-top: clamp(28px, 4vw, 48px);
  font-style: italic; font-weight: 420; font-size: clamp(30px, 4.6vw, 58px); line-height: 1.22; letter-spacing: -0.015em;
}
.nos span {
  white-space: nowrap;
  text-decoration: underline wavy var(--vermilion); text-decoration-thickness: 2px;
  text-underline-offset: 0.2em; text-decoration-skip-ink: none;
}
.nos span:nth-child(2) { text-decoration-color: var(--teal); }
.nos span:nth-child(3) { text-decoration-color: var(--ochre); }
.nos span:nth-child(4) { text-decoration-color: var(--blue); }
.nos span:nth-child(5) { text-decoration-color: var(--blush); }
.private-more { max-width: 34em; margin-top: clamp(28px, 4vw, 44px); color: var(--ink-soft); }
.private-more a { color: var(--ink); white-space: nowrap; }

/* ------------------------------------------------------------------ Coda and footer: back in the room */

.coda {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 48px clamp(48px, 7vw, 112px);
  padding: clamp(96px, 12vw, 168px) max(var(--gutter), calc((100% - var(--wide)) / 2)) clamp(72px, 9vw, 120px);
  background-image:
    radial-gradient(900px 520px at 30% -80px, rgba(255, 241, 214, 0.13), transparent 70%),
    linear-gradient(180deg, var(--wall-top) 0, #1a2b2c 420px, var(--wall) 900px);
  background-repeat: no-repeat;
}
.keepsake { margin: 0; }
.keepsake-frame {
  width: clamp(250px, 32vw, 430px); padding: clamp(12px, 1.4vw, 20px);
  background: var(--frame);
  box-shadow: inset 0 3px 0 #3b3631, 0 2px 2px rgba(0, 0, 0, 0.3), 0 30px 50px -12px rgba(0, 0, 0, 0.65);
}
.keepsake-canvas {
  display: block; width: 100%; aspect-ratio: 3 / 2; background: var(--paper);
  box-shadow: 0 0 0 2px var(--brass), inset 0 4px 10px rgba(0, 0, 0, 0.3);
}
.keepsake figcaption { margin-top: 22px; font-size: 15px; color: var(--cream-soft); max-width: 26em; }
.keepsake figcaption i { color: var(--cream); }
.coda h2 { margin-top: 0; font-size: clamp(34px, 4.6vw, 60px); max-width: 11em; }
.coda-tag {
  margin-top: 20px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ochre);
}
.maker { margin-top: 22px; max-width: 30em; color: var(--cream-soft); }
.maker a { color: var(--cream); }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding: 28px max(var(--gutter), calc((100% - var(--wide)) / 2)) 40px;
  border-top: 1px solid var(--cream-faint);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--cream-soft);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot a { color: var(--cream-soft); text-decoration: none; }
.foot a:hover { color: var(--cream); text-decoration: underline; }

/* ------------------------------------------------------------------ Support and Privacy: a strip of canvas, then paper */

.band {
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(168px, 16vw, 232px);
  background: var(--paper);
}

.page {
  padding: clamp(52px, 6vw, 88px) max(var(--gutter), calc((100% - var(--wide)) / 2)) clamp(104px, 13vw, 184px);
}
.page-head h1 {
  margin: 0; white-space: normal;
  font-size: clamp(54px, 8.4vw, 120px); line-height: 0.92;
}
.meta {
  margin-top: 30px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-ink);
}
.page .lead {
  max-width: 30em; margin-top: clamp(40px, 5vw, 64px);
  font-size: clamp(21px, 2vw, 27px); line-height: 1.42; letter-spacing: -0.005em;
}
.page .lead strong { font-weight: 600; }
.page .lead a { text-decoration-color: var(--vermilion); text-decoration-thickness: 2px; }

/* Each section is a row: its heading on the left, led by a stroke of paint; its text on the right. */
.sect {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  margin-top: clamp(44px, 5vw, 72px); padding-top: 30px; border-top: 1px solid rgba(27, 42, 65, 0.18);
  --dash: var(--vermilion);
}
.sect::before {                /* a stroke of paint lying on the rule */
  content: ""; position: absolute; top: -3px; left: 0; width: 34px; height: 5px; border-radius: 3px;
  background: var(--dash); transform: rotate(-6deg);
}
.sect:nth-of-type(6n+2) { --dash: var(--teal); }
.sect:nth-of-type(6n+3) { --dash: var(--ochre); }
.sect:nth-of-type(6n+4) { --dash: var(--ink); }
.sect:nth-of-type(6n+5) { --dash: var(--blue); }
.sect:nth-of-type(6n) { --dash: var(--blush); }
.sect > h2 {
  grid-column: 1 / span 4; align-self: start; position: sticky; top: 28px;
  margin: 0; font-size: clamp(28px, 2.7vw, 38px); line-height: 1.08; letter-spacing: -0.015em;
}
.sect-body { grid-column: 6 / -1; max-width: 37em; color: var(--ink-soft); }
.sect-body > * + * { margin-top: 16px; }
.sect-body strong { font-weight: 600; color: var(--ink); }
.sect-body a { color: var(--ink); }
.sect-body ul { list-style: none; }
.sect-body li { position: relative; padding-left: 32px; --dash: var(--ochre); }
.sect-body li + li { margin-top: 10px; }
.sect-body li:nth-child(4n+2) { --dash: var(--teal); }
.sect-body li:nth-child(4n+3) { --dash: var(--vermilion); }
.sect-body li:nth-child(4n) { --dash: var(--blue); }
.sect-body li::before {
  content: ""; position: absolute; left: 0; top: 0.74em; width: 18px; height: 4px; border-radius: 2px;
  background: var(--dash); transform: rotate(-14deg);
}
.sect-body h3 {
  margin-top: 46px;
  font-style: italic; font-weight: 500; font-size: clamp(22px, 2vw, 26px); line-height: 1.25; letter-spacing: -0.01em;
  color: var(--ink);
}
.sect-body h3:first-child { margin-top: 0; }
.sect-body h3 + p { margin-top: 10px; }

/* ------------------------------------------------------------------ 404: the wall, with one drawing on it */

.on-wall { background: var(--wall); }
.bar-wall a, .bar-wall .mark, .bar-wall .mark:hover { color: var(--cream); }
.bar-wall .mark em { color: var(--ochre); }
.bar-wall a:hover, .bar-wall a[aria-current="page"] { color: var(--ochre); }

.lost {
  isolation: isolate; overflow: hidden;
  min-height: clamp(640px, 100vh, 1000px); min-height: clamp(640px, 100svh, 1000px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: 64px clamp(40px, 6vw, 96px);
  padding: 140px max(var(--gutter), calc((100% - var(--wide)) / 2)) 120px;
  color: var(--cream);
  background-color: var(--wall);
  background-image:
    radial-gradient(1000px 600px at 66% -140px, rgba(255, 241, 214, 0.15), transparent 70%),
    linear-gradient(180deg, var(--wall-top) 0, #1a2b2c 620px, var(--wall) 1200px);
  background-repeat: no-repeat;
}
.lost .kicker { color: var(--ochre); }
.lost h1 {
  margin: 22px 0 0; white-space: normal;
  font-size: clamp(46px, 6vw, 88px); line-height: 0.98; max-width: 7em; text-wrap: balance;
}
.lost .lead { margin-top: 28px; max-width: 22em; font-size: clamp(19px, 1.6vw, 22px); color: var(--cream-soft); }
.lost .lead a { color: var(--cream); white-space: nowrap; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; }

.lost-work { display: flex; align-items: flex-end; gap: 24px; justify-self: center; }
.lost-frame {
  position: relative; flex: none;
  width: clamp(250px, 29vw, 420px); padding: clamp(14px, 1.5vw, 22px);
  background: var(--frame);
  box-shadow: inset 0 3px 0 #3b3631, 0 2px 2px rgba(0, 0, 0, 0.3), 0 34px 60px -14px rgba(0, 0, 0, 0.7);
}
.lost-frame::before {          /* the picture light's pool on the wall */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -60%; right: -60%; top: -40%; bottom: 10%;
  background: radial-gradient(closest-side, rgba(255, 238, 205, 0.15), rgba(255, 238, 205, 0.05) 60%, transparent);
}
.lost-canvas {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--paper);
  box-shadow: 0 0 0 2px var(--brass);
}
.lost .edition { width: 210px; flex: none; }

/* ------------------------------------------------------------------ Without JavaScript */

@media (scripting: none) {
  .hero > noscript { display: contents; }   /* only here: with scripting on, noscript holds raw text */
  .field, .wink { display: none; }
  .bar nav, .bar .mark { padding: 10px 16px; margin: -10px -16px; background: var(--paper-hi); }
  .bar .mark { margin-right: auto; }
  .bar-wall nav, .bar-wall .mark { padding: 0; margin: 0; background: none; }
  .bar-wall .mark { margin-right: auto; }
  .edition .label-medium { margin-top: 4px; }
  .intro { padding: 28px 32px 32px; margin-left: -32px; background: var(--paper-hi); box-shadow: 0 10px 30px -16px rgba(27, 42, 65, 0.5); }
}

/* ------------------------------------------------------------------ Narrower screens */

@media (max-width: 1280px) {
  .lost-work { flex-direction: column; align-items: flex-start; }
  .work, .work-toccata { flex-direction: column; align-items: flex-start; gap: 18px; }
  .work .label, .work-toccata .label { width: auto; max-width: 300px; text-align: left; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 96px; gap: 28px; }
  h1 { font-size: clamp(40px, 14.6vw, 112px); }
  .edition { justify-self: start; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  .steps li, .steps li:nth-child(2), .steps li:nth-child(3) { margin-top: 0; max-width: 34em; padding-left: 28px; border-left: 5px solid var(--ochre); border-radius: 0; }
  .step-n { font-size: 72px; }
  .steps h3 { margin-top: 16px; }
  .thread { display: none; }
  .screen { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .screen .tv, .screen figcaption { grid-column: 1; }
  .screen figcaption { grid-row: 2; max-width: none; }
  .where-head, .sources, .chains { grid-column: 1 / -1; }
  .where-head { position: static; margin-bottom: 40px; }
  .coda { grid-template-columns: minmax(0, 1fr); }
  .sect { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .sect > h2, .sect-body { grid-column: 1; }
  .sect > h2 { position: static; }
  .lost { grid-template-columns: minmax(0, 1fr); align-content: center; padding-top: 112px; }
  .lost-work { justify-self: stretch; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero { padding-top: max(250px, 36svh); }   /* the painting gets the top of the screen */
  .bar { padding-top: 20px; }
  .bar nav { gap: 22px; }
  .intro .lede { margin-top: 20px; }
  .soon { font-size: 11.5px; letter-spacing: 0.06em; gap: 10px; }
  .hang { gap: 64px; }
  .work-toccata .frame, .work-yod .frame { width: min(100%, 340px); }
  .work-yod .frame { width: min(84%, 290px); }
  .notes li { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .swatch { width: 48px; }
  .keepsake-frame { width: min(100%, 340px); }
  .foot { flex-direction: column; }
  .bar .mark { font-size: 20px; }
  .lost-frame { width: min(100%, 330px); }
  /* the works stack with their labels flush left: the credit line follows them */
  .collection-note { text-align: left; margin-left: 0; font-size: 14.5px; }
  .collection-note::before { margin-left: 0; }
}

@media (scripting: none) and (max-width: 560px) {
  .intro { padding: 22px 18px 24px; margin-left: -6px; margin-right: -6px; }
}

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