/* card.shareefi.co: the contact card. Tokens, type, buttons and the lift come from ranked.css (the Ranked look,
   approved 11 Oct 2026); this file is layout only. Motion is ranked.js (press and ui springs), which switches
   itself off under prefers-reduced-motion. Never write a hex here: use the tokens. */

@font-face {
  font-family: "Unbounded";
  src: url("/assets/ranked/fonts/Unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  /* Sizes are in rem so a visitor's larger default text size is respected. */
  font-size: 1rem;
  line-height: 1.5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(40px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(56px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  overflow-x: hidden;
}
.wrap { width: 100%; max-width: 440px; }

/* who */
.who { text-align: center; }
.face {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
}
.photo {
  display: block;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--ground), 0 0 0 5px var(--tier-legendary);
}
.badge {
  position: absolute;
  right: -6px;
  bottom: -8px;
  width: 36px;
  height: 40px;
  filter: drop-shadow(0 2px 0 var(--ground));
}
.where { color: var(--tier-legendary); margin-bottom: 10px; }

/* "At Dubai Future Week today": shown by card.js only while the event runs. The dot breathes slowly; it is
   ambient (nothing to grab or interrupt), and it holds still under prefers-reduced-motion. */
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.live[hidden] { display: none; }
.live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tier-legendary);
  animation: breathe 2.4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
@media (prefers-reduced-motion: reduce) {
  .live .dot { animation: none; }
}
.name { font-size: 2.5rem; }
.bio { margin-top: 12px; color: var(--ink-muted); font-size: 1.0625rem; line-height: 1.45; text-wrap: balance; }
.bio b { color: var(--ink); font-weight: 800; }
.org { margin-top: 6px; color: var(--ink-muted); font-size: 0.9375rem; }

/* the three ways to keep in touch */
.actions { margin-top: 26px; }
.actions .rk-btn { width: 100%; gap: 10px; text-align: center; }
.actions .save { min-height: 3.5rem; font-size: 1.125rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.pair .rk-btn { padding: 13px 10px; min-height: 3rem; font-size: 0.9375rem; }
.hint { margin-top: 10px; text-align: center; color: var(--ink-faint); font-size: 0.875rem; line-height: 1.4; text-wrap: balance; }
/* Padding grows the tap target to 44px tall; the equal negative margin keeps the line where it was. */
.hint a { color: var(--ink-muted); text-underline-offset: 3px; display: inline-block; padding: 13px 0; margin: -13px 0; }
.hint a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -11px; }
/* A small icon inside a button, painted in the button's text colour. */
.glyph {
  flex: none;
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}

/* share */
.pass { margin-top: 34px; text-align: center; }
.pass .share { width: 100%; min-height: 3rem; font-size: 0.9375rem; }
.share-status { min-height: 1.4em; margin-top: 8px; color: var(--ink-muted); font-size: 0.875rem; }
@media (max-width: 350px) {
  .pair { grid-template-columns: 1fr; }
  .name { font-size: 2.125rem; }
}

/* groups */
.group { margin-top: 34px; }
.group h2 { color: var(--ink-muted); margin-bottom: 12px; }

a.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: var(--radius-md);
  padding: 18px 18px 18px 20px;
  margin-bottom: 10px;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  touch-action: manipulation;
  transition: box-shadow var(--dur-fade) linear;
}
a.card:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.card .body { display: block; min-width: 0; }
.card .t { font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.3; }
.card .s { color: var(--ink-muted); font-size: 0.9375rem; line-height: 1.45; overflow-wrap: anywhere; }
.card .arrow {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  font-size: 1.125rem;
  line-height: 1;
}
a.card.primary { box-shadow: inset 0 0 0 2px var(--tier-rare); }
a.card.primary .arrow { background: var(--tier-rare); color: var(--on-tier); font-weight: 800; }

/* where I post: one slate panel, a row per place */
.rows {
  list-style: none;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.rows li + li { border-top: 1px solid var(--line); }
/* Name and handle share a line while they fit and stack when they do not (narrow phones, large text),
   so the handle never breaks one letter per line. */
a.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
  min-height: 3.5rem;
  padding: 10px 18px 10px 54px;
  position: relative;
  color: var(--ink);
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color var(--dur-fade) linear;
}
@media (hover: hover) { a.row:hover { background: var(--surface-2); } }
a.row:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.row i {
  position: absolute;
  left: 18px;
  top: 50%;
  margin-top: -10.500px;
  display: block;
  width: 21px;
  height: 21px;
  background: var(--ink);
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}
.row .t { flex: none; font-weight: 800; font-size: 1rem; }
.row .h { flex: 1 1 auto; margin-left: auto; color: var(--ink-muted); font-size: 0.9375rem; text-align: right; }

footer { margin-top: 40px; text-align: center; color: var(--ink-faint); font-size: 0.9375rem; }
footer .home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 2.75rem;
  text-decoration: none;
}
footer .home img { display: block; width: 22px; height: 28px; }
footer .home .rk-wordmark { font-size: 1.125rem; }
footer a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Windows High Contrast drops box-shadows and fills: real borders, and the icon masks paint in the link colour. */
@media (forced-colors: active) {
  a.card, .rows { border: 1px solid LinkText; }
  a.card.primary { border-width: 2px; }
  .photo { border: 2px solid CanvasText; }
  .row i, .glyph { forced-color-adjust: none; background: LinkText; }
  .live { border: 1px solid CanvasText; }
}
