body { background-color: #000000 !important; color: #c4fcb0 !important; /* soft green text */ font-family: "EB Garamond", Georgia, serif !important; max-width: 60ch; margin: 2rem auto; line-height: 1.6; } 

h1, h2, h3 { font-weight: 600; }

a, a:visited {
  color: #7df2d0;                /* soft mint-teal */
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: #b1ffdd;                /* lighter mint on hover */
  text-decoration: underline solid;
}

/* Collapsible TOC container */
#toc-container {
    background: transparent; /* ensures page background shows through */
    border: 1px solid var(--accent, #444);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 2em 0;
    box-shadow: none;        /* remove any default highlight */
}

/* TOC summary header */
#toc-container summary {
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    background: none;
    list-style: none;
}

#toc-container summary::marker {
    display: none;           /* removes default triangle if desired */
}

/* TOC links */
#toc-container a {
    text-decoration: none;
}

#toc-container a:hover {
    text-decoration: underline;
}

/* Optional: indentation for nested items */
#toc-container ul ul {
    margin-left: 1em;
    border-left: 2px solid var(--accent, #444);
    padding-left: 0.5em;
}

/* --- Mobile readability improvements (non-destructive) --- */

/* Give small screens horizontal padding so text doesnâ€™t touch edges */
@media (max-width: 800px) {
  body {
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 1.5rem auto; /* slightly tighter margin to fit better */
    max-width: 100%;     /* allow full width, rely on padding for centering */
  }
}

/* Optional: make images scale properly within narrow screens */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

/* Optional: ensure long words or links donâ€™t overflow */
p, li {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* start paste*/
blockquote {
  border-left: 3px solid #82ffb3 !important;
  padding-left: 1em;
  margin-left: 0;
  color: #a7f5c0 !important;
  font-style: italic;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid #82ffb3 !important;
  margin: 2em 0;
}

/* Images — add subtle border and rounded corners */
img {
  border: 2px solid #82ffb3 !important;
  border-radius: 8px !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Figure caption (if using figcaption) */
figcaption {
  color: #9fe7ac !important;
  font-size: 0.9em;
  text-align: center;
  margin-top: 0.4em;
}

/* Optional: constrain content width for nicer reading layout */
/*.markdown-preview-view .markdown-preview-section {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem;
}*/


/* Code blocks inside editor/preview */
pre {
  background: #07120a !important;
  color: #cfeed1 !important;
  border-radius: 6px !important;
  padding: 0.8rem !important;
}

/* Headings — slightly brighter */
h1,h2,h3 {
  color: #e7ffda !important;
}

/*end paste*/

/* --- Fluid Garamond typography (gentle scaling) --- */

/* Fluid base font size: slightly larger on wide screens, smaller on narrow */
html {
  font-size: clamp(16px, 1.4vw + 0.2rem, 20px);
}

/* Maintain the bodyâ€™s beautiful line rhythm */
body {
  line-height: 1.65;
  letter-spacing: 0.01em;
}

/* Headings scale smoothly without overpowering the body text */
h1 {
  font-size: clamp(1.8rem, 4vw + 0.5rem, 2.6rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.4rem, 3vw + 0.4rem, 2rem);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: clamp(1.2rem, 2vw + 0.3rem, 1.6rem);
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
}

/* Paragraph and list adjustments for smaller screens */
@media (max-width: 600px) {
  p, li {
    line-height: 1.7;
  }
}