@charset "UTF-8";
:root {
  --bg: #000000;
  --bg-alt: #111111;
  --text: #e2e8f0;
  --text-light: #94a3b8;
  --heading: #f1f5f9;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: rgba(255, 255, 255, 0.1);
  --code-bg: #1a1b2e;
  --body-bg: #000;
  --body-bg-opacity: 0.25;
  --header-bg: rgba(0, 0, 0, 0.6);
  --dropdown-bg: rgba(0, 0, 0, 0.9);
  --mobile-nav-bg: rgba(0, 0, 0, 0.85);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-bg-hover: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-subtle: rgba(255, 255, 255, 0.06);
  --table-header-bg: rgba(96, 165, 250, 0.1);
  --post-heading: #4ade80;
  --post-strong: #4ade80;
  --figure-text: #e2e8f0;
}

[data-theme=light] {
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --text: #232a2f;
  --text-light: #4b5563;
  --heading: #1a1a2e;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e2e8f0;
  --code-bg: #f0f1f5;
  --body-bg: #f5f5f5;
  --body-bg-opacity: 0.25;
  --header-bg: rgba(255, 255, 255, 0.8);
  --dropdown-bg: rgba(255, 255, 255, 0.95);
  --mobile-nav-bg: rgba(255, 255, 255, 0.95);
  --card-bg: rgba(0, 0, 0, 0.03);
  --card-bg-hover: rgba(0, 0, 0, 0.06);
  --panel-border: rgba(0, 0, 0, 0.08);
  --panel-border-subtle: rgba(0, 0, 0, 0.06);
  --table-header-bg: rgba(37, 99, 235, 0.08);
  --post-heading: #1a1a2e;
  --post-strong: #1a1a2e;
  --figure-text: #232a2f;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.075rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--body-bg);
  position: relative;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/images/book_wisdom.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--body-bg-opacity);
  z-index: -1;
  pointer-events: none;
}

[data-theme=light] body {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  color: var(--heading);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-hover);
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

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

code {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.875em;
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  overflow-x: auto;
  margin-bottom: 1rem;
}
pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 1rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background: var(--code-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
}
table th, table td {
  padding: 0.5rem 1rem;
  border: 1px solid var(--panel-border-subtle);
  text-align: left;
}
table th {
  background: var(--table-header-bg);
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-weight: 600;
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--heading);
  white-space: nowrap;
}
.site-logo:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s;
}

.hamburger {
  position: relative;
}
.hamburger::before, .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}
.hamburger::before {
  top: -6px;
}
.hamburger::after {
  top: 6px;
}

.nav-toggle[aria-expanded=true] .hamburger {
  background: transparent;
}
.nav-toggle[aria-expanded=true] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle[aria-expanded=true] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: var(--bg-alt);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-social > a {
  color: var(--text-light);
  font-size: 1rem;
}
.nav-social > a:hover {
  color: var(--accent);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1.1rem;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}
.theme-toggle:hover {
  color: var(--accent);
}

.social-more {
  position: relative;
}

.social-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1rem;
  padding: 0.25rem;
}
.social-more-btn:hover {
  color: var(--accent);
}

.social-more-list {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--dropdown-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0;
  min-width: 140px;
  z-index: 200;
}
.social-more-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 1rem;
  color: var(--text-light);
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.85rem;
  white-space: nowrap;
}
.social-more-list a:hover {
  color: var(--accent);
  background: var(--card-bg);
}

.social-more.open .social-more-list {
  display: block;
}

.site-content {
  min-height: calc(100vh - 3.5rem - 8rem);
}

.page-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.post-container {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.about-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1rem 3rem 1rem;
}

.page-title {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1rem;
  text-align: center;
}

.footer-content {
  max-width: 48rem;
  margin: 0 auto;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.footer-social a {
  color: var(--text-light);
  font-size: 1.1rem;
}
.footer-social a:hover {
  color: var(--accent);
}

.footer-content p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.hero-quote-link {
  text-decoration: none;
  color: inherit;
}
.hero-quote-link:hover {
  color: inherit;
}
.hero-quote-link:hover .hero-link-icon {
  opacity: 0.8;
}

.hero-quote {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 2rem 1rem;
  margin-bottom: 1rem;
}

.hero-text-group {
  text-align: center;
}

.hero-link-icon {
  font-size: 0.8rem;
  opacity: 0.25;
  margin-top: 0.6rem;
  transition: opacity 0.2s;
}

.hero-sanskrit {
  font-size: 4rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.hero-transliteration {
  font-size: 1.35rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 0.25rem;
}

.hero-meaning {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.hero-source {
  font-size: 1.05rem;
  color: var(--text-light);
  font-style: italic;
}

.about-section {
  padding: 3rem 2rem;
}

.about-hero {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.about-photo {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

.about-info {
  flex: 1;
}

.about-name {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.about-role {
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.about-affiliation {
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.about-quick-links {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
}
.about-quick-links a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-light);
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}
.about-quick-links a:hover {
  color: var(--accent);
}

.about-interests {
  margin-top: 1rem;
}
.about-interests h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.interest-tag {
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3em 0.8em;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 20px;
}

.about-bio {
  margin-bottom: 2rem;
  line-height: 1.8;
}

.chat-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.chat-section h2 {
  margin-bottom: 0.5rem;
}
.chat-section p {
  color: var(--text-light);
  margin-bottom: 1rem;
}
.chat-section .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.news-section {
  margin-top: 3rem;
}

.news-section h2 {
  margin-bottom: 1rem;
}

.news-list {
  list-style: none;
  padding: 0;
}
.news-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}
.news-list li:last-child {
  border-bottom: none;
}

.news-date {
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  min-width: 5rem;
}

.pub-footnote {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 2rem;
}

.pub-entry {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.pub-entry:last-child {
  border-bottom: none;
}

.pub-with-figure {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.pub-figure {
  flex-shrink: 0;
  width: 350px;
}
.pub-figure img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.pub-figure-small {
  width: 200px;
}

.pub-text {
  flex: 1;
}

.pub-title {
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--heading);
  margin-bottom: 0.25rem;
}

.pub-authors {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.pub-venue {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.pub-note {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

.pub-links {
  display: flex;
  gap: 0.5rem;
}
.pub-links a {
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.pub-links a:hover {
  color: var(--accent-hover);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: background 0.2s;
}
.project-card:hover {
  background: var(--card-bg-hover);
}

.project-card h3 {
  margin-bottom: 0.25rem;
}

.project-period {
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 1rem;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.journey-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.journey-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.journey-card-body {
  padding: 1rem;
}

.journey-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.journey-date {
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-block;
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: all 0.2s;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent);
  color: #fff;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.tag {
  display: inline-block;
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15em 0.6em;
  background: var(--bg-alt);
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.cv-embed {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.cv-download {
  margin-bottom: 2rem;
  text-align: center;
}

.blog-intro {
  max-width: 52rem;
  margin: 0 auto 3rem;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.75;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 52rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-list-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.post-list-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--card-bg-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.series-item {
  border-left: 3px solid var(--post-heading);
}

.post-list-title {
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.post-list-title a {
  color: var(--heading);
  transition: color 0.2s;
}
.post-list-title a:hover {
  color: var(--accent);
}

.post-list-meta {
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.series-count {
  color: var(--post-heading);
  font-weight: 600;
  font-style: italic;
}

.post-list-excerpt {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0;
}

.series-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 1rem;
}

.series-part {
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.34em 0.82em;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-light);
  background: var(--bg);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}
.series-part:hover {
  color: #fff;
  border-color: var(--post-heading);
  background: var(--post-heading);
  transform: translateY(-1px);
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes glowIn {
  from {
    opacity: 0;
    box-shadow: 0 0 0 rgba(96, 165, 250, 0);
  }
  to {
    opacity: 1;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.08);
  }
}
@keyframes headingReveal {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.visible {
  animation: fadeSlideUp 0.6s ease-out forwards;
}

.animate-on-scroll.visible.glow-in {
  animation: glowIn 0.7s ease-out forwards;
}

.animate-on-scroll.visible.heading-reveal {
  animation: headingReveal 0.5s ease-out forwards;
}

.post-header {
  margin-bottom: 3rem;
}

.post-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
}

.post-tags {
  display: flex;
  gap: 0.25rem;
}

.post-content h2, .post-content h3, .post-content h4 {
  margin-top: 3rem;
  color: var(--post-heading);
}
.post-content strong {
  color: var(--post-strong);
}
.post-content img {
  margin: 2rem auto;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.post-content figure {
  margin: 2rem 0;
  text-align: center;
  background: #1a1b2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 2rem 1rem 1rem;
}
.post-content figure img {
  margin-bottom: 0.5rem;
  border: none;
}
.post-content figure svg {
  max-width: 100%;
  height: auto;
}
.post-content figure svg text {
  font-size: 15px;
}
.post-content figure figcaption {
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.post-content .visual-embed {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.post-content .visual-embed iframe {
  width: 100%;
  border: none;
  display: block;
}
.post-content .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  margin: 2rem 0;
  border-radius: 6px;
  overflow: hidden;
}
.post-content .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.post-content video {
  max-width: 100%;
  margin: 2rem auto;
  border-radius: 6px;
  display: block;
}
.post-content .mermaid {
  margin: 2rem 0;
  text-align: center;
  background: #1a1b2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 2rem 1rem;
}
.post-content .mermaid .node rect,
.post-content .mermaid .node polygon {
  rx: 8px;
  ry: 8px;
}
.post-content .mermaid .nodeLabel {
  padding: 14px 20px;
  font-size: 17px;
}
.post-content .mermaid .cluster-label .nodeLabel {
  font-size: 19px;
  font-weight: 600;
}
.post-content .katex-display {
  overflow-x: auto;
  padding: 1rem 2rem;
  margin: 1rem 0;
  background: var(--code-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}

.subscribe-box {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--code-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  text-align: center;
}
.subscribe-box h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--post-heading);
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
}
.subscribe-form input[type=email] {
  flex: 1;
  padding: 0.5rem 1rem;
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
}
.subscribe-form input[type=email]:focus {
  border-color: var(--accent);
}
.subscribe-form input[type=email]::placeholder {
  color: var(--text-light);
}

.subscribe-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.feedback-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
}

.feedback-fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, background 0.2s;
}
.feedback-fab:hover {
  transform: scale(1.1);
  background: var(--accent-hover);
}

.feedback-panel {
  display: none;
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 280px;
  background: var(--code-bg);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.feedback-panel .feedback-panel-title {
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.5rem;
}
.feedback-panel textarea {
  width: 100%;
  padding: 0.5rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  resize: vertical;
  outline: none;
  margin-bottom: 0.5rem;
}
.feedback-panel textarea:focus {
  border-color: var(--accent);
}
.feedback-panel textarea::placeholder {
  color: var(--text-light);
}
.feedback-panel .btn {
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.feedback-float.open .feedback-panel {
  display: block;
}

.feedback-status {
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  text-align: center;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.9rem;
}

.post-nav-prev, .post-nav-next {
  max-width: 45%;
}

.glossary-term {
  position: relative;
  color: var(--accent);
  border-bottom: 1px dotted var(--accent);
  cursor: help;
  outline: none;
}
.glossary-term:hover .glossary-pop, .glossary-term:focus .glossary-pop, .glossary-term:focus-within .glossary-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.glossary-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 300;
  width: min(22rem, 85vw);
  max-height: 210px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  background: var(--code-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  font-family: "Merriweather", Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  text-align: left;
  white-space: normal;
  cursor: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.glossary-pop::-webkit-scrollbar {
  width: 7px;
}
.glossary-pop::-webkit-scrollbar-track {
  background: transparent;
}
.glossary-pop::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.glossary-pop-title {
  display: block;
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-weight: 700;
  color: var(--post-heading);
  margin-bottom: 0.25rem;
}

.gp-para {
  display: block;
  margin-bottom: 0.5rem;
}
.gp-para:last-child {
  margin-bottom: 0;
}

.glossary-pop .gp-eq {
  display: block;
  margin: 0.25rem 0 0.5rem;
  text-align: center;
}
.glossary-pop .katex-display {
  margin: 0;
  padding: 0.25rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--panel-border-subtle);
  border-radius: 6px;
  font-size: 0.9em;
  overflow-x: auto;
}

.key-idea {
  margin: 2rem 0;
  padding: 1rem 2rem;
  background: var(--code-bg);
  border: 1px solid var(--panel-border);
  border-left: 4px solid var(--post-heading);
  border-radius: 8px;
}

.key-idea-label {
  display: block;
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--post-heading);
  margin-bottom: 0.25rem;
}
.key-idea-label i {
  margin-right: 0.45em;
}

.key-idea-text {
  display: block;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
}

.interview-q {
  margin: 2rem 0;
  padding: 1rem 2rem;
  background: var(--code-bg);
  border: 1px solid var(--panel-border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

.interview-q-label {
  display: block;
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.interview-q-label i {
  margin-right: 0.45em;
}

.interview-q-text {
  display: block;
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--heading);
}

.interview-q details {
  margin-top: 0.5rem;
}
.interview-q details summary {
  cursor: pointer;
  list-style: none;
  font-family: "Source Sans Pro", -apple-system, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  user-select: none;
}
.interview-q details summary::-webkit-details-marker {
  display: none;
}
.interview-q details summary::before {
  content: "▸";
  display: inline-block;
  width: 1em;
}
.interview-q details[open] summary::before {
  content: "▾";
}

.interview-q-answer {
  display: block;
  margin-top: 0.25rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text);
}

.rapid-fire {
  margin: 1rem 0 2rem;
  padding: 1rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}
.rapid-fire ol {
  margin: 0;
  padding-left: 1.4em;
}
.rapid-fire ol li {
  margin: 0.35em 0;
  line-height: 1.55;
  font-size: 0.98rem;
}

.highlight {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  background: var(--code-bg);
  border: 1px solid var(--panel-border);
}
.highlight pre {
  margin: 0;
  background: transparent;
  border: none;
}

.highlight .c,
.highlight .cm,
.highlight .c1,
.highlight .cs {
  color: #75715e;
  font-style: italic;
}

.highlight .k,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt {
  color: #f92672;
}

.highlight .s,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .s2,
.highlight .sh,
.highlight .s1 {
  color: #e6db74;
}

.highlight .na {
  color: #a6e22e;
}

.highlight .nb {
  color: #66d9ef;
}

.highlight .nc {
  color: #a6e22e;
}

.highlight .no {
  color: #66d9ef;
}

.highlight .nf,
.highlight .nx {
  color: #a6e22e;
}

.highlight .nn {
  color: #66d9ef;
}

.highlight .mi,
.highlight .mf,
.highlight .mh,
.highlight .mo {
  color: #ae81ff;
}

.highlight .o,
.highlight .ow {
  color: #f92672;
}

.highlight .p {
  color: var(--text);
}

.highlight .se {
  color: #ae81ff;
}

.highlight .sr {
  color: #e6db74;
}

.highlight .si {
  color: #e6db74;
}

.highlight .err {
  color: #f92672;
}

[data-theme=light] .highlight .c, [data-theme=light] .highlight .cm, [data-theme=light] .highlight .c1, [data-theme=light] .highlight .cs {
  color: #6a737d;
}
[data-theme=light] .highlight .k, [data-theme=light] .highlight .kd, [data-theme=light] .highlight .kn, [data-theme=light] .highlight .kp, [data-theme=light] .highlight .kr, [data-theme=light] .highlight .kt {
  color: #d73a49;
}
[data-theme=light] .highlight .s, [data-theme=light] .highlight .sb, [data-theme=light] .highlight .sc, [data-theme=light] .highlight .sd, [data-theme=light] .highlight .s2, [data-theme=light] .highlight .sh, [data-theme=light] .highlight .s1 {
  color: #032f62;
}
[data-theme=light] .highlight .na {
  color: #6f42c1;
}
[data-theme=light] .highlight .nb {
  color: #005cc5;
}
[data-theme=light] .highlight .nc {
  color: #6f42c1;
}
[data-theme=light] .highlight .no {
  color: #005cc5;
}
[data-theme=light] .highlight .nf, [data-theme=light] .highlight .nx {
  color: #6f42c1;
}
[data-theme=light] .highlight .nn {
  color: #005cc5;
}
[data-theme=light] .highlight .mi, [data-theme=light] .highlight .mf, [data-theme=light] .highlight .mh, [data-theme=light] .highlight .mo {
  color: #005cc5;
}
[data-theme=light] .highlight .o, [data-theme=light] .highlight .ow {
  color: #d73a49;
}
[data-theme=light] .highlight .se {
  color: #032f62;
}
[data-theme=light] .highlight .sr {
  color: #032f62;
}
[data-theme=light] .highlight .si {
  color: #032f62;
}
[data-theme=light] .highlight .err {
  color: #cb2431;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 3.5rem;
    left: 0;
    right: 0;
    background: var(--mobile-nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-link {
    padding: 0.5rem 1rem;
    width: 100%;
  }
  .nav-social {
    display: none;
  }
  .about-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-photo {
    width: 150px;
    height: 150px;
  }
  .about-quick-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }
  .interest-tags {
    justify-content: center;
  }
  .pub-with-figure {
    flex-direction: column;
  }
  .pub-figure {
    width: 100%;
  }
  .project-grid,
  .journey-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  .post-title {
    font-size: 1.6rem;
  }
  .cv-embed {
    display: none;
  }
  .post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .post-content .katex-display {
    padding: 0.5rem;
  }
}
@media (max-width: 480px) {
  .about-photo {
    width: 120px;
    height: 120px;
  }
  .news-list li {
    flex-direction: column;
    gap: 0.25rem;
  }
  .subscribe-form {
    flex-direction: column;
  }
  .post-nav {
    flex-direction: column;
    gap: 1rem;
  }
  .post-nav-prev, .post-nav-next {
    max-width: 100%;
  }
}
body.notebook {
  --nb-unit: 1.85rem;
  --bg: #f4efe5;
  --bg-alt: #fbf8f1;
  --text: #221f1a;
  --text-light: #6e5f47;
  --heading: #221f1a;
  --accent: #b4433a;
  --accent-hover: #8e3129;
  --border: #cfc8b8;
  --code-bg: rgba(255, 255, 255, 0.6);
  --header-bg: #f4efe5;
  --dropdown-bg: #fbf8f1;
  --mobile-nav-bg: #f4efe5;
  --card-bg: #fbf8f1;
  --card-bg-hover: #ffffff;
  --panel-border: #d6cdb9;
  --panel-border-subtle: #cfc8b8;
  --table-header-bg: transparent;
  --post-heading: #221f1a;
  --post-strong: #221f1a;
  --figure-text: #221f1a;
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.156rem;
  line-height: 1.6;
  color: #221f1a;
  background-color: #f4efe5;
  background-image: linear-gradient(rgba(34, 31, 26, 0.12) 1px, transparent 1px);
  background-size: 100% 1.85rem;
  background-position: 0 0;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}
body.notebook::before {
  display: none;
}
body.notebook h1, body.notebook h2, body.notebook h3, body.notebook h4, body.notebook h5, body.notebook h6 {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 500;
  color: #221f1a;
  letter-spacing: -0.01em;
}
body.notebook a {
  color: #221f1a;
}
body.notebook a:hover {
  color: #b4433a;
}
body.notebook .site-header {
  background: #f4efe5;
  border-bottom: none;
  box-shadow: inset 0 -1px 0 #cfc8b8;
  backdrop-filter: none;
}
body.notebook .nav-container {
  max-width: 62rem;
  height: calc(3 * 1.85rem);
  padding: 0 1rem;
  align-items: center;
}
body.notebook .site-logo {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: #221f1a;
}
body.notebook .site-logo:hover {
  color: #b4433a;
}
body.notebook .nav-links {
  gap: 1.8rem;
}
body.notebook .nav-link {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 400;
  font-size: 1rem;
  color: #221f1a;
  padding: 0 0 2px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
}
body.notebook .nav-link:hover, body.notebook .nav-link.active {
  color: #221f1a;
  background: none;
  border-bottom-color: #b4433a;
}
body.notebook .theme-toggle {
  display: none;
}
body.notebook .nav-social > a, body.notebook .social-more-btn {
  color: #6e5f47;
}
body.notebook .nav-social > a:hover, body.notebook .social-more-btn:hover {
  color: #b4433a;
}
body.notebook .hamburger, body.notebook .hamburger::before, body.notebook .hamburger::after {
  background: #221f1a;
}
body.notebook .social-more-list {
  background: #fbf8f1;
  border: 1px solid #d6cdb9;
  border-radius: 0;
  box-shadow: 2px 3px 0 rgba(34, 31, 26, 0.08);
  backdrop-filter: none;
}
body.notebook .social-more-list a {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  color: #221f1a;
}
body.notebook .social-more-list a:hover {
  color: #b4433a;
  background: none;
}
body.notebook .page-container, body.notebook .post-container {
  position: relative;
}
body.notebook .page-container::before, body.notebook .post-container::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2.25rem;
  width: 1px;
  background: rgba(180, 67, 58, 0.35);
}
body.notebook .page-container {
  max-width: 62rem;
  padding: calc(2 * 1.85rem) 1rem calc(2 * 1.85rem);
}
body.notebook .page-container > * {
  margin-top: 0;
}
body.notebook .page-container > h2 {
  line-height: 1.85rem;
  padding-top: 1.85rem;
  margin: 0;
  font-size: 1.7rem;
}
body.notebook .post-container {
  max-width: 44rem;
  padding: calc(2 * 1.85rem) 1rem calc(3 * 1.85rem);
}
body.notebook .post-container > * {
  margin-top: 0;
}
body.notebook .page-title {
  font-size: 3.6rem;
  font-weight: 500;
  line-height: calc(2 * 1.85rem);
  letter-spacing: -0.015em;
  margin: 0;
  padding: 0;
  border: none;
  position: relative;
  top: -14.5px;
  max-width: calc(100% - 15rem);
}
body.notebook .nb-title-note {
  position: absolute;
  right: 1rem;
  top: 2.2rem;
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 1.12rem;
  color: #6e5f47;
  transform: rotate(-3deg);
}
body.notebook .blog-intro {
  line-height: 1.85rem;
  font-style: italic;
  font-size: 1.19rem;
  color: #3d3830;
  max-width: 39rem;
  margin: 0 0 1.85rem;
}
body.notebook .post-list {
  max-width: none;
  gap: 1.85rem;
}
body.notebook .post-list-item {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.5rem;
  background: #fbf8f1;
  border: 1px solid #d6cdb9;
  border-radius: 0;
  box-shadow: 2px 3px 0 rgba(34, 31, 26, 0.08);
  padding: 1.2rem 1.6rem 1.3rem;
  transition: box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
body.notebook .post-list-item:hover {
  transform: none;
  background: #ffffff;
  border-color: #b9b0a0;
  box-shadow: 3px 4px 0 rgba(34, 31, 26, 0.12);
}
body.notebook .post-list-item:hover .post-list-title a {
  color: #b4433a;
}
body.notebook .entry-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: none;
}
body.notebook .entry-side, body.notebook .entry-main {
  position: relative;
  z-index: 2;
  pointer-events: none;
}
body.notebook .entry-main a, body.notebook .entry-side a {
  pointer-events: auto;
}
body.notebook .series-item {
  border-left: none;
}
body.notebook .entry-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-top: 0;
}
body.notebook .entry-stamp {
  display: inline-block;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #b4433a;
  border: 1.5px solid #b4433a;
  padding: 4px 8px;
  white-space: nowrap;
}
body.notebook .stamp-r0 {
  transform: rotate(-3deg);
}
body.notebook .stamp-r1 {
  transform: rotate(2deg);
}
body.notebook .stamp-r2 {
  transform: rotate(-1deg);
}
body.notebook .stamp-r3 {
  transform: rotate(3deg);
}
body.notebook .stamp-r4 {
  transform: rotate(-2deg);
}
body.notebook .entry-hand {
  line-height: 1.85rem;
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 0.96rem;
  color: #6e5f47;
}
body.notebook .post-list-title {
  line-height: 1.85rem;
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0;
}
body.notebook .post-list-title a {
  color: #221f1a;
}
body.notebook .post-list-title a:hover {
  color: #b4433a;
}
body.notebook .post-list-excerpt {
  line-height: 1.85rem;
  font-size: 1.03rem;
  color: #3d3830;
  margin: 0;
}
body.notebook .series-parts {
  line-height: 1.85rem;
  gap: 0 1rem;
  margin: 0;
}
body.notebook .series-part {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 400;
  padding: 0 0 1px;
  border: none;
  border-bottom: 1px dotted #4a453c;
  border-radius: 0;
  background: none;
  color: #4a453c;
  transition: color 0.15s, border-color 0.15s;
}
body.notebook .series-part:hover {
  transform: none;
  color: #b4433a;
  border-color: #b4433a;
  background: none;
}
body.notebook .series-part-title {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #6e5f47;
  margin-left: 0.35em;
}
body.notebook .track-item {
  box-shadow: none;
}
body.notebook .track-item::before, body.notebook .track-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fbf8f1;
  border: 1px solid #d6cdb9;
  transition: transform 0.15s;
}
body.notebook .track-item::before {
  transform: translate(7px, 7px) rotate(0.4deg);
  box-shadow: 2px 3px 0 rgba(34, 31, 26, 0.08);
}
body.notebook .track-item::after {
  transform: translate(3.5px, 3.5px) rotate(-0.2deg);
}
body.notebook .track-item:hover {
  box-shadow: none;
}
body.notebook .track-item:hover::before {
  transform: translate(10px, 10px) rotate(0.65deg);
}
body.notebook .track-item:hover::after {
  transform: translate(5px, 5px) rotate(-0.35deg);
}
body.notebook .track-topics {
  line-height: 1.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin: 0;
}
body.notebook .track-topic {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.05rem;
  color: #221f1a;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #d6cdb9;
  border-radius: 0;
  padding: 1px 0.7rem 2px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
body.notebook .track-topic:hover {
  transform: none;
  color: #b4433a;
  border-color: #b4433a;
  background: #ffffff;
}
body.notebook .track-topic-count {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: #6e5f47;
}
body.notebook .track-back {
  line-height: 1.85rem;
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 1.04rem;
  margin: 1.85rem 0 0;
}
body.notebook .track-back a {
  color: #6e5f47;
  border-bottom: 1px dashed #b9b0a0;
}
body.notebook .track-back a::before {
  content: "← ";
}
body.notebook .track-back a:hover {
  color: #b4433a;
  border-color: #b4433a;
}
body.notebook .series-track {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0 1.5rem;
  line-height: 1.85rem;
  margin: 0;
  font-size: 1rem;
}
body.notebook .series-track-label {
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 0.96rem;
  color: #6e5f47;
}
body.notebook .series-track-link {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-style: italic;
  color: #221f1a;
  border-bottom: 1px dotted #b9b0a0;
}
body.notebook .series-track-link:hover {
  color: #b4433a;
  border-color: #b4433a;
}
body.notebook .post-header {
  display: flex;
  flex-direction: column-reverse;
  margin: 0;
}
body.notebook .post-title {
  font-size: 2.85rem;
  font-weight: 500;
  line-height: calc(2 * 1.85rem);
  letter-spacing: -0.015em;
  margin: 0;
  padding-top: 1.85rem;
  position: relative;
  top: -11.9px;
}
body.notebook .post-meta {
  line-height: 1.85rem;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6e5f47;
  gap: 0 0.5rem;
  align-items: baseline;
}
body.notebook .post-meta > *:not(:last-child)::after {
  content: "·";
  margin-left: 0.5rem;
  color: #b3aa9a;
}
body.notebook .post-tags {
  gap: 0.5rem;
  flex-wrap: wrap;
}
body.notebook .post-tags .tag {
  white-space: nowrap;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: inherit;
  font-weight: 400;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: #6e5f47;
  text-transform: none;
}
body.notebook .post-tags .tag::before {
  content: "#";
  color: #b3aa9a;
}
body.notebook .post-kicker {
  color: #b4433a;
}
body.notebook .post-content {
  font-size: 1.156rem;
  line-height: 1.85rem;
  margin-bottom: 1.85rem;
}
body.notebook .post-content > * {
  margin-top: 0;
}
body.notebook .post-content p {
  line-height: 1.85rem;
  margin: 0 0 1.85rem;
}
body.notebook .post-content ul, body.notebook .post-content ol {
  line-height: 1.85rem;
  margin: 0 0 1.85rem;
  padding: 0 0 0 1.4rem;
}
body.notebook .post-content ul li, body.notebook .post-content ol li {
  margin: 0;
  line-height: 1.85rem;
}
body.notebook .post-content ul ul, body.notebook .post-content ul ol, body.notebook .post-content ol ul, body.notebook .post-content ol ol {
  margin-bottom: 0;
}
body.notebook .post-content h2, body.notebook .post-content h3, body.notebook .post-content h4 {
  line-height: 1.85rem;
  color: #221f1a;
  padding-top: 1.85rem;
  margin: 0;
}
body.notebook .post-content h2 {
  font-size: 1.7rem;
}
body.notebook .post-content h3 {
  font-size: 1.35rem;
}
body.notebook .post-content h4 {
  font-size: 1.15rem;
  font-style: italic;
}
body.notebook .post-content strong {
  color: #221f1a;
  font-weight: 600;
}
body.notebook .post-content a {
  color: #221f1a;
  border-bottom: 1px dotted #b4433a;
}
body.notebook .post-content a:hover {
  color: #b4433a;
}
body.notebook .post-content blockquote {
  line-height: 1.85rem;
  border-left: 2px solid #b9b0a0;
  color: #3d3830;
  margin: 0 0 1.85rem;
  padding: 0 0 0 1.2rem;
}
body.notebook .post-content blockquote p {
  margin: 0;
}
body.notebook .post-content hr {
  border: none;
  height: 1.85rem;
  margin: 0;
  background: linear-gradient(#b9b0a0 0 1px, transparent 1px) 0 50%/100% 1px no-repeat;
}
body.notebook .post-content code {
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed #b9b0a0;
  border-radius: 0;
  padding: 0.02em 0.35em;
  font-size: 0.82em;
  color: #221f1a;
}
body.notebook .post-content div.highlighter-rouge {
  position: relative;
  margin: 0 0 1.85rem;
  background: #fbf9f4;
}
body.notebook .post-content div.highlighter-rouge::before {
  position: absolute;
  top: -13px;
  left: 18px;
  z-index: 1;
  background: #f4efe5;
  border: 1px dashed #b9b0a0;
  border-bottom: none;
  padding: 3px 10px 2px;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: #6e5f47;
}
body.notebook .post-content div.language-python::before {
  content: "python";
}
body.notebook .post-content div.language-bash::before {
  content: "shell";
}
body.notebook .post-content div.language-sh::before {
  content: "shell";
}
body.notebook .post-content div.language-shell::before {
  content: "shell";
}
body.notebook .post-content div.language-zsh::before {
  content: "shell";
}
body.notebook .post-content div.language-yaml::before {
  content: "yaml";
}
body.notebook .post-content div.language-yml::before {
  content: "yaml";
}
body.notebook .post-content div.language-json::before {
  content: "json";
}
body.notebook .post-content div.language-javascript::before {
  content: "javascript";
}
body.notebook .post-content div.language-js::before {
  content: "javascript";
}
body.notebook .post-content div.language-html::before {
  content: "html";
}
body.notebook .post-content div.language-css::before {
  content: "css";
}
body.notebook .post-content div.language-scss::before {
  content: "scss";
}
body.notebook .post-content div.language-cpp::before {
  content: "c++";
}
body.notebook .post-content div.language-c::before {
  content: "c";
}
body.notebook .post-content div.language-cuda::before {
  content: "cuda";
}
body.notebook .post-content div.language-text::before {
  content: "text";
}
body.notebook .post-content div.language-plaintext::before {
  content: "text";
}
body.notebook .post-content div.language-diff::before {
  content: "diff";
}
body.notebook .post-content div.language-toml::before {
  content: "toml";
}
body.notebook .post-content div.language-ini::before {
  content: "ini";
}
body.notebook .post-content .highlight {
  background: #fbf9f4;
  border-radius: 0;
  border: none;
  margin: 0;
}
body.notebook .post-content pre {
  background: #fbf9f4;
  border: 1px dashed #b9b0a0;
  border-radius: 0;
  padding: 1.3rem 1.4rem 1.1rem;
  margin: 0;
  color: #221f1a;
}
body.notebook .post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.65;
  color: #221f1a;
}
body.notebook .post-content .highlight .c, body.notebook .post-content .highlight .cm, body.notebook .post-content .highlight .c1, body.notebook .post-content .highlight .cs {
  color: #8b8378;
  font-style: italic;
}
body.notebook .post-content .highlight .k, body.notebook .post-content .highlight .kd, body.notebook .post-content .highlight .kn, body.notebook .post-content .highlight .kp, body.notebook .post-content .highlight .kr, body.notebook .post-content .highlight .kt, body.notebook .post-content .highlight .ow {
  color: #9b3d2f;
}
body.notebook .post-content .highlight .s, body.notebook .post-content .highlight .sb, body.notebook .post-content .highlight .sc, body.notebook .post-content .highlight .sd, body.notebook .post-content .highlight .s2, body.notebook .post-content .highlight .sh, body.notebook .post-content .highlight .s1,
body.notebook .post-content .highlight .se, body.notebook .post-content .highlight .sr, body.notebook .post-content .highlight .si {
  color: #8a5a2b;
}
body.notebook .post-content .highlight .nf, body.notebook .post-content .highlight .nx, body.notebook .post-content .highlight .nb, body.notebook .post-content .highlight .fm, body.notebook .post-content .highlight .na, body.notebook .post-content .highlight .nc, body.notebook .post-content .highlight .nd {
  color: #2f5d8a;
}
body.notebook .post-content .highlight .nn, body.notebook .post-content .highlight .n, body.notebook .post-content .highlight .p, body.notebook .post-content .highlight .o {
  color: #221f1a;
}
body.notebook .post-content .highlight .mi, body.notebook .post-content .highlight .mf, body.notebook .post-content .highlight .mh, body.notebook .post-content .highlight .mo, body.notebook .post-content .highlight .no, body.notebook .post-content .highlight .bp {
  color: #6b7d3a;
}
body.notebook .post-content .highlight .err {
  color: #b4433a;
  background: none;
}
body.notebook .post-content .highlight .gp, body.notebook .post-content .highlight .go {
  color: #6e5f47;
}
body.notebook .post-content .katex-display {
  background: #fbf8f1;
  border: 1px solid #d6cdb9;
  border-radius: 0;
  box-shadow: 2px 3px 0 rgba(34, 31, 26, 0.08);
  padding: 1.1rem 1.4rem;
  margin: 0 0 1.85rem;
  overflow-x: auto;
}
body.notebook .post-content .katex {
  font-size: 1.05em;
}
body.notebook .post-content .katex {
  color: #221f1a;
}
body.notebook .post-content figure {
  background: #fbf8f1;
  border: 1px solid #d6cdb9;
  border-radius: 0;
  padding: 1rem 1rem 0.8rem;
  margin: 0 0 1.85rem;
}
body.notebook .post-content figure img {
  border-radius: 0;
}
body.notebook .post-content figure figcaption {
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 1.04rem;
  line-height: 1.3;
  font-style: normal;
  color: #6e5f47;
  border-top: none;
  padding-top: 0.3rem;
  text-align: left;
}
body.notebook .post-content img {
  border-radius: 0;
  border: 1px solid #d6cdb9;
  margin: 0 auto 1.85rem;
}
body.notebook .post-content video {
  border-radius: 0;
  border: 1px solid #d6cdb9;
  margin: 0 auto 1.85rem;
}
body.notebook .post-content .visual-embed {
  border-radius: 0;
  border: 1px solid #d6cdb9;
  margin: 0 0 1.85rem;
}
body.notebook .post-content .video-wrapper {
  border-radius: 0;
  margin: 0 0 1.85rem;
}
body.notebook .post-content .mermaid {
  background: #fbf8f1;
  border: 1px solid #d6cdb9;
  border-radius: 0;
  padding: 1.2rem 1rem;
  margin: 0 0 1.85rem;
}
body.notebook .post-content .mermaid svg {
  max-width: 100%;
}
body.notebook .post-content .mermaid text, body.notebook .post-content .mermaid .messageText, body.notebook .post-content .mermaid .actor, body.notebook .post-content .mermaid .labelText, body.notebook .post-content .mermaid .loopText, body.notebook .post-content .mermaid .noteText, body.notebook .post-content .mermaid tspan {
  fill: #221f1a !important;
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif !important;
}
body.notebook .post-content .mermaid .actor, body.notebook .post-content .mermaid rect.actor {
  fill: #f4efe5 !important;
  stroke: #221f1a !important;
}
body.notebook .post-content .mermaid .messageLine0, body.notebook .post-content .mermaid .messageLine1, body.notebook .post-content .mermaid .actor-line, body.notebook .post-content .mermaid line {
  stroke: #6e5f47 !important;
}
body.notebook .post-content .mermaid .note, body.notebook .post-content .mermaid rect.note {
  fill: #fdf6dc !important;
  stroke: #d6cdb9 !important;
}
body.notebook .post-content .mermaid #arrowhead path, body.notebook .post-content .mermaid .arrowheadPath, body.notebook .post-content .mermaid marker path {
  fill: #6e5f47 !important;
  stroke: #6e5f47 !important;
}
body.notebook .post-content table {
  background: transparent;
  border: none;
  border-top: 1px solid #221f1a;
  border-bottom: 1px solid #221f1a;
  border-radius: 0;
  font-size: 1rem;
  margin: 0 0 1.85rem;
}
body.notebook .post-content table th {
  background: none;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  color: #6e5f47;
  border: none;
  border-bottom: 1px solid #221f1a;
}
body.notebook .post-content table td {
  border: none;
  border-bottom: 1px dashed #b9b0a0;
}
body.notebook .post-content table tr:last-child td {
  border-bottom: none;
}
body.notebook .post-content .animate-on-scroll.visible.glow-in {
  animation-name: fadeSlideUp;
}
body.notebook .interview-q {
  position: relative;
  background: #fbf8f1;
  border: 1px solid #d6cdb9;
  border-radius: 0;
  box-shadow: 2px 3px 0 rgba(34, 31, 26, 0.08);
  padding: 1.5rem 1.75rem 1.35rem;
  margin: 0 0 1.85rem;
  transform: rotate(-0.5deg);
}
body.notebook .interview-q::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 44px;
  width: 96px;
  height: 22px;
  background: rgba(180, 67, 58, 0.16);
  transform: rotate(-3deg);
}
body.notebook .interview-q-label {
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 1.04rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #b4433a;
  margin-bottom: 0.2rem;
}
body.notebook .interview-q-label i {
  display: none;
}
body.notebook .interview-q-text {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  color: #221f1a;
}
body.notebook .interview-q details {
  margin-top: 0.7rem;
}
body.notebook .interview-q details summary {
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 0.96rem;
  font-weight: 400;
  color: #6e5f47;
}
body.notebook .interview-q details summary::before {
  content: "↳ ";
  width: auto;
}
body.notebook .interview-q details summary:hover {
  color: #b4433a;
}
body.notebook .interview-q details[open] summary::before {
  content: "↳ ";
}
body.notebook .interview-q-answer {
  font-size: 0.97rem;
  line-height: 1.55;
  color: #3d3830;
  margin-top: 0.3rem;
}
body.notebook .key-idea {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0 0 1.85rem;
}
body.notebook .key-idea-label {
  line-height: 1.85rem;
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #b4433a;
  margin: 0;
}
body.notebook .key-idea-label i {
  display: none;
}
body.notebook .key-idea-text {
  display: inline;
  font-size: 1.156rem;
  line-height: 1.85rem;
  color: #221f1a;
  padding: 0 0.15em;
  background: linear-gradient(transparent 58%, rgba(214, 180, 60, 0.35) 58%, rgba(214, 180, 60, 0.35) 94%, transparent 94%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
body.notebook .rapid-fire {
  background: #f9f6ee;
  border: 1px dashed #b9b0a0;
  border-radius: 0;
  padding: 1rem 1.6rem;
  margin: 0 0 1.85rem;
}
body.notebook .rapid-fire ol {
  font-size: 1.03rem;
  line-height: 1.6;
  margin: 0;
  padding: 0 0 0 1.4em;
}
body.notebook .rapid-fire ol li {
  margin: 0.2em 0;
  font-size: inherit;
}
body.notebook .rapid-fire ol li::marker {
  color: #b4433a;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.85em;
}
body.notebook .qbank {
  margin: 0 0 1.85rem;
}
body.notebook .qbank-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 0 0 0.4rem;
}
body.notebook .qbank-level {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b4433a;
  border: 1.5px solid #b4433a;
  padding: 3px 7px;
  white-space: nowrap;
}
body.notebook .qbank-name {
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 1.04rem;
  color: #6e5f47;
}
body.notebook .qbank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: qbank;
}
body.notebook .qbank-list > li {
  position: relative;
  counter-increment: qbank;
  padding: 0.45rem 0 0.5rem 2.6rem;
  border-top: 1px dashed #b9b0a0;
  margin: 0;
}
body.notebook .qbank-list > li::before {
  content: "q" counter(qbank);
  position: absolute;
  left: 0;
  top: 0.55rem;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.76rem;
  color: #6e5f47;
}
body.notebook .qbank-list > li:last-child {
  border-bottom: 1px dashed #b9b0a0;
}
body.notebook .qbank-q {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #221f1a;
  margin: 0;
}
body.notebook .qbank-a {
  margin-top: 0.35rem;
}
body.notebook .qbank-a summary {
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 0.92rem;
  font-weight: 400;
  color: #6e5f47;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
body.notebook .qbank-a summary::-webkit-details-marker {
  display: none;
}
body.notebook .qbank-a summary::before {
  content: "↳ ";
  width: auto;
}
body.notebook .qbank-a summary:hover {
  color: #b4433a;
}
body.notebook .qbank-a p {
  font-size: 0.97rem;
  line-height: 1.55;
  color: #3d3830;
  margin: 0.3rem 0 0;
}
body.notebook .glossary-term {
  color: #221f1a;
  border-bottom: 1px dotted #b4433a;
}
body.notebook .glossary-pop {
  background: #fbf8f1;
  border: 1px solid #d6cdb9;
  border-radius: 0;
  box-shadow: 2px 3px 0 rgba(34, 31, 26, 0.08);
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  color: #221f1a;
}
body.notebook .glossary-pop .katex-display {
  background: none;
  border: none;
}
body.notebook .glossary-pop-title {
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 1rem;
  font-weight: 400;
  color: #b4433a;
}
body.notebook .subscribe-box {
  background: #fbf8f1;
  border: 1px dashed #b9b0a0;
  border-radius: 0;
  margin: 0 0 1.85rem;
}
body.notebook .subscribe-box h3 {
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 1.24rem;
  font-weight: 400;
  color: #6e5f47;
  letter-spacing: 0;
}
body.notebook .subscribe-form input[type=email] {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.85rem;
  background: #ffffff;
  color: #221f1a;
  border: 1px solid #cfc8b8;
  border-radius: 0;
}
body.notebook .subscribe-form input[type=email]:focus {
  border-color: #b4433a;
}
body.notebook .subscribe-form input[type=email]::placeholder {
  color: #b3aa9a;
}
body.notebook .btn {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-weight: 500;
  font-size: 0.82rem;
  border-radius: 0;
  border: 1px solid #221f1a;
  color: #221f1a;
}
body.notebook .btn:hover {
  border-color: #b4433a;
  color: #b4433a;
  background: none;
}
body.notebook .btn-primary {
  background: #221f1a;
  color: #f4efe5;
}
body.notebook .btn-primary:hover {
  background: #b4433a;
  border-color: #b4433a;
  color: #f4efe5;
}
body.notebook .subscribe-note {
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 0.84rem;
  color: #6e5f47;
}
body.notebook .feedback-fab {
  background: #b4433a;
  box-shadow: 2px 3px 0 rgba(34, 31, 26, 0.2);
}
body.notebook .feedback-fab:hover {
  background: #221f1a;
  transform: none;
}
body.notebook .feedback-panel {
  background: #fbf8f1;
  border: 1px solid #d6cdb9;
  border-radius: 0;
  box-shadow: 2px 3px 0 rgba(34, 31, 26, 0.08);
}
body.notebook .feedback-panel .feedback-panel-title {
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 1.04rem;
  font-weight: 400;
  color: #b4433a;
}
body.notebook .feedback-panel textarea {
  background: #ffffff;
  border-radius: 0;
  border-color: #cfc8b8;
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
body.notebook .feedback-panel textarea:focus {
  border-color: #b4433a;
}
body.notebook .feedback-status {
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 0.8rem;
}
body.notebook .post-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  border-top: 1px dashed #b9b0a0;
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.85rem;
  margin: 0;
  padding: 0;
}
body.notebook .post-nav a {
  color: #221f1a;
}
body.notebook .post-nav a:hover {
  color: #b4433a;
}
body.notebook .post-nav a:hover .post-nav-part {
  color: #b4433a;
}
body.notebook .post-nav .post-nav-prev {
  text-align: left;
}
body.notebook .post-nav .post-nav-next {
  text-align: right;
  margin-left: auto;
}
body.notebook .post-nav .post-nav-prev, body.notebook .post-nav .post-nav-next {
  max-width: 40%;
  flex: 1 1 0;
}
body.notebook .post-nav .post-nav-empty {
  visibility: hidden;
}
body.notebook .post-nav .post-nav-part {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #6e5f47;
  margin: 0 0.4em;
}
body.notebook .post-nav .post-nav-mid {
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-style: normal;
  font-size: 0.92rem;
  color: #6e5f47;
  white-space: nowrap;
  text-align: center;
}
body.notebook .series-toc {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0 1.5rem;
  margin: 0 0 1.85rem;
  line-height: 1.85rem;
  font-size: 1rem;
}
body.notebook .series-toc-label {
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 0.96rem;
  color: #6e5f47;
}
body.notebook .series-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
}
body.notebook .series-toc-item {
  break-inside: avoid;
  line-height: 1.85rem;
  margin: 0;
  padding-left: 2.6em;
  text-indent: -2.6em;
}
body.notebook .series-toc-num {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: #6e5f47;
  margin-right: 0.45em;
}
body.notebook .series-toc-title {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-style: italic;
  color: #221f1a;
}
body.notebook a.series-toc-title {
  border-bottom: 1px dotted #b4433a;
}
body.notebook a.series-toc-title:hover {
  color: #b4433a;
}
body.notebook .is-current .series-toc-title {
  color: #b4433a;
}
body.notebook .is-current .series-toc-num {
  color: #b4433a;
}
body.notebook .subpage-toc {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0 1.5rem;
  margin: 0 0 1.85rem;
  line-height: 1.85rem;
  padding-bottom: 1.85rem;
  border-bottom: 1px dashed #b9b0a0;
}
body.notebook .subpage-toc > * {
  margin-top: 0;
}
body.notebook .subpage-toc-label {
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 0.96rem;
  color: #6e5f47;
}
body.notebook .subpage-toc-all {
  display: block;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6e5f47;
  background: none;
  border: none;
  border-bottom: 1px solid #b9b0a0;
  padding: 0;
  cursor: pointer;
  line-height: calc(1.85rem - 1px);
}
body.notebook .subpage-toc-all:hover {
  color: #b4433a;
  border-color: #b4433a;
}
body.notebook .subpage-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.notebook .subpage-toc-item {
  padding-left: 2.2em;
  text-indent: -2.2em;
}
body.notebook .subpage-toc-item a {
  color: #221f1a;
  text-decoration: none;
}
body.notebook .subpage-toc-item a:hover .subpage-toc-title {
  color: #b4433a;
}
body.notebook .subpage-toc-num {
  display: inline-block;
  width: 2.2em;
  text-indent: 0;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.78rem;
  color: #6e5f47;
}
body.notebook .subpage-toc-item.is-current a {
  color: #b4433a;
}
body.notebook .subpage-toc-item.is-current .subpage-toc-num {
  color: #b4433a;
}
body.notebook .post-content.has-subpages .subpage:not(.is-open) {
  display: none;
}
body.notebook .subpage-stamp {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b4433a;
  line-height: 1.85rem;
  margin: 0;
  padding-top: 1.85rem;
}
body.notebook .subpage-stamp + h2 {
  padding-top: 0;
}
body.notebook .subpage-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem 2rem;
  border-top: 1px dashed #b9b0a0;
  padding-top: 1.85rem;
  margin: 0 0 1.85rem;
  line-height: 1.85rem;
}
body.notebook .subpage-prev {
  flex: 0 1 40%;
  border-bottom: 0;
  background: none;
  font-size: 0.95rem;
  color: #6e5f47;
  text-decoration: none;
}
body.notebook .subpage-prev:hover {
  color: #b4433a;
}
body.notebook .subpage-next {
  flex: 1 1 55%;
  border-bottom: 0;
  background: none;
  margin-left: auto;
  text-align: right;
  text-decoration: none;
  color: #221f1a;
  font-style: italic;
  font-size: 1.15rem;
}
body.notebook .subpage-next:hover .subpage-next-q {
  color: #b4433a;
}
body.notebook .subpage-next-label {
  display: block;
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-style: normal;
  font-size: 0.96rem;
  color: #b4433a;
}
body.notebook .subpage-next-q {
  display: block;
}
body.notebook .post-nav-top {
  margin: 0 0 1.85rem;
  padding: 0;
  border-bottom: 1px dashed #b9b0a0;
  font-size: 0.95rem;
}
body.notebook .site-footer {
  border-top: 1px solid #cfc8b8;
}
body.notebook .footer-social a {
  color: #6e5f47;
}
body.notebook .footer-social a:hover {
  color: #b4433a;
}
body.notebook .footer-content p {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #6e5f47;
}

@media (max-width: 768px) {
  body.notebook {
    font-size: 1.05rem;
  }
  body.notebook .nav-container {
    padding: 0 1rem;
    align-items: center;
  }
  body.notebook .nav-links {
    background: #f4efe5;
    border-bottom: 1px solid #cfc8b8;
    backdrop-filter: none;
    gap: 0.25rem;
    top: 100%;
  }
  body.notebook .nav-link {
    padding: 0.5rem 0;
    width: auto;
    border-bottom-color: transparent;
  }
  body.notebook .nav-link.active {
    border-bottom-color: #b4433a;
  }
  body.notebook .page-container::before, body.notebook .post-container::before {
    display: none;
  }
  body.notebook .nb-title-note {
    position: static;
    display: block;
    margin-bottom: 0.5rem;
    transform: none;
  }
  body.notebook .page-title {
    font-size: 2.3rem;
    top: -9.9px;
  }
  body.notebook .post-title {
    font-size: 2rem;
    top: -8.8px;
  }
  body.notebook .hero-sanskrit {
    top: -10.9px;
  }
  body.notebook .about-name {
    font-size: 2rem;
    top: -8.8px;
  }
  body.notebook .post-list-item {
    grid-template-columns: 1fr;
    gap: 0;
  }
  body.notebook .entry-side {
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
    padding-top: 0;
  }
  body.notebook .post-list-title {
    font-size: 1.5rem;
  }
  body.notebook .post-meta {
    row-gap: 0.2rem;
  }
  body.notebook .post-meta > *:not(:last-child)::after {
    display: none;
  }
  body.notebook .series-toc {
    grid-template-columns: 1fr;
    gap: 0;
  }
  body.notebook .series-toc-list {
    columns: 1;
  }
  body.notebook .series-track {
    grid-template-columns: 1fr;
    gap: 0;
  }
  body.notebook .track-topic {
    font-size: 1rem;
  }
  body.notebook .subpage-toc {
    grid-template-columns: 1fr;
    gap: 0;
  }
  body.notebook .subpage-nav {
    flex-wrap: wrap;
  }
  body.notebook .subpage-prev, body.notebook .subpage-next {
    flex: 1 1 100%;
    text-align: left;
  }
  body.notebook .post-content {
    font-size: 1.05rem;
  }
  body.notebook .post-nav {
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
  }
  body.notebook .post-nav .post-nav-prev, body.notebook .post-nav .post-nav-next {
    max-width: 100%;
    flex: 1 1 100%;
    text-align: left;
    margin-left: 0;
  }
  body.notebook .post-nav .post-nav-mid {
    order: -1;
    flex: 1 1 100%;
    text-align: left;
  }
  body.notebook .post-nav .post-nav-empty {
    display: none;
  }
  body.notebook .interview-q {
    transform: none;
    padding: 1.2rem 1.2rem 1.1rem;
  }
  body.notebook .interview-q-text {
    font-size: 1.25rem;
  }
}
body.notebook .about-container {
  max-width: 62rem;
  padding: 1.85rem 1rem calc(3 * 1.85rem);
  position: relative;
}
body.notebook .about-container > * {
  margin-top: 0;
}
body.notebook .about-container::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2.25rem;
  width: 1px;
  background: rgba(180, 67, 58, 0.35);
}
body.notebook .hero-quote {
  padding: 1.85rem 1rem 1.85rem;
  margin: 0 0 1.85rem;
  border-bottom: 1px dashed #b9b0a0;
}
body.notebook .hero-sanskrit {
  font-family: "Yatra One", "Kohinoor Devanagari", "Devanagari MT", "Noto Serif Devanagari", serif;
  font-size: 3.4rem;
  font-weight: 400;
  line-height: calc(2 * 1.85rem);
  color: #221f1a;
  letter-spacing: 0.01em;
  margin: 0;
  position: relative;
  top: -14.9px;
}
body.notebook .hero-transliteration {
  line-height: 1.85rem;
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 1.2rem;
  font-style: normal;
  color: #6e5f47;
  margin: 0;
}
body.notebook .hero-meaning {
  line-height: 1.85rem;
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  color: #221f1a;
  margin: 0;
}
body.notebook .hero-source {
  line-height: 1.85rem;
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 0.96rem;
  font-style: normal;
  color: #6e5f47;
  margin: 0;
}
body.notebook .hero-link-icon {
  color: #6e5f47;
}
body.notebook .about-section {
  padding: 0;
}
body.notebook .about-section > * {
  margin-top: 0;
}
body.notebook .about-hero {
  position: relative;
  gap: 3rem;
  margin: 0 0 1.85rem;
}
body.notebook .about-hero::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 46px;
  width: 96px;
  height: 22px;
  background: rgba(180, 67, 58, 0.16);
  transform: rotate(-4deg);
  z-index: 2;
  pointer-events: none;
}
body.notebook .about-photo {
  width: 190px;
  height: 190px;
  border-radius: 0;
  border: 7px solid #fbf8f1;
  box-shadow: 2px 3px 0 rgba(34, 31, 26, 0.12);
  transform: rotate(-2deg);
  margin-top: 0.4rem;
}
body.notebook .about-info > * {
  margin-top: 0;
}
body.notebook .about-name {
  font-size: 2.6rem;
  font-weight: 500;
  line-height: calc(2 * 1.85rem);
  letter-spacing: -0.015em;
  margin: 0;
  position: relative;
  top: -10.6px;
}
body.notebook .about-role {
  line-height: 1.85rem;
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  color: #3d3830;
  margin: 0;
}
body.notebook .about-affiliation {
  line-height: 1.85rem;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-weight: 400;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6e5f47;
  margin: 0;
}
body.notebook .about-quick-links {
  line-height: 1.85rem;
  gap: 0 1.4rem;
  margin: 0 0 1.85rem;
}
body.notebook .about-quick-links a {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 400;
  color: #4a453c;
  border-bottom: 1px dotted #4a453c;
  padding-bottom: 1px;
}
body.notebook .about-quick-links a:hover {
  color: #b4433a;
  border-color: #b4433a;
}
body.notebook .about-quick-links a i {
  font-size: 0.8rem;
  color: #6e5f47;
}
body.notebook .about-bio {
  font-size: 1.1rem;
  line-height: 1.85rem;
  margin: 0;
}
body.notebook .about-bio > * {
  margin-top: 0;
}
body.notebook .about-bio p {
  line-height: 1.85rem;
  margin: 0 0 1.85rem;
}
body.notebook .about-bio a {
  color: #221f1a;
  border-bottom: 1px dotted #b4433a;
}
body.notebook .about-bio a:hover {
  color: #b4433a;
}
body.notebook .about-bio strong {
  color: #221f1a;
  font-weight: 600;
}
body.notebook .about-interests {
  margin: 0;
}
body.notebook .about-interests h3 {
  line-height: 1.85rem;
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 1.08rem;
  font-weight: 400;
  color: #6e5f47;
  letter-spacing: 0;
  margin: 0;
}
body.notebook .interest-tags {
  line-height: 1.85rem;
  gap: 0 0.5rem;
}
body.notebook .interest-tag {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border: 1px solid #3d3830;
  border-radius: 0;
  color: #3d3830;
  background: rgba(255, 255, 255, 0.4);
}
body.notebook .news-section {
  margin: 0;
  padding-top: 1.85rem;
  border-top: 1px dashed #b9b0a0;
}
body.notebook .news-section h2 {
  line-height: 1.85rem;
  font-size: 1.7rem;
  margin: 0;
}
body.notebook .news-section .news-list {
  margin: 0;
}
body.notebook .news-list li {
  line-height: 1.85rem;
  padding: 0;
  border-bottom: 1px dashed #b9b0a0;
  font-size: 1rem;
  gap: 1.2rem;
}
body.notebook .news-list li a {
  color: #221f1a;
  border-bottom: 1px dotted #b4433a;
}
body.notebook .news-list li a:hover {
  color: #b4433a;
}
body.notebook .news-list li strong {
  color: #221f1a;
  font-weight: 600;
}
body.notebook .news-date {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-weight: 400;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b4433a;
  min-width: 6rem;
  padding-top: 0;
  line-height: 1.85rem;
}
body.notebook .chat-section {
  margin: 0;
  padding-top: 1.85rem;
  border-top: 1px dashed #b9b0a0;
}
body.notebook .chat-section h2 {
  line-height: 1.85rem;
  font-size: 1.7rem;
  margin: 0;
}
body.notebook .chat-section p {
  line-height: 1.85rem;
  color: #3d3830;
  font-size: 1.05rem;
  max-width: 40rem;
  margin: 0 0 1.85rem;
}
body.notebook .pub-footnote {
  line-height: 1.85rem;
  font-family: "Architects Daughter", "Bradley Hand", cursive;
  font-size: 0.96rem;
  font-style: normal;
  color: #6e5f47;
  margin: 0;
}
body.notebook .bibliography {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.notebook .bibliography > li {
  margin: 0;
}
body.notebook .pub-entry {
  padding: 1.85rem 0;
  border-bottom: 1px dashed #b9b0a0;
}
body.notebook .pub-text > * {
  margin-top: 0;
}
body.notebook .pub-with-figure {
  gap: 2rem;
}
body.notebook .pub-figure {
  width: 320px;
}
body.notebook .pub-figure img {
  border-radius: 0;
  border: 1px solid #d6cdb9;
  background: #fbf8f1;
  padding: 6px;
}
body.notebook .pub-title {
  line-height: 1.85rem;
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 500;
  font-size: 1.45rem;
  color: #221f1a;
  margin: 0;
}
body.notebook .pub-authors {
  line-height: 1.85rem;
  font-size: 1rem;
  color: #3d3830;
  margin: 0;
}
body.notebook .pub-venue {
  line-height: 1.85rem;
  font-style: italic;
  color: #6e5f47;
  margin: 0;
}
body.notebook .pub-note {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-style: normal;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b4433a;
  margin-left: 0.4rem;
}
body.notebook .pub-links {
  line-height: 1.85rem;
  gap: 1rem;
  margin: 0;
}
body.notebook .pub-links a {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 400;
  color: #4a453c;
  border-bottom: 1px dotted #4a453c;
}
body.notebook .pub-links a:hover {
  color: #b4433a;
  border-color: #b4433a;
}
body.notebook .cv-download {
  text-align: left;
  margin: 0 0 1.85rem;
  line-height: 1.85rem;
}
body.notebook .cv-embed {
  border: 1px solid #d6cdb9;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 2px 3px 0 rgba(34, 31, 26, 0.08);
}
body.notebook .project-card, body.notebook .journey-card {
  background: #fbf8f1;
  border: 1px solid #d6cdb9;
  border-radius: 0;
  box-shadow: 2px 3px 0 rgba(34, 31, 26, 0.08);
}
body.notebook .project-card:hover, body.notebook .journey-card:hover {
  background: #ffffff;
}
body.notebook .project-period, body.notebook .journey-date {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b4433a;
}
body.notebook .tag {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-weight: 400;
  font-size: 0.72rem;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid #cfc8b8;
  color: #6e5f47;
}

@media (max-width: 768px) {
  body.notebook .about-container::before {
    display: none;
  }
  body.notebook .hero-sanskrit {
    font-size: 2.4rem;
  }
  body.notebook .about-hero {
    gap: 1.5rem;
  }
  body.notebook .about-hero::before {
    left: calc(50% - 95px + 20px);
  }
  body.notebook .about-photo {
    width: 150px;
    height: 150px;
  }
  body.notebook .about-name {
    font-size: 2rem;
  }
  body.notebook .about-quick-links {
    justify-content: center;
  }
  body.notebook .news-list li {
    flex-direction: column;
    gap: 0.15rem;
  }
  body.notebook .news-date {
    min-width: 0;
    padding-top: 0;
  }
  body.notebook .pub-figure {
    width: 100%;
  }
}

/*# sourceMappingURL=main.css.map */