@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300,400,500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --green: #24d05a;
  --pink: #eb4888;
  --blue: #10a2f5;
  --yellow: #e9bc3f;

  /* Dark mode (default) */
  --bg: #0e0e0e;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --border: #222222;
  --text: #f5f5f5;
  --text-muted: #888888;
  --text-dim: #555555;
  --text-faint: #444444;

  --font-display: "Syne", sans-serif;
  --font-mono: "Space Mono", monospace;
}

/* Light mode override */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8f8f6;
    --bg-card: #ffffff;
    --bg-card-hover: #f3f3f0;
    --border: #e2e2de;
    --text: #111111;
    --text-muted: #555555;
    --text-dim: #888888;
    --text-faint: #bbbbbb;
  }
}

/* Manual toggle attribute on html */
html[data-theme="light"] {
  --bg: #f8f8f6;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f3f0;
  --border: #e2e2de;
  --text: #111111;
  --text-muted: #555555;
  --text-dim: #888888;
  --text-faint: #bbbbbb;
}

body {
  font-family: sans-serif; /* 'Fira Code', Monaco, Consolas, Ubuntu Mono, monospace; */ 
}

.content {
  width: 760px;
  margin: 0 auto;
  align-items: unset;
  max-width: 100%;
}

.lang {
  margin-left: 18px;
  border-left: 1px solid #a9a9b3;
  padding-left: 18px;
  margin-right: 18px;
}

.logo__cursor {
  background: #f77825;
}

.post-content p img {
  margin: 0 auto;
}

a {
  text-underline-offset: 2px;
}

section.header {
  border-top: 2px solid #eee;
  height: 50px;
  display: flex;
  justify-content: space-around;
}

.header__inner p:first-child {
  font-weight: bolder;
}

.tags {
  list-style: none;
  display: inline-flex;
  overflow-x: scroll;
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  scrollbar-width: none; /* Firefox */
}

.tags li {
  margin-left: 12px;
}

.tags::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

@media screen and (min-width: 321px) {
  .lang {
    margin-right: 0;
  }

  .header__inner p:first-child {
    width: unset;
  }
}
