:root {
  --bg: #0a0b2a;
  --surface: #0e1033;
  --text: #ececf2;
  --muted: #b9b9c9;
  --accent: #f2e37a;
  --link-hover: #fff2a0;
  --link-visited: #c9bb6a;
  --border: #2a2a44;
  --code-bg: #1f1f28;
}

html, body {
    margin:0px;
    padding: 0px;
    height:100%;
    font-size: 17px;
    line-height: 1.5em;
    font-weight: normal !important;
}

body {
	background: url(/assets/lining2.webp);
	color: var(--text);
	background-color: #888;
	background-blend-mode: difference;
    font-family: 'Lora', garamond, serif;
    font-size: 18px;
}

a, a:visited, a:active {
	color: var(--accent);
	text-decoration: underline;
	font-weight: 600;
}

a:visited { color: var(--link-visited); }
a:hover   { color: var(--link-hover); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  text-decoration-thickness: 2px;
}


a.contact-button {
    text-decoration: none;
    text-shadow: rgba(34, 34, 34, 0.35) 0px 1px 1px;
    background-color: #ddc;
    font-weight: normal;
    color: #333;
    padding: 2px 6px 2px 6px;
    display: inline-block;
    border: .5px solid #333;
    border-radius: 2px;
    margin-bottom: 6px;
}

a.contact-button:hover {
    background-color: #ffe;
}

a.contact-button:active {
    background-color: #aa9;
    color: #222;
}

span.tag {
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border: .5px solid #555;
    padding: 2px 5px;
    font-size: small;
}

header img {
 border-radius: 100px;
 -webkit-border-radius: 100px;
 -moz-border-radius: 100px;
 display: block;
}

@media screen and (max-width: 680px) {
   header img {display:none;}
   .main-title {
       display: inline-grid;
       align-content: center;
   }
}

h1 {
	width: auto;
	height: auto;
	max-width: 70ch;
	margin-left: auto;
	margin-right: auto;
	padding: 8px;
	font-size: clamp(2rem, 6vw, 3.5rem);
	line-height: 1.2;
    text-align: center;
}

.main-title {
	display: flex;
	align-content: center;
	justify-content: center;
	flex-direction: row;
	gap: 0.2em;
color: var(--accent);
}

h1, h2, h3, h4 {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: normal;
}

h2, h3, h4 {
    text-align: start;
	text-wrap: balance;
}

h2:before {
    font-family: "Noto Sans Symbols 2", sans-serif;
    content: "🙟 ";
}


#wrapper {
	background-color: var(--surface);
    background-size: 1.5px;
	background-blend-mode: normal;
    max-width: 1200px;
    height:auto !important;
    min-height:100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: auto;
}

nav {
    margin: 0px;
    padding: 1px;
    background-color: #333;
	border-color: var(--border);
    border-bottom: 6px double;
}

nav li {
    display: inline;
    list-style-type: none;
}

main {
    padding:2em 2em 5em;
}

main p {
	text-align: start;
	text-wrap: pretty;
	padding:0 1em;
}

main section:after {
    content:"";
    height: 1px;
    display: block;
    min-width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-bottom: solid 1px;
}

div.excerpt {
    margin-left: 40px;
    margin-right: 40px;
    margin-bottom: 10px;
}

footer {
	border-color: var(--border);
    position:absolute;
    width:100%;
    bottom:0;
    background: #333;
    min-height: 30px;
    border-top: 6px double #060614;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap-reverse;
    justify-content: space-between;
    align-items: flex-end;
}

footer div {
    padding:4px;
    margin:4px;
}


li.article {
    padding-bottom: 16px;
}

code {
    /* Don't add padding or block display here, this affects inline code too */
    overflow: auto;
    font-family: 'Source Code Pro', monospace;
    white-space: pre;
    word-break: normal;
    word-wrap: normal;
}

code,
code[class*="language-"] {
  background: var(--code-bg) !important;
  color: var(--text);
  border-radius: 4px;
}

code[class*="language-"] {
  display: block;
  margin: 16px 0;
  padding: 8px 10px;
  background: var(--code-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-left: 4px solid var(--code-accent, var(--accent)); /* accent stripe */
  border-radius: 6px;
  overflow-x: auto;
}

code.language-bash    { --code-accent: #6ecf68; } /* green */
code.language-python  { --code-accent: #4ea1ff; } /* blue */
code.language-go      { --code-accent: #00add8; } /* Go cyan */
code.language-java    { --code-accent: #ea2d2e; } /* red */
code.language-toml    { --code-accent: #ffa94d; } /* orange */
code.language-c       { --code-accent: #a78bfa; } /* violet */
code.language-any     { --code-accent: var(--accent); } /* fallback */

.twitter-tweet {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

figure {
    background: rgba(0, 0, 0, .4);
    border: solid 1px var(--border);
    padding: 10px;
}

figure img {
    display:block;
    margin:auto;
    max-width: 95%;
    background: white;
}

figure figcaption {
    text-align: center;
}

aside {
    font-style: italic;
    font-size: smaller;
    background: rgba(43, 43, 42, 0.8);
    padding: 10px 15px;
    text-align: justify;
}

a.footnote-return span {
    visibility: hidden;
    position: relative;
}

a.footnote-return span::before {
  content: "🙤"; /* The new content to be displayed */
  visibility: visible;
  position: absolute;
  left: 0;
  top: 0;
}
