@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-ext-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-ext-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-ext-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/comfortaa-latin-ext-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/comfortaa-latin-ext-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/caveat-latin-ext-400-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --white: #ffffff;
  --sand-50: #fbf9f4;
  --sand-600: #7a7a6c;
  --sage-100: #d1e6d6;
  --sage-200: #acd2c3;
  --sage-500: #8abf97;
  --purple-500: #77469a;
  --teal-900: #014841;
  --olive-500: #868c68;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--sand-50);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  position: relative;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: var(--sand-50);
  color: var(--sand-600);
  font-family: "Poppins", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.staff {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 27px,
    var(--sage-100) 27px 29px
  );
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 22%,
    #000 78%,
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 22%,
    #000 78%,
    transparent
  );
}

main {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  max-width: 520px;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.mark {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  box-shadow: 0 18px 44px -22px rgba(1, 72, 65, 0.4);
}

.name {
  margin: 0;
  color: var(--purple-500);
  font-family: "Comfortaa", ui-rounded, sans-serif;
  font-size: clamp(2.75rem, 12vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

.tag {
  margin: 10px 0 0;
  color: var(--teal-900);
  font-family: "Comfortaa", ui-rounded, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rule {
  width: 64px;
  height: 2px;
  border-radius: 2px;
  background: var(--sage-500);
}

.lead {
  max-width: 38ch;
  margin: 0;
  color: var(--sand-600);
  font-size: 1.125rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.lead strong {
  color: var(--teal-900);
  font-weight: 600;
}

.links {
  display: grid;
  width: 100%;
  gap: 12px;
}

.link {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid var(--sage-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 6px 18px -14px rgba(1, 72, 65, 0.35);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.link:focus-visible {
  outline: 2px solid var(--purple-500);
  outline-offset: 3px;
}

.email-row {
  gap: 12px;
}

.email-link {
  display: flex;
  min-width: 0;
  flex: 1;
  align-self: stretch;
  align-items: center;
  gap: 14px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

.email-link:focus-visible,
.copy-button:focus-visible {
  outline: 2px solid var(--purple-500);
  outline-offset: 3px;
}

.copy-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: var(--sage-100);
  color: var(--teal-900);
  cursor: pointer;
  font: inherit;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.copy-button svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.copy-button .check-icon {
  display: none;
}

.copy-button[data-state="success"] .copy-icon {
  display: none;
}

.copy-button[data-state="success"] .check-icon {
  display: block;
}

.copy-button[data-state="success"] {
  background: var(--sage-200);
}

.copy-button[data-state="error"] {
  color: var(--purple-500);
}

.copy-label {
  font-size: 0.75rem;
  font-weight: 600;
}

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

.clipboard-fallback {
  position: fixed;
  top: -1000px;
  left: -1000px;
  opacity: 0;
  pointer-events: none;
}

.icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--teal-900);
}

.icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.link-text {
  display: grid;
  min-width: 0;
  gap: 2px;
  text-align: left;
}

.link-text small {
  color: var(--sand-600);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-text > span {
  overflow-wrap: anywhere;
  color: var(--teal-900);
  font-size: 1.125rem;
  font-weight: 500;
}

.note {
  margin: 0;
  color: var(--olive-500);
  font-family: "Caveat", cursive;
  font-size: 1.375rem;
}

footer {
  color: var(--sand-600);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

@media (hover: hover) {
  .link:hover {
    border-color: var(--sage-500);
    box-shadow: 0 14px 26px -18px rgba(1, 72, 65, 0.45);
    transform: translateY(-2px);
  }

  .copy-button:hover {
    background: var(--sage-200);
  }
}

@media (max-width: 420px) {
  .mark {
    width: 140px;
    height: 140px;
  }

  .copy-button {
    width: 44px;
    padding: 0;
  }

  .copy-label {
    display: none;
  }
}

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

  .copy-button {
    transition: none;
  }

  .link:hover {
    transform: none;
  }
}
