@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-BoldItalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #666;
  --accent: #0a58ca;
  --rule: #e5e5e5;
  --code-bg: #f3f3f3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111;
    --fg: #e8e8e8;
    --muted: #9a9a9a;
    --accent: #6ea8fe;
    --rule: #2a2a2a;
    --code-bg: #1d1d1d;
  }
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-feature-settings: "liga" 0;
  line-height: 1.6;
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1rem; }
body { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: 1fr auto 1fr; }
main.wrap { grid-row: 2; }
body > footer { grid-row: 3; align-self: end; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.7rem; margin: 0 0 .25rem; letter-spacing: -.02em; }
h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; margin: 2.5rem 0 1rem; padding-bottom: .35rem; border-bottom: 1px solid var(--rule); }
h3 { font-size: 1rem; margin: 0; }
.avatar { position: relative; width: 50px; height: 50px; margin: 0 auto 1.25rem; border-radius: 50%; background: #ebff00; }
.avatar img { display: block; width: 50px; height: 50px; border-radius: 50%; image-rendering: pixelated; }
.avatar .px-layer { position: absolute; inset: 0; }
.avatar .px { position: absolute; width: 2%; height: 2%; background: var(--c); transition: transform .55s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); will-change: transform; animation: px-in .05s linear both; animation-delay: var(--e, 0s); }
@keyframes px-in { from { opacity: 0; } to { opacity: 1; } }
.avatar:hover .px { transform: translate(var(--x), var(--y)) rotate(var(--r)); }
@media (prefers-reduced-motion: reduce) { .avatar .px { transition: none; animation: none; } .avatar:hover .px { transform: none; } }
.hero > :last-child { margin-bottom: 0; }
.label { color: var(--muted); margin: 0 0 1rem; }
.muted { color: var(--muted); }
.inline { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 1rem; }
.entry { margin-bottom: 1.5rem; }
.entry-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.entry ul { margin: .5rem 0 0; padding-left: 1.2rem; }
code { font-family: inherit; background: var(--code-bg); padding: .1rem .35rem; border-radius: 4px; font-size: .95em; }
footer { border-top: 1px solid var(--rule); font-size: .9rem; }

.cta { font-weight: 600; }
.cv-actions { margin: 0 0 1.5rem; font-size: .9rem; }
@media print {
  :root { --bg: #fff; --fg: #000; --muted: #444; --accent: #000; --rule: #999; }
  .no-print { display: none !important; }
  .avatar .px { transition: none; animation: none; }
  .wrap { max-width: none; padding: 0; }
  body { display: block; min-height: 0; }
  html { font-size: 10pt; }
  h2 { break-after: avoid; margin-top: 1.25rem; }
  .entry { break-inside: avoid; }
  a { text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #444; }
}

/* Shorts: Telegram-style posts, one thought per line. */
.shorts { margin-top: 2.5rem; }
.short .entry-head { margin-bottom: .25rem; }
.short { margin-bottom: 2.5rem; }
.short h2 { font-size: 1rem; text-transform: none; letter-spacing: 0; margin: 0; padding: 0; border: 0; }
.short-body p { margin: .75rem 0; }
.short-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 1rem; font-size: .9rem; }
.latest-shorts .entry-head h3 { font-weight: 400; }
