@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650&family=IBM+Plex+Mono:wght@400;500;600&family=Pixelify+Sans:wght@400;500;600;700&display=swap');

:root { color-scheme: light; --paper: #f6f6f0; --ink: #20211f; --muted: #72756f; --green: #b8ff55; --pink: #f86693; --cyan: #8be0df; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; padding: 40px 38px 0; background: var(--paper); color: var(--ink); font: 14px/1.7 'DM Sans', sans-serif; background-image: radial-gradient(#24242418 .65px, transparent .65px); background-size: 5px 5px; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { background: var(--green); }
a:focus-visible, select:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
.site-header, main, footer { width: min(100%, 820px); margin-inline: auto; }
.site-header { position: relative; padding-right: 105px; display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; border-bottom: 2px solid var(--ink); padding: 0 105px 24px 0; margin-bottom: 38px; }
.wordmark { font: 600 clamp(28px, 4vw, 48px)/1 'Pixelify Sans', monospace; text-decoration: none; letter-spacing: -.025em; }
.wordmark span { display: block; font: 11px/1.5 'IBM Plex Mono', monospace; color: var(--muted); letter-spacing: 0; margin-top: 12px; }
nav { display: flex; gap: 16px; flex-wrap: wrap; font: 11px/1.6 'IBM Plex Mono', monospace; }
nav a { text-decoration: none; border-bottom: 1px solid var(--ink); }
main { display: block; }
.intro { background: var(--paper); padding: 0 0 29px; }
h1 { font: 500 32px/1.05 'Pixelify Sans', monospace; margin: 0 0 16px; }
h1 span { color: #668d30; }
.bio p { margin: 0 0 14px; font-size: 14px; line-height: 1.7; }
mark { background: var(--green); padding: 0 2px; color: inherit; }
.bio p a { background: #c9ece7; }
.social { padding: 0; margin: 19px 0 0; list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.social a { display: block; font: 10px/1.5 'IBM Plex Mono', monospace; padding: 6px 8px; border: 1px solid var(--ink); text-decoration: none; }
.social li:first-child a { background: var(--green); }
.cv-section { margin: 0 0 27px; padding: 0 0 4px; background: var(--paper); }
h2 { margin: 0 0 24px; padding: 8px 14px; font: 12px/1.5 'IBM Plex Mono', monospace; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--paper); }
.entry { position: relative; padding: 0 0 22px 16px; margin-bottom: 15px; border-left: 3px solid var(--green); }
.entry:last-child { margin-bottom: 4px; }
.entry:nth-of-type(2) { border-left-color: var(--cyan); }
.entry:nth-of-type(3) { border-left-color: var(--pink); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 4px 15px; font: 10px/1.6 'IBM Plex Mono', monospace; color: var(--muted); margin-bottom: 7px; }
.entry-meta p { margin: 0; }
h3 { font: 600 23px/1.2 'Pixelify Sans', monospace; margin: 0 0 4px; }
.role { font: 11px/1.5 'IBM Plex Mono', monospace; margin: 0 0 12px; }
.entry p { margin-top: 0; margin-bottom: 7px; }
.entry ul { padding-left: 17px; margin: 12px 0 0; }
.entry li { margin-bottom: 7px; padding-left: 1px; }
.entry li::marker { color: #748462; }
h4 { margin: 19px 0 5px; font: 500 12px/1.4 'IBM Plex Mono', monospace; }
strong { font-weight: 650; }
.thesis { font-style: italic; }
.publication h3 { font: 600 15px/1.55 'DM Sans', sans-serif; }
.publication { margin-bottom: 21px; }
.publication h3 a { text-decoration-color: #8b9d87; }
.publication-meta { color: var(--muted); font: 11px/1.6 'IBM Plex Mono', monospace; margin: 5px 0 0; }
.publication-meta a { color: var(--ink); }
.text-link { display: inline-block; margin: 0 0 20px; font: 11px/1.5 'IBM Plex Mono', monospace; }
.skills { margin: 0 0 21px; }
.skills > div { margin-bottom: 14px; }
dt { font: 500 11px/1.5 'IBM Plex Mono', monospace; margin-bottom: 3px; }
dd { margin: 0; font-size: 13px; }
footer { display: flex; justify-content: space-between; gap: 20px; border-top: 2px solid var(--ink); padding: 19px 0 25px; margin-top: 38px; font: 10px/1.5 'IBM Plex Mono', monospace; }
.skip { position: absolute; top: -100px; left: 20px; padding: 10px; background: var(--green); z-index: 5; }
.skip:focus { top: 10px; }
.mascot { position: absolute; right: 0; bottom: 16px; width: 88px; height: 99px; padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 3; transform-origin: 50% 90%; animation: cat-sway 4s ease-in-out infinite; }
.mascot { mix-blend-mode: multiply; }
.mascot img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.mascot:hover { background: transparent; }
.mascot:focus-visible { outline: 2px dashed var(--ink); outline-offset: 5px; }
.mascot.greeting { animation: cat-hello .6s ease-in-out; }
@keyframes cat-hello { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-9deg) translateY(-4px); } 65% { transform: rotate(7deg) translateY(-4px); } }
@keyframes cat-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: translateY(-3px) rotate(2deg); } }
@media(prefers-reduced-motion:reduce) { .mascot, .mascot.greeting { animation: none; } }
@media(max-width: 850px) {
  body { padding: 25px 22px 0; }
  .site-header { display: block; margin-bottom: 26px; }
  nav { margin-top: 20px; }
}
@media(max-width: 650px) {
  body { padding: 23px 18px 0; }
  .site-header { padding-right: 72px; }
  .mascot { width: 64px; height: 72px; bottom: 24px; }
  h1 { font-size: 29px; }
  .entry { padding-left: 12px; }
  footer { flex-wrap: wrap; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
@media print {
  body { padding: 0; background: white; font-size: 10pt; }
  .site-header { margin-bottom: 20px; }
  nav, .social, footer { display: none; }
  .mascot { display: none; }
  main { display: block; }
  .intro, .cv-section { position: static; border: 0; box-shadow: none; padding: 0; margin-bottom: 15px; }
  h1 { display: none; }
  h2 { margin: 0 0 15px; padding: 5px 0; background: white; color: black; border-bottom: 1px solid black; }
  .entry { break-inside: avoid; }
}

.markdown-profile { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.7 'IBM Plex Mono', monospace; padding: 16px; border: 1px solid var(--ink); }

.bio p a.agent-link { background: transparent; }
.bio p a.agent-link:hover { background: var(--green); }
body.editor-page { padding: 30px 20px; background: #e9eae4; }
.editor-page .editor { width: min(100%, 1000px); margin: 0 auto; border: 1px solid #373a35; background: #f6f6f0; box-shadow: 5px 5px 0 #20211f; }
.editor-toolbar, .editor-status { display: flex; align-items: center; gap: 20px; padding: 10px 16px; font: 12px/1.5 'IBM Plex Mono', monospace; }
.editor-toolbar { background: #20211f; color: #f6f6f0; flex-wrap: wrap; }
.editor-toolbar a:hover { color: #20211f; }
.editor-tab { padding: 5px 12px; background: #f6f6f0; color: #20211f; }
.editor-toolbar a:last-child { margin-left: auto; }
.editor-content { display: flex; overflow-x: auto; }
.editor-page .markdown-profile, .editor-lines { margin: 0; padding: 20px 16px; border: 0; font: 13px/1.7 'IBM Plex Mono', monospace; white-space: pre; }
.editor-page .markdown-profile { flex: 1; overflow-wrap: normal; }
.editor-lines { text-align: right; color: #878b82; background: #eeefe9; user-select: none; border-right: 1px solid #d5d7ce; }
.editor-status { justify-content: flex-end; background: #20211f; color: #f6f6f0; }
@media (max-width: 650px) { body.editor-page { padding: 12px; } .editor-toolbar { gap: 10px; } }
