:root {
  color-scheme: light;
  font-family: Georgia, "Times New Roman", serif;
  background: #9b9b98;
}

@font-face {
  font-family: "Roly Poly Display";
  src:
    local("New York"),
    local("NewYork-Regular");
  font-style: normal;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

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

html {
  background-color: #929391;
}

body {
  color: #050505;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #929391;
  background-image:
    linear-gradient(rgb(202 203 199 / 58%), rgb(202 203 199 / 58%)),
    url("assets/industrial-concrete-fine-optimized.jpg"),
    radial-gradient(circle at 18% 22%, rgb(78 80 77 / 16%) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 34%, rgb(255 255 255 / 12%) 0 1px, transparent 2px),
    radial-gradient(circle at 44% 72%, rgb(69 70 67 / 12%) 0 1.5px, transparent 3px),
    linear-gradient(135deg, rgb(60 61 58 / 8%), transparent 34%, rgb(255 255 255 / 7%) 72%, transparent);
  background-position:
    center,
    center,
    0 0,
    12px 18px,
    28px 7px,
    center;
  background-size:
    cover,
    cover,
    46px 46px,
    62px 62px,
    82px 82px,
    cover;
  background-repeat:
    no-repeat,
    no-repeat,
    repeat,
    repeat,
    repeat,
    no-repeat;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.02;
  background:
    linear-gradient(115deg, rgb(255 255 255 / 10%), transparent 42%),
    radial-gradient(circle at 50% 42%, transparent 24%, #666966 130%);
}

.page {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.identity {
  display: flex;
  width: min(42rem, 78vw);
  flex-direction: column;
  align-items: center;
  transform: translateY(-1.1rem);
}

.logo-lockup {
  position: relative;
  display: block;
  width: min(17.9rem, 45.25vw);
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

.descriptor {
  align-self: center;
  width: max-content;
  max-width: 100%;
  margin: clamp(1.8rem, 3.7vw, 2.75rem) 0 0;
  font-family: "Roly Poly Display", Didot, Georgia, serif;
  font-size: clamp(0.8rem, 1.5vw, 1.1rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.045em;
  text-align: center;
  white-space: nowrap;
}

.email-link {
  position: absolute;
  bottom: max(1.6rem, env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  color: #050505;
  place-items: center;
  transform: translateX(-50%);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.email-link svg {
  width: 2.25rem;
  height: 2.25rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.email-link:hover {
  opacity: 0.55;
  transform: translateX(-50%) translateY(-2px);
}

.email-link:focus-visible {
  border-radius: 999px;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.custom-cursor,
.cursor-trail {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body,
  a {
    cursor: none;
  }

  .custom-cursor,
  .cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: block;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
  }

  .custom-cursor {
    width: 8px;
    height: 8px;
    background: #050505;
    transition:
      width 150ms ease,
      height 150ms ease,
      opacity 150ms ease;
  }

  .cursor-trail {
    z-index: 99;
    width: 26px;
    height: 26px;
    background: rgb(5 5 5 / 18%);
    filter: blur(8px);
    transition: opacity 180ms ease;
    will-change: left, top;
  }

  .custom-cursor.is-visible,
  .cursor-trail.is-visible {
    opacity: 1;
  }

  .custom-cursor.is-over-link {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 36rem) {
  .identity {
    width: 88vw;
  }

  .logo-lockup {
    width: min(15.25rem, 54.25vw);
  }

}

@media (prefers-reduced-motion: reduce) {
  body,
  a {
    cursor: auto;
  }

  .custom-cursor,
  .cursor-trail {
    display: none;
  }

  .email-link {
    transition: none;
  }
}
