/* Markdown */
:root {
  --maincolor: #2e2c38;
  --bordercl: #b7b7b7;
  --accentcolor: #ff5555;
  --hovercolor: #0052be;
  --darkMaincolor: #50fa7b;
}
html {
  color: #232333;
  font-family: "Cooper Medium";
  font-size: 18px;
  line-height: 1.6em;
}
body {
  display: block;
  margin: 8px;
}
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

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

p {
  font-family: "Cooper", sans-serif;
  line-height: 1.5;
}

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

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

a {
  color: inherit;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
}
a:hover {
  background-color: var(--hovercolor);
  color: #fff;
}

ul {
  list-style: none;

  padding-left: 2ch;
}
ul li {
  text-indent: -2ch;
}
ul > li::before {
  content: "* ";
  font-weight: bold;
}

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

/* Code blocks */
code {
  background-color: #f1f1f1;
  padding: 0.1em 0.2em;
}

pre {
  background-color: #ececec;
  line-height: 1.4;
  overflow-x: auto;
  padding: 1em;
}

.highlight pre ::selection {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

pre code {
  background-color: transparent;
  color: inherit;
  font-size: 100%;
  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;
  line-height: 2.5em;
}

header .main {
  font-family: "Cooper Black";
  font-size: 1.9em;
  margin-bottom: 1em;
}
.main a {
  text-underline-offset: 0.3em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cooper Medium";
  font-size: 1.6rem;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

h1 {
  font-family: "Cooper SemiBold";
  font-feature-settings: "swsh" 1;
}

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

h2::before {
  color: var(--accentcolor);
  content: "❧ ";
}
h3::before {
  color: var(--accentcolor);
  content: "❧❧ ";
}
h4::before {
  color: var(--accentcolor);
  content: "❧❧❧ ";
}
h5::before {
  color: var(--accentcolor);
  content: "❧❧❧❧ ";
}
h6::before {
  color: var(--accentcolor);
  content: "❧❧❧❧❧ ";
}

.list-item {
  margin-bottom: 0.5em;
}

.meta {
  font-size: 1em;
  color: #999;
  letter-spacing: -0.5px;
  margin: 0.01em;
}
.meta a {
  text-decoration: none;
}

.meta .location {
  font-family: "Cooper MediumItalic";
  margin-bottom: 0.3em;
}

.rating {
  font-size: 2em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
.rating .empty {
  color: transparent;
  text-shadow: 0 0 0 var(--bordercl);
}
.subtitle {
  font-size: 1em;
  line-height: 1.25em;
  margin-top: 0;
  margin-bottom: 0;
}
.subtitle .meta a {
  font-size: 1em;
}
.subtitle .rating {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1em;
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  border-top: 0.4rem dotted var(--accentcolor);
  padding: 2rem 0rem;
  margin-top: 2rem;
}
.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-top: 0;
  margin-bottom: 0;
}
.title a {
  color: inherit;
  text-decoration: none;
}

time {
  color: grey;
}

.readmore {
  font-family: "Cooper";
  line-height: 1px;
  text-decoration-thickness: 1px;
}
.menu {
  font-family: "Cooper SemiBold";
  text-decoration-thickness: 2px;
}
/* Posts */
.title {
  font-family: "Cooper SemiBold";
  margin-bottom: 0.3em;
}
.site-description {
  display: flex;
  justify-content: space-between;
}
.tags::before {
  content: "⚘ ";
}
.tags a:hover {
  color: white;
  background-color: var(--hovercolor);
}
svg {
  max-height: 15px;
}
.soc:hover {
  color: white;
}
.draft-label {
  all: initial;
  font-family: "Cooper SemiBold";
  color: var(--bordercl);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  margin-left: 6px;
  background-color: #f9f2f4;
}
/* table */
table {
  border-spacing: 0;
  border-collapse: collapse;
}

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

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