:root {
  --bg: #f6f5f2;
  --fg: #141416;
  --muted: #6b6b70;
  --line: rgba(20, 20, 22, 0.12);
  --accent: #2f6bff;
  --live: #1fa463;
  --btn-fg: #f6f5f2;
  --grid: rgba(20, 20, 22, 0.045);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --fg: #f2f1ee;
    --muted: #9a9aa1;
    --line: rgba(242, 241, 238, 0.14);
    --accent: #7aa2ff;
    --live: #3ddc84;
    --btn-fg: #0e0e10;
    --grid: rgba(242, 241, 238, 0.04);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center center;
  color: var(--fg);
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Soft vignette so the grid fades toward the edges */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg) 85%);
}

.card {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 12vh, 140px) 28px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin: 0 0 28px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(6px);
}

.dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
}
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 2.4s ease-out infinite;
}

.name {
  margin: 0;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.role {
  margin: 14px 0 0;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.role .nw { white-space: nowrap; }
.role .sep { color: var(--accent); padding: 0 0.2em; }

.lede {
  margin: 32px 0 0;
  max-width: 34em;
  color: var(--fg);
  opacity: 0.86;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible,
.email:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--fg);
  color: var(--btn-fg);
}
.btn-primary .tag {
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 11px;
  letter-spacing: 0.06em;
  background: color-mix(in srgb, var(--btn-fg) 18%, transparent);
}

.btn-ghost {
  color: var(--fg);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.btn-ghost .tag {
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 11px;
  letter-spacing: 0.06em;
  background: color-mix(in srgb, var(--fg) 14%, transparent);
}
.btn-ghost:hover { border-color: color-mix(in srgb, var(--fg) 35%, transparent); }

.contact {
  margin: 28px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.email {
  color: var(--fg);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.email:hover { color: var(--accent); }

.foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 24px 28px 32px;
  font-size: 13px;
  color: var(--muted);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

@media (max-width: 480px) {
  .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .dot::after { animation: none; }
  .btn { transition: none; }
}
