:root {
  --black: #070707;
  --white: #f6f4ed;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
}

a {
  -webkit-tap-highlight-color: transparent;
}

.noir-page {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: clamp(56px, 8vh, 88px) 40px clamp(68px, 10vh, 110px);
  place-items: center;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.perimeter {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.monogram-stack {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  transform: translateY(-0.8vh);
  animation: reveal 520ms ease-out both;
}

.monogram {
  display: block;
  width: clamp(270px, 42vw, 525px);
  max-height: 54vh;
  object-fit: contain;
  filter: invert(1);
  mix-blend-mode: screen;
  user-select: none;
}

.established {
  margin: clamp(18px, 2.6vh, 28px) 0 0;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.42em;
  line-height: 1;
  text-indent: 0.42em;
  text-transform: uppercase;
}

.mail-link {
  display: grid;
  width: 48px;
  height: 42px;
  margin-top: 20px;
  place-items: center;
  color: inherit;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.mail-link:hover {
  opacity: 0.52;
  transform: translateY(-2px);
}

.mail-link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.paw {
  position: relative;
  display: block;
  width: 27px;
  height: 26px;
  transform: rotate(-3deg);
}

.toe,
.paw-pad {
  position: absolute;
  display: block;
  border: 1px solid currentColor;
  background: transparent;
}

.toe {
  width: 6px;
  height: 8px;
  border-radius: 50%;
}

.toe-one {
  top: 8px;
  left: 0;
  transform: rotate(-28deg);
}

.toe-two {
  top: 1px;
  left: 7px;
  transform: rotate(-12deg);
}

.toe-three {
  top: 1px;
  right: 7px;
  transform: rotate(12deg);
}

.toe-four {
  top: 8px;
  right: 0;
  transform: rotate(28deg);
}

.paw-pad {
  bottom: 0;
  left: 50%;
  width: 15px;
  height: 12px;
  border-radius: 48% 48% 44% 44% / 62% 62% 40% 40%;
  transform: translateX(-50%);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .noir-page {
    padding-right: 28px;
    padding-left: 28px;
  }

  .perimeter {
    inset: 10px;
  }

  .monogram {
    width: min(76vw, 390px);
    max-height: 48vh;
  }
}

@media (max-height: 560px) {
  .noir-page {
    padding-top: 46px;
    padding-bottom: 56px;
  }

  .monogram {
    width: min(52vh, 340px);
    max-height: 46vh;
  }

  .established {
    margin-top: 12px;
  }

  .mail-link {
    height: 34px;
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .monogram-stack {
    animation: none;
  }
}
