:root {
  color-scheme: light;
  --bg-color: #faf1e5;
  --text-color: #2d2d2d;
  --surface-color: #ffffff;
  --divider-color: #d8c8b5;
  --link-highlight: #f8d98c;
  --link-highlight-hover: #f2c45f;
  --toggle-bg: #efe2d1;
  --toggle-border: #d8c8b5;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-color: #1d1b18;
  --text-color: #f0ebe2;
  --surface-color: #2a2723;
  --divider-color: #4d463c;
  --link-highlight: #5f4e20;
  --link-highlight-hover: #7a6527;
  --toggle-bg: #2f2b25;
  --toggle-border: #4d463c;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
}
#postTime {
  font-size: small;
}
#postMeta {
  font-size: small;
  margin-top: -0.5rem;
}
#postMeta .taxonomy-pill,
#postMeta .taxonomy-pill:visited {
  display: inline-block;
  margin: 0.15rem 0.25rem 0.15rem 0;
  padding: 0.05rem 0.55rem;
  border: 1px solid var(--divider-color);
  border-radius: 999px;
  background: var(--surface-color);
  color: var(--text-color);
  background-image: none;
}
#postMeta .taxonomy-pill:hover,
#postMeta .taxonomy-pill:focus-visible {
  text-decoration: none;
  background: var(--link-highlight);
  background-image: none;
}
a,
a:visited {
  color: var(--text-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
article a,
article a:visited {
  color: var(--text-color);
  text-decoration: none;
  background-image: linear-gradient(transparent 62%, var(--link-highlight) 62%);
  background-repeat: no-repeat;
}
article a:hover,
article a:focus-visible {
  background-image: linear-gradient(
    transparent 56%,
    var(--link-highlight-hover) 56%
  );
  text-decoration: none;
}
main {
  margin: auto;
  max-width: 38rem;
  padding: 0.8rem;
  padding-top: 4vh;
}
pre {
  background: var(--surface-color);
  overflow: scroll;
  padding: 1rem;
}
td {
  border: 1px solid var(--text-color);
  padding: 10px;
}
img {
  height: auto;
  max-width: 100%;
}
.homepage-list {
  list-style: none;
  padding: 1rem 0;
}
.homepage-list li {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 10px;
}
.homepage-list .post-title-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.homepage-list .post-date-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.homepage-list .post-tag-pill,
.homepage-list .post-tag-pill:visited {
  display: inline-block;
  padding: 0.03rem 0.45rem;
  border: 1px solid var(--divider-color);
  border-radius: 999px;
  background: var(--surface-color);
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: nowrap;
}
.homepage-list .post-tag-pill:hover,
.homepage-list .post-tag-pill:focus-visible {
  text-decoration: none;
  background: var(--link-highlight);
}
.homepage-list .posts-group-heading {
  display: block;
  width: 100%;
  margin: 1.2rem 0 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--divider-color);
  font-weight: 700;
}
.homepage-list li:first-child.posts-group-heading {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.month-name {
  display: inline-grid;
  grid-template-areas: "stack";
}
.month-name-syriac,
.month-name-translated {
  grid-area: stack;
}
.month-name-translated {
  opacity: 0;
  visibility: hidden;
}
.month-name:hover .month-name-syriac {
  opacity: 0;
  visibility: hidden;
}
.month-name:hover .month-name-translated {
  opacity: 1;
  visibility: visible;
}
.month-name.is-swapped .month-name-syriac {
  opacity: 0;
  visibility: hidden;
}
.month-name.is-swapped .month-name-translated {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 38rem) {
  .homepage-list li .post-title-meta {
    width: 100%;
  }
}
.banner-logo {
  width: 20%;
}
html[data-theme="dark"] .banner-logo {
  filter: invert(1);
}
.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.social-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}
.theme-toggle {
  border: 0;
  background: transparent;
  color: var(--text-color);
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  vertical-align: middle;
  transform: translateY(-2px);
  cursor: pointer;
}
.theme-toggle:hover {
  opacity: 0.8;
}
.theme-toggle .theme-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.theme-toggle .theme-icon-sun {
  display: none;
}
html[data-theme="dark"] .theme-toggle .theme-icon-moon {
  display: none;
}
html[data-theme="dark"] .theme-toggle .theme-icon-sun {
  display: block;
}
.social-icons svg {
  color: var(--text-color);
}
.social-icons [stroke="#000000"] {
  stroke: currentColor;
}
.social-icons [fill="#000000"] {
  fill: currentColor;
}
