@import url(https://fonts.googleapis.com/css?family=Inconsolata|Inter&display=swap);

/* === modus-vivendi colors === */
/* bg:        #000000 */
/* fg:        #ffffff */
/* org-1:     #ffffff (bold) */
/* org-2:     #d2b580 (bold) */
/* org-3:     #82b0ec (bold) */
/* org-4:     #feacd0 (bold) */
/* link:      #79a8ff */
/* comment:   #989898 */
/* string:    #79a8ff */
/* keyword:   #b6a0ff */
/* builtin:   #f78fe7 */
/* type:      #6ae4b9 */
/* code/verb: #6ae4b9 / #f78fe7 */
/* block-bg:  #1e1e1e */
/* region:    #5a5a5a */

body {
  margin: 40px auto 60px;
  max-width: 900px;
  line-height: 1.6;
  font-size: 16px;
  background: #000000;
  color: #ffffff;
  padding: 0 20px;
  font-family: Inter, sans-serif;
}

@media (min-width: 1050px) {
  body {
    margin-left: 150px;
  }
}

@media (min-width: 2000px) {
  body {
    margin-left: 300px;
  }
}

/* === Headings === */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-family: Inter, sans-serif;
  font-weight: bold;
  margin-top: 1.4em;
  margin-bottom: 0.4em;
}

h1.title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 1em;
  border-bottom: 1px solid #333333;
  padding-bottom: 0.3em;
}

/* Fallback styles for headings (before JS runs or if JS disabled) */
h2 { font-size: 1.5em; color: #ffffff; }
h3 { font-size: 1.3em; color: #d2b580; margin-left: 1em; }
h4 { font-size: 1.15em; color: #82b0ec; margin-left: 2em; }
h5 { font-size: 1.05em; color: #feacd0; margin-left: 3em; }
h6 { font-size: 1em; color: #ffffff; margin-left: 4em; }

/* === Collapsible sections (org-fold) === */

details {
  margin-top: 0.5em;
}

/* Hide the default browser triangle marker */
details > summary {
  list-style: none;
  cursor: pointer;
  font-weight: bold;
  line-height: 1.3;
  font-family: Inter, sans-serif;
  margin-top: 1em;
  margin-bottom: 0.4em;
}

details > summary::-webkit-details-marker {
  display: none;
}

/* Triangle bullets: collapsed ▶, expanded ▼ — matching org-modern-fold-stars */
details > summary::before {
  color: #989898;
  display: inline-block;
  width: 1.2em;
}

/* Level-specific collapsed/expanded bullets and colors */
details > summary.h2::before { content: "▶ "; }
details[open] > summary.h2::before { content: "▼ "; }
details > summary.h2 { font-size: 1.5em; color: #ffffff; }

details > summary.h3::before { content: "▷ "; }
details[open] > summary.h3::before { content: "▽ "; }
details > summary.h3 { font-size: 1.3em; color: #d2b580; margin-left: 1em; }

details > summary.h4::before { content: "▸ "; }
details[open] > summary.h4::before { content: "▾ "; }
details > summary.h4 { font-size: 1.15em; color: #82b0ec; margin-left: 2em; }

details > summary.h5::before { content: "▹ "; }
details[open] > summary.h5::before { content: "▿ "; }
details > summary.h5 { font-size: 1.05em; color: #feacd0; margin-left: 3em; }

details > summary.h6::before { content: "▸ "; }
details[open] > summary.h6::before { content: "▾ "; }
details > summary.h6 { font-size: 1em; color: #ffffff; margin-left: 4em; }

/* Links inside headings/summaries should look like links */
details > summary a,
h2 a, h3 a, h4 a, h5 a, h6 a {
  color: #79a8ff;
  text-decoration: underline;
  text-decoration-color: rgba(121, 168, 255, 0.4);
  text-underline-offset: 3px;
}

details > summary a:hover,
h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
  text-decoration-color: #79a8ff;
}

/* === Links === */

a {
  color: #79a8ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  background-color: rgba(121, 168, 255, 0.1);
}

/* === Code === */

pre {
  font-family: Inconsolata, monospace;
  background: #1e1e1e;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid #333333;
  overflow-x: auto;
}

code {
  font-family: Inconsolata, monospace;
  color: #6ae4b9;
  background: #1e1e1e;
  padding: 2px 5px;
  border-radius: 3px;
}

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

/* === Selection === */

::selection {
  background: #5a5a5a;
  color: #ffffff;
}

/* === Images === */

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

/* === Org content sections: indent content under headings === */

.outline-text-2 {
  margin-left: 1.6em;
}

.outline-text-3 {
  margin-left: 2.6em;
}

.outline-text-4 {
  margin-left: 3.6em;
}

/* === Navigation (UP/HOME links) === */

#org-div-home-and-up {
  font-size: 0.85em;
  color: #989898;
  margin-bottom: 1em;
}

#org-div-home-and-up a {
  color: #989898;
}

#org-div-home-and-up a:hover {
  color: #79a8ff;
}

/* === Postamble (author/date footer) === */

#postamble {
  margin-top: 3em;
  padding-top: 1em;
  border-top: 1px solid #333333;
  color: #989898;
  font-size: 0.85em;
}

/* === Tables === */

table {
  border-collapse: collapse;
  margin: 1em 0;
}

th, td {
  border: 1px solid #333333;
  padding: 6px 12px;
  text-align: left;
}

th {
  background: #1e1e1e;
  color: #d2b580;
}

/* === Lists === */

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

/* === Blockquotes === */

blockquote {
  border-left: 3px solid #b6a0ff;
  margin: 1em 0;
  padding: 0.5em 1em;
  color: #989898;
  background: #1e1e1e;
}

/* === Horizontal rules === */

hr {
  border: none;
  border-top: 1px solid #333333;
  margin: 2em 0;
}
