:root {
  --ink: #222222;
  --muted: #68615b;
  --faint: #ebe6df;
  --paper: #ffffff;
  --wash: #f7f4ee;
  --accent: #8a4b34;
  --notion-ink: #37352f;
  --font-title: 1.5rem;
  --font-body: 1rem;
  --font-small: 16px;
}

@font-face {
  font-family: "Libertinus Sans";
  src: url("assets/fonts/LibertinusSans-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
}

@font-face {
  font-family: "Libertinus Sans";
  src: url("assets/fonts/LibertinusSans-Italic.otf") format("opentype");
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
}

@font-face {
  font-family: "Libertinus Sans";
  src: url("assets/fonts/LibertinusSans-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: "Libertinus Sans", "Linux Biolinum O", Optima, Candara, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
  overflow: hidden;
  display: flex;
  min-height: 100vh;
}

body:not(.notion-body)::after {
  content: "";
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  height: 20vh;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.82) 58%, #ffffff 100%);
}

body:not(.notion-body) a {
  color: inherit;
  font-weight: 500;
}

img {
  display: block;
  max-width: 100%;
}

b,
strong {
  font-weight: 500;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
  width: 24%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  border: none;
  background-image:
    radial-gradient(circle, rgba(66, 133, 244, 0.12) 1px, transparent 1.4px),
    linear-gradient(90deg, rgba(66, 133, 244, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(66, 133, 244, 0.035) 1px, transparent 1px);
  background-position: 10px 10px;
  background-size: 36px 36px;
}
.text-red {
  color: #c2410c;
}
.sidebar-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.nav {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.08em;
  padding-right: 14px;
  font-family: "Libertinus Sans", "Linux Biolinum O", Optima, Candara, sans-serif;
  font-variant-caps: small-caps;
  letter-spacing: 0.02em;
}

.nav::after {
  content: "";
  position: absolute;
  top: 0.28em;
  right: 0;
  bottom: 0.28em;
  width: 1px;
  background: linear-gradient(#e0e0e0, #c7d7ff, #e0e0e0);
}

.nav a {
  position: relative;
  padding: 2px 12px 2px 10px;
  border-radius: 4px;
  color: #b0b0b0;
  font-size: var(--font-title);
  text-decoration: none;
  transition: color 0.4s;
}

.nav a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -17px;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9e4ff;
  opacity: 0;
  transform: translateY(-50%) scale(0.5);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav a.active,
.nav a:hover {
  color: #222222;
  background: transparent;
}

.nav a.active::after,
.nav a:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.content-scroll {
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.content-scroll::-webkit-scrollbar {
  display: none;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 42%;
  margin: 0 auto;
}

.spacer {
  height: 15vh;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.45em;
  font-size: var(--font-title);
  font-weight: 700;
  line-height: 1.08;
}

h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-family: "Libertinus Sans", "Linux Biolinum O", Optima, Candara, sans-serif;
  font-variant-caps: small-caps;
  letter-spacing: 0.02em;
  font-size: var(--font-title);
  font-weight: 600;
  margin-top: 1em;
  margin-bottom: 0.2em;
}

h2::before {
  content: "";
  width: 1.25em;
  height: 0.72em;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 0.14em 50%, #4285f4 0 0.13em, transparent 0.14em),
    radial-gradient(circle at 0.62em 18%, #aecbfa 0 0.13em, transparent 0.14em),
    radial-gradient(circle at 1.08em 62%, #4285f4 0 0.13em, transparent 0.14em),
    linear-gradient(25deg, transparent 0 26%, #9bbcff 27% 31%, transparent 32% 100%),
    linear-gradient(-22deg, transparent 0 47%, #9bbcff 48% 52%, transparent 53% 100%);
}

h3 {
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 0;
}

p {
  margin-bottom: 0.5em;
  margin-top: 0;
  font-size: var(--font-body);
}

.profile-header {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: 100%;
}

.profile-photo {
  display: flex;
  width: max-content;
  align-items: center;
  flex-direction: column;
  gap: 0.45em;
  align-self: center;
  overflow: visible;
}

.profile-img {
  position: static;
  width: 162px;
  height: 162px;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(0.92);
  transition: filter 220ms ease, transform 220ms ease;
}

.profile-hover-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: #222222;
  font-size: var(--font-small);
  font-weight: 500;
  opacity: 1;
  pointer-events: none;
  white-space: nowrap;
}

.profile-graph-mark {
  position: relative;
  display: inline-block;
  width: 2.1em;
  height: 0.95em;
}

.profile-graph-mark::before,
.profile-graph-mark::after {
  content: "";
  position: absolute;
  height: 1px;
  background: #9bbcff;
  transform-origin: left center;
}

.profile-graph-mark::before {
  top: 0.46em;
  left: 0.18em;
  width: 1.55em;
  transform: rotate(-18deg);
}

.profile-graph-mark::after {
  top: 0.47em;
  left: 0.58em;
  width: 1.05em;
  transform: rotate(23deg);
}

.profile-graph-mark i {
  position: absolute;
  z-index: 1;
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: #4285f4;
}

.profile-graph-mark i:nth-child(1) {
  left: 0;
  top: 0.44em;
}

.profile-graph-mark i:nth-child(2) {
  left: 0.54em;
  top: 0.12em;
  background: #aecbfa;
}

.profile-graph-mark i:nth-child(3) {
  left: 1.24em;
  top: 0.52em;
}

.profile-graph-mark i:nth-child(4) {
  right: 0;
  top: 0.2em;
  background: #aecbfa;
}

#contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.32em;
  width: max-content;
  max-width: 100%;
  margin: 0.45em 0 1.2em;
  color: #222222;
  font-size: var(--font-small);
  text-align: center;
  white-space: nowrap;
}

.external-link {
  color: #222222;
  text-decoration: underline;
  text-decoration-thickness: 0.03em;
  text-underline-offset: 0.14em;
}

.external-link::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0.38em;
  margin-left: 0.18em;
  border-bottom: 1px solid #9bbcff;
  border-radius: 999px;
  vertical-align: 0.05em;
  transition: width 0.18s ease;
}

.external-link:hover::after {
  width: 1.05em;
}

a.icon-only-link::after {
  content: none;
  display: none;
}

.link-icon {
  display: inline-block;
  height: 0.9em;
  width: 0.9em;
  margin-left: 0.16em;
  opacity: 0.95;
  vertical-align: -0.1em;
}

.inline-icon {
  height: 0.88em;
  width: 0.88em;
  margin-left: 0.12em;
  margin-right: 0.08em;
}

.latent-panel {
  position: relative;
  width: min(580px, 100vw - 40px);
  margin: 1.3em 50% 0.35em;
  aspect-ratio: 1000 / 340;
  overflow: hidden;
  border: 1px solid #222222;
  background:
    linear-gradient(90deg, rgba(34, 34, 34, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(34, 34, 34, 0.16) 1px, transparent 1px),
    #fbf7ef;
  background-size: 34px 34px;
  transform: translateX(-50%);
}

.latent-caption {
  align-self: center;
  margin: 0 0 1.7em;
  color: #555555;
  font-size: var(--font-small);
  font-style: italic;
  text-align: center;
}

.latent-svg {
  width: 100%;
  height: 100%;
}

.latent-field {
  animation: latent-blob-drift 9s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}

.latent-field path {
  fill: #17110f;
  stroke: rgba(85, 19, 17, 0.7);
  stroke-width: 18;
  stroke-linejoin: round;
}

.latent-field .latent-field-shadow {
  fill: rgba(40, 7, 7, 0.28);
  stroke: none;
}

.latent-bonds line {
  opacity: 0;
  stroke: rgba(251, 247, 239, 0.76);
  stroke-width: 2.4;
  stroke-linecap: round;
  transition: opacity 160ms ease, stroke-width 160ms ease;
}

.latent-contours path {
  fill: none;
  stroke: rgba(251, 247, 239, 0.22);
  stroke-width: 2;
  stroke-dasharray: 9 13;
}

.latent-atoms circle {
  fill: #fbf7ef;
  stroke: rgba(21, 18, 16, 0.92);
  stroke-width: 4;
}

.latent-atoms circle:nth-child(2),
.latent-atoms circle:nth-child(4),
.latent-atoms circle:nth-child(6) {
  fill: #4285f4;
}

@keyframes latent-blob-drift {
  0% {
    transform: translate(-7px, 4px) scale(0.985) rotate(-0.6deg);
  }

  45% {
    transform: translate(5px, -6px) scale(1.01) rotate(0.4deg);
  }

  100% {
    transform: translate(10px, 3px) scale(0.995) rotate(0.8deg);
  }
}

.mof-animation {
  width: min(320px, 86%);
  margin: 0.15em auto 0.9em;
  overflow: visible;
}

.mof-latent-trace path {
  fill: none;
  stroke: rgba(138, 75, 52, 0.34);
  stroke-width: 2;
  stroke-dasharray: 7 10;
  animation: mof-trace-flow 3.8s linear infinite;
}

.mof-bonds line {
  stroke: #9bbcff;
  stroke-width: 2.5;
  stroke-linecap: round;
  animation: mof-bond-build 4.8s ease-in-out infinite;
}

.mof-bonds line:nth-child(2n) {
  animation-delay: 0.35s;
}

.mof-bonds line:nth-child(3n) {
  animation-delay: 0.7s;
}

.mof-nodes circle {
  fill: #4285f4;
  stroke: #ffffff;
  stroke-width: 4;
  animation: mof-node-settle 4.8s ease-in-out infinite;
}

.mof-nodes circle:nth-child(2n) {
  fill: #222222;
  animation-delay: 0.25s;
}

.mof-precursors circle {
  fill: #aecbfa;
  animation: mof-precursor-fade 4.8s ease-in-out infinite;
}

.mof-precursors circle:nth-child(2n) {
  fill: #8a4b34;
}

@keyframes mof-trace-flow {
  to {
    stroke-dashoffset: -68;
  }
}

@keyframes mof-bond-build {
  0%,
  18% {
    opacity: 0;
    stroke-dasharray: 1 120;
  }

  42%,
  82% {
    opacity: 1;
    stroke-dasharray: 120 0;
  }

  100% {
    opacity: 0.25;
    stroke-dasharray: 20 90;
  }
}

@keyframes mof-node-settle {
  0% {
    opacity: 0.4;
    transform: scale(0.62);
  }

  42%,
  82% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0.65;
    transform: scale(0.82);
  }
}

@keyframes mof-precursor-fade {
  0%,
  20% {
    opacity: 0.95;
    transform: translateY(0);
  }

  50%,
  86% {
    opacity: 0.18;
    transform: translateY(5px);
  }

  100% {
    opacity: 0.85;
    transform: translateY(0);
  }
}

.protein-blob {
  width: min(260px, 72%);
  margin: 0.05em auto 0.9em;
  overflow: visible;
}

.protein-blob-object {
  animation: protein-blob-drift 6.8s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}

.protein-blob-object path {
  fill: #17110f;
  stroke: rgba(85, 19, 17, 0.62);
  stroke-width: 10;
  stroke-linejoin: round;
}

.protein-blob-object .protein-blob-core {
  fill: rgba(66, 133, 244, 0.2);
  stroke: none;
  animation: protein-blob-core 5.2s ease-in-out infinite;
}

.protein-blob-trace {
  fill: none;
  stroke: rgba(138, 75, 52, 0.34);
  stroke-width: 2;
  stroke-dasharray: 7 10;
  animation: mof-trace-flow 3.8s linear infinite;
}

@keyframes protein-blob-drift {
  0% {
    transform: translate(-8px, 2px) scale(0.96) rotate(-2deg);
  }

  50% {
    transform: translate(5px, -4px) scale(1.04) rotate(1deg);
  }

  100% {
    transform: translate(9px, 3px) scale(0.99) rotate(2deg);
  }
}

@keyframes protein-blob-core {
  50% {
    opacity: 0.48;
    transform: scale(1.08);
  }
}

.delivery-funnel {
  width: min(300px, 82%);
  margin: 0.05em auto 0.9em;
  overflow: visible;
}

.delivery-funnel-line {
  fill: none;
  stroke: #222222;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  animation: delivery-funnel-flow 3.8s linear infinite;
}

.delivery-funnel-line-lower {
  animation-direction: reverse;
}

.delivery-gate {
  stroke: rgba(138, 75, 52, 0.55);
  stroke-width: 1.4;
  stroke-dasharray: 3 5;
  stroke-linecap: round;
}

.delivery-blobs circle {
  fill: #aecbfa;
  stroke: #ffffff;
  stroke-width: 3;
  animation: delivery-blob-drift 4.2s ease-in-out infinite;
}

.delivery-blobs circle:nth-child(2n) {
  fill: #4285f4;
  animation-delay: 0.4s;
  --delivery-x: -5px;
  --delivery-y: 4px;
}

.delivery-blobs circle:nth-child(3n) {
  fill: #8a4b34;
  animation-delay: 0.8s;
  --delivery-x: 6px;
  --delivery-y: -4px;
}

.delivery-blobs circle:nth-child(4n) {
  animation-delay: 1.15s;
  --delivery-x: -3px;
  --delivery-y: 3px;
}

.delivery-hit {
  fill: #222222;
  stroke: #ffffff;
  stroke-width: 4;
  animation: delivery-hit-pulse 4.2s ease-in-out infinite;
}

@keyframes delivery-funnel-flow {
  to {
    stroke-dashoffset: -64;
  }
}

@keyframes delivery-blob-drift {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  45% {
    opacity: 1;
    transform: translate(var(--delivery-x, 5px), var(--delivery-y, -4px)) scale(1.08);
  }

  100% {
    opacity: 1;
    transform: translate(calc(var(--delivery-x, 5px) * -0.55), calc(var(--delivery-y, -4px) * -0.65)) scale(0.98);
  }
}

@keyframes delivery-hit-pulse {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(0.88);
  }

  45% {
    opacity: 1;
    transform: scale(1.16);
  }
}

.proton-wire {
  width: min(320px, 86%);
  margin: 0.05em auto 0.9em;
  overflow: visible;
}

.proton-wire-path {
  fill: none;
  stroke-linecap: round;
}

.proton-wire-path {
  stroke: #222222;
  stroke-width: 1.6;
  stroke-dasharray: 7 9;
  animation: proton-wire-flow 3.4s linear infinite;
}

.proton-cluster {
  animation: proton-hop 3.4s ease-in-out infinite;
}

.proton-cluster-b {
  animation-delay: 0.45s;
}

.proton-cluster-c {
  animation-delay: 0.9s;
}

.proton-cluster circle {
  stroke: #222222;
  stroke-width: 0.8;
}

.proton-cluster .oxygen {
  fill: #fbf7ef;
}

.proton-cluster .hydrogen {
  fill: #f3b3b0;
}

@keyframes proton-wire-flow {
  to {
    stroke-dashoffset: -64;
  }
}

@keyframes proton-hop {
  0%,
  100% {
    transform: translate(0, 0);
  }

  42% {
    transform: translate(16px, -11px);
  }

  70% {
    transform: translate(30px, 1px);
  }
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 0.7em;
  margin: 0.2em 0 0;
  padding: 0 0 0 1.4em;
  list-style: none;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 0.45em;
  bottom: 0.45em;
  left: 0.28em;
  width: 1px;
  background: #d8d8d8;
}

.timeline-list li {
  position: relative;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: -1.28em;
  width: 0.48em;
  height: 0.48em;
  border-radius: 50%;
  background: #222222;
  box-shadow: 0 0 0 4px #ffffff;
}

.timeline-entry-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1em;
  align-items: start;
}

.timeline-title,
.timeline-subtitle {
  display: block;
}

.timeline-title {
  font-weight: 600;
}

.timeline-subtitle,
.timeline-entry-head time {
  font-size: var(--font-small);
}

.timeline-subtitle {
  color: #444444;
  font-weight: 500;
}

.timeline-entry-head time {
  color: #777777;
}

.timeline-entry-head time {
  white-space: nowrap;
}

.timeline-list p {
  margin-top: 0.25em;
  margin-bottom: 0;
  color: #555555;
  font-size: var(--font-small);
  line-height: 1.35;
}

.theme-credit {
  margin-top: 2.2em;
  color: #8a8a8a;
  font-size: var(--font-small);
}

.section-subtitle {
  margin-top: -0.15em;
  margin-bottom: 0.75em;
  color: #777777;
  font-size: var(--font-small);
  font-weight: 500;
  font-variant-caps: small-caps;
  letter-spacing: 0.04em;
}

.research-description {
  padding-left: 0.9em;
  border-left: 1px solid #c7d7ff;
  font-size: var(--font-small);
  line-height: 1.35;
}

ul.paper-list {
  display: grid;
  gap: 0.55em;
  margin: 0.2em 0 0;
  padding-left: 1.1em;
  font-size: var(--font-small);
  line-height: 1.28;
}

ul.paper-list li::marker {
  color: #222222;
}

.paper-tag {
  display: inline-block;
  margin-right: 0.45em;
  color: #4285f4;
  font-size: var(--font-small);
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.paper-list li:nth-child(2n) .paper-tag {
  color: #8a4b34;
}

.indent {
  margin-left: 2em;
}

.big-indent {
  margin-left: 4em;
}

ul {
  margin-top: 0;
  margin-bottom: 0;
}

.updates-panel {
  position: fixed;
  top: 50%;
  right: clamp(24px, 5vw, 72px);
  z-index: 12;
  width: min(22vw, 290px);
  height: 68vh;
  overflow-y: auto;
  padding: 0 10px 0 24px;
  border-left: 1px solid #c7d7ff;
  background-image:
    linear-gradient(90deg, rgba(66, 133, 244, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(66, 133, 244, 0.045) 1px, transparent 1px);
  background-position: 8px 8px, 8px 8px;
  background-size: 34px 34px, 34px 34px;
  scrollbar-width: thin;
  scrollbar-color: #b8b8b8 transparent;
  transform: translateY(-50%);
}

.updates-panel::before,
.key-points-panel::before {
  display: none;
}

.key-points-panel {
  position: fixed;
  top: 50%;
  right: clamp(24px, 5vw, 72px);
  z-index: 12;
  width: min(22vw, 290px);
  max-height: 68vh;
  overflow-y: auto;
  padding: 0 10px 0 18px;
  border-left: 1px solid #c7d7ff;
  transform: translateY(-50%);
}

.updates-panel::-webkit-scrollbar {
  width: 8px;
}

.updates-panel::-webkit-scrollbar-track {
  background: transparent;
}

.updates-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b8b8b8;
}

.updates-header {
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin-bottom: 0.75em;
  font-size: var(--font-title);
  font-weight: 700;
  line-height: 1.1;
}

.updates-motif {
  position: relative;
  display: inline-block;
  width: 1.65em;
  height: 1.2em;
  flex: 0 0 auto;
}

.updates-motif::before {
  content: "";
  position: absolute;
  top: 0.56em;
  left: 0.34em;
  width: 1.05em;
  height: 1px;
  background: #9bbcff;
  transform: rotate(-24deg);
}

.updates-motif i {
  position: absolute;
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: #4285f4;
}

.updates-motif i:nth-child(1) {
  left: 0;
  bottom: 0.08em;
}

.updates-motif i:nth-child(2) {
  left: 0.62em;
  top: 0;
  background: #aecbfa;
}

.updates-motif i:nth-child(3) {
  right: 0;
  bottom: 0.16em;
}

.update-item {
  position: relative;
  padding: 0.85em 0;
  border-top: 1px solid #eeeeee;
}

.update-item::before {
  content: "";
  position: absolute;
  top: 1.16em;
  left: -27.5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4285f4;
  border: 2px solid #4285f4;
}

.update-item time {
  display: block;
  color: #777777;
  font-size: var(--font-small);
  font-weight: 500;
}

.update-item p {
  margin: 0.2em 0 0;
  font-size: var(--font-body);
  line-height: 1.25;
}

.back-link {
  padding: 0 20px 6px 0;
  color: #b0b0b0;
  font-size: var(--font-small);
  font-weight: 500;
  text-decoration: none;
}

.note-post {
  max-width: 43%;
}

.note-kicker {
  margin-bottom: 0.2em;
  color: #777777;
  font-size: var(--font-small);
  font-weight: 500;
  font-variant-caps: small-caps;
  letter-spacing: 0.04em;
}

.note-post pre {
  width: 100%;
  overflow-x: auto;
  margin: 0.65em 0 0.9em;
  padding: 0.75em 0.85em;
  border-left: 2px solid #d8d8d8;
  background: #fafafa;
}

.note-post code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: var(--font-small);
  line-height: 1.45;
}

.math-block {
  width: 100%;
  overflow-x: auto;
  margin: 0.7em 0 0.9em;
  padding: 0.7em 0;
  color: #111111;
  font-family: "Libertinus Sans", "Linux Biolinum O", Optima, Candara, sans-serif;
  font-size: var(--font-body);
  text-align: center;
  white-space: nowrap;
}

.frac {
  display: inline-grid;
  grid-template-rows: auto auto;
  margin: 0 0.18em;
  vertical-align: middle;
}

.frac > span {
  padding: 0 0.24em;
  text-align: center;
}

.frac > span:first-child {
  border-bottom: 1px solid currentColor;
}

.key-points-panel ul {
  display: grid;
  gap: 0.8em;
  margin: 0;
  padding-left: 1.1em;
}

.key-points-panel li {
  line-height: 1.25;
}

@media (max-width: 900px) {
  body {
    display: block;
    height: auto;
    overflow: auto;
  }

  body:not(.notion-body)::after {
    display: none;
  }

  .sidebar {
    display: none;
    position: static;
    height: auto;
  }

  .content-scroll {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .main-content {
    width: min(100%, 500px);
    max-width: none;
    padding: 0 22px 64px;
  }

  .spacer {
    height: 8vh;
  }

  .profile-photo {
    max-width: 100%;
  }

  .profile-img {
    width: 132px;
    height: 132px;
  }

  .profile-hover-text {
    font-size: var(--font-small);
    white-space: normal;
    text-align: center;
  }

  .latent-panel {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    transform: none;
  }

  .updates-panel {
    position: static;
    width: min(100%, 500px);
    height: auto;
    max-height: none;
    margin: 0 auto;
    padding: 0 22px 64px;
    overflow: visible;
    border-top: 1px solid #e0e0e0;
    border-left: 0;
    transform: none;
  }

  .updates-panel::before,
  .key-points-panel::before,
  .update-item::before {
    display: none;
  }

  .key-points-panel {
    position: static;
    width: min(100%, 500px);
    max-height: none;
    margin: 0 auto;
    padding: 0 22px 64px;
    overflow: visible;
    border-top: 1px solid #e0e0e0;
    border-left: 0;
    transform: none;
  }

  .note-post {
    max-width: none;
  }
}

.notion-body {
  color: var(--notion-ink);
  background: var(--paper);
  font-family: "Libertinus Sans", "Linux Biolinum O", Optima, Candara, sans-serif;
  font-size: 16px;
  font-weight: 400;
  display: block;
  height: auto;
  overflow: auto;
}

.notion-page {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.notion-nav {
  display: flex;
  gap: 18px;
  margin-bottom: 52px;
  color: rgba(55, 53, 47, 0.58);
  font-size: 0.92rem;
}

.notion-nav a {
  color: rgba(55, 53, 47, 0.68);
  font-weight: 600;
}

.notion-icon {
  display: grid;
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 16px;
  color: #176456;
  background: #edf4ef;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
}

.notion-title {
  margin-bottom: 28px;
}

.notion-title h1 {
  margin-bottom: 8px;
  color: #2f3437;
  font-size: 2.55rem;
  line-height: 1.12;
}

.notion-title p:last-child,
.notes-intro,
.notion-page .note-card span:last-child {
  color: rgba(55, 53, 47, 0.62);
}

.notion-page .page-title {
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(55, 53, 47, 0.16);
}

.notion-page .page-title h2 {
  display: none;
}

.notes-layout {
  padding-bottom: 8px;
}

.notes-group {
  padding: 18px 0 6px;
}

.notes-group h3 {
  margin: 0 0 8px;
  color: rgba(55, 53, 47, 0.72);
  font-size: 0.9rem;
}

.note-card {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 4px;
  color: var(--notion-ink);
}

.note-card:hover {
  color: var(--notion-ink);
  background: rgba(55, 53, 47, 0.08);
}

.note-card strong::before {
  content: "▣";
  margin-right: 8px;
  color: rgba(55, 53, 47, 0.46);
  font-size: 0.82rem;
}

.note-card .meta {
  display: none;
}

.note-card span:last-child {
  padding-left: 21px;
  font-weight: 400;
}

.note-article {
  padding: 28px 0 8px;
  scroll-margin-top: 56px;
}

.note-article h3 {
  margin-bottom: 10px;
  color: #2f3437;
  font-size: 1.55rem;
}

.note-article h4 {
  margin: 18px 0 8px;
  color: #37352f;
  font-size: 1.05rem;
}

.note-article p,
.note-article li {
  color: #37352f;
  font-size: 1rem;
  line-height: 1.65;
}

.note-article ul {
  margin: 0;
  padding-left: 20px;
}

pre {
  overflow-x: auto;
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid rgba(55, 53, 47, 0.12);
  border-radius: 4px;
  background: rgba(55, 53, 47, 0.06);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.equation {
  overflow-x: auto;
  margin: 18px 0;
  padding: 10px 0;
  color: #1f1f1f;
  text-align: center;
}

.math {
  font-family: "STIX Two Math", "Cambria Math", "Latin Modern Math", "Times New Roman", Georgia, serif;
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.8;
  white-space: nowrap;
}

.math sub,
.math sup {
  font-size: 0.7em;
}

.frac {
  display: inline-grid;
  grid-template-rows: auto auto;
  margin: 0 0.18em;
  vertical-align: middle;
}

.frac > span {
  padding: 0 0.24em;
  text-align: center;
}

.frac > span:first-child {
  border-bottom: 1px solid currentColor;
}

.notion-page footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid rgba(55, 53, 47, 0.12);
  color: rgba(55, 53, 47, 0.68);
}

.notion-page footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
