* { box-sizing: border-box; }
html, body { margin: 0; background: white; }
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  --angel-width: min(179.775svh, 248vw, max(100vw, 135svh));
  grid-template-rows: auto auto auto;
  justify-items: center;
  align-content: start;
  overflow: hidden;
}
.masthead {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: white;
}
.masthead img {
  display: block;
  width: 100%;
  height: auto;
  /* Clip the hairline at the edge of the scanned artwork. */
  transform: scale(1.004);
}
.announcement {
  position: absolute;
  inset: auto 0 4%;
  margin: 0;
  font: 500 clamp(14px, 2vw, 30px)/1.3 Georgia, serif;
  color: #26364c;
  text-align: center;
}
.artwork {
  align-self: start;
  position: relative;
  width: var(--angel-width);
  aspect-ratio: 1920 / 1068;
  container-type: inline-size;
}
.artwork img { display: block; width: 100%; height: auto; }
main::before {
  content: '';
  grid-row: 2;
  width: 100%;
  height: clamp(9px, 1.1vw, 17px);
  background: #888282 url("stone-edge.webp") repeat-x center / auto 100%;
}
.masthead { grid-row: 1; }
main::after {
  content: '';
  grid-area: 3 / 1;
  justify-self: stretch;
  background: #000;
}
.artwork {
  grid-area: 3 / 1;
  z-index: 1;
}
nav {
  position: absolute;
  left: 49%;
  bottom: 0.5%;
  transform: translateX(-50%);
  width: min(31.5%, 92vw);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}
nav a {
  display: grid;
  grid-template-rows: max-content auto;
  align-content: start;
  justify-items: center;
  gap: clamp(3px, .35cqw, 6px);
  padding: clamp(4px, .5cqw, 8px) 2px 2px;
  color: #fffaf3;
  text-shadow: 0 1px 2px #151111, 0 0 3px #292524;
  text-decoration: none;
  text-align: center;
  text-wrap: balance;
  font: 700 clamp(11.5px, 1.02cqw, 17px)/1.12 Georgia, serif;
  min-height: clamp(54px, 4.8cqw, 84px);
}
nav a::before {
  content: '';
  border-block: clamp(5px, .48cqw, 8px) solid transparent;
  border-left: clamp(9px, .85cqw, 15px) solid currentColor;
  filter: drop-shadow(0 1px 1px #262221);
}
nav a:hover, nav a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
nav a:focus-visible { outline: 1px solid currentColor; }
@media (max-height: 480px) and (orientation: landscape) {
  main { --angel-width: max(820px, 100vw); }
}
@media (prefers-reduced-motion: no-preference) {
  .ready::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    clip-path: polygon(34% 0,42% 0,40% 25%,46% 39%,49% 41%,52% 38%,55% 23%,53% 0,62% 0,66% 24%,69% 59%,66% 80%,60% 99%,62% 77%,56% 94%,50% 89%,41% 89%,36% 96%,32% 80%,30% 63%,31% 29%);
    background: linear-gradient(112deg, transparent 40%, rgb(255 248 209 / 22%) 47%, rgb(255 255 235 / 65%) 50%, transparent 57%) 100% 0 / 320% 100% no-repeat;
    mix-blend-mode: screen;
    animation: shimmer 5s ease-in-out .15s infinite both;
  }
}
@keyframes shimmer {
  0% { background-position: 100% 0; opacity: 0; }
  8%, 35% { opacity: .88; }
  46%, 100% { background-position: 0% 0; opacity: 0; }
}
