/* Personal index. Neutral surfaces, system typography, deliberate whitespace. */
:root {
  color-scheme: light;
  --paper: #fff;
  --surface: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #626267;
  --line: #d2d2d7;
  --hover: #e8e8ed;
  --code-comment: #636368;
  --code-string: #8d3330;
  --code-number: #315d57;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #161617;
  --surface: #222224;
  --ink: #f5f5f7;
  --muted: #aaaab0;
  --line: #444448;
  --hover: #333336;
  --code-comment: #aaaab0;
  --code-string: #e9b3a6;
  --code-number: #aacac1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: #161617;
    --surface: #222224;
    --ink: #f5f5f7;
    --muted: #aaaab0;
    --line: #444448;
    --hover: #333336;
    --code-comment: #aaaab0;
    --code-string: #e9b3a6;
    --code-number: #aacac1;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 36px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
img,
svg {
  max-width: 100%;
  height: auto;
}
input,
select,
button {
  font: inherit;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1060px, calc(100% - 80px));
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-block: 27px;
  border-bottom: 1px solid var(--line);
}
.identity {
  font-size: 15px;
  letter-spacing: -0.03em;
  font-weight: 650;
  text-decoration: none;
  margin-right: auto;
}
.site-header nav,
.site-footer nav {
  display: flex;
  gap: 26px;
}
.site-header nav a {
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
}
.site-header nav a:hover,
.site-header nav a[aria-current] {
  color: var(--ink);
}
.appearance {
  display: flex;
  align-items: center;
  gap: 8px;
}
#appearance-label {
  font-size: 12px;
  color: var(--muted);
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.toggle-track {
  display: block;
  width: 52px;
  height: 30px;
  border-radius: 20px;
  background: var(--hover);
  border: 1px solid var(--line);
}
.toggle-thumb {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 2px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px #0002;
  transition: transform 160ms ease;
}
.toggle-thumb svg {
  width: 16px;
  height: 16px;
}
.toggle-moon {
  display: none;
}
.theme-toggle[aria-checked="true"] .toggle-thumb {
  transform: translateX(22px);
}
.theme-toggle[aria-checked="true"] .toggle-sun {
  display: none;
}
.theme-toggle[aria-checked="true"] .toggle-moon {
  display: block;
}
.theme-toggle:hover .toggle-track {
  border-color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .toggle-thumb {
    transition: none;
  }
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 650;
}
.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 50px;
  align-items: center;
  padding-block: 55px 64px;
}
.intro h1 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.intro-description {
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.intro-detail {
  max-width: 340px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 20px;
}
.interests-graph {
  min-width: 0;
  margin: 0;
}
.interests-graph svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.interests-graph figcaption {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.graph-edges {
  stroke: var(--line);
  stroke-width: 1.5;
}
.graph-edges path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: connect-interests 2.8s ease-out both;
}
.graph-node circle {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1;
}
.graph-node text {
  font-family: var(--font);
  font-size: 20px;
  letter-spacing: -0.025em;
  fill: var(--ink);
  text-anchor: middle;
}
.graph-node .interest-icon {
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.graph-center circle {
  fill: var(--ink);
  stroke: var(--ink);
}
.graph-center text {
  fill: var(--paper);
}
.graph-center .interest-icon {
  color: var(--paper);
}
.graph-center .interest-icon circle {
  fill: var(--ink);
  stroke: var(--paper);
}
/* Reveal the official Neo4j artwork while keeping every node circular. */
.graph-center-link,
.graph-center-link:focus-visible {
  cursor: pointer;
  outline: none;
}
.graph-center-surface {
  fill: var(--ink);
  stroke: var(--ink);
  transform-origin: 0 0;
  transition:
    fill 320ms ease,
    stroke 320ms ease;
}
.graph-center-label {
  opacity: 1;
  transform: scale(1);
  transform-origin: 0 0;
  transition:
    opacity 180ms ease,
    transform 320ms ease;
  pointer-events: none;
}
.graph-neo4j-logo {
  opacity: 0;
  transform: scale(0.82);
  transform-origin: 0 0;
  transition:
    opacity 240ms ease 90ms,
    transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.graph-center-focus {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  opacity: 0;
  pointer-events: none;
}
.graph-center-link:is(:hover, :focus-visible) .graph-center-surface {
  fill: #fff;
  stroke: #014063;
}
.graph-center-link:is(:hover, :focus-visible) .graph-center-label {
  opacity: 0;
  transform: scale(0.65);
}
.graph-center-link:is(:hover, :focus-visible) .graph-neo4j-logo {
  opacity: 1;
  transform: scale(1);
}
.graph-center-link:focus-visible .graph-center-focus {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .graph-center-surface,
  .graph-center-label,
  .graph-neo4j-logo {
    transition: none;
  }
}
.graph-satellites {
  fill: var(--muted);
  animation: reveal-connections 2.8s ease-out both;
}
@keyframes connect-interests {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes reveal-connections {
  0%,
  65% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .graph-edges path,
  .graph-satellites {
    animation: none;
  }
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.text-link span[aria-hidden] {
  font-size: 20px;
  line-height: 1;
}
.writing {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 38px;
}
.section-heading h2,
.elsewhere h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.section-heading p,
.elsewhere-heading p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}
.search input {
  width: 220px;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}
.search input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.post-preview {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) 42px;
  gap: 30px;
  padding: 0 0 30px;
  margin-bottom: 26px;
}
.post-preview + .post-preview {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.post-date {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.post-date span {
  display: block;
  margin-top: 3px;
}
.post-summary h3 {
  font-size: 27px;
  margin-bottom: 12px;
  line-height: 1.2;
}
.post-summary h3 a,
.external-post h3 a {
  text-decoration: none;
}
.post-summary h3 a:hover,
.external-post h3 a:hover {
  text-decoration: underline;
}
.post-summary p {
  font-size: 16px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 19px;
}
.tags {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font);
}
.tags a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.tags a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.post-open {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  text-decoration: none;
  font-size: 21px;
}
.post-open:hover {
  background: var(--hover);
  text-decoration: none;
}
.archive-link {
  color: var(--muted);
}
.search-status {
  font-size: 14px;
}
.search-status:empty {
  display: none;
}
.elsewhere {
  margin-block: 64px 80px;
  background: var(--surface);
  padding: 36px 40px 40px;
  border-radius: 22px;
}
.elsewhere-heading {
  margin-bottom: 36px;
}
.external-posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.external-post {
  min-width: 0;
}
.external-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.external-post h3 {
  font-size: 25px;
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 400px;
}
.external-post > p:not(.external-meta) {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-block: 30px 40px;
  font-size: 12px;
  color: var(--muted);
}
.footer-name {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.site-footer p {
  margin: 7px 0 0;
}
.site-footer nav a {
  text-decoration: none;
}
.site-footer nav a:hover {
  text-decoration: underline;
}
.page-shell,
.article-shell {
  max-width: 740px;
  padding-block: 64px 80px;
}
.page-heading h1,
.article-heading h1 {
  font-size: clamp(36px, 5vw, 54px);
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
.page-heading > p,
.article-description {
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--muted);
}
.page-heading {
  margin-bottom: 40px;
}
.back-link {
  font-size: 14px;
  text-decoration: none;
  color: var(--muted);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
  margin: 36px 0 20px;
}
.article-heading {
  margin-bottom: 36px;
}
.archive-notice {
  font-size: 14px;
  line-height: 1.7;
  background: var(--surface);
  padding: 18px 22px;
  border-radius: 12px;
  margin-bottom: 36px;
  color: var(--muted);
}
.prose {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.prose p,
.prose ul,
.prose ol {
  margin-bottom: 25px;
}
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font);
  margin-top: 42px;
  margin-bottom: 20px;
  line-height: 1.3;
}
.prose h2 {
  font-size: 30px;
}
.prose h3 {
  font-size: 24px;
}
.prose h4 {
  font-size: 20px;
}
.prose img {
  display: block;
  border-radius: 8px;
  margin: 28px auto;
  background: #fff;
  padding: 8px;
}
.prose .about-portrait {
  margin: 0 0 28px;
  border-radius: 24px;
  width: 144px;
  height: 144px;
  object-fit: cover;
  filter: grayscale(1);
  padding: 0;
}
.prose pre {
  font-size: 13px;
  line-height: 1.7;
  overflow: auto;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  white-space: pre;
  overflow-wrap: normal;
  color: var(--ink);
}
.prose code {
  font-size: 0.84em;
  background: var(--surface);
  padding: 2px 4px;
  border-radius: 3px;
}
.prose pre code {
  padding: 0;
  background: transparent;
  font-size: inherit;
}
.highlight .c,
.highlight .c1,
.highlight .cm,
.highlight .cp,
.highlight .cs {
  color: var(--code-comment);
  font-style: italic;
}
.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .se,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .sh,
.highlight .si,
.highlight .sr,
.highlight .ss,
.highlight .sx {
  color: var(--code-string);
}
.highlight .m,
.highlight .mi,
.highlight .mf,
.highlight .mh,
.highlight .mo,
.highlight .nb,
.highlight .nv {
  color: var(--code-number);
}
.highlight .k,
.highlight .kd,
.highlight .kn,
.highlight .o,
.highlight .ow {
  font-weight: 700;
}
.prose blockquote {
  border-left: 3px solid var(--line);
  padding-left: 24px;
  margin-left: 0;
  color: var(--muted);
}
.prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}
.prose td,
.prose th {
  padding: 10px;
  border: 1px solid var(--line);
}
.post-navigation {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 15px;
}
.topic-index {
  margin-bottom: 40px;
}
.topic-section small {
  display: block;
  font-family: var(--font);
  font-size: 13px;
  color: var(--muted);
}
.topic-section ul {
  padding-left: 22px;
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -100px;
  padding: 10px 18px;
  background: var(--paper);
  z-index: 10;
}
.skip-link:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 850px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .site-header {
    gap: 22px;
    flex-wrap: wrap;
  }
  #appearance-label {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .intro {
    gap: 20px;
    padding-block: 48px;
  }
  .intro h1 {
    font-size: 24px;
  }
  .intro-description {
    font-size: 22px;
  }
  .post-preview {
    grid-template-columns: 120px minmax(0, 1fr) 36px;
    gap: 20px;
  }
  .elsewhere {
    padding: 28px;
  }
  .external-posts {
    gap: 30px;
  }
  .site-footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 580px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    gap: 20px;
    padding-block: 20px;
  }
  .identity {
    flex-basis: 100%;
  }
  .site-header nav {
    gap: 26px;
    margin-right: auto;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 38px 40px;
  }
  .intro h1 {
    font-size: 24px;
  }
  .intro-detail {
    max-width: none;
  }
  .interests-graph {
    width: 100%;
    max-width: 420px;
    justify-self: center;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
  }
  .search,
  .search input {
    width: 100%;
  }
  .post-preview {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 16px;
  }
  .post-date {
    grid-column: 1 / -1;
    display: flex;
    gap: 18px;
    padding: 0;
  }
  .post-date span {
    margin: 0;
  }
  .post-summary h3 {
    font-size: 25px;
  }
  .post-open {
    width: 36px;
    height: 36px;
  }
  .post-summary p {
    font-size: 15px;
  }
  .tags {
    gap: 10px;
  }
  .elsewhere {
    margin-block: 44px 48px;
    padding: 26px 24px;
  }
  .external-posts {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .external-post + .external-post {
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }
  .external-post h3 {
    font-size: 24px;
  }
  .elsewhere-heading {
    margin-bottom: 30px;
  }
  .elsewhere h2,
  .section-heading h2 {
    font-size: 26px;
  }
  .site-footer {
    flex-direction: column;
    gap: 24px;
  }
  .page-shell,
  .article-shell {
    padding-block: 38px 50px;
  }
  .prose {
    font-size: 18px;
  }
  .article-meta {
    gap: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
