@charset "UTF-8";
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* html is scaled down by this factor. Viewport units inside the zoomed
     subtree are NOT scaled with it, so any vh/dvh length that has to fill the
     screen must be divided by it - otherwise the page ends up at 80% height. */
  --zoom: 0.8;
}

html {
  zoom: var(--zoom);
  font-size: 19.8px; /* 16.5px * 1.2 */
  line-height: 1.7;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--text-rgb), 0.18) transparent;
}

::selection {
  background: rgba(215, 186, 125, 0.35);
  color: var(--text);
}

::-moz-selection {
  background: rgba(215, 186, 125, 0.35);
  color: var(--text);
}

html, body {
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
  background: var(--bg);
  min-height: calc(100vh / var(--zoom));
  min-height: calc(100dvh / var(--zoom));
  transition: background 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: var(--text-strong);
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--text);
  text-decoration: underline;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1em;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--text-rgb), 0.25) transparent;
}

/* display equations scroll sideways on narrow screens instead of being
   clipped by the global overflow-x: hidden */
mjx-container[display=true] {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--text-rgb), 0.25) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--text-rgb), 0.18);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--text-rgb), 0.35);
}

pre::-webkit-scrollbar-thumb {
  background: rgba(var(--text-rgb), 0.25);
}

pre::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--text-rgb), 0.45);
}

code {
  background: var(--code-bg);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

pre code {
  background: none;
  padding: 0;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1em;
  color: var(--muted);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

ul, ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.3em;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

th, td {
  padding: 0.5em;
  border: 1px solid var(--border);
  text-align: left;
}

th {
  background: var(--code-bg);
  font-family: var(--font-sans);
}

/* A touch smaller on phones, where the same rem scale feels oversized. */
@media (max-width: 640px) {
  html {
    font-size: 18px;
  }
}
.wrapper, .log-wrapper {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Post content column: wider than the topbar, which stays at 42rem. */
.log-wrapper {
  max-width: 52rem;
}

/* Topbar spans the full viewport: brand flush left, actions flush right. */
.site-header .wrapper {
  max-width: none;
  padding: 0 1.75rem;
}

.site-header {
  padding: 0.9rem 0;
}

/* brand | writes reads | theme + github */
.site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1rem;
}

.site-menu {
  display: contents;
}

.menu-toggle {
  display: none;
}

.site-brand {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.site-brand:hover {
  text-decoration: none;
}

.site-mark {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.site-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-strong);
}

.site-brand:hover .site-name {
  color: var(--accent);
}

.site-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}

.nav-sep {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--border-subtle);
  user-select: none;
}

.site-nav a {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 0.12rem;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--text-strong);
  border-bottom-color: var(--border-subtle);
  text-decoration: none;
}

.site-nav a[aria-current=page] {
  color: var(--text-strong);
  border-bottom-color: var(--accent);
}

@media (max-width: 640px) {
  .site-header .wrapper {
    padding: 0 1rem;
  }
  .site-header-inner {
    grid-template-columns: 1fr auto auto;
    row-gap: 0.6rem;
  }
  .site-brand {
    grid-column: 1;
  }
  .menu-toggle {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    font-size: 1.05rem;
    color: var(--text);
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
  }
  .menu-toggle:hover {
    color: var(--text-strong);
    border-color: var(--border-subtle);
  }
  /* the menu drops below the bar as a panel */
  .site-menu {
    grid-column: 1/-1;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0 0.4rem;
    border-top: 1px solid var(--border);
  }
  .site-menu.open {
    display: flex;
  }
  .site-nav {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
  }
  .site-nav a {
    font-size: 1.2rem;
  }
  .site-actions {
    grid-column: auto;
    justify-self: center;
    justify-content: center;
    gap: 1rem;
  }
  .site-mark {
    width: 30px;
    height: 30px;
  }
  .site-name {
    font-size: 0.95rem;
  }
}
.site-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--text);
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--text-strong);
  border-color: var(--border-subtle);
  background: var(--surface);
}

.icon-link {
  display: inline-flex;
  line-height: 0;
  opacity: 0.7;
}

.icon-link:hover {
  opacity: 1;
}

.icon-link img {
  display: block;
  width: 20px;
  height: 20px;
}

/* the badge is a dark disc; invert it on dark so it stays visible */
[data-theme=dark] .icon-link.icon-invert img {
  filter: invert(1);
}

.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--text-strong);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s;
}

.scroll-top:hover {
  opacity: 0.7;
}

.page-content {
  padding: 2rem 0;
  flex: 1 0 auto;
  /* Home and the listing pages read in a serif; post bodies stay sans. */
  font-family: var(--font-serif);
}

/* controls keep the sans so they stay legible at small sizes */
.page-content .search-box,
.page-content .w-date,
.page-content .w-domain {
  font-family: var(--font-sans);
}

.page-content > a:first-child {
  text-decoration: none;
}

.page-content > a:first-child:hover {
  text-decoration: none;
}

/* Home */
.home {
  padding: 1rem 0;
}

/* Back button in post header */
.back-btn {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0.75rem;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--muted);
  border-radius: 999px;
}

.back-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* Log */
.log-header, .page-header {
  margin-bottom: 2rem;
}

.log-title, .page-title {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.log-meta {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

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

.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--accent);
  padding: 0.1em 0.5em;
  border-radius: 3px;
  font-size: 0.8rem;
  font-family: var(--font-sans);
}

.log-content, .page-content {
  line-height: 1.8;
}

/* Post body reads a touch larger; scoped so the topbar/listing width is
   unaffected (rem-based widths elsewhere still key off the root font size). */
.log-content {
  font-size: 1.08rem;
  font-family: var(--font-serif);
}

.log-content p,
.log-content li {
  font-weight: 400;
}

/* code keeps its own face; data tables stay sans for legibility */
.log-content code,
.log-content pre {
  font-family: var(--font-mono);
}

.log-content table {
  font-family: var(--font-sans);
}

/* Search */
.search-box {
  width: 100%;
  max-width: 320px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text);
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.search-box:focus {
  outline: none;
  border-color: var(--accent);
}

/* Reading page */
/* Higher specificity than `.reading-section h2` (0,1,1), which would
   otherwise win and glue the list to the heading. */
.reading-section h2.rating-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text-strong);
  border-top: 1px solid var(--border);
  /* ~2 body lines above each rating group (zoomed rem scale) */
  margin: 4.6rem 0 1.5rem;
  padding-top: 1.9rem;
}

.reading-section h2.rating-head:first-of-type {
  margin-top: 2.2rem;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}

.rating-star {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.rating-star.dim {
  opacity: 0.9;
}

.rating-val {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

/* breathing room under each list */
.reading-section .reading-list {
  margin-bottom: 0;
}

.reading-section .reading-list .book {
  padding: 0.28rem 0 0.28rem 1.2rem;
}

.reading-section {
  margin-top: 1.5rem;
}

.reading-section:first-of-type {
  margin-top: 0;
}

.reading-section h2,
.reading-section h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-strong);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin: 1.5rem 0 0.5rem;
}

.blogs-section h2 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.reading-section:first-of-type h2:not(.rating-head),
.reading-section:first-of-type h3 {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.blogs-section ul li {
  font-size: 0.85rem;
}

.blogs-section ul li a {
  font-size: 0.85rem;
  text-decoration: none;
}

.blogs-section ul li a:hover {
  text-decoration: none;
}

.reading-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.book-link {
  font-size: 0.95rem;
  color: var(--text-strong);
  text-decoration: none;
}

.book-link:hover {
  color: var(--accent);
}

.book-author {
  display: inline;
  font-size: 0.8rem;
  color: var(--muted);
}

.book-author::before {
  content: " ·";
  color: var(--border-subtle);
}

.book-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.book-note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted);
}

.reading-star {
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* Footnotes */
.footnotes {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 2rem;
}

/* Homepage intro */
.home {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-about {
  max-width: 34rem;
  color: var(--text);
}

.home-about p {
  margin: 0 0 1.1rem;
}

.home-about p:last-child {
  margin-bottom: 0;
}

.home-about a {
  color: var(--accent);
}

.home-subtitle {
  font-family: var(--font-serif);
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.home-subtitle a {
  font-weight: 500;
}

/* Table of contents: fixed in the left gutter, vertically centred */
.toc {
  position: fixed;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  width: 14rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding-right: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.5;
}

.toc:empty {
  display: none;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 0.7rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
  position: relative;
}

.toc li:last-child {
  margin-bottom: 0;
}

.toc a {
  color: var(--muted);
  display: block;
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
  text-decoration: none;
}

.toc li.active {
  border-left-color: var(--accent);
}

.toc li.active::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  left: -3px;
  top: 0.6em;
}

.toc li.active > a {
  color: var(--accent);
}

/* no gutter to float in: falls back to nothing rather than overlapping the text.
   Threshold follows the 52rem content column (26rem half-width + 15rem of TOC). */
@media (max-width: 1380px) {
  .toc {
    display: none;
  }
}
/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lightbox-in 0.2s ease;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  animation: lightbox-zoom 0.25s ease;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes lightbox-zoom {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.log-content img {
  cursor: zoom-in;
}

/* --- Popup notes -------------------------------------------------------
   Inline addenda: a small marker at the end of a sentence opens an overlay
   with longer material, so the main thread stays linear and the depth is on
   demand. The overlay uses inset:0 rather than vh units, because html is
   scaled by --zoom and viewport units are not part of the zoomed subtree
   (so any height that must fill the screen is divided by --zoom).          */
.popup-trigger {
  margin-left: 0.3em;
  padding: 0;
  font: inherit;
  font-size: 0.8em;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.8;
}

.popup-trigger:hover,
.popup-trigger:focus-visible {
  opacity: 1;
  color: var(--text-strong);
  outline: none;
}

/* Hidden source of truth: MathJax renders it in place at load, and the
   script moves those same nodes into the panel, so nothing is re-typeset. */
.popup {
  display: none;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: popup-in 0.18s ease;
}

.popup-panel {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 46rem;
  max-height: calc(88vh / var(--zoom));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2.2rem 2.4rem 2rem;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
  animation: popup-rise 0.2s ease;
}

/* --- keeping popup content inside the screen ----------------------------
   A flex item's automatic minimum size is its min-content size, and that
   propagates up from the widest descendant: the coefficient tables and the
   wide display equations are both wider than a phone. Without the resets
   below the panel grows past the viewport and the whole page overflows
   sideways, since the overlay is fixed. Setting min-width: 0 on the chain
   lets the panel stay screen-width and pushes scrolling inside it instead. */
.popup-body {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* a table's min-content width is set by its longest unbreakable cell, so let
   the cells break rather than pushing the panel wider than the screen */
.popup-body th,
.popup-body td {
  overflow-wrap: break-word;
  word-break: normal;
}

/* the one piece that genuinely cannot compress: display equations and the
   coefficient table. Those scroll inside the popup (base.scss already gives
   display math this treatment) rather than widening the page. */
.popup-body mjx-container[display=true] {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

@media (max-width: 640px) {
  .popup-body table {
    display: block;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .popup-body th,
  .popup-body td {
    padding: 0.4em 0.55em;
  }
  .popup-body mjx-container {
    font-size: 0.9em;
  }
}
.popup-label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.popup-close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  width: 2rem;
  height: 2rem;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.popup-close:hover,
.popup-close:focus-visible {
  color: var(--text-strong);
  background: var(--border);
  outline: none;
}

.popup-panel table {
  width: 100%;
}

.popup-panel > *:first-child {
  margin-top: 0;
}

@keyframes popup-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes popup-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 640px) {
  .popup-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .popup-panel {
    max-width: none;
    max-height: calc(92vh / var(--zoom));
    padding: 1.7rem 1.2rem 1.4rem;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
  }
  .popup-close {
    top: 0.5rem;
    right: 0.5rem;
  }
}
/* --- Writes / Reads lists ------------------------------------------------
   Titles only; the description slides out to the right of the title on
   hover. Kept as an inline flex row rather than an absolutely positioned
   panel so it can never overflow the column.                             */
.writes-bar {
  margin-bottom: 1.6rem;
}

.w-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.w-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.22rem 0;
}

.w-date {
  flex: 0 0 auto;
  width: 7.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.w-link {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-serif);
  color: var(--text);
  text-decoration: none;
}

.w-link:hover {
  color: var(--accent);
}

.w-domain {
  flex: 0 0 auto;
  font-size: 0.72rem;
  color: var(--muted);
}

/* Tabs (reads: books / blogs) */
.tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.tab {
  font: inherit;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--text-strong);
  border-color: var(--border);
  background: var(--code-bg);
}

:root {
  /* Inter is shipped as a webfont and goes first on purpose: some browsers
     (Firefox on Linux in particular) can fail to resolve system sans fonts and
     fall back to a serif. A downloaded webfont does not depend on system font
     resolution, so it guarantees a sans everywhere. The system stack stays as
     fallback for when the font fails to load. */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* Light is the default; [data-theme="dark"] overrides the palette below. */
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f6f5f2;
  --surface-hover: #eeece7;
  --text: #3a3a38;
  --text-strong: #16161a;
  --heading: #16161a;
  --muted: #6a6a66;
  --subtle: #8d8d88;
  --accent: #8a6d3b;
  --border: #e3e1db;
  --border-subtle: #cfccc4;
  --code-bg: #f4f3ef;
  --tag-bg: rgba(138, 109, 59, 0.10);
  --text-rgb: 0, 0, 0;
  --syntax-string: #1f6f7a;
  --syntax-number: #9a5a1f;
  --syntax-error: #b3261e;
}

[data-theme=dark] {
  color-scheme: dark;
  --bg: #070808;
  --surface: #121413;
  --surface-hover: #1b1e1d;
  --text: #b3b3b3;
  --text-strong: #dcdcdc;
  --heading: #dcdcdc;
  --muted: #b3b3b3;
  --subtle: #8a8a8a;
  --accent: #d7ba7d;
  --border: #2b2a28;
  --border-subtle: #3b3936;
  --code-bg: #121413;
  --tag-bg: rgba(215, 186, 125, 0.12);
  --text-rgb: 255, 255, 255;
  --syntax-string: #2e7d8a;
  --syntax-number: #b87333;
  --syntax-error: #c0392b;
}

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

/* Comments */
.highlight .c,
.highlight .c1,
.highlight .cm,
.highlight .cp,
.highlight .cs {
  color: var(--muted);
  font-style: italic;
}

/* Keywords */
.highlight .k,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt {
  color: var(--accent);
  font-weight: 600;
}

/* Functions / names */
.highlight .nf,
.highlight .na,
.highlight .fm {
  color: var(--heading);
  font-weight: 600;
}

/* Strings */
.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .sr {
  color: var(--syntax-string);
}

/* Numbers / literals */
.highlight .m,
.highlight .mi,
.highlight .mf,
.highlight .mh,
.highlight .mo,
.highlight .il {
  color: var(--syntax-number);
}

/* Operators / punctuation */
.highlight .o,
.highlight .p {
  color: var(--text);
}

/* Built-ins / types */
.highlight .nb,
.highlight .bp,
.highlight .nc,
.highlight .ne,
.highlight .ni,
.highlight .nn,
.highlight .nt {
  color: var(--heading);
}

/* Errors / warnings */
.highlight .err,
.highlight .gr {
  color: var(--syntax-error);
}

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