/* Markdown */
:root {
  --maincolor: #F7208B;
  --bordercl: rebeccapurple;
  --callouctcolor: rgba(255, 255, 255, 0.788);
  --hovercolor: navy;
}

* {
  box-sizing: border-box;
  text-rendering: geometricPrecision;
  font-smooth: never;
  -webkit-font-smoothing: none;
}

html {
  font-family: 'RenoMono', monospace;
  font-size: 15px;
  line-height: 1.6em;
}

body {
  word-wrap: break-word;
  color: white;
  background-color: #141414;
  display: block;
  margin: 8px;
}

* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

p,
li {
  font-family: monospace;
  line-height: 1.5;
  font-family: 'Fira Sans', sans-serif;
  line-height: 1.5;
}

.convo p,
.convo ul li,
blockquote p {
  font-family: 'RenoMono', monospace;
  font-size: 15px;
  line-height: 1.6em;
}

hr {
  border: 0;
  border-top: 3px dotted var(--bordercl);
  margin: 1em 0;
}

/* .hack blockquote {
	position: relative;
	padding-left: 17px;
	padding-left: 2ch;
	overflow: hidden;
} */

blockquote {
  position: relative;
  overflow: hidden;
  color: #a58282;
  margin: 0;
  padding-left: 1.2em;
}

blockquote * {
  margin: 0;
}

blockquote::after {
  content: ">\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>";
  white-space: pre;
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'RenoMono', monospace;
  font-size: 15px;
  line-height: 1.6em;
}

blockquote p {
  color: #64dcb6;
}

ul {
  display: block;
  position: relative;
  list-style: none;
  padding-left: 2ch;
}

ul>li::before {
  content: '- ';
  font-weight: bold;
}

li::before {
  position: absolute;
  left: 0;
}

/* Images */
img {
  max-width: 100%;
}

figure {
  box-sizing: border-box;
  display: inline-block;
  margin: 0;
  max-width: 100%;
}

figure img {
  max-height: 500px;
}

@media screen and (min-width: 600px) {
  figure {
    padding: 0 40px;
  }
}

figure h4 {
  font-size: 1rem;
  margin: 0;
  margin-bottom: 1em;
}

figure h4::before {
  content: '↳ ';
}

pre code {
  background-color: transparent;
  color: inherit;
  font-size: 80%;
  padding: 0;
}

/* Containers */
.content {
  margin-bottom: 4em;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  padding: 0 1ch;
  word-wrap: break-word;
}

/* Header */
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 1em 0;
}

header .main {
  font-size: 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 1.5rem;
  line-height: 150%;
  margin-top: 2em;
}

/* h1 {
  display: block;
  position: relative;
  padding: 20px 0 30px;
  overflow: hidden;
  margin: 0;
} */

h1::before {
  color: var(--maincolor);
  content: '>> ';
}

.THE-TITLE {
  font-size: 2.8rem;
  font-weight: bold;
}

h2::before {
  color: var(--maincolor);
  content: '## ';
}

h3::before {
  color: var(--maincolor);
  content: '### ';
}

h4::before {
  color: var(--maincolor);
  content: '#### ';
}

h5::before {
  color: var(--maincolor);
  content: '##### ';
}

h6::before {
  color: var(--maincolor);
  content: '###### ';
}

hr {
  position: relative;
  height: 20px;
  overflow: hidden;
  border: 0;
  margin: 20px 0;
}

hr::after {
  content: "------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------";
  position: absolute;
  top: 0;
  left: 0;
  line-height: 20px;
  width: 100%;
  word-wrap: break-word;
}

hr.nohugemargin {
  margin: 0 0 20px 0;
}

.meta {
  color: grey;
  letter-spacing: -0.5px;
}

/* Footer */
footer {
  display: flex;
  align-items: center;
}

.soc {
  display: flex;
  align-items: center;
  border-bottom: none;
}

.border {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  border: 1px solid;
}

.footer-info {
  padding: var(--footer-padding);
}

/* Common */
.title h1 {
  margin-bottom: 0;
}

/* Posts */
article .title {
  margin-bottom: 0.2em;
}


/* Callout */
.callout {
  background-color: var(--callouctcolor);
  color: #fff;
  padding: 1em;
}

.callout p {
  margin: 0;
}

.callout a {
  border-bottom: 3px solid #fff;
}

.callout a:hover {
  background-color: #fff;
  color: var(--callouctcolor);
}

.site-description {
  display: flex;
  justify-content: space-between;
}

.tags div::before {
  content: "🏷 ";
}

.tags li::before {
  content: "🏷 ";
}

.tags a {
  border-bottom: 3px solid var(--maincolor);
}

.tags a:hover {
  color: white;
  background-color: var(--hovercolor);
}

svg {
  max-height: 15px;
}

.soc:hover {
  color: white;
}

.draft-label {
  color: var(--bordercl);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  margin-left: 6px;
  background-color: #f9f2f4;
}

.highlight,
.livewasm {
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.livewasm::before {
  background: #6651eb;
  border-radius: 0 0 0.25rem 0.25rem;
  color: white;
  font-size: 12px;
  letter-spacing: 0.025rem;
  padding: 0.1rem 0.5rem;
  position: absolute;
  right: 1rem;
  text-align: right;
  text-transform: uppercase;
  top: 0;
  content: 'WASM';
}

/* table */
table {
  border-spacing: 0;
  border-collapse: collapse;
}

table th {
  padding: 6px 13px;
  border: 1px solid #dfe2e5;
  font-size: large;
}

table td {
  padding: 6px 13px;
  border: 1px solid #dfe2e5;
}

::selection {
  background: red;
  color: #fff;
  text-shadow: none;
}

[contenteditable="true"] br {
  display: none;
}

p code,
li code,
h1 code,
h2 code {
  text-decoration: bold;
  padding: 0.1em 0.2em;
  font-weight: 700;
  color: #d3869b;
}

p code::after,
p code::before,
li code::after,
li code::before,
h1 code::after,
h1 code::before,
h2 code::after,
h2 code::before {
  content: "`";
  display: inline;
}

pre:has(code) {
  background-color: #292429 !important;
  line-height: 1;
  overflow-x: auto;
  padding: 1em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #ddd;
}

a {
  border-bottom: 1px solid var(--maincolor);
  color: inherit;
  text-decoration: none;
}

a:hover {
  background-color: var(--maincolor);
  color: black;
}

.clean-link {
  border-bottom: none;
}

.clean-link:hover {
  background-color: transparent;
  color: inherit;
}

div.sourceCode a {
  border-bottom: none;
  text-decoration: none;
  color: inherit;
  pointer-events: none;
  cursor: default;
}

div.sourceCode a:hover {
  background-color: transparent;
  color: inherit;
}

.site-description a {
  color: #ddd;
}

.site-description a:hover {
  color: black;
}

.tags a {
  border-bottom: 1px solid var(--maincolor);
}

.tags a:hover {
  background-color: var(--maincolor);
  color: black;
}

.site-title a {
  color: white;
  text-decoration: none !important;
}

.header nav,
.footer {
  border-color: #333;
}

.highlight {
  background-color: #333;
}

.soc:hover {
  color: black;
}
