:root {
  color-scheme: dark;
  --ink: #020814;
  --text: #f9fdff;
  --muted: #b7cadb;
  --mint: #8fffe2;
  --border: rgba(160, 217, 250, .22);
  --gradient: linear-gradient(105deg, #c9ffe6, #78f6dc 52%, #7cc8ff);
}

@font-face {
  font-family: Thmanyah;
  src: url("/assets/fonts/thmanyah-serif-display/thmanyahserifdisplay-Regular.woff2") format("woff2");
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 22% 21%, #0b2933, transparent 52%),
    radial-gradient(ellipse at 86% 79%, #0b2142, transparent 52%),
    var(--ink);
  font: 16px/1.5 Manrope, system-ui, sans-serif;
}

[dir="rtl"] body { font-family: system-ui, sans-serif; }

[data-site-background] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page {
  position: relative;
  width: min(100% - 36px, 470px);
  margin-inline: auto;
  padding-block: 16px 28px;
}

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

a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

.utility-bar {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.utility {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  color: var(--muted);
  border-radius: 8px;
  font: inherit;
  font-size: .81rem;
  font-weight: 700;
  cursor: pointer;
}

.utility:hover { color: var(--mint); }

.profile {
  margin-block: 20px 26px;
  text-align: center;
}

.clinic-mark {
  display: block;
  width: 84px;
  height: 84px;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 0 36px rgba(66, 231, 205, .14);
}

h1 {
  margin: 16px 0 5px;
  color: var(--mint);
  background: var(--gradient);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font: 400 clamp(1.95rem, 7.6vw, 3.05rem)/1.13 Georgia, serif;
  letter-spacing: -.04em;
  text-wrap: balance;
}

[dir="rtl"] h1 {
  font-family: Thmanyah, Georgia, serif;
  letter-spacing: normal;
  line-height: 1.4;
  padding-block: .08em;
}

.profile p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

.link-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(19, 43, 59, .91), rgba(8, 20, 38, .84));
  box-shadow: 0 5px 18px rgba(0, 0, 0, .15);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.link-card-primary {
  color: #041422;
  border-color: transparent;
  background: var(--gradient);
  box-shadow: 0 6px 24px rgba(87, 230, 216, .22);
}

.link-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--mint);
  border: 1px solid rgba(143, 255, 226, .16);
  border-radius: 10px;
  background: rgba(143, 255, 226, .06);
}

.link-card-primary .link-icon {
  color: inherit;
  border-color: rgba(4, 20, 34, .16);
  background: rgba(4, 20, 34, .07);
}

.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-copy { line-height: 1.35; }
.link-copy strong, .link-copy > span { display: block; }

.link-copy > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: .81rem;
}

.link-card-primary .link-copy > span { color: #183b48; }
.link-arrow { opacity: .8; }
[dir="rtl"] .link-arrow { transform: scaleX(-1); }

.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.socials a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(6, 20, 35, .86);
  transition: border-color 180ms ease, color 180ms ease;
}

@media (hover: hover) {
  .link-card:hover {
    transform: translateY(-2px);
    border-color: var(--mint);
    box-shadow: 0 8px 24px rgba(74, 218, 218, .16);
  }

  .socials a:hover {
    color: var(--mint);
    border-color: var(--mint);
  }
}

@media (min-width: 720px) and (min-height: 800px) {
  .page { padding-block: 28px; }
  .profile { margin-block: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  .link-card, .socials a { transition: none; }
  .link-card:hover { transform: none; }
}

@media (forced-colors: active) {
  h1 { -webkit-text-fill-color: CanvasText; }
  .link-card, .socials a { border-color: LinkText; }
}
