/*** Core page styles ***/

/* Base styling */
html * {
    font-family: system-ui, sans-serif;
}
body {
    margin: 40px auto;
    max-width: 650px;
    line-height: 1.6;
    font-size: 18px;
    color: #f0e6d2; /* soft parchment */
    background-color: #1c1a18; /* deep dark brown-black, warmer than pure black */
    padding: 0 10px;
}

/*** Post styling ***/
img {
    max-width: 100%;
    max-height: 100%;
    margin: 20px auto;
    border-radius: 16px;
    display: block;
}

code {
    font-family: monospace, "Courier New", Courier, monospace;
}

pre {
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 1em 0;
}

/* Reduce interline spacing for code blocks */
pre.sourceCode, 
pre.sourceCode code, 
pre.sourceCode code span {
    line-height: 1.4em; /* tighter than before */
}

/* Blockquote styling */
blockquote {
    border-left: 3px solid #8aa89a; /* subtle sage/green accent */
    margin: 1em 40px 1em 30px;
    padding-left: 10px;
    font-style: italic;
    color: #d4c99f; /* warm beige */
}

/* Horizontal rules */
hr {
    border: none;
    border-top: 1px solid #c5946a; /* muted orange/gold */
    margin: 1.5em auto;
    max-width: 300px;
}

#endline {
    border: none;
    border-top: 1px solid #7a6b5a; /* soft bronze */
    margin: 80px auto 0;
    max-width: 300px;
}

/* Links */
a {
    color: #d8b68f; /* warm gold */
    text-decoration: none;
}
a:hover {
    color: #f0e3b8; /* pale yellow highlight */
}

/* Headings */
h1 {
    line-height: 1.2;
    color: #f3e6c9; /* soft, slightly lighter than body */
}
h2, h3 {
    padding-top: 24px;
    line-height: 1.2;
    color: #e6c990; /* muted complementary accent */
}

/* Inline dates */
.date { 
    padding-bottom: 0;
    margin-bottom: 0;
    font-size: 14px;
}
@media screen and (max-width: 900px) {
    .date { 
        text-align: right;
    }
}
@media screen and (min-width: 901px) {
    .date { 
        float: right;
        margin-left: 30px;
    }
}

/*** Modular components ***/

/* Logo */
.logo {           
    margin-bottom: 20px;
    text-align: center;
}
.logo img {
    max-height: 80px;
    opacity: 0.95;
}

/* Navbar styling */
.topbar {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #8c7564; /* muted tan */
    border-bottom: 1px solid #c5946a; /* warm accent */
    margin-bottom: 20px;
}
.topbar a {
    color: #d8b68f;
    padding: 0 8px;
    text-decoration: none;
}
.topbar a:hover {
    color: #f0e3b8;
}
.topbar .sep {
    color: #7a6b5a;
    padding: 0 6px;
}

/* Footer styling */
.footer {
    border-top: 1px solid #7a6b5a;
    color: #c9b68f;
    font-size: 13px;
    margin-top: 100px;
    text-align: center;
    padding: 15px 0 20px 0;
    line-height: 1.5;
}
.footer a {
    color: #d8b68f;
    text-decoration: none;
}
.footer a:hover {
    color: #f0e3b8;
}
.footer span {
    opacity: 0.8;
}

/*** Arise Syntax Highlighted Code ***/
pre.sourceCode, 
pre.sourceCode code, 
pre.sourceCode code span {
    font-family: monospace, "Courier New", Courier, monospace;
    background-color: #28241f; /* softer dark than before */
    color: #f0e6d2;
    border-radius: 12px;
    padding: 6px 16px; 
    line-height: 1.4em; /* tighter lines */
    display: block;
    overflow-x: auto;
}

/* Syntax accent colors using split-complementary palette */
pre.sourceCode code .co { color: #7aa88d; } /* comments - sage green */
pre.sourceCode code .kw { color: #d97c5f; } /* keywords - muted coral */
pre.sourceCode code .bu { color: #f0d89a; } /* builtins/commands - pale yellow */
pre.sourceCode code .st { color: #e6c990; } /* strings - soft gold */
pre.sourceCode code .fu { color: #c5946a; } /* functions/variables - warm tan */
pre.sourceCode code .va { color: #f0e3b8; } /* variable values - light cream */

/*** Tables for Arise Index and Markdown ***/
.arise-toc-td {
    border-width: 1px;
    border-color: #7a6b5a;
    border-top-style: solid;
    text-align: center;
    padding-right: 10px;
    padding-bottom: 5px;
}
.arise-toc-th {
    padding-bottom: 20px;
    border-bottom: 1px;
    border-bottom-style: solid;
}
table {
    border-collapse: collapse;
    margin: 20px 0;
    width: 100%;
}
table th, table td {
    border: 1px solid #7a6b5a;
    padding: 6px 10px;
}
table th {
    background-color: #1f1c19;
    color: #f0e6d2;
}
table td {
    background-color: #1c1a18;
    color: #e6c990;
}
