:root {
  --blue: #002b6c;
  --blue-2: #064b9b;
  --pale: #eef4fc;
  --ink: #10213a;
  --muted: #64748b;
  --line: #dce6f3;
}

* { box-sizing: border-box; }

html { background: #edf3fa; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(0,43,108,.13), transparent 38%),
    radial-gradient(circle at 100% 80%, rgba(6,75,155,.10), transparent 32%),
    #f7faff;
}

.card {
  position: relative;
  width: min(100%, 520px);
  padding: 32px;
  border: 1px solid rgba(0,43,108,.12);
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(0,43,108,.14);
  overflow: hidden;
}

.language { position: absolute; top: 18px; right: 18px; display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--pale); }
.lang-button { min-width: 36px; padding: 6px 8px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font: inherit; font-size: 11px; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
.lang-button.active { color: white; background: var(--blue); }

.portrait-wrap {
  width: 104px;
  height: 104px;
  margin: 0 auto 20px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  box-shadow: 0 10px 28px rgba(0,43,108,.12);
}

.portrait { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; border-radius: 50%; }

header { text-align: center; }
.eyebrow { margin: 0 0 10px; color: var(--blue-2); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; color: var(--blue); font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 8vw, 46px); font-weight: 500; letter-spacing: -.025em; }
.role { margin: 9px auto 0; color: var(--blue-2); font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.45; }
.intro { max-width: 430px; margin: 13px auto 15px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.primary { display: grid; gap: 5px; }
.link {
  min-height: 52px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.link:hover, .link:focus-visible { transform: translateY(-2px); border-color: #9db8dc; box-shadow: 0 10px 25px rgba(0,43,108,.09); outline: none; }
.link.featured { border-color: var(--blue); color: white; background: linear-gradient(135deg, var(--blue), var(--blue-2)); }
.mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--blue); background: var(--pale); font-family: Georgia, serif; font-weight: 700; }
.featured .mark { color: white; background: rgba(255,255,255,.16); }
.link span:nth-child(2) { display: grid; gap: 3px; }
.link strong { font-size: 14px; }
.link small { color: var(--muted); font-size: 12px; }
.featured small { color: rgba(255,255,255,.72); }
.link b { font-size: 18px; font-weight: 400; }

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0; }
.socials a { padding: 8px 12px; border-radius: 999px; color: var(--blue); background: var(--pale); font-size: 12px; font-weight: 700; text-decoration: none; }
.socials a:hover, .socials a:focus-visible { background: #dceafb; outline: none; }

.contact { display: grid; gap: 5px; padding-top: 10px; border-top: 1px solid var(--line); }
.contact a { display: flex; justify-content: space-between; gap: 16px; color: var(--ink); font-size: 13px; text-decoration: none; }
.contact span { color: var(--muted); }
.contact strong { color: var(--blue); text-align: right; overflow-wrap: anywhere; }

footer { margin-top: 17px; color: #94a3b8; font-size: 11px; text-align: center; }

@media (max-width: 520px) {
  body { padding: 0; place-items: start center; background: white; }
  .card { min-height: 100vh; padding: 28px 18px; border: 0; border-radius: 0; box-shadow: none; }
  .contact a { align-items: flex-start; flex-direction: column; gap: 2px; }
  .contact strong { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
