/* A single painting: the work as large as the screen allows on a glow of its own colour,
   then title, price, one clear action, the facts, and Melina with the painting for scale. */
.work {
  position: relative;
  padding-block: 1rem clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(ellipse 70% 55% at 28% 30%, color-mix(in srgb, var(--tint, var(--night-up)) 55%, transparent), transparent 70%),
    var(--night);
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; font-family: var(--font-label); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.6rem; }
.crumbs a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }

.work-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.work-media { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; place-items: center; }
.work-media img {
  max-height: calc(100vh - var(--header-h) - 3rem);
  width: auto;
  height: auto;
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.85), 0 0 0 1px rgb(255 255 255 / 0.06);
}

.work-info { display: grid; gap: 1.3rem; min-width: 0; align-content: start; padding-top: clamp(0rem, 3vw, 2.5rem); }
.work-info h1 { font-size: var(--step-3); }
.price-row { display: grid; gap: 0.35rem; }
.work-price { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--sun); font-variant-numeric: lining-nums tabular-nums; }
.price-note { color: var(--ink-soft); font-size: 0.98rem; }
.state { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-label); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.state::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.state.is-sold::before { background: var(--coral); box-shadow: 0 0 12px var(--coral); }

.ask { display: grid; gap: 0.6rem; justify-items: start; }
.ask .button { width: 100%; max-width: 26rem; min-height: 58px; font-size: 0.92rem; }
.ask-note { font-size: 0.95rem; color: var(--ink-soft); }

.desc { font-size: 1.12rem; max-width: 58ch; }
.facts { display: grid; grid-template-columns: auto 1fr; margin: 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding-block: 0.75rem; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { font-family: var(--font-label); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); padding-right: 1.5rem; }
.facts-note { color: var(--ink-soft); font-style: italic; border-left: 2px solid var(--sun); padding-left: 0.9rem; }

.inquiry { display: grid; gap: 1rem; padding: clamp(1rem, 3vw, 1.6rem); background: var(--night-up); border: 1px solid var(--field-line); border-radius: 6px; }
.inquiry .address { font-size: 1rem; overflow-wrap: anywhere; }
.inquiry .address strong { color: var(--sun); font-weight: 500; user-select: all; }
.inquiry label { font-family: var(--font-label); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.inquiry textarea {
  width: 100%;
  min-height: 10rem;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--night);
  border: 1px solid var(--field-line);
  border-radius: 4px;
  padding: 0.8rem;
  resize: vertical;
}
.inquiry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; }

.with-artist { margin-top: clamp(3rem, 8vw, 6rem); margin-bottom: 0; display: grid; isolation: isolate; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.with-artist .photo { position: relative; justify-self: end; width: 100%; max-width: 460px; transform: rotate(-2deg); }
.with-artist .photo::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--sun); z-index: -1; transform: rotate(3deg); }
.with-artist img { width: 100%; height: auto; box-shadow: 0 30px 70px -25px rgb(0 0 0 / 0.8); }
.with-artist figcaption { display: grid; gap: 0.8rem; max-width: 30rem; }
.with-artist figcaption h2 { font-size: var(--step-2); }

.more { margin-top: clamp(3rem, 8vw, 6rem); display: grid; gap: 1.4rem; }
.more-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.more h2 { font-size: var(--step-2); }
.more-head a { font-family: var(--font-label); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; min-height: 44px; display: inline-flex; align-items: center; }
.more .grid { margin-block: 0; padding: 0; }

@media (max-width: 860px) {
  .work-body { grid-template-columns: minmax(0, 1fr); }
  .work-media { position: static; }
  .work-media img { max-height: 65svh; }
  .work-info { padding-top: 0; gap: 1rem; }
  .crumbs { margin-bottom: 0.2rem; }
  .with-artist { grid-template-columns: minmax(0, 1fr); }
  .with-artist .photo { justify-self: center; width: calc(100% - 32px); max-width: 320px; }
}
