:root {
  color-scheme: light;
  --page: #ffffff;
  --panel: #e5e5e5;
  --ink: #222222;
  --muted: rgba(34, 34, 34, 0.7);
  --brand: #000000;
  --brand-contrast: #eeeeee;
  --line: rgba(20, 21, 23, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  width: 100%;
  min-height: 100vh;
  max-width: 24rem;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
  overflow-x: hidden;
}

p,
h2,
h3 {
  margin: 0;
}

a,
button {
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

.icon {
  display: inline-flex;
  min-width: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#modal {
  display: flex;
  flex-direction: column;
  position: absolute;
  z-index: 10;
  width: 100%;
  min-height: 100%;
  top: 2rem;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  color: var(--ink);
  background: var(--panel);
  transition: top 0.2s ease-out, opacity 0.1s ease-out;
}

#modal.is-open {
  top: 0;
  opacity: 1;
  visibility: visible;
}

#close {
  align-self: end;
  margin: 0.5rem;
  padding: 0.75rem;
  color: var(--brand);
  background: transparent;
}

#copyView,
#qrView {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 1rem;
  text-align: center;
}

#copyView[hidden],
#qrView[hidden],
#teamDirectory[hidden],
.secondary[hidden] {
  display: none;
}

#copyView p,
#qrView p {
  margin: 2rem;
  line-height: 1.5;
}

#copyURL {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 1rem 1.5rem;
  color: var(--brand-contrast);
  background: var(--brand);
}

#qrView h3 {
  margin-top: 2rem;
}

#qrView p {
  margin-top: 0.5rem;
}

#qr {
  margin: 2rem;
  padding: 2rem;
  background: #ffffff;
  border-radius: 0.5rem;
}

header {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  background: var(--page);
}

#topActions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
}

#topActions button {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  padding: 0.75rem;
  color: var(--brand);
  background: transparent;
}

#topActions button:hover {
  background: rgba(20, 21, 23, 0.06);
}

.headerImgC {
  display: grid;
  min-height: 18rem;
  align-content: start;
  justify-items: center;
  overflow: hidden;
}

#logo {
  max-height: 6rem;
  margin: 3rem 0 0;
  pointer-events: none;
  user-select: none;
}

main {
  min-height: calc(100vh - 18rem);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--panel);
}

#profilePhoto {
  width: 9.9rem;
  height: 9.9rem;
  min-width: 9.9rem;
  min-height: 9.9rem;
  max-width: 9.9rem;
  max-height: 9.9rem;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  clip-path: circle(50%);
  object-fit: cover;
  overflow: hidden;
  display: block;
  flex: 0 0 auto;
  pointer-events: none;
  user-select: none;
  margin-top: -5.95rem;
}

#profilePhoto[hidden] {
  display: none;
}

#info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 1.25rem;
  line-height: 1.25;
  word-break: break-word;
}

.name {
  font-weight: 700;
  font-size: 1.5rem;
}

.jobtitle {
  margin-top: 0.3rem;
}

.bizname,
.sub {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.sub:empty {
  display: none;
}

#cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 2rem;
  border-radius: 999px;
  padding: 1rem 1.5rem;
  color: var(--brand-contrast);
  background: var(--brand);
}

.actions {
  width: 100%;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.actionsC {
  width: 33.333%;
}

.actionBtn {
  min-height: 6rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.actionBtn a {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-contrast);
  background: var(--brand);
}

.actionBtn p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.secondary {
  margin-top: 1rem;
}

.secondary .actionBtn a {
  color: var(--brand);
  background: #ffffff;
}

#teamDirectory {
  width: 100%;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

#teamDirectory h2 {
  font-size: 1.1rem;
}

#teamLinks {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

#teamLinks a {
  display: block;
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}

@media (max-width: 22rem) {
  .actionsC {
    width: 50%;
  }
}
