:root {
  --bg: #fff;
  --fg: #111827;
  --body: #374151;
  --muted: #6b7280;
  --faint: #9ca3af;
  --border: #e5e7eb;
  --hover: #f9fafb;
  --tile: #fff;
}
:root[data-theme="dark"] {
  --bg: #000;
  --fg: #fafafa;
  --body: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #71717a;
  --border: #262626;
  --hover: #111;
  --tile: #0a0a0a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 600px; margin: 0 auto; padding: 24px 20px 40px; }

.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; margin-bottom: 32px; border-bottom: 1px solid var(--border);
}
.nav nav { display: flex; gap: 16px; font-size: 14px; }
.nav a:hover, .links a:hover { text-decoration: underline; }

.theme {
  background: none; border: 0; cursor: pointer; font-size: 16px; line-height: 1;
  color: inherit; transition: opacity .2s;
}
.theme:hover { opacity: .7; }
.theme::before { content: "🌙"; }
:root[data-theme="dark"] .theme::before { content: "☀️"; }

.intro { margin-bottom: 32px; }
h1 { font-size: 24px; font-weight: 700; }
.bio { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.cursor { font-weight: 400; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

section { margin-bottom: 32px; }

h2 {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted); margin-bottom: 16px;
}

.about { list-style: none; max-width: 560px; font-size: 15px; line-height: 1.75; color: var(--body); }
.about li { display: flex; gap: 6px; }
.about li::before { content: "↘"; color: var(--muted); flex-shrink: 0; font-size: 13px; padding-top: 1px; }

.about .interests { list-style: none; margin: 2px 0 2px 4px; }
.about .interests li { display: list-item; }
.about .interests li::before { content: "–"; color: var(--muted); margin-right: 8px; }
h2 a:hover { text-decoration: underline; }
.empty { font-size: 15px; line-height: 1.7; color: var(--muted); }

.rows { display: flex; flex-direction: column; gap: 2px; margin: 0 -12px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px;
  transition: background-color .15s;
}
a.row:hover { background: var(--hover); }
.logo {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 600; color: #6b7280; letter-spacing: .02em;
}
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.title { font-size: 14px; font-weight: 500; }
.sub { font-size: 12px; color: var(--muted); }
.date {
  margin-left: auto; text-align: right; font-size: 12px; white-space: nowrap;
  font-variant-numeric: tabular-nums; flex-shrink: 0;
}

.links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }

footer {
  padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--faint);
}

@media (max-width: 480px) {
  .row { align-items: flex-start; }
  .date { padding-top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  body { transition: none; }
}
