/* Markdown */
:root {
  --maincolor: red;
  --bordercl: #eba0ac;
  --callouctcolor: dodgerblue;
  --hovercolor: navy;
  --darkMaincolor: #94e2d5;
  --subtext: #7f849c;
  --headingcolor: #a6e3a1;
  --bodytext: "Roboto Mono", monospace;
  --headingtext: "JetBrains Mono", monospace;
}

html {
  color: #232333;
  font-family: "Roboto Mono", monospace;
  font-size: 15px;
  line-height: 1.6em;
}

body {
  display: block;
  margin: 8px;
}

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

.errorbox {
  margin-bottom: 2rem;
}

.errortext h1 {
  font-size: 2.5rem;
  line-height: 2.6rem;
  margin-bottom: 3rem;
}

.errortext p {
  font-size: 1.3rem;
  margin-bottom: 7rem;
}

.errortext a {
  font-size: 1.1rem;
}

@keyframes intro {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.content {
  animation: intro 0.3s both;
  animation-delay: 0.15s;
}

::selection {
  background: var(--maincolor);
  color: #fff;
}

p {
  font-family: var(--bodytext);
  line-height: 1.5;
}

.description {
  font-family: var(--bodytext);
}

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

blockquote {
  border-left: 3px solid var(--bordercl);
  color: #bac2de;
  margin: 0;
  padding-left: 1em;
}

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

a:hover {
  background-color: var(--hovercolor);
  color: #fff;
}

nav a {
  color: #f5e0dc;
}

ul {
  list-style: none;
  padding-left: 2ch;
}

ul li {
  text-indent: -2ch;
}

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

/* Images */
img {
  border: 3px solid #45475a;
  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: "↳ ";
}

/* 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-family: var(--headingtext);
  color: #d0d6ff;
  font-weight: 600;
  font-size: 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--headingtext);
  font-size: 1.2rem;
  margin-top: 2em;
}

h1::before {
  color: var(--maincolor);
  content: "# ";
}

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: "###### ";
}

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

/* Footer */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 0.4rem dotted var(--bordercl);
  padding: 2rem 0rem;
  margin-top: 2rem;
}

/* padding: var(--footer-padding); */
footer > div:first-child {
  display: flex;
  gap: 0.5rem;
}

/* Footer info container */
.footer-info {
  display: flex;
  justify-content: flex-end; /* default: right-aligned on desktop */
  gap: 0.5rem;
}

/* Add separator "|" between items */
.footer-info > div:not(:last-child)::after {
  content: "|";
  /* margin-left: 1rem; */
  color: #999;
}

/* Responsive: small screens */
@media (max-width: 600px) {
  footer {
    flex-direction: column; /* stack socials and info vertically */
    align-items: flex-start; /* left-align everything */
  }

  .footer-info {
    justify-content: flex-start; /* left-align the info divs */
    flex-direction: column;      /* stack the child divs */
    gap: 0.5rem;
  }

  /* .footer-info > div::after {
    content: "";
    margin: 0;
  } */
   .footer-info > div:not(:last-child)::after {
  content: "";
  /* margin-left: 1rem; */
  color: #999;
}
}
.soc {
  display: flex;
  align-items: center;
  /* padding-right: 1rem;
  margin-right: 1rem; */
  /* border-right: 2px solid; */
  border-bottom: none;
}

#main_title {
  margin-bottom: 10px;
}

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

time {
  color: var(--subtext);
}

span {
  color: var(--subtext);
}

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

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

.callout p {
  font-family: "IBM Plex Mono", monospace;
  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 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;
}

.footnote-definition {
  display: flex;
  align-items: center;
  grid-column-gap: 10px;
}
