@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-serif-display-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
}

:root {
  --forest-950: #0c2d26;
  --forest-900: #123a30;
  --forest-800: #1b4a3c;
  --forest-600: #3e715e;
  --sand-100: #f4f0e6;
  --sand-200: #e7dfcb;
  --gold-300: #dec66f;
  --sky-100: #d9edf0;
  --ink: #18211e;
  --muted: #66716c;
  --white: #fffef9;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--forest-950);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(217, 237, 240, 0.6), transparent 34%),
    linear-gradient(155deg, var(--sand-100) 0%, var(--white) 52%, var(--sky-100) 100%);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  border: 1px solid rgba(62, 113, 94, 0.16);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body::before {
  top: -170px;
  right: -210px;
  width: 430px;
  height: 430px;
}

body::after {
  bottom: -260px;
  left: -210px;
  width: 520px;
  height: 520px;
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--gold-300);
  outline-offset: 4px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

#card-root {
  position: relative;
  z-index: 1;
  width: min(100% - 28px, 500px);
  margin-inline: auto;
  padding: 18px 0 10px;
}

.contact-card {
  border: 1px solid rgba(12, 45, 38, 0.09);
  border-radius: 18px;
  padding: 22px 20px 20px;
  background: rgba(255, 254, 249, 0.95);
  box-shadow: 0 28px 90px rgba(10, 39, 32, 0.16);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest-950);
  text-decoration: none;
}

.brand-monogram {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--forest-600);
  border-radius: 7px;
  color: var(--forest-900);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.brand-monogram span,
.brand-name span {
  color: var(--forest-600);
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.card-kicker {
  color: var(--forest-600);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
}

.portrait-frame {
  position: relative;
  width: 164px;
  height: 164px;
  margin: 34px auto 0;
  border: 7px solid var(--white);
  border-radius: 50%;
  background: var(--sand-100);
  box-shadow: 0 16px 42px rgba(10, 39, 32, 0.18);
  overflow: hidden;
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: inherit;
  box-shadow: inset 0 0 0 6px rgba(255, 254, 249, 0.1);
  content: "";
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-lehohla img {
  object-position: 56% center;
}

.portrait-nakedi img {
  object-position: center 36%;
}

.portrait-nkosi img {
  object-position: center 36%;
}

.identity {
  margin-top: 26px;
  text-align: center;
}

.role {
  margin: 0;
  color: var(--forest-600);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1 {
  margin: 9px 0 0;
  color: var(--forest-950);
  font-family: var(--font-display);
  font-size: clamp(34px, 10vw, 44px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.organisation {
  max-width: 360px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.save-contact {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  border-radius: 6px;
  padding: 11px 20px;
  background: var(--forest-950);
  color: var(--white);
  gap: 13px;
  text-decoration: none;
}

.save-contact:hover {
  background: var(--forest-800);
}

.save-contact svg {
  width: 25px;
  height: 25px;
  flex: none;
}

.save-contact span {
  display: flex;
  flex-direction: column;
}

.save-contact strong {
  font-size: 14px;
  line-height: 1.3;
}

.save-contact small {
  color: rgba(255, 254, 249, 0.68);
  font-size: 9px;
  letter-spacing: 0.025em;
}

.quick-actions {
  display: grid;
  margin-top: 12px;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quick-actions a {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sand-200);
  border-radius: 6px;
  background: var(--sand-100);
  color: var(--forest-900);
  font-size: 12px;
  font-weight: 700;
  gap: 9px;
  text-decoration: none;
}

.quick-actions a:hover {
  border-color: var(--forest-600);
}

.quick-actions svg {
  width: 19px;
  height: 19px;
}

.contact-details {
  margin: 26px 0 0;
  border-top: 1px solid var(--sand-200);
}

.contact-details div {
  display: grid;
  border-bottom: 1px solid var(--sand-200);
  padding: 17px 0;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
}

.contact-details dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-details dd {
  min-width: 0;
  margin: 0;
  color: var(--forest-950);
  font-size: 13px;
  font-weight: 600;
}

.contact-details a {
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.related-links {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  gap: 22px;
}

.related-links a {
  display: inline-flex;
  align-items: center;
  color: var(--forest-600);
  font-size: 10px;
  font-weight: 700;
  gap: 5px;
  text-decoration: none;
}

.related-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.related-links svg {
  width: 13px;
  height: 13px;
}

.share-card {
  margin-top: 25px;
  border-top: 1px solid var(--sand-200);
}

.share-card summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  color: var(--forest-950);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  list-style: none;
}

.share-card summary::-webkit-details-marker {
  display: none;
}

.share-card summary > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.share-card summary svg {
  width: 17px;
  height: 17px;
}

.summary-mark {
  position: relative;
  width: 16px;
  height: 16px;
}

.summary-mark::before,
.summary-mark::after {
  position: absolute;
  top: 7px;
  left: 2px;
  width: 12px;
  height: 1px;
  background: var(--forest-600);
  content: "";
}

.summary-mark::after {
  transform: rotate(90deg);
}

.share-card[open] .summary-mark::after {
  transform: rotate(0);
}

.share-content {
  display: grid;
  align-items: center;
  padding: 8px 0 12px;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
}

.share-content > img {
  display: block;
  width: 112px;
  height: 112px;
  background: #ffffff;
}

.share-content p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
  gap: 12px;
}

.download-links a {
  color: var(--forest-800);
  font-size: 10px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.page-note {
  position: relative;
  z-index: 1;
  width: min(100% - 44px, 460px);
  margin: 15px auto 22px;
  color: rgba(12, 45, 38, 0.62);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.unavailable {
  margin-top: 24px;
  border-radius: 12px;
  padding: 40px 24px;
  background: var(--white);
  text-align: center;
}

@media (min-width: 560px) {
  #card-root {
    padding-top: 42px;
  }

  .contact-card {
    padding: 28px 34px 26px;
  }

  .portrait-frame {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 360px) {
  .card-kicker {
    display: none;
  }

  .contact-card {
    padding-right: 16px;
    padding-left: 16px;
  }

  .related-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
