:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17202a;
  background: #f5f7f8;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f5f7f8;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 24px;
  color: #ffffff;
  background: #17202a;
  border-bottom: 3px solid #18aaa4;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #17202a;
  background: #67ddd5;
  border-radius: 6px;
  font-size: 13px;
}

.section-name {
  color: #c7d0d8;
  font-size: 14px;
}

main {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.page-heading {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #087f7b;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 20px;
  align-items: center;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #cbd5da;
  border-top: 3px solid #18aaa4;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgb(23 32 42 / 8%);
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.avatar {
  display: inline-grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}

.avatar-william {
  color: #075a57;
  background: #bff0ec;
}

.avatar-laurence {
  color: #704411;
  background: #f5d9a6;
}

h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.matrix-id {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  color: #5b6770;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.qr {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 148px;
  height: 148px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #d8dfe3;
}

.actions {
  display: grid;
  gap: 8px;
  align-self: end;
}

.primary-action,
.copy-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.primary-action {
  color: #ffffff;
  background: #087f7b;
  border: 1px solid #087f7b;
}

.copy-action {
  color: #26323b;
  background: #ffffff;
  border: 1px solid #b9c4ca;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #066965;
}

.copy-action:hover,
.copy-action:focus-visible {
  background: #edf2f4;
}

.primary-action:focus-visible,
.copy-action:focus-visible,
.brand:focus-visible {
  outline: 3px solid #f0b34d;
  outline-offset: 2px;
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 0 16px;
  }

  main {
    width: min(100% - 24px, 460px);
    padding-top: 28px;
  }

  h1 {
    font-size: 25px;
  }

  .contact {
    grid-template-columns: 1fr;
    justify-items: stretch;
    padding: 18px;
  }

  .qr {
    grid-column: 1;
    grid-row: auto;
    width: min(240px, 100%);
    height: auto;
    justify-self: center;
  }
}
