:root {
  --background: #ffffff;
  --text: #142033;
  --muted: #50626a;
  --link: #223f54;
  --text-gradient: linear-gradient(135deg, #06162c 0%, #092f4a 45%, #00777b 82%, #0a8f91 100%);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  font-family: "Work Sans", Arial, sans-serif;
  background: var(--background);
}

a {
  color: inherit;
  text-decoration: none;
}

.home {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 48px 24px;
  perspective: 1100px;
  text-align: center;
}

.name-card {
  display: grid;
  min-width: min(86vw, 760px);
  min-height: 260px;
  place-content: center;
  border: 1px solid rgba(8, 25, 47, 0);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 80px rgba(8, 25, 47, 0);
  padding: 54px 42px;
  touch-action: none;
  transform: rotate3d(var(--axis-x, 0), var(--axis-y, 1), 0, var(--angle, 0deg));
  transform-style: preserve-3d;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  user-select: none;
  will-change: transform;
}

.name-card.is-active {
  border-color: rgba(8, 25, 47, 0.1);
  box-shadow: 0 22px 80px rgba(8, 25, 47, 0.08);
}

.name-card:active {
  cursor: grabbing;
}

.name-card,
.name-card * {
  cursor: grab;
}

.email-link {
  cursor: pointer;
}

h1 {
  margin: 0 0 28px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(3rem, 8vw, 5.8rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
}

.email-link {
  color: var(--link);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.22rem, 3vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.email-link:hover,
.email-link:focus-visible {
  color: #87939b;
  /* text-decoration: underline;
  text-underline-offset: 5px; */
}

.archive-link {
  position: fixed;
  right: 22px;
  bottom: 18px;
  font-size: 0.85rem;
}

.archive-link a {
  color: var(--muted);
  opacity: 0.58;
}

.archive-link a:hover,
.archive-link a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 560px) {
  .home {
    padding: 36px 18px;
  }

  .name-card {
    min-height: 230px;
    padding: 42px 22px;
  }

  .archive-link {
    right: 16px;
    bottom: 14px;
  }
}
