@font-face {
  font-family: Tajawal;
  src: url("fonts/Tajawal-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Tajawal;
  src: url("fonts/Tajawal-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Tajawal, Arial, sans-serif;
  color: #24252b;
  background: #f9fafb;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  letter-spacing: 0;
}

.cover {
  height: 228px;
  overflow: hidden;
  background: #e5e7eb;
}

.cover-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.profile {
  width: min(100%, 492px);
  margin: 0 auto;
  padding: 0 24px max(28px, env(safe-area-inset-bottom));
}

.identity {
  position: relative;
  text-align: center;
  margin-top: -43px;
  margin-bottom: 25px;
}

.identity-photo {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 4px solid #f9fafb;
  border-radius: 8px;
  box-shadow: 0 3px 12px #17191f14;
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.4;
  font-weight: 700;
}

.wordmark {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #71727a;
}

.social-links {
  display: grid;
  gap: 10px;
}

.social-link,
.location-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 15px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: #783d5520;
}

.social-link {
  background: #fff;
  border: 1px solid #e1e3e8;
  border-radius: 8px;
  box-shadow: 0 2px 3px #161a2303;
  transition: border-color 160ms, box-shadow 160ms, background-color 160ms;
}

.link-label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  overflow-wrap: anywhere;
}

.platform-name {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
}

.platform-latin {
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  line-height: 1.25;
  color: #757780;
}

.platform-icon,
.location-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.facebook .platform-icon { background: #edf3ff; }
.instagram .platform-icon { background: #fbeef3; }
.tiktok .platform-icon { background: #edf7f6; }
.snapchat .platform-icon { background: #fffbcf; }
.location-icon { background: #edeef0; }

.platform-icon img,
.location-icon img,
.link-arrow { display: block; }

.link-arrow { opacity: 0.48; }

.location {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #e1e3e8;
}

.location-link {
  border: 1px solid transparent;
  border-radius: 8px;
}

a:focus-visible {
  outline: 3px solid #794052;
  outline-offset: 4px;
}

a:active { background: #f0f1f4; }

@media (hover: hover) {
  .social-link:hover {
    border-color: #a99aa0;
    box-shadow: 0 4px 14px #2620270a;
  }

  .location-link:hover { background: #edeef2; }
  a:hover .link-arrow { opacity: 0.9; }
}

@media (min-width: 700px) {
  .cover { height: 284px; }
  .cover-photo { object-position: 50% 54%; }
  .identity { margin-top: -45px; }
  .identity-photo { width: 90px; height: 90px; }
  .profile { padding-bottom: 40px; }
}

@media (max-width: 359px) {
  .cover { height: 190px; }
  .profile { padding-inline: 18px; }
  .identity { margin-bottom: 20px; }
  h1 { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
