/* Digitální vizitka michalfogl.cz/kontakt. Barvy a písma jako hlavní web. */
:root {
  --bg: #0e0d0c;
  --surface: #1c1a18;
  --line: rgb(255 240 225 / .09);
  --line-2: rgb(255 240 225 / .16);
  --text: #f4efe8;
  --muted: #aaa298;
  --faint: #79726a;
  --accent: #ff6b1a;
  --accent-ink: #1d0e05;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; display: grid; place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
  background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 60vmax at 15% -10%, rgb(255 107 26 / .22), transparent 60%),
    radial-gradient(50vmax 50vmax at 110% 110%, rgb(176 72 22 / .2), transparent 60%); }

.card {
  width: 100%; max-width: 420px; padding: 18px 20px 22px; text-align: center;
  border: 1px solid var(--line-2); border-radius: 28px;
  background: linear-gradient(180deg, rgb(36 33 30 / .92), rgb(24 22 20 / .94));
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8), inset 0 1px 0 rgb(255 255 255 / .05);
  animation: in .7s var(--ease) both;
}
@keyframes in { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.card__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.card__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.card__brand img { border-radius: 6px; }
.card__dots { display: flex; gap: 6px; }
.card__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.card__dots i:first-child { background: var(--accent); }

.card__photo { width: 128px; height: 128px; margin: 26px auto 16px; padding: 4px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--accent), #ffb27a, var(--accent) 60%, #6b2a0a, var(--accent)); }
.card__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #1c1a18; }
h1 { margin: 0; font: 600 2rem/1.05 var(--display); letter-spacing: -.03em; }
.card__role { margin: 8px auto 0; max-width: 26ch; color: var(--muted); }
.card__place { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--faint); font-size: 14px; }

.save {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 22px 0 18px;
  padding: 16px 20px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font: 600 17px/1 var(--body); box-shadow: 0 14px 30px -12px rgb(255 107 26 / .6);
  transition: transform .3s var(--ease), background-color .3s;
}
.save i { font-size: 21px; }
.save:hover { background: #ff7d36; }
.save:active { transform: scale(.97); }

.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.rows a {
  display: grid; grid-template-columns: 40px 1fr 18px; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 16px; background: rgb(255 255 255 / .02);
  transition: border-color .3s, background-color .3s;
}
.rows a:hover, .rows a:active { border-color: var(--line-2); background: rgb(255 255 255 / .05); }
.rows i:first-child { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgb(255 107 26 / .12); color: var(--accent); font-size: 19px; }
.rows span { min-width: 0; font-size: 15.5px; overflow-wrap: anywhere; }
.rows small { display: block; color: var(--faint); font-size: 12px; }
.rows i:last-child { color: var(--faint); font-size: 15px; }

.share { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 16px; margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; text-align: left; }
.share img { grid-row: span 2; width: 96px; height: 96px; padding: 8px; border-radius: 12px; background: #f4efe8; }
.share p { margin: 0; color: var(--muted); font-size: 13.5px; }
.share b { display: block; color: var(--text); font: 600 15px/1.3 var(--display); margin-bottom: 2px; }
.share__btn { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--text); font: 600 14px/1 var(--body); cursor: pointer; }
.share__btn[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { .card { animation: none; } }
