@font-face {
  font-family: "Monaspace Neon";
  src: url("https://cdn.jsdelivr.net/gh/githubnext/monaspace@main/fonts/webfonts/MonaspaceNeon-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monaspace Neon";
  src: url("https://cdn.jsdelivr.net/gh/githubnext/monaspace@main/fonts/webfonts/MonaspaceNeon-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1a1b26;
  --line: #2f3549;
  --text: #c0caf5;
  --strong: #d5defc;
  --muted: #8f98c3;
  --dim: #565f89;
  --blue: #7aa2f7;
  --cyan: #7dcfff;
  --green: #9ece6a;
  --magenta: #bb9af7;
  --yellow: #e0af68;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Monaspace Neon", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.65;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--cyan); }
.shell {
  width: min(860px, calc(100% - 40px));
  margin-inline: auto;
}
.section { padding: 56px 0; }

.hero {
  min-height: auto;
  padding-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 32px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0 0 12px;
  color: var(--strong);
  line-height: 1.18;
  font-weight: 720;
  letter-spacing: -0.035em;
}
h1 { font-size: clamp(2.35rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.02rem; letter-spacing: -0.01em; }
.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.icon-link {
  --link-accent: var(--blue);
  --link-accent-rgb: 122, 162, 247;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(var(--link-accent-rgb), 0.36);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(var(--link-accent-rgb), 0.08);
  color: var(--link-accent);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(var(--link-accent-rgb), 0.04), 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.icon-link--github {
  --link-accent: var(--magenta);
  --link-accent-rgb: 187, 154, 247;
}
.icon-link--linkedin {
  --link-accent: var(--blue);
  --link-accent-rgb: 122, 162, 247;
}
.icon-link--resume {
  --link-accent: var(--green);
  --link-accent-rgb: 158, 206, 106;
}
.icon-link:hover {
  border-color: rgba(var(--link-accent-rgb), 0.72);
  background: rgba(var(--link-accent-rgb), 0.14);
  color: var(--strong);
  box-shadow: 0 0 0 1px rgba(var(--link-accent-rgb), 0.16), 0 10px 28px rgba(var(--link-accent-rgb), 0.10);
  transform: translateY(-1px);
}
.icon-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero-photo {
  width: 176px;
  aspect-ratio: 1;
  object-fit: cover;
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(from 135deg, var(--blue), var(--magenta), var(--green), var(--yellow), var(--cyan), var(--blue));
  box-shadow: 0 0 0 1px rgba(47, 53, 73, 0.9), 0 18px 44px rgba(0, 0, 0, 0.22);
}
.grid-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  border-top: 1px solid var(--line);
}
.resume-details summary {
  width: fit-content;
  display: flex;
  justify-content: center;
  margin: -24px auto 24px;
  list-style: none;
  cursor: pointer;
}
.resume-details summary::-webkit-details-marker { display: none; }
.expand-button {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--blue);
  font-size: 0.82rem;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease, transform 140ms ease;
}
.hide-label { display: none; }
.resume-details[open] .show-label { display: none; }
.resume-details[open] .hide-label { display: inline; }
.resume-panel { overflow: hidden; }
.expand-button:hover,
.resume-details summary:focus-visible .expand-button {
  border-color: rgba(122, 162, 247, 0.55);
  background: rgba(122, 162, 247, 0.08);
  color: var(--cyan);
  transform: translateY(-1px);
}
.prose p { margin: 0 0 14px; color: var(--muted); }
.timeline { display: grid; gap: 12px; }
.timeline-item {
  padding: 0 0 16px 16px;
  border-left: 1px solid var(--line);
}
.timeline-item p { margin: 0; color: var(--muted); }
.period { color: var(--yellow) !important; font-size: 0.88rem; }

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}
.article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.article-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(36, 40, 59, 0.38);
  color: inherit;
  transition: border-color 140ms ease, background 140ms ease;
}
.article-card:hover {
  border-color: rgba(122, 162, 247, 0.42);
  background: rgba(36, 40, 59, 0.58);
}
.article-card h3 { margin-top: 0; color: var(--strong); }
.article-card:hover h3 { color: var(--cyan); }
.article-card p { margin: 0; color: var(--muted); }
.thought-cloud {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 16px;
  text-align: center;
  border: 1px dashed rgba(122, 162, 247, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 25%, rgba(125, 207, 255, 0.16), transparent 28%),
    radial-gradient(circle at 72% 22%, rgba(187, 154, 247, 0.15), transparent 30%),
    radial-gradient(circle at 52% 82%, rgba(158, 206, 106, 0.10), transparent 32%),
    rgba(36, 40, 59, 0.24);
  color: var(--muted);
}
.thought-cloud::before,
.thought-cloud::after {
  content: "";
  position: absolute;
  inset: auto 0 -92px;
  height: 150px;
  pointer-events: none;
  opacity: 0;
  background-repeat: no-repeat;
  transform: translateY(12px);
}
.thought-cloud::before {
  background-image:
    radial-gradient(circle, rgba(125, 207, 255, 0.34) 0 27%, transparent 29%),
    radial-gradient(circle, rgba(187, 154, 247, 0.25) 0 24%, transparent 26%),
    radial-gradient(circle, rgba(158, 206, 106, 0.24) 0 22%, transparent 24%),
    radial-gradient(circle, rgba(122, 162, 247, 0.28) 0 26%, transparent 28%),
    radial-gradient(circle, rgba(125, 207, 255, 0.24) 0 24%, transparent 26%),
    radial-gradient(circle, rgba(187, 154, 247, 0.22) 0 23%, transparent 25%),
    radial-gradient(circle, rgba(224, 175, 104, 0.18) 0 22%, transparent 24%);
  background-size: 28px 28px, 18px 18px, 22px 22px, 14px 14px, 12px 12px, 20px 20px, 10px 10px;
  background-position: 14% 86%, 38% 76%, 66% 88%, 84% 72%, 26% 94%, 52% 90%, 74% 78%;
}
.thought-cloud::after {
  background-image:
    radial-gradient(circle, rgba(125, 207, 255, 0.22) 0 25%, transparent 27%),
    radial-gradient(circle, rgba(187, 154, 247, 0.20) 0 25%, transparent 27%),
    radial-gradient(circle, rgba(224, 175, 104, 0.18) 0 22%, transparent 24%),
    radial-gradient(circle, rgba(158, 206, 106, 0.18) 0 22%, transparent 24%),
    radial-gradient(circle, rgba(122, 162, 247, 0.20) 0 24%, transparent 26%),
    radial-gradient(circle, rgba(125, 207, 255, 0.18) 0 22%, transparent 24%);
  background-size: 16px 16px, 24px 24px, 12px 12px, 18px 18px, 10px 10px, 14px 14px;
  background-position: 24% 82%, 54% 74%, 76% 92%, 12% 74%, 44% 94%, 90% 84%;
}
.thought-cloud::before {
  animation: bubble-drift 4.2s ease-in-out infinite;
}
.thought-cloud::after {
  animation: bubble-drift 5.2s ease-in-out infinite 560ms;
}
.thought-cloud h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0.72;
}
.cloud-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.42;
  pointer-events: none;
}
.cloud-orb-a { animation: orb-float-a 4.4s ease-in-out infinite; }
.cloud-orb-b { animation: orb-float-b 5.3s ease-in-out infinite; }
.cloud-orb-c { animation: orb-float-c 4.9s ease-in-out infinite; }
.cloud-orb-a {
  width: 54px;
  height: 54px;
  right: 18px;
  top: 8px;
  background: rgba(122, 162, 247, 0.24);
}
.cloud-orb-b {
  width: 72px;
  height: 72px;
  right: 58px;
  bottom: -34px;
  background: rgba(187, 154, 247, 0.18);
}
.cloud-orb-c {
  width: 42px;
  height: 42px;
  left: 22px;
  bottom: 10px;
  background: rgba(125, 207, 255, 0.14);
}
@keyframes bubble-drift {
  0% {
    opacity: 0;
    transform: translateY(18px) translateX(0) scale(0.96);
  }
  18% { opacity: 0.88; }
  52% { transform: translateY(-54px) translateX(10px) scale(1.03); }
  82% { opacity: 0.54; }
  100% {
    opacity: 0;
    transform: translateY(-126px) translateX(-8px) scale(1.08);
  }
}
@keyframes orb-float-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-8px, 9px, 0) scale(1.04); }
}
@keyframes orb-float-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10px, -8px, 0) scale(1.03); }
}
@keyframes orb-float-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(8px, -10px, 0) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .thought-cloud,
  .thought-cloud::before,
  .thought-cloud::after,
  .cloud-orb {
    transition: none;
    animation: none !important;
  }
  .thought-cloud::before,
  .thought-cloud::after { opacity: 0.55; }
}
#thoughts { padding-top: 28px; }
.nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  overflow: hidden;
  gap: 0;
  padding-inline: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
  transition:
    max-width 560ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-inline 560ms cubic-bezier(0.22, 1, 0.36, 1),
    gap 560ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}
.nav-icon-link:hover,
.nav-icon-link:focus-visible {
  max-width: 150px;
  gap: 7px;
  padding-inline: 9px 11px;
  border-color: rgba(122, 162, 247, 0.55);
  background: rgba(122, 162, 247, 0.08);
  color: var(--cyan);
  transform: translateY(-1px);
}
.nav-icon-link svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-icon-link span {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  color: currentColor;
  font-size: 0.84rem;
  font-weight: 700;
  transition:
    max-width 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 360ms ease;
}
.nav-icon-link:hover span,
.nav-icon-link:focus-visible span {
  max-width: 110px;
  opacity: 1;
  transition-delay: 160ms;
}
.list-hero { margin-bottom: 24px; }
.list-hero h1 { font-size: clamp(1.75rem, 4vw, 2.35rem); }

.article-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 32px;
}
.article-hero {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.article-hero h1 {
  max-width: none;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.25;
}
.article-hero .lead { max-width: none; }
.reader {
  max-width: 860px;
  font-size: 0.98rem;
  hyphens: auto;
  text-wrap: pretty;
  overflow-wrap: normal;
}
.reader a { overflow-wrap: break-word; }
.reader h1 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.38rem;
  line-height: 1.35;
}
.reader h2 {
  margin-top: 26px;
  margin-bottom: 9px;
  font-size: 1.16rem;
  line-height: 1.4;
}
.reader h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.45;
}
.reader p,
.reader li { color: var(--muted); }
.reader p { margin: 0 0 15px; }
.reader img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.reader hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.reader pre {
  overflow: auto;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #16161e;
}
.reader table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.92rem;
}
.reader th,
.reader td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.reader th {
  color: var(--strong);
  background: rgba(36, 40, 59, 0.55);
  font-weight: 700;
}
.reader td { color: var(--muted); }
.reader tr:last-child td { border-bottom: 0; }
.reader tr:hover td { background: rgba(36, 40, 59, 0.28); }
.reader code { color: var(--green); }
.reader pre code.hljs {
  color: var(--text);
  background: transparent;
}
.reader .hljs-keyword,
.reader .hljs-built_in { color: var(--magenta); }
.reader .hljs-string,
.reader .hljs-title { color: var(--green); }
.reader .hljs-number { color: var(--yellow); }
.reader .hljs-comment { color: var(--dim); font-style: italic; }
.reader .hljs-variable { color: var(--cyan); }
.reader blockquote {
  margin-left: 0;
  padding-left: 14px;
  border-left: 2px solid var(--blue);
  color: var(--muted);
}
@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 860px); }
  .section { padding: 42px 0; }
  .hero {
    padding-top: 42px;
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 18px;
    align-items: center;
  }
  .hero-photo {
    width: 64px;
  }
  .icon-link { padding: 7px; }
  .icon-link span { display: none; }
  .icon-link svg {
    width: 16px;
    height: 16px;
  }
  .grid-section { grid-template-columns: 1fr; gap: 18px; }
}
