/* 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: "Estedad"; src: url("/assets/fonts/estedad.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@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[lang="fa"] { font-family: "Estedad", Tahoma, sans-serif; font-weight: 700; letter-spacing: 0; font-size: 16px; }
.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; }

.foot__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-bottom: 10px; }
.foot__legal a, .foot__legal button {
  font: inherit; color: var(--espresso); background: none; border: 0; padding: 6px 2px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(88, 76, 69, .35);
}
.foot__legal a:hover, .foot__legal button:hover { text-decoration-color: currentColor; }

/* Cookie consent */
.consent {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 520px; margin: 0 auto;
  padding: 20px 20px 14px;
  border-radius: 22px;
  background: rgba(251, 248, 244, .96);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 0 0 1px var(--line), 0 18px 50px -12px rgba(40, 30, 25, .35);
  color: var(--espresso);
  transform: translateY(16px); opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.consent.is-open { transform: none; opacity: 1; }
.consent:focus { outline: none; }
.consent__title { margin: 0 0 6px; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.consent__text { font-size: 14px; line-height: 1.45; }
.consent__text a { font-weight: 600; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.consent__btn {
  min-height: 46px; padding: 0 14px; border-radius: 14px; border: 0; cursor: pointer;
  font: 700 14px/1 var(--sans); letter-spacing: .01em;
  background: var(--ink); color: var(--cream);
}
.consent__btn:hover { background: #1F1D1C; }
.consent__btn--ghost { background: transparent; color: var(--espresso); box-shadow: inset 0 0 0 1.5px var(--espresso); }
.consent__btn--ghost:hover { background: var(--card); }
.consent__link {
  display: block; margin: 8px auto 0; padding: 8px 6px; border: 0; background: none; cursor: pointer;
  font: 600 13px/1 var(--sans); color: var(--espresso); text-decoration: underline; text-underline-offset: 3px;
}
.consent__panel { margin-top: 14px; display: grid; gap: 8px; }
.consent__panel[hidden] { display: none; }
.consent__row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px; border-radius: 14px; background: var(--card); cursor: pointer;
}
.consent__row span { display: grid; gap: 2px; font-size: 14px; }
.consent__row small { font-size: 12.5px; color: rgba(88, 76, 69, .8); line-height: 1.35; }
.consent__row input { width: 22px; height: 22px; flex: none; accent-color: var(--espresso); }
.consent__save { width: 100%; }

/* Legal pages */
.legal { padding-top: 28px; padding-bottom: 40px; }
.legal__back { display: inline-block; padding: 8px 0; font-size: 14px; font-weight: 600; }
.legal__title { margin-top: 18px; font: 400 clamp(30px, 8vw, 40px)/1.05 var(--display); letter-spacing: -.03em; }
.legal__updated { margin-top: 8px; font-size: 13px; color: rgba(88, 76, 69, .75); }
.legal__sec { margin-top: 26px; padding: 18px 18px 6px; border-radius: 18px; background: var(--card); }
.legal__sec h2 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.legal__sec p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.legal__sec a { font-weight: 600; overflow-wrap: anywhere; }

@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, .consent { transition: none; } }
