/* mahshidshirazi.com link page.
   Palette from the brand moodboard: espresso #584C45, taupe #BAA799, cream #F0E7D7, ink #323232. */

@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Russo One"; src: url("/assets/fonts/russo-one.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --espresso: #584C45;
  --taupe: #BAA799;
  --cream: #F0E7D7;
  --ink: #323232;
  --paper: #FBF8F4;
  --card: #F3ECE1;
  --line: rgba(88, 76, 69, .16);
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Russo One", "Arial Black", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh;
  background: var(--paper); color: var(--espresso);
  font: 400 15px/1.5 var(--sans); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
p, h1 { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; border-radius: 8px; }

.page {
  width: min(100%, 600px);
  margin: 0 auto;
  padding: 14px 14px calc(28px + env(safe-area-inset-bottom));
  position: relative;
}

/* Language switch */
.lang {
  position: absolute; z-index: 2; top: 24px; right: 24px;
  display: flex; gap: 2px; padding: 3px;
  border-radius: 999px; background: rgba(251, 248, 244, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lang a {
  min-width: 36px; padding: 6px 9px; border-radius: 999px; text-align: center;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-decoration: none;
}
.lang a[aria-current] { background: var(--ink); color: var(--cream); }

/* Profile */
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; }
.banner {
  width: 100%; aspect-ratio: 8 / 5;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  border-radius: 16px; overflow: hidden; background: var(--cream);
}
.banner img { width: 100%; height: 100%; object-fit: cover; }
.avatar {
  width: 112px; height: 112px; margin-top: -56px;
  border-radius: 50%; object-fit: cover;
  border: 4px solid var(--paper);
  background: var(--cream);
  position: relative;
}
.name {
  margin-top: 14px;
  font: 400 clamp(30px, 8.4vw, 40px)/1 var(--display);
  letter-spacing: -.045em; text-transform: lowercase;
}
.bio { margin-top: 8px; font-size: 15px; }

/* Links */
.links { display: grid; gap: 12px; margin-top: 28px; }
.link {
  display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; gap: 14px;
  min-height: 80px; padding: 10px;
  border-radius: 20px; background: var(--card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 1px 2px rgba(50, 40, 35, .06);
  text-decoration: none;
  transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.link:hover { background: var(--cream); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 8px 22px rgba(50, 40, 35, .1); }
.link:active { transform: translateY(0); }
.link__label { text-align: center; font-size: 16px; font-weight: 700; letter-spacing: .01em; color: var(--espresso); }

/* Glassy app-style icon tiles */
.icon {
  position: relative; isolation: isolate; overflow: hidden;
  width: 60px; height: 60px; border-radius: 17px;
  display: grid; place-items: center;
  color: #FBF6EE;
  background: var(--tile);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .55),
    inset 0 -2px 6px rgba(0, 0, 0, .18),
    0 0 0 1px rgba(255, 255, 255, .25),
    0 6px 14px -4px rgba(40, 30, 25, .45),
    0 2px 4px rgba(40, 30, 25, .18);
}
.icon::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .14));
}
.icon::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 3px; height: 38%; z-index: -1;
  border-radius: 14px 14px 40% 40% / 14px 14px 60% 60%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0));
}
.icon svg {
  width: 32px; height: 32px;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .3));
}
.icon svg .dot { fill: currentColor; stroke: none; }
.icon--ink { --tile: linear-gradient(160deg, #4A4542, #2A2725); }
.icon--espresso { --tile: linear-gradient(160deg, #7A6A60, #4E433D); }
.icon--clay { --tile: linear-gradient(160deg, #A58D7F, #6F5D53); }
.icon--taupe { --tile: linear-gradient(160deg, #D2C1B4, #A28E80); color: #2F2A27; }
.icon--taupe svg { filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .5)); }

/* Footer */
.foot { margin-top: 40px; text-align: center; font-size: 12px; color: rgba(88, 76, 69, .7); }
.foot__mark { font: 400 26px/1 var(--display); letter-spacing: -.03em; color: var(--taupe); margin-bottom: 8px; }

@media (min-width: 640px) {
  .page { padding-top: 28px; }
  .lang { top: 40px; right: 26px; }
}
@media (max-width: 380px) { .link { grid-template-columns: 56px 1fr 24px; } .icon { width: 56px; height: 56px; } }
@media (prefers-reduced-motion: reduce) { .link { transition: none; } }
