@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap');

/* Light mode */
/* :root {
  --bg: #808285;
  --bg-2: #8C8E91;
  --solid: #fff;
  --grey: #BCBEC0;
} */

:root {
  --bg: #000;
  --bg-2: #0c0c0c;
  --solid: #fff;
  --grey: #929da6;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* @media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --bg-2: #0c0c0c;
    --solid: #fff;
    --grey: #929da6;
  }
} */


body {
  background-color: var(--bg);
  font-family: 'Inter', sans-serif;
  padding: 0px;
  margin: 0px;
}

.header {
  margin: 32px 32px 0px 32px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin: 32px 32px 0px 32px; */
  /* border-bottom: 1px solid var(--bg-2); */
}

.header-logo {
  display: block;
  line-height: 0;
}

.header-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
}

.header-text {
  font-size: 20px;
  text-align: center;
  margin: 48px auto 96px auto;
  color: #fff;
  line-height: 150%;
  color: var(--grey);
  max-width: 450px;
}

.text {
  font-size: 16px;
  color: var(--grey);
  font-weight: 400;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: var(--solid);
  transition: color 0.2s;
  cursor: pointer;
}

a:hover {
  color: var(--grey);
  transition: color 0.2s;
}

.site-footer {
  max-width: 1065px;
  margin: 0 auto;
  padding: 32px 32px 48px;
  border-top: 1px solid rgba(146, 157, 166, 0.35);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  color: var(--grey);
  line-height: 1.5;
}

#container, #items {
  max-width: 1065px;
  margin: 32px auto 96px auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 24px;
}

.item {
  padding: 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  cursor: pointer;
  transition: background-color 0.3s;
  background-color: var(--bg-2);
  border: 2px solid var(--bg-2);
  min-width: 0;
}

.item:hover {
  transition: background-color 0.3s;
  background-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .item.is-entering {
    animation: item-in 0.95s ease both;
    animation-delay: calc(var(--i, 0) * 30ms);
  }
}

@keyframes item-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.load-sentinel {
  height: 1px;
  width: 100%;
  visibility: hidden;
  pointer-events: none;
}

.unicode {
  font-size: 1.25rem;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--solid);
  font-family: var(--font-mono);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.item.unicode-smiley .unicode {
  font-size: 1.0625rem;
  line-height: 1.25;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  overflow-x: visible;
  white-space: normal;
}

/* First two tiles in the grid (☺︎, ☹︎) */
#container > .item:nth-child(1) .unicode,
#container > .item:nth-child(2) .unicode {
  font-size: 2rem;
}

.title {
  text-align: center;
  font-size: 12px;
  line-height: 14px;
  font-family: var(--font-mono);
  color: var(--solid);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-wrapper {
  position: fixed;
  z-index: 9999;
  top: 24px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.alert {
  position: absolute;
  transition: all .3s ease-in-out;
  border-radius: 50px;
  background-color: var(--bg-2);
  color: var(--grey);
  pointer-events: none;
  text-align: center;
  padding: 16px;
  font-size: 16px;
  line-height: 18px;
  justify-self: center;
  max-width: min(90vw, 640px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.show { 
  display: flex;
  animation: fadeIn 0.3s ease-out both;
}

.hide {
  animation: fadeOut 0.4s ease-in both;
}

.hidden {
  display: none;
}


@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translate3d(0, -56px, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 16px, 0);
	}
}


@keyframes fadeOut {
	from {
		opacity: 1;
		transform: translate3d(0, 16px, 0);
	}
	to {
		opacity: 0;
		transform: translate3d(0, -56px, 0);
	}
}



@media screen and (max-width: 1100px) {

  #container {
    padding: 0px 24px;
    grid-template-columns: repeat(3, 1fr);
  }

}


@media screen and (max-width: 450px) {
  .header-text {
    font-size: 16px;
    text-align: center;
    margin: 48px 0px 96px 0px;
  }

  #container {
    margin: 64px auto;
    padding: 0px 24px;
    grid-template-columns: repeat(2, 1fr);
  }

  .title {
    font-size: 11px;
    line-height: 13px;
  }

  .item {
    min-height: 160px;
  }

  .article {
    padding: 0 24px;
  }

  .article-hero-img {
    width: min(100%, 180px);
  }

}

/* Article / guide pages */
.article {
  max-width: 42rem;
  margin: 0 auto 96px;
  padding: 0 32px;
}

.article-header {
  margin-bottom: 48px;
}

.article-hero {
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  justify-content: center;
}

.article-hero-link {
  display: block;
  padding-top: 8px;
}

.article-hero-link:hover {
  border-color: var(--solid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.article-hero-link:focus-visible {
  outline: 2px solid var(--solid);
  outline-offset: 4px;
}

.article-hero-img {
  display: block;
  width: min(100%, 240px);
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.article h1 {
  font-size: 2rem;
  font-weight: 400;
  color: var(--solid);
  line-height: 1.25;
  margin: 0 0 24px;
}

.article-lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--grey);
  margin: 0;
}

.article-toc {
  background-color: var(--bg-2);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 56px;
}

.article-toc h2 {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
  margin: 0 0 16px;
}

.article-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--grey);
  line-height: 1.8;
}

.article-toc a {
  color: var(--solid);
}

.article section {
  margin-bottom: 48px;
}

.article h2 {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--solid);
  margin: 56px 0 16px;
  line-height: 1.3;
}

.article h3 {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--solid);
  margin: 32px 0 12px;
}

.article p,
.article li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--grey);
  margin: 0 0 16px;
}

.article ul,
.article ol {
  margin: 0 0 16px;
  padding-left: 1.35rem;
}

.article li {
  margin-bottom: 8px;
}

.article strong {
  color: var(--solid);
  font-weight: 400;
}

.article blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--grey);
  background-color: var(--bg-2);
  border-radius: 0 8px 8px 0;
}

.article blockquote p {
  margin: 0;
  color: var(--solid);
  font-size: 18px;
  line-height: 1.5;
}

.article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background-color: var(--bg-2);
  color: var(--solid);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.article pre {
  background-color: var(--bg-2);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin: 0 0 24px;
}

.article pre code {
  padding: 0;
  background: none;
  font-size: 14px;
  line-height: 1.5;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 0 0 24px;
}

.article th,
.article td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-2);
  color: var(--grey);
}

.article th {
  color: var(--solid);
  font-weight: 400;
}

.article-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--bg-2);
  font-size: 15px;
  color: var(--grey);
}

.article-footer p {
  font-size: 15px;
  margin-bottom: 12px;
}

.article-cta {
  display: inline-block;
  margin-top: 8px;
  color: var(--solid);
}