:root {
  --bg: #fafaf9;
  --fg: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --accent: #2563eb;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0d;
    --fg: #e4e4e7;
    --muted: #8b8b94;
    --line: #232326;
    --accent: #60a5fa;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c0d;
  --fg: #e4e4e7;
  --muted: #8b8b94;
  --line: #232326;
  --accent: #60a5fa;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { max-width: 640px; margin: 0 auto; padding: 32px 20px 64px; }
a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .15s, color .15s; }
a:hover { color: var(--accent); border-color: var(--accent); }

.logo { display: inline-flex; align-items: center; gap: 10px; border: 0; font: 500 15px var(--mono); color: var(--fg); }
.logo:hover { color: var(--fg); }
.logo .ps1 { color: #22c55e; font-weight: 600; }
.logo .cmd { color: var(--muted); }
.logo .typed { flex: none; display: inline-block; overflow: hidden; white-space: nowrap; width: 12ch; animation: type 1.1s steps(12) .3s both; }
.logo .cursor { flex: none; width: .6em; height: 1.15em; background: currentColor; margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
.logo:hover .cmd { color: var(--accent); }
.id { display: flex; align-items: center; gap: 16px; }
.id > div { min-width: 0; }
.me { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; filter: grayscale(1); background: var(--line); }
.logo.top { margin: 0; font-size: 22px; font-weight: 500; gap: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.logo.foot { margin: 0; font-size: 12px; gap: 8px; }
.logo.foot .typed, .logo.foot .cursor { animation: none; }
@keyframes type { from { width: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .logo .typed, .logo .cursor { animation: none; } }

header h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
header .role { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 8px; }
header .role .path { opacity: .6; }
.bio { max-width: 52ch; }
.links { display: flex; flex-wrap: wrap; gap: 6px 16px; }

.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.tabs { display: flex; gap: 20px; }
.tabs a { border: 0; padding: 10px 0; margin-bottom: -1px; color: var(--muted); border-bottom: 1px solid transparent; }
.tabs a:hover { color: var(--fg); }
.tabs a[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--fg); }
.tools { display: flex; align-items: center; gap: 16px; margin-left: auto; color: var(--muted); }
.tools a { border: 0; color: var(--muted); }
.tools a:hover, .tools a[aria-current] { color: var(--fg); }
#theme { font: inherit; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 4px; padding: 1px 8px; cursor: pointer; }
#theme:hover { color: var(--fg); border-color: var(--muted); }
header { margin-top: 56px; }
.panel { margin-top: 40px; }
.block { margin-top: 56px; }
.js .panel[hidden] { display: none; }
.js .panel > h2 { display: none; }

h2 {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  text-transform: lowercase; color: var(--muted);
  letter-spacing: .02em; margin-bottom: 20px;
}
h2::before { content: "# "; opacity: .6; }

.item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.item:last-child { border-bottom: 1px solid var(--line); }
.when { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.what h3 { font-size: 15px; font-weight: 500; }
.what h3 span { color: var(--muted); font-weight: 400; }
.what p { color: var(--muted); margin-top: 2px; }

.what p.plain { color: var(--fg); margin: 0; }

.lead { margin-bottom: 20px; max-width: 56ch; }
.ref { margin-left: 8px; font: 400 11px var(--mono); color: var(--muted); border: 0; white-space: nowrap; }
.ref:hover { color: var(--accent); }
.bio.quiet { margin-top: 12px; color: var(--muted); }
.when small { display: block; font-size: 11px; opacity: .7; }
.now .when { color: var(--fg); }
.now .when::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; margin-right: 6px; vertical-align: 1px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags li { list-style: none; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tags li + li::before { content: "·"; margin-right: 6px; opacity: .6; }

/* timeline */
.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 26px; bottom: 40px; left: 123px; width: 1px;
  background: linear-gradient(to bottom, #22c55e, var(--line) 120px, var(--line) calc(100% - 160px), transparent);
}
#panel-work .item { position: relative; grid-template-columns: 104px minmax(0, 1fr); column-gap: 40px; border: 0; padding: 12px 0 28px; }
#panel-work .when { text-align: right; }
#panel-work .item::after {
  content: ""; position: absolute; left: 119px; top: 21px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--muted); transition: background .2s, border-color .2s, transform .2s;
}
#panel-work .item:hover::after { background: var(--fg); border-color: var(--fg); transform: scale(1.25); }
#panel-work .item:hover .when { color: var(--fg); }
#panel-work .item.now::after { background: #22c55e; border-color: #22c55e; }
#panel-work .item.now::before {
  content: ""; position: absolute; left: 119px; top: 21px; width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e; animation: ping 2.4s ease-out infinite;
}
#panel-work .now .when::before { display: none; }
@keyframes ping { from { transform: scale(1); opacity: .5; } 70%, to { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #panel-work .item.now::before { animation: none; opacity: 0; } }

.cv-download { display: flex; justify-content: center; margin-bottom: 36px; }
.cv-download a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; cursor: pointer;
  font: 500 12px var(--mono); color: var(--fg); background: none; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .15s, background .15s;
}
.cv-download a:hover { border-color: var(--fg); }
.cv-download svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 80px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
footer .links { order: 3; flex-basis: 100%; justify-content: center; gap: 8px 24px; margin-top: 8px; }
footer .links a { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); border: 0; }
footer .links svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
footer .links a:hover { color: var(--muted); }

@media (max-width: 520px) {
  main { padding: 16px 16px 48px; }
  .topbar { gap: 6px 8px; font-size: 12px; }
  .tabs { gap: 14px; }
  .tools { gap: 12px; }
  header { margin-top: 40px; }
  .item { grid-template-columns: minmax(0, 1fr); }
  .timeline::before { left: 4px; }
  #panel-work .item { grid-template-columns: minmax(0, 1fr); padding-left: 24px; }
  #panel-work .when { text-align: left; }
  #panel-work .item::after, #panel-work .item.now::before { left: 0; top: 18px; }
  .ref { white-space: normal; margin-left: 0; display: inline-block; }
}
@media print {
  body { background: #fff; color: #000; font-size: 12px; }
  main { padding: 0; max-width: none; }
  header { margin-top: 0; }
  .panel, .block { margin-top: 28px; }
  a { border: 0; }
  .topbar, footer, .cv-download { display: none; }
  .panel[hidden] { display: block !important; }
  .panel > h2 { display: block !important; }
}
