/*
  The intro: the site entry. It is a single clickable mark that opens
  the about page. Scoped to body.intro so it cannot affect other pages.
*/

.bar {
  justify-content: center;
}

h1 {
  text-align: center;
}

.meta {
  text-align: center;
}

body.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 2rem;
}

body.intro .bar {
  display: none;
}

body.intro main {
  width: 100%;
  padding: 0;
}

body.intro article {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.intro h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.intro {
  display: flex;
  justify-content: center;
}

.intro-mark {
  display: block;
  width: min(40vmin, 13rem);
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

body.intro a.intro-mark:hover,
body.intro a.intro-mark:focus-visible {
  color: inherit;
  background: transparent;
  text-decoration: none;
}

.intro-glyph {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: currentColor;
  -webkit-mask: url("/assets/symbol.svg") center / contain no-repeat;
  mask: url("/assets/symbol.svg") center / contain no-repeat;
  image-rendering: pixelated;
  transition: transform 180ms ease, filter 180ms ease;
}

.intro-mark:hover .intro-glyph,
.intro-mark:focus-visible .intro-glyph {
  filter: drop-shadow(0 0 1.5rem currentColor);
  transform: scale(1.02);
}

@media (max-width: 640px) {
  body.intro {
    padding: 1.25rem;
  }

  .intro-mark {
    width: min(52vmin, 9.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-glyph {
    transition: none;
  }

  .intro-mark:hover .intro-glyph,
  .intro-mark:focus-visible .intro-glyph {
    transform: none;
  }
}

/* Justify body copy only; keep headings, nav and metadata centered. */
article > p,
article > blockquote p {
  text-align: justify;
}
