/* OF MATTER — the photograph a screen stands on.
   Needs of-tokens.css. <section class="of-matter" data-field="vindur" data-photo="vindur">

   The photograph fills the surface, uncropped by any frame; the shade is the field's own
   ground laid over it, heavier at the sides where the columns stand. Photographs by Outer
   Fields, graded for this use: photos/README.md. */

.of-matter { position: relative; isolation: isolate; overflow: hidden; background-color: var(--of-ground); color: var(--of-ink); }
.of-matter::before, .of-matter::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.of-matter::before { z-index: -2; background: var(--of-ground) center / cover no-repeat; }
.of-matter::after {
  z-index: -1;
  --_side: color-mix(in srgb, var(--of-ground) var(--of-shade-side), transparent);
  --_mid:  color-mix(in srgb, var(--of-ground) var(--of-shade-mid), transparent);
  background: linear-gradient(to right, var(--_side) 18%, var(--_mid) 34% 66%, var(--_side) 82%);
}
/* on a narrow screen the columns go under the field: the whole surface takes the side's shade */
.of-matter[data-shade="side"]::after { background: var(--_side); }
@media (max-width: 860px) { .of-matter::after { background: var(--_side); } }
/* a photograph that is only looked at */
.of-matter[data-shade="none"]::after { background: linear-gradient(to top, color-mix(in srgb, var(--of-ground) 78%, transparent), transparent 46%); }

.of-matter[data-photo="vindur"]::before     { background-image: url(photos/vindur.webp); }
.of-matter[data-photo="skjalfti"]::before   { background-image: url(photos/skjalfti.webp); }
.of-matter[data-photo="nordurljos"]::before { background-image: url(photos/nordurljos.webp); }
.of-matter[data-photo="jokull"]::before     { background-image: url(photos/jokull.webp); }
.of-matter[data-photo="stellar"]::before    { background-image: url(photos/stellar.webp); }
.of-matter[data-photo="microfoni"]::before  { background-image: url(photos/microfoni.webp); }
.of-matter[data-photo="lava-mic"]::before   { background-image: url(photos/lava-mic.webp); background-position: center 70%; }
