:root {
  --bg: #f8fafc;
  --dot: rgba(2,6,23,.14);
  --card: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 30px 60px rgba(2,6,23,.12), 0 2px 8px rgba(2,6,23,.06);
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #334155;
  --brand: #3b82f6;
  --brand-700: #1d4ed8;
  --chip-bg: #f1f5f9;
  --chip-border: #cbd5e1;
  --chip-hover: #e2e8f0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --dot: rgba(255,255,255,.08);
    --card: #1e293b;
    --border: #334155;
    --shadow: 0 30px 60px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.5);
    --text: #f1f5f9;
    --muted: #94a3b8;
    --muted-2: #cbd5e1;
    --brand: #60a5fa;
    --brand-700: #3b82f6;
    --chip-bg: #334155;
    --chip-border: #475569;
    --chip-hover: #475569;
  }
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--text);
  background:
    radial-gradient(circle, var(--dot) 1px, transparent 1px) 0 0/20px 20px,
    var(--bg);
  display: grid;
  place-items: center;
  padding: 24px;
}

@media (max-width: 640px) {
  html, body {
    height: auto;
  }
  
  body {
    display: block;
    padding: 24px 16px 64px;
  }

  main.card {
    margin: 16px auto 48px;
  }
}

.card {
  width: min(920px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: clamp(20px, 4vw, 40px);
  align-items: center;
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .avatar {
    margin: 0 auto 20px;
  }
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px rgba(2,6,23,.14);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
}

.intro {
  display: grid;
  gap: 10px;
}

.roles {
  margin-top: 14px;
  display: grid;
  gap: 6px;
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--muted-2);
}

.roles a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.roles a:hover {
  color: var(--brand-700);
}

.kv {
  margin-top: 6px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 8px 14px;
}

.kv a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.kv a:hover {
  color: var(--brand-700);
  text-decoration-color: var(--brand-700);
  text-decoration-style: solid;
  text-underline-offset: 4px;
}

.kv-label {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 10%, transparent);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--muted) 25%, transparent);
}

.kv-value {
  color: var(--muted-2);
}

.kv-value a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kv-value a:hover {
  color: var(--brand-700);
}

.tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 640px) {
  .tags {
    justify-content: center;
    text-align: center;
  }
}

.tag {
  font-size: 13px;
  color: var(--muted-2);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 6px 10px;
}

.divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 24px 24px;
  align-items: center;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(2,6,23,.08);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}

.chip:hover {
  cursor: pointer;
  background: var(--chip-hover);
  border-color: #94a3b8;
}

.chip svg {
  width: 18px;
  height: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,1px,1px);
  white-space: nowrap;
  border: 0;
}