:root {
  color-scheme: light;
  --neutral-light-grey-150: #f0f0f0;
  --neutral-light-grey-200: #eaeaea;
  --page: #ffffff;
  --surface-name-pill: var(--neutral-light-grey-150);
  --surface-name-pill-hover: var(--neutral-light-grey-200);
  --surface-name-pill-pressed: #e4e4e4;
  --icon-copy-success: #237a46;
  --text: #18181a;
  --text-muted: #58585c;

  color: var(--text);
  background: var(--page);
  font-family: system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: clamp(1.5rem, 5vw, 2rem);
}

.holding-page {
  box-sizing: border-box;
  min-block-size: 100vh;
  min-block-size: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
}

main {
  max-inline-size: 22.5rem;
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.email-pill {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-block-size: 2.75rem;
  max-inline-size: 100%;
  padding: 0.625rem 1.125rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface-name-pill);
  color: inherit;
  font: inherit;
  font-size: 1.25rem;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.email-pill[hidden] {
  display: none;
}

.copy-swap {
  --copy-hidden-scale: 0.88;
  display: grid;
  min-inline-size: 0;
}

.copy-swap > * {
  grid-area: 1 / 1;
}

.copy-confirmation,
.email-pill[data-copied] .copy-default {
  opacity: 0;
}

.email-pill[data-copied] .copy-confirmation {
  opacity: 1;
}

.copy-icons {
  --copy-hidden-scale: 0.25;
  flex: none;
  translate: 0 -0.5px;
}

.copy-icons .copy-confirmation {
  color: var(--icon-copy-success);
  translate: 0 1px;
}

.copy-status:not(.is-error) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (hover: hover) {
  .email-pill:hover {
    background: var(--surface-name-pill-hover);
  }
}

.email-pill:active {
  background: var(--surface-name-pill-pressed);
}

@media (prefers-reduced-motion: no-preference) {
  .email-pill {
    transition: scale 120ms ease-out;
  }

  .email-pill:active {
    scale: 0.96;
  }

  .copy-swap > * {
    transform-origin: center;
    transition: opacity 150ms ease-out, filter 150ms ease-out, scale 150ms ease-out;
  }

  .copy-confirmation,
  .email-pill[data-copied] .copy-default {
    filter: blur(2px);
    scale: var(--copy-hidden-scale);
  }

  .email-pill[data-copied] .copy-confirmation {
    filter: none;
    scale: 1;
  }
}

.email-pill:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--text);
}
