/* Art Sales: each piece sits small in a large dark grey square with generous space around it
   (after Fair Play's shop), on the stone ground of the artist pages. 3 across, 2 on phones. */

.page-available main { background: var(--stone); padding-bottom: var(--space-6); }
.avail__head { text-align: center; padding: var(--space-5) var(--gutter) 0; }
.avail__head .card-heading { margin-bottom: 1rem; }
.avail__head h1 {
  font-family: "Alegreya Sans SC", var(--body); font-weight: 400; text-transform: none;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: 0.08em; margin-right: -0.08em; line-height: 1.15;
}
.avail__intro { max-width: 34rem; margin: 1.6rem auto 0; font-size: 0.97rem; line-height: 1.7; }   /* same as the body text on the About page */

.avail__grid {
  list-style: none; padding: 0; margin: var(--space-5) auto 0;
  width: min(100% - 2 * var(--gutter), 66rem);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem clamp(1rem, 2.6vw, 2.25rem);
}
@media (max-width: 40rem) { .avail__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1rem; } }

.avail__link { display: block; text-decoration: none; color: inherit; }
/* The square: dark grey with a single fine line (a pale line inside it when pointed at), and the work
   held well inside it, whatever its shape */
.avail__tile { position: relative; display: block; aspect-ratio: 1; background: var(--box-dark); border: 1px solid var(--ink); }
.avail__tile::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--paper); pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.avail__link:is(:hover, :focus-visible) .avail__tile::before { opacity: 1; }
.avail__link:focus-visible { outline: none; }
.avail__fit { position: absolute; inset: 15%; display: flex; align-items: center; justify-content: center; }
.avail__fit img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.avail__fit img.is-framed { border: 1px solid var(--paper); }   /* a light fine line round framed works */
.avail__fit img.is-grounded { filter: drop-shadow(0 5px 5px rgb(0 0 0 / .55)) drop-shadow(0 1px 1px rgb(0 0 0 / .4)); }   /* deep enough to show on the grey */

.avail__artist { display: block; margin-top: .9rem; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.avail__title { display: block; margin-top: .15rem; font-size: 1.08rem; line-height: 1.3; }
.avail__link:is(:hover, :focus-visible) .avail__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.avail__details { margin: .2rem 0 0; font-size: .85rem; color: var(--ink-soft); }
.avail__price { margin: .45rem 0 0; font-size: .98rem; }
.avail__price s { color: var(--ink-soft); margin-right: .3rem; }
.avail__label {
  display: inline-block; margin-right: .5rem; padding: .05rem .45rem; vertical-align: .08em;
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--ink);
}
.avail__price:is(.is-sold, .is-status) { color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; }
.avail__unframed { color: var(--ink-soft); font-size: .88rem; }

/* Site forms (Get in touch, Get Updates): labelled boxes and a dark Send button, inside a text-page card */
.enquiry { display: grid; gap: 1rem; margin-top: 1.5rem; text-align: left; }
.enquiry label { display: grid; gap: .3rem; font-size: .9rem; }
.enquiry__optional { color: var(--ink-soft); }
.enquiry :is(input, select, textarea) {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fbf9f3;
  border: 1px solid var(--ink); border-radius: 0; padding: .55rem .65rem; width: 100%;
}
.enquiry textarea { resize: vertical; }
.enquiry :is(input, select, textarea):focus-visible { outline: 2px solid var(--heath); outline-offset: 1px; }
.enquiry__trap { position: absolute; left: -9999px; }
.enquiry button {
  justify-self: center; font: inherit; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink); padding: .6rem 2rem; cursor: pointer;
}
.enquiry button:hover { background: var(--heath); }
.enquiry button:disabled { opacity: .6; cursor: default; }
.enquiry__status { margin: 0; min-height: 1.4em; text-align: center; font-size: .9rem; color: var(--ink-soft); }
/* A form inside a text-page card (Email Updates) */
.text-card .enquiry { margin-top: 1rem; }
.text-card .enquiry label { font-size: .9rem; }
/* One print in several sizes (Liron Kroll): a line per size, its price at the right */
.avail__sizes { list-style: none; margin: .35rem 0 0; padding: 0; font-size: .85rem; color: var(--ink-soft); }
.avail__sizes li { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .2rem 0; border-top: 1px solid rgb(28 41 37 / .15); }
.avail__sizes li:last-child { border-bottom: 1px solid rgb(28 41 37 / .15); }
.avail__size-price { color: var(--ink); font-size: .98rem; white-space: nowrap; }

/* Filter: All works / Available only, two linked buttons under the introduction */
.avail__filter { display: flex; justify-content: center; margin: var(--space-4) auto 0; }
.avail__filter[hidden] { display: none; }
.avail__filter button {
  font: inherit; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  color: var(--ink); background: transparent; border: 1px solid var(--ink); padding: .5rem 1.1rem;
}
.avail__filter button + button { border-left: 0; }
.avail__filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.avail__filter button:focus-visible { outline: 2px solid var(--heath); outline-offset: 2px; }
.avail__grid.is-available-only [data-sold] { display: none; }
.avail__filter + .avail__grid { margin-top: var(--space-4); }
