/* Digital business card at /card/
   Loaded after site.css, which provides tokens, fonts and buttons. */

.card-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  padding: 0;
  background: var(--black);
}

.bizcard {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  color: var(--black);
  color-scheme: light;
}

.bizcard__banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 24px 20px 76px;
  background: var(--black);
}

.bizcard__logo {
  width: 216px;
  height: auto;
}

.bizcard__lion {
  position: absolute;
  z-index: -1;
  right: -36px;
  top: -44px;
  width: 240px;
  opacity: 0.1;
  pointer-events: none;
}

.bizcard__wave {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 56px;
  fill: var(--white);
}

.bizcard__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 20px calc(24px + env(safe-area-inset-bottom));
}

.bizcard__photo {
  position: relative;
  width: 120px;
  height: 120px;
  margin: -68px auto 0;
  padding: 3px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--white);
  object-fit: cover;
}

.bizcard__name {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.bizcard__tagline {
  margin-top: 4px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold-deep);
}

.bizcard__list {
  margin-top: 16px;
}

.bizcard__item + .bizcard__item {
  border-top: 1px dashed var(--gray-c7);
}

.bizcard__row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 9px 4px;
  transition: color 0.15s var(--ease);
}

a.bizcard__row:hover .bizcard__value {
  color: var(--gold-deep);
}

.bizcard__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
}

.bizcard__icon .icon {
  width: 18px;
  height: 18px;
}

.bizcard__label {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  color: var(--gray-666);
}

.bizcard__value {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
  transition: color 0.15s var(--ease);
}

.bizcard__actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.bizcard__actions .pill {
  min-height: 52px;
  padding: 12px 10px;
  gap: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.bizcard__actions .icon {
  width: 16px;
  height: 16px;
}

/* From tablets up it sits as a mounted card on the black page. */
@media (min-width: 560px) {
  .card-page {
    padding: 32px 20px;
  }

  .bizcard {
    width: 100%;
    max-width: 440px;
    min-height: 0;
    padding: 8px;
    border-radius: var(--radius);
  }

  .bizcard__banner {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .bizcard__body {
    padding: 0 16px 16px;
  }

  .bizcard__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
    padding-top: 20px;
  }

  .bizcard__actions .pill {
    font-size: 13.5px;
  }
}
