:root {
  --ink: #1a1715;
  --paper: #fdfaf6;
  --blush: #ead2d6;
  --rose: #b97684;
  --gold: #b58d61;
  --muted: #766c65;
  --line: rgba(45, 32, 25, .12);
  --serif: "Gilda Display", Georgia, serif;
  --sans: "Vazirmatn", "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: #e9d4d5;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: #efcbd2; color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.bio-page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 38px 20px;
  background:
    linear-gradient(115deg, rgba(38,25,20,.34), rgba(80,49,42,.06)),
    url("../images/hero-handmade.webp") center / cover fixed;
}
.bio-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(243,220,218,.22), rgba(255,250,245,.48));
  backdrop-filter: blur(2px) saturate(.85);
}
.bio-glow { position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; pointer-events: none; }
.bio-glow-one { width: 440px; height: 440px; inset-inline-start: -220px; top: -170px; }
.bio-glow-two { width: 320px; height: 320px; inset-inline-end: -150px; bottom: -175px; }

.bio-card {
  width: min(100%, 510px);
  padding: 20px 28px 23px;
  border: 1px solid rgba(255,255,255,.67);
  border-radius: 30px;
  background: rgba(253,250,246,.91);
  box-shadow: 0 34px 100px rgba(47,29,22,.21);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  animation: bio-enter .8s cubic-bezier(.2,.7,.2,1) both;
}
.bio-topbar { min-height: 26px; display: flex; align-items: center; justify-content: space-between; }
.bio-edition, .bio-language { color: var(--muted); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.bio-language { padding: 4px 0; border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.bio-language:hover { color: var(--rose); border-color: var(--rose); }

.bio-profile { display: flex; flex-direction: column; align-items: center; padding: 8px 16px 23px; text-align: center; }
.bio-logo-wrap {
  width: 88px;
  height: 88px;
  margin-bottom: 17px;
  padding: 4px;
  border: 1px solid rgba(185,118,132,.28);
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  box-shadow: 0 13px 35px rgba(86,48,43,.13);
}
.bio-logo-wrap img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.bio-eyebrow { margin: 0 0 7px; color: #9a7161; font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.bio-profile h1 { margin: 0; font-size: clamp(31px, 8vw, 42px); font-weight: 400; line-height: 1.35; letter-spacing: -.045em; }
html[lang="en"] .bio-profile h1 { font-family: var(--serif); line-height: 1.15; }
.bio-intro { max-width: 355px; margin: 10px auto 0; color: var(--muted); font-size: 12px; line-height: 1.9; }

.bio-links { display: grid; gap: 10px; }
.bio-link {
  min-height: 72px;
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: 13px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 8px 25px rgba(52,35,26,.035);
  transition: transform .24s, border-color .24s, background .24s, box-shadow .24s;
}
[dir="rtl"] .bio-link { grid-template-columns: 44px 1fr 20px; }
.bio-link:hover { transform: translateY(-2px); border-color: rgba(181,141,97,.42); background: #fff; box-shadow: 0 14px 30px rgba(52,35,26,.08); }
.bio-link-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #f5ece7; color: #8d6754; }
.bio-link-instagram .bio-link-icon { background: #f5e1e5; color: #ad6676; }
.bio-link-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bio-link-icon .is-filled { fill: currentColor; stroke: none; }
.bio-link-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
[dir="rtl"] .bio-link-copy { align-items: flex-end; }
.bio-link-copy strong { font-size: 13px; font-weight: 600; }
.bio-link-copy small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.bio-arrow { width: 15px; fill: none; stroke: #947e71; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
[dir="rtl"] .bio-arrow { transform: rotate(180deg); }
.bio-link:hover .bio-arrow { transform: translateX(2px); }
[dir="rtl"] .bio-link:hover .bio-arrow { transform: rotate(180deg) translateX(2px); }

.bio-message { width: max-content; display: block; margin: 18px auto 15px; padding: 4px 2px; border-bottom: 1px solid rgba(26,23,21,.32); font-size: 11px; transition: color .2s, border-color .2s; }
.bio-message:hover { color: var(--rose); border-color: var(--rose); }
.bio-footer { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); color: #958981; font-size: 8px; letter-spacing: .08em; }
.bio-footer span:last-child { color: var(--gold); }

@keyframes bio-enter {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
  .bio-page { place-items: end center; padding: 18px 12px; background-position: 64% center; }
  .bio-card { padding: 16px 16px 19px; border-radius: 25px; }
  .bio-profile { padding: 5px 12px 20px; }
  .bio-logo-wrap { width: 76px; height: 76px; margin-bottom: 13px; }
  .bio-profile h1 { font-size: 32px; }
  .bio-intro { margin-top: 7px; font-size: 11px; }
  .bio-link { min-height: 66px; border-radius: 16px; }
  .bio-link-icon { width: 40px; height: 40px; border-radius: 12px; }
}

@media (max-height: 720px) and (max-width: 560px) {
  .bio-page { place-items: center; }
  .bio-profile { padding-bottom: 13px; }
  .bio-logo-wrap { width: 64px; height: 64px; margin-bottom: 9px; }
  .bio-profile h1 { font-size: 27px; }
  .bio-intro { line-height: 1.6; }
  .bio-link { min-height: 59px; }
  .bio-message { margin-block: 12px 10px; }
  .bio-footer { padding-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
