:root {
  --bg: #fafaf9;
  --fg: #18181b;
  --muted: #6b6b73;
  --line: #e7e5e4;
  --card: #ffffff;
  --accent: #2563eb;
  --ok: #16a34a;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0d;
    --fg: #ededee;
    --muted: #8b8b94;
    --line: #232326;
    --card: #131315;
    --accent: #7aa2ff;
    --ok: #4ade80;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(56px, 12vh, 120px) 20px 48px;
}

/* Hero */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.lang {
  display: flex;
  gap: 2px;
  font: 500 12px/1 var(--mono);
}
.lang a {
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
}
.lang a[aria-current="page"] { color: var(--fg); background: var(--line); }
.lang a:hover { color: var(--fg); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 13px/1 var(--mono);
  color: var(--muted);
}
.status a { color: var(--fg); text-decoration: none; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 var(--ok);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 7vw, 52px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.lead {
  margin: 0;
  font-size: clamp(17px, 2.4vw, 19px);
  color: var(--muted);
  max-width: 58ch;
}
.lead a { color: var(--fg); }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  font: 400 14px/1.4 var(--mono);
}

/* Sections */
section { margin-top: 88px; }

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.label span { color: var(--accent); }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.text { margin: 0 0 24px; color: var(--muted); max-width: 60ch; }

/* Roles */
.roles { list-style: none; margin: 0; padding: 0; }
.roles li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.roles li:first-child { padding-top: 0; }
.role-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 6px;
}
.roles h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.org { font: 400 13px/1.4 var(--mono); color: var(--muted); white-space: nowrap; }
a.org { text-decoration: none; }
.roles p { margin: 0; color: var(--muted); font-size: 15px; }

/* Stack */
.stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}
.stack div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}
.stack span {
  min-width: 34px;
  font: 400 11px/1 var(--mono);
  color: var(--accent);
}

/* Contact */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 10px;
  font: 500 14px/1 var(--mono);
  text-decoration: none;
  transition: transform .15s, opacity .15s;
}
.cta:hover { color: var(--bg); opacity: .88; }
.cta:hover span { transform: translateX(3px); }
.cta span { transition: transform .15s; }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font: 400 12px/1.4 var(--mono);
  color: var(--muted);
}

@media (max-width: 480px) {
  .role-head { flex-direction: column; gap: 2px; }
  section { margin-top: 72px; }
}
